/**
 * Holiday Home Booking - Gallery Lightbox Styles
 * HHB-47.2: Full-screen gallery lightbox
 * 
 * @package HolidayHomeBooking
 */

/* Lightbox Container */
.hhb-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hhb-lightbox--active {
	display: flex;
	opacity: 1;
}

/* Overlay (darkened background) */
.hhb-lightbox__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1;
}

/* Content Container */
.hhb-lightbox__content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* Image Wrapper */
.hhb-lightbox__image-wrapper {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hhb-lightbox__image-wrapper img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Close Button */
.hhb-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.hhb-lightbox__close:hover,
.hhb-lightbox__close:focus {
	background: rgba(0, 0, 0, 0.7);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hhb-lightbox__close span {
	display: block;
	line-height: 1;
	margin-top: -2px;
}

/* Navigation Buttons */
.hhb-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.hhb-lightbox__nav:hover,
.hhb-lightbox__nav:focus {
	background: rgba(0, 0, 0, 0.7);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hhb-lightbox__nav span {
	display: block;
	line-height: 1;
}

.hhb-lightbox__nav--prev {
	left: 20px;
}

.hhb-lightbox__nav--next {
	right: 20px;
}

/* Image Counter */
.hhb-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	z-index: 3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.hhb-lightbox__image-wrapper {
		max-width: 95%;
		max-height: 85%;
	}
	
	.hhb-lightbox__image-wrapper img {
		max-height: 85vh;
	}
	
	.hhb-lightbox__close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 28px;
	}
	
	.hhb-lightbox__nav {
		width: 44px;
		height: 44px;
		font-size: 40px;
	}
	
	.hhb-lightbox__nav--prev {
		left: 10px;
	}
	
	.hhb-lightbox__nav--next {
		right: 10px;
	}
	
	.hhb-lightbox__counter {
		bottom: 15px;
		font-size: 13px;
		padding: 6px 14px;
	}
}

/* Small Mobile (very small screens) */
@media (max-width: 480px) {
	.hhb-lightbox__nav {
		width: 40px;
		height: 40px;
		font-size: 36px;
	}
	
	.hhb-lightbox__nav--prev {
		left: 5px;
	}
	
	.hhb-lightbox__nav--next {
		right: 5px;
	}
}

/* Cursor pointer for main image (indicates clickable) */
.hhb-pp-hero-main {
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.hhb-pp-hero-main:hover {
	opacity: 0.95;
}
