/**********************************
 *   Разработчик: Компания 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');

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: 0;
	right: 0;
	width: 50px;
	height: 50px;
	line-height: 50px;
	color: #ccc;
	font-size: 36px;
	text-align: center;
	cursor: pointer;
	z-index: 100;
}
dx_gallery .block_left {
	width: 100px;
	height: 100px;
	line-height: 100px;
	background: rgba(0,0,0,0.2);
	color: #ccc;
	font-size: 36px;
	text-align: center;
	cursor: pointer;
	z-index: 100;
}
dx_gallery .block_right {
	width: 100px;
	height: 100px;
	line-height: 100px;
	background: rgba(0,0,0,0.2);
	color: #c0c0c0;
	font-size: 36px;
	text-align: center;
	cursor: pointer;
	z-index: 100;
}
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 auto;
	pointer-events: none;
}
dx_gallery .block_center img {
	max-width: 100%;
	max-height: calc(100% - 100px);
	border: 10px solid #fff;
	cursor: pointer;
	pointer-events: all;
}
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;
}

@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);
	}
	dx_gallery .block_left,
	dx_gallery .block_right {
		position: absolute;
		top: auto;
		bottom: 0px;
	}
	dx_gallery .block_left {
		left: 0;
	}
	dx_gallery .block_right {
		right: 0;
	}
}