/* Woo Listings — Room Image Lightbox */

.room-image-group .room-image,
.room-image-group .room-image-extra {
	cursor: zoom-in;
}

html.wl-lightbox-lock,
html.wl-lightbox-lock body {
	overflow: hidden;
}

.wl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 150ms ease-out;
}

.wl-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.wl-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.wl-lightbox__toolbar {
	position: absolute;
	top: 16px;
	right: 68px;
	z-index: 2;
	display: flex;
	pointer-events: none;
}

.wl-lightbox__stage {
	position: relative;
	margin: 0;
	max-width: min(92vw, 1400px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.wl-lightbox__viewport {
	position: relative;
	width: 92vw;
	max-width: min(92vw, 1400px);
	max-height: 86vh;
	overflow: hidden;
	pointer-events: auto;
	touch-action: pan-y pinch-zoom;
}

.wl-lightbox__track {
	display: flex;
	width: 300%;
	height: 100%;
	will-change: transform;
	transform: translateX(-33.333%);
}

.wl-lightbox__track.is-animating {
	transition: transform 0.24s ease-out;
}

.wl-lightbox__slide {
	flex: 0 0 33.333%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	min-width: 0;
}

.wl-lightbox__slide img {
	display: block;
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.wl-lightbox__section {
	position: absolute;
	top: -44px;
	left: 50%;
	transform: translateX(-50%);
	max-width: min(90vw, 420px);
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	z-index: 1;
}

.wl-lightbox__counter {
	color: #fff;
	font-size: 13px;
	margin-top: 10px;
	opacity: 0.8;
	pointer-events: none;
	text-align: center;
}

.wl-lightbox__sections {
	display: flex;
	gap: 8px;
	max-width: min(92vw, 720px);
	margin-top: 14px;
	padding: 2px 4px 4px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	pointer-events: auto;
	scrollbar-width: none;
}

.wl-lightbox__sections::-webkit-scrollbar {
	display: none;
}

.wl-lightbox__section-chip {
	flex: 0 0 auto;
	scroll-snap-align: center;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 120ms ease-out, border-color 120ms ease-out, opacity 120ms ease-out;
	white-space: nowrap;
}

.wl-lightbox__section-chip:hover {
	background: rgba(0, 0, 0, 0.65);
	border-color: rgba(255, 255, 255, 0.55);
}

.wl-lightbox__section-chip.is-active {
	background: #fff;
	border-color: #fff;
	color: #111;
}

.wl-lightbox__close,
.wl-lightbox__nav {
	position: absolute;
	color: #fff;
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 120ms ease-out, transform 120ms ease-out, opacity 120ms ease-out;
	padding: 0;
}

.wl-lightbox__nav {
	background: rgba(0, 0, 0, 0.45);
}

.wl-lightbox__close {
	background: transparent;
	top: 16px;
	right: 16px;
	font-size: 32px;
}

.wl-lightbox__close:hover {
	background: transparent;
	opacity: 0.85;
}

.wl-lightbox__nav:hover {
	background: rgba(0, 0, 0, 0.75);
}

.wl-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.wl-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.wl-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.wl-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 600px) {
	.wl-lightbox__nav {
		width: 38px;
		height: 38px;
		font-size: 24px;
	}
	.wl-lightbox__nav--prev { left: 6px; }
	.wl-lightbox__nav--next { right: 6px; }
	.wl-lightbox__close { top: 10px; right: 10px; }
	.wl-lightbox__toolbar { top: 10px; right: 58px; }
	.wl-lightbox__section {
		top: -38px;
		max-width: calc(100vw - 88px);
		font-size: 13px;
		padding: 7px 14px;
	}
	.wl-lightbox__sections {
		max-width: calc(100vw - 24px);
		margin-top: 12px;
	}
	.wl-lightbox__section-chip {
		font-size: 11px;
		padding: 6px 12px;
	}
}
