/* =============================================
   gallery.css - Hotel Panchvati Gallery Page
   Based on provided global :root variables
   Includes Lightbox Popup - No Captions
   ============================================= */

/* --- Banner Section (30% to 40% vh - using 40vh) --- */
.gallery-banner {
    position: relative;
    height: 40vh;
    min-height: 300px;
    max-height: 450px;
    background: linear-gradient(135deg, #1a1408 0%, #2c2416 100%);
    background-image: url('../img/gallery/2.jpeg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 22, 0.55);
    backdrop-filter: brightness(0.85);
}

.banner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.banner-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white, #FFFFFF);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: var(--accent, #D4AF37);
}

.banner-divider i {
    font-size: 1.8rem;
    color: var(--accent, #D4AF37);
}

.banner-subtitle {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 1.2rem;
    color: var(--white, #FFFFFF);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-cream, #FFFDF7);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Section Header Styles */
.section-badge {
    display: inline-block;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary, #8B6914);
    background: var(--bg-soft, #FDF6EC);
    padding: 6px 20px;
    border-radius: 40px;
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-dark, #2C2416);
    margin-bottom: 16px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent, #D4AF37);
    margin: 20px auto;
    border-radius: 3px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent, #D4AF37);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.section-divider::before {
    left: -15px;
}

.section-divider::after {
    right: -15px;
}

.section-desc {
    color: var(--text-muted, #7A6A55);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md, 16px);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Gallery Overlay - Only shows zoom icon, no text */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(44, 36, 22, 0.7); */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(1px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--accent, #D4AF37);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.1);
}

/* --- Lightbox Modal (No Caption) --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white, #FFFFFF);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent, #D4AF37);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev i,
.lightbox-next i {
    font-size: 2rem;
    color: var(--white, #FFFFFF);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary, #8B6914);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-banner {
        height: 30vh;
        min-height: 280px;
    }
    
    .banner-title {
        font-size: 2.4rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-divider i {
        font-size: 1.4rem;
    }
    
    .divider-line {
        width: 40px;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-desc {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev i,
    .lightbox-next i {
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .gallery-banner {
        height: 28vh;
        min-height: 250px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 0.85rem;
    }
    
    .divider-line {
        width: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .section-divider {
        width: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-overlay i {
        font-size: 2rem;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-section {
    animation: fadeInUp 0.8s ease-out;
}

.gallery-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 48px;
}