@charset "utf-8";

body.uro-main-popup-open {
	overflow: hidden;
}

.uro-main-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.uro-main-popup.is-open {
	display: block;
}

.uro-main-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.uro-main-popup__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(960px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	background: transparent;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	box-sizing: border-box;
}

.uro-main-popup.is-few .uro-main-popup__dialog {
	width: min(
		calc(960px * var(--uro-popup-total, 1) / var(--uro-popup-visible, 2)),
		calc(100vw - 40px)
	);
}

.uro-main-popup__body {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	overflow: hidden;
	background: #000;
}

.uro-main-popup__viewport {
	flex: 1;
	overflow: hidden;
	min-width: 0;
	aspect-ratio: var(--uro-popup-cols, 2) / 1;
	max-height: calc(100vh - 120px);
}

.uro-main-popup__track {
	display: flex;
	height: 100%;
	width: calc(100% * var(--uro-popup-total, 1) / var(--uro-popup-visible, 2));
	will-change: transform;
}

.uro-main-popup.is-few .uro-main-popup__track {
	width: 100%;
}

.uro-main-popup__item {
	flex: 0 0 calc(100% / var(--uro-popup-total, 1));
	box-sizing: border-box;
	padding: 0;
	min-width: 0;
	height: 100%;
}

.uro-main-popup.is-few .uro-main-popup__item {
	flex: 0 0 calc(100% / var(--uro-popup-total, 1));
}

.uro-main-popup__item-inner,
.uro-main-popup__content {
	width: 100%;
	height: 100%;
}

.uro-main-popup__content {
	overflow: hidden;
	background: #000;
	line-height: 0;
}

.uro-main-popup__content--html {
	line-height: 1.5;
	overflow: auto;
	background: #fff;
	padding: 12px;
	box-sizing: border-box;
}

.uro-main-popup__content a.uro-main-popup__link {
	display: block;
	width: 100%;
	height: 100%;
}

.uro-main-popup__content img,
.uro-main-popup__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	margin: 0 auto;
}

.uro-main-popup__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(27, 27, 27, 0.85);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.uro-main-popup__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.uro-main-popup__nav--prev {
	left: 12px;
}

.uro-main-popup__nav--next {
	right: 12px;
}

.uro-main-popup__footer {
	display: flex;
	align-items: stretch;
	flex-shrink: 0;
	background: #1b1b1b;
	color: #fff;
}

.uro-main-popup__reject,
.uro-main-popup__close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.uro-main-popup__reject {
	flex: 1;
	padding: 14px 18px;
	text-align: left;
}

.uro-main-popup__reject strong {
	font-weight: 700;
}

.uro-main-popup__close {
	min-width: 110px;
	padding: 14px 18px;
	background: #333;
	font-weight: 600;
}

.uro-main-popup.is-mobile-device {
	--uro-popup-visible: 1;
}

@media screen and (max-width: 768px) {
	.uro-main-popup:not(.is-mobile-device) {
		--uro-popup-visible: 1;
	}

	.uro-main-popup__dialog {
		width: min(100vw - 24px, 480px);
	}

	.uro-main-popup__nav--prev {
		left: 8px;
	}

	.uro-main-popup__nav--next {
		right: 8px;
	}
}
