.booth-gallery {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 1080;
	overflow: hidden;
	background: #f7f7f7;
	container-type: inline-size;
}

.booth-gallery__viewport {
	position: absolute;
	top: 10.6481%;
	left: 0;
	width: 100%;
	height: 76.1111%;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	padding-inline: 12.2396cqw;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
	cursor: grab;
	touch-action: pan-y;
}

.booth-gallery__viewport::-webkit-scrollbar {
	display: none;
}

.booth-gallery__viewport:focus-visible {
	outline: 3px solid #0a0a0a;
	outline-offset: -3px;
}

.booth-gallery__viewport.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.booth-gallery__track {
	display: flex;
	gap: 2.3438cqw;
	width: max-content;
	height: 100%;
}

.booth-gallery__slide {
	flex: 0 0 76.1458cqw;
	width: 76.1458cqw;
	height: 100%;
	margin: 0;
	overflow: hidden;
	scroll-snap-align: center;
}

.booth-gallery__open,
.booth-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
}

.booth-gallery__open {
	padding: 0;
	border: 0;
	background: transparent;
}

.booth-gallery__slide img {
	object-fit: cover;
	pointer-events: none;
}

.booth-gallery__progress {
	--progress: 0;
	position: absolute;
	left: 4.8958%;
	top: 92.1296%;
	width: 90.2604%;
	height: 0.5556%;
	background: #d8d8d8;
}

.booth-gallery__progress span {
	position: absolute;
	inset: 0 auto 0 calc((100% - 7.3283%) * var(--progress));
	width: 7.3283%;
	background: #696969;
	transition: left 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booth-gallery__cursor {
	--cursor-x: 0px;
	--cursor-y: 0px;
	position: fixed;
	top: var(--cursor-y);
	left: var(--cursor-x);
	z-index: 20000;
	display: grid;
	grid-template-columns: 28px 88px 28px;
	gap: 8px;
	align-items: center;
	color: rgba(255, 255, 255, 0.62);
	font-family: Arial, sans-serif;
	font-size: 28px;
	line-height: 1;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.82);
	transition: opacity 180ms ease, transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booth-gallery__cursor i {
	display: block;
	box-sizing: border-box;
	width: 88px;
	height: 88px;
	border: 3px solid rgba(255, 255, 255, 0.62);
	border-radius: 50%;
}

.booth-gallery__cursor.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.booth-gallery__cursor.is-dragging {
	transform: translate(-50%, -50%) scale(0.9);
}

.booth-gallery__lightbox {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 48px;
	border: 0;
	background: #0a0a0a;
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 300ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booth-gallery__lightbox[open] {
	display: grid;
	place-items: center;
	opacity: 1;
	transform: none;
}

.booth-gallery__lightbox::backdrop {
	background: #0a0a0a;
}

.booth-gallery__lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 96px);
	object-fit: contain;
}

.booth-gallery__lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(10, 10, 10, 0.5);
	color: #fff;
	font: 300 36px/1 Arial, sans-serif;
	place-items: center;
	cursor: pointer;
}

html.has-booth-gallery-lightbox {
	overflow: hidden;
}

@starting-style {
	.booth-gallery__lightbox[open] {
		opacity: 0;
		transform: scale(0.985);
	}
}

@media (hover: hover) and (pointer: fine) {
	.booth-gallery__viewport,
	.booth-gallery__viewport * {
		cursor: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.booth-gallery__cursor,
	.booth-gallery__lightbox,
	.booth-gallery__progress span {
		transition: none;
	}
}

@media (max-width: 767px) {
	.booth-gallery {
		aspect-ratio: auto;
		padding: 48px 0 36px;
	}

	.booth-gallery__viewport {
		position: relative;
		top: auto;
		height: calc(82vw * 0.5625);
		padding-inline: 9vw;
	}

	.booth-gallery__track {
		gap: 16px;
	}

	.booth-gallery__slide {
		flex-basis: 82vw;
		width: 82vw;
	}

	.booth-gallery__progress {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		height: 4px;
		margin: 28px 20px 0;
	}

	.booth-gallery__progress span {
		width: 20%;
		inset-inline-start: calc(80% * var(--progress));
	}

	.booth-gallery__lightbox {
		padding: 20px;
	}

	.booth-gallery__lightbox img {
		max-height: calc(100dvh - 40px);
	}
}
