.uspm-gallery {
	position: relative;
	margin-block: 2rem;
}

.uspm-slider-wrap {
	position: relative;
}

.uspm-slider {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding: 4px;
}

.uspm-slide {
	position: relative;
	flex: 0 0 calc((100% - 32px) / 3);
	aspect-ratio: 16 / 10;
	padding: 0;
	border: 0;
	background: #111;
	cursor: zoom-in;
	overflow: hidden;
	scroll-snap-align: start;
}

.uspm-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uspm-video {
	cursor: pointer;
}

.uspm-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	border-radius: 14px;
	background: #e62117;
	transform: translate(-50%, -50%);
}

.uspm-play::after {
	content: '';
	position: absolute;
	top: 14px;
	left: 28px;
	border-block: 10px solid transparent;
	border-left: 20px solid #fff;
}

.uspm-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	transform: translateY(-50%);
}

.uspm-prev {
	left: 12px;
}

.uspm-next {
	right: 12px;
}

.uspm-lightbox {
	width: min(94vw, 1200px);
	height: min(90vh, 800px);
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.uspm-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.uspm-lightbox-content {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.uspm-lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
}

.uspm-lightbox-content iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.uspm-close {
	position: absolute;
	z-index: 3;
	top: -45px;
	right: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
}

.uspm-lightbox-arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	transform: translateY(-50%);
}

.uspm-lightbox-prev {
	left: 14px;
}

.uspm-lightbox-next {
	right: 14px;
}

@media (max-width: 900px) {
	.uspm-slide {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (max-width: 600px) {
	.uspm-slide {
		flex-basis: 88vw;
	}

	.uspm-arrow {
		display: none;
	}

	.uspm-lightbox-arrow {
		width: 40px;
		height: 40px;
		font-size: 22px;
	}

	.uspm-lightbox-prev {
		left: 6px;
	}

	.uspm-lightbox-next {
		right: 6px;
	}
}
