/**********************************
 *   Разработчик: Компания DXia   *
 *        CopyRight @2021         *
 *        https://dxia.ru         *
 **********************************/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

*[data-dx-plagin="gallery"] img[data-src-full] {
    cursor: pointer;
}

dx_gallery {
	font-family: 'Inter', sans-serif;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	z-index: 999999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
    justify-content: space-between;
}
dx_gallery .close {
	position: absolute;
	top: -50px;
	right: -50px;
	width: 50px;
	height: 50px;
	line-height: 50px;
	color: #ccc;
	font-size: 36px;
	text-align: center;
	cursor: pointer;
	z-index: 100;
}
dx_gallery .block_left {
	display: flex;
    justify-content: center;
    align-items: center;
	width: 100px;
	height: 160px;
	line-height: 100px;
	background: rgba(0,0,0,0.2);
	color: #ccc;
	font-size: 120px;
	text-align: center;
	border-radius: 0 5px 5px 0;
	cursor: pointer;
	z-index: 100;
	margin: 0 0 0 auto;
}
dx_gallery .block_right {
	display: flex;
    justify-content: center;
    align-items: center;
	width: 100px;
	height: 160px;
	line-height: 100px;
	background: rgba(0,0,0,0.2);
	color: #c0c0c0;
	font-size: 120px;
	text-align: center;
	border-radius: 5px 0 0 5px;
	cursor: pointer;
	z-index: 100;
	margin: 0 auto 0 0;
}
dx_gallery .block_left .arrow {
	cursor: pointer;
	height: 120px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translateX(-50%) translateY(-50%) scaleX(-1);
	transition: transform 0.1s;
	width: 80px;
}
dx_gallery .block_right .arrow {
	cursor: pointer;
	height: 120px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	transition: transform 0.1s;
	width: 80px;
}
.arrow-top, .arrow-bottom {
  background-color: #666;
  height: 4px;
  left: -5px;
  position: absolute;
  top: 50%;
  width: 100%;
}
.arrow-top:after, .arrow-bottom:after {
  background-color: #fff;
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  transition: all 0.15s;
}
.arrow-top {
  transform: rotate(45deg);
  transform-origin: bottom right;
}
.arrow-top:after {
  left: 100%;
  right: 0;
  transition-delay: 0s;
}
.arrow-bottom {
  transform: rotate(-45deg);
  transform-origin: top right;
}
.arrow-bottom:after {
  left: 0;
  right: 100%;
  transition-delay: 0.15s;
}
.arrow:hover .arrow-top:after {
  left: 0;
  transition-delay: 0.15s;
}
.arrow:hover .arrow-bottom:after {
  right: 0;
  transition-delay: 0s;
}
/*
dx_gallery .block_right .arrow:active {
	transform: translateX(-50%) translateY(-50%) scale(0.9);
}
dx_gallery .block_left .arrow:active {
	transform: translateX(-50%) translateY(-50%) scale(0.9) scaleX(-1);
}
*/


dx_gallery .close:hover,
dx_gallery .block_left:hover,
dx_gallery .block_right:hover {
	color: #fff;
}
dx_gallery .block_center {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100vw - 300px);
    height: 100vh;
    margin: 0;
	pointer-events: none;
}
dx_gallery .block_center .data_block {
	max-width: calc(100% - 0px);
    /* max-height: 80%; */
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
/*    gap: 20px;*/
    background: #fff;
    padding: 10px;
	border-radius: 5px;
	/*
	transition: all 0.5s linear;
	-webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
	*/
}
dx_gallery .block_center .data_block .img_list {
	display: flex;
    flex-wrap: wrap;
}
dx_gallery .block_center img {
	/*max-width: calc(100vw - 200px);*/
	width: 0;
	/*height: 0;*/
	max-height: calc(100vh - 200px);
	object-fit: contain;
	border: 0px solid #fff;
	cursor: pointer;
	pointer-events: all;
	border-radius: 5px;
	/*
	transition: all 0.2s linear;
	-webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
	*/
}
dx_gallery .block_center img.active {
	width: 100%;
	max-width: calc(100vw - 200px);
	/*
	height: 100%;
	max-height: calc(100vh - 100px);
	*/
}
dx_gallery .block_center .data_block p.alt {
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	padding: 10px;
	border-radius: 5px;
	/*border: 1px solid #f1f1f1;*/
	/*background: #f5f5f5;*/
	/*margin-top: 20px;*/
}
/*
dx_gallery .block_center .data_block p.alt:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: #f1f1f1;
}
/*
dx_gallery .block_center .data_block p.alt:before {
	content: '';
	float: right;
	width: calc(100% - 40em);
	height: 1em;
}
*/
dx_gallery .block_info {
	position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 50px;
	line-height: 50px;
    text-align: center;
	color: #fff;
	font-size: 16px;
}

*[data-dx-plagin="imgZoom"] img {
    cursor: pointer;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 768px) {
	dx_gallery .block_center {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		margin: 0 auto;
	}
	dx_gallery .block_left,
	dx_gallery .block_right {
		position: absolute;
		top: auto;
		bottom: 0px;
		display: none;
	}
	dx_gallery .block_left {
		left: 0;
	}
	dx_gallery .block_right {
		right: 0;
	}
	dx_gallery .block_center img {
	    /* width: 100%; */
    	max-height: 100%;
		height: 100%;
		/* pointer-events: none; */
	}
	dx_gallery .block_center img.active {
		max-width: 100%;
	}
	dx_gallery .close {
        position: fixed;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        line-height: 60px;
        color: #ccc;
        font-size: 60px;
        text-align: center;
        cursor: pointer;
        z-index: 100;
    }
    dx_gallery .block_center .data_block {
        padding: 0;
    }
    dx_gallery .block_center .data_block p.alt {
        background: none;
        margin-top: 10px;
        font-size: 14px;
    }
}