/* Custom styles for OtivmHotel */

html {
	scroll-behavior: smooth;
}

/* Reset Elementor padding/margin if needed */
.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 1200px;
}

/* Navbar styles */
#main-nav.scrolled {
	background-color: rgba(28, 25, 23, 0.95);
	backdrop-filter: blur(8px);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#main-nav.scrolled .text-white {
	/* color: #1C1917; */ /* Keep it white or change based on preference */
}

/* Animations */
@keyframes slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
	animation: slideUp 0.8s ease-out forwards;
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }

/* 
 * Hero Slider Styles to prevent collapsing or disappearing on resize/mobile 
 */
#home {
	position: relative !important;
	width: 100% !important;
	height: 100vh !important;
	overflow: hidden !important;
}

.hero-slide {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 0 !important;
	transition: opacity 1s ease-in-out !important;
	pointer-events: none !important;
	z-index: 1 !important;
}

.hero-slide.opacity-100 {
	opacity: 1 !important;
	pointer-events: auto !important;
	z-index: 2 !important;
}

.hero-slide img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

/* 
 * Rooftop & Booking CTA Background Image Adaptation (Always covers fully & beautifully)
 */
#rooftop .absolute.inset-0 img, 
#contact .absolute.inset-0 img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
}

/* 
 * Custom Gallery Lightbox Styles (Plain CSS to bypass Tailwind JIT CDN constraints)
 */
#custom-gallery-lightbox {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background-color: rgba(0, 0, 0, 0.95) !important;
	z-index: 99999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease-in-out !important;
	pointer-events: none !important;
}

#custom-gallery-lightbox.active {
	opacity: 1 !important;
	pointer-events: auto !important;
}

#custom-gallery-lightbox.hidden {
	display: none !important;
}

/* Close button */
#lightbox-close {
	position: absolute !important;
	top: 24px !important;
	right: 24px !important;
	background: transparent !important;
	border: none !important;
	color: #ffffff !important;
	font-size: 36px !important;
	cursor: pointer !important;
	transition: color 0.2s ease !important;
	z-index: 100000 !important;
}
#lightbox-close:hover {
	color: #C5A059 !important; /* Gold highlight color */
}

/* Nav buttons - Centered vertically on left and right */
.lightbox-nav-btn {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: rgba(0, 0, 0, 0.4) !important;
	border: none !important;
	color: #ffffff !important;
	width: 50px !important;
	height: 56px !important;
	border-radius: 9999px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 28px !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
	z-index: 100000 !important;
}
.lightbox-nav-btn:hover {
	background: rgba(0, 0, 0, 0.7) !important;
	color: #C5A059 !important; /* Gold highlight */
}
#lightbox-prev {
	left: 24px !important;
}
#lightbox-next {
	right: 24px !important;
}

/* Image container & Image */
.lightbox-content-container {
	max-width: 85vw !important;
	max-height: 80vh !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
#lightbox-image {
	max-width: 100% !important;
	max-height: 80vh !important;
	object-fit: contain !important;
	border-radius: 8px !important;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
	transform: scale(0.95) !important;
	transition: transform 0.3s ease-in-out !important;
}
#custom-gallery-lightbox.active #lightbox-image {
	transform: scale(1) !important;
}

/* Counter */
#lightbox-counter {
	position: absolute !important;
	bottom: 24px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0.05em !important;
	z-index: 100000 !important;
}

/* 
 * Force Gallery Grid Items to be Perfect Squares (aspect-ratio 1:1) across all browsers
 */
.gallery-item-trigger {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important; /* Forces the box to be a perfect square! */
	overflow: hidden !important;
	border-radius: 8px !important;
}

.gallery-item-trigger img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

