[data-preview]:not([data-type="link"]){
	display: block;
	cursor: zoom-in;
	position: relative;
}
[data-preview] .zoom-btn {
	width: 40px;
	height: 40px;
	color: white;
	background-color: rgba( 0,0,0,0.7 );
	position: absolute;
	right: 0;
	top: 0;
	font-size: 20px;
	display: none;
	padding: 0 10px;
}
.lightbox {
	position: fixed;
	background-color: rgba( 0,0,0,0.9 );
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 10000;
	display: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.lightbox .close {
	font-size: 16px;
	color: black;
	right: 5px;
	top: 5px;
	cursor: pointer;
	position: absolute;
	z-index: 3;
	background-color: rgba( 255,255,255,1 );
	padding: 0;
	width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}
.lightbox.has_scrollbar_y .close {
	right: 22px;
}

.lightbox table {
	width: 100%;
	height: 100%;
}
.lightbox td {
	vertical-align: middle;
	text-align: center;
	padding: 0;
	border: 0;
}
.lightbox .wrap {
	height: 100%;
	overflow-y: auto;
	overflow-x: auto;
	position: relative;
}
.lightbox .wrap > .inner {
	width: 100%;
	height: 100%;
}
.lightbox .close_area {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	cursor: zoom-out;
}
.lightbox img {
	max-width: calc( 100vw - 17px );
	max-height: 100vh;
	height: auto;
	position: relative;
	z-index: 2;
	display: block;
	margin: auto;
	padding: 0;
}

.lightbox .spin {
	position: absolute;
	left: calc( 50% - 20px );
	top: calc( 50% - 20px );
	color: white;
	font-size: 40px;
}

.lightbox .zoom_btns {
	font-size: 18px;
    color: black;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    background-color: rgba( 255,255,255,0 );
    padding: 30px 0 0;
}
.lightbox .zoom_btns button {
	cursor: pointer;
	background-color: rgba( 255,255,255,1 );
	margin: 0 10px;
	border-radius: 50%;
	width: 50px;
    height: 50px;
    padding: 0;
}
.lightbox .zoom_btns button[disabled] {
	opacity: 0.2;
}

@media( min-width: 1000px ){
	[data-preview]:hover .zoom-btn {
		display: block;
	}
}