/* --- Gallery Layout --- */
.boutique-page-wrapper {
    background: #fff;
    color: #1e272e;
    overflow-x: hidden;
    width: 100%;
}

.gallery-hero { 
    padding: 100px 0 60px; 
    text-align: center; 
    background: #fafafa; 
}

.gallery-hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2.5rem, 8vw, 4rem); 
    color: #1e272e; 
    margin: 10px 0; 
    font-weight: 700; 
}

.gold-label { 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    font-size: 0.75rem; 
    color: #b08d57; 
    font-weight: 700; 
    display: block;
}

.luxe-divider { 
    width: 50px; 
    height: 1px; 
    background: #b08d57; 
    margin: 30px auto; 
}

/* --- THE GRID --- */
.gallery-grid-section { padding-bottom: 120px; margin-top: 60px; }

.luxe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 350px;
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.2s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(176, 141, 87, 0.15);
}

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

.gallery-note { text-align: center; grid-column: 1/-1; padding: 50px; color: #777; font-style: italic; }

/* --- Unified Luxe Lightbox Modal --- */
#global-lightbox {
    position: fixed; inset: 0; background: rgba(30, 39, 46, 0.98);
    z-index: 9999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s ease;
}
#global-lightbox.active { opacity: 1; }

.lightbox-window {
    position: relative; max-width: 85%; max-height: 85vh; padding: 12px;
    background: #fff; border-radius: 12px; box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    transform: scale(0.9) translateY(30px); opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
}
#global-lightbox.active .lightbox-window { transform: scale(1) translateY(0); opacity: 1; }

.lightbox-window img {
    display: block; max-width: 100%; max-height: 80vh; border-radius: 6px;
    object-fit: contain; transition: opacity 0.3s ease;
}

/* Lightbox Navigation & Counters */
.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 6rem;
    font-family: 'Montserrat', sans-serif; font-weight: 100; cursor: pointer;
    z-index: 10000; padding: 20px; transition: 0.3s;
}
.nav-arrow:hover { color: #b08d57; scale: 1.1; }
.prev { left: 40px; }
.next { right: 40px; }

.close-lightbox {
    position: absolute; top: -60px; right: 0; color: #fff; font-size: 3rem; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: #b08d57; }

.lightbox-counter {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    color: #fff; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; letter-spacing: 2px;
}

/* --- MOBILE OPTIMISATION --- */
@media (max-width: 768px) {
    .luxe-gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: 200px; 
        gap: 15px; 
    }
    .gallery-item { border-radius: 20px; }
    .lightbox-window { 
        max-width: 94%; 
        max-height: 90vh; 
        padding: 6px;
    }
    .lightbox-window img { max-height: 85vh; }
    .nav-arrow { font-size: 4rem; padding: 10px; }
    .prev { left: 5px; }
    .next { right: 5px; }
    .close-lightbox { top: -50px; font-size: 2.5rem; }
}

/* --- TEMPORARY POPUP STYLES --- */
.temp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.temp-popup-content {
    text-align: center;
    padding: 60px;
    background: #1e272e;
    border: 2px solid #b08d57;
    border-radius: 25px;
    max-width: 80%;
}

.temp-popup-content h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.temp-ok-btn {
    background: #b08d57;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.temp-ok-btn:hover {
    background: #fff;
    color: #1e272e;
    transform: scale(1.05);
}