/* =========================================
   GALERIE PAGE - GLOBAL
========================================= */
.gallery-page {
    background: #fff;
    overflow-x: hidden;
}

.gallery-lightbox-open {
    overflow: hidden;
}

/* =========================================
   HERO SECTION
========================================= */
.gallery-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero/carousel-slide1.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.58));
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.gallery-hero-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0 50px;
}

.gallery-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.15;
    margin-bottom: 18px;
    color: #fff;
}

.gallery-hero-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    margin: 0 auto;
}

/* =========================================
   MAIN SECTION
========================================= */
.gallery-section {
    padding: 70px 0 90px;
    background: #fff;
}

/* =========================================
   FILTERS
========================================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 38px;
}

.gallery-filter-select-wrap {
    width: min(420px, 100%);
}

.gallery-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 10px;
}

.gallery-filter-select {
    width: 100%;
    border: 1px solid rgba(196, 162, 98, 0.35);
    background: #fff;
    color: #4f4f4f;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.28s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.gallery-filter-select:focus {
    border-color: #c4a262;
    box-shadow: 0 8px 22px rgba(196, 162, 98, 0.16);
}

/* =========================================
   GRID
========================================= */
.gallery-grid {
    column-count: 3;
    column-gap: 18px;
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 18px;
}

.gallery-card-btn {
    position: relative;
    display: block;
    width: 100%;
    border: none;
    background: #f6f6f6;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.gallery-card-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}

.gallery-card-btn img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.gallery-card-btn:hover img {
    transform: scale(1.04);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.12) 52%, rgba(0,0,0,0));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card-btn:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-category {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.gallery-card-open {
    color: rgba(255,255,255,0.92);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* =========================================
   EMPTY STATE
========================================= */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed #d9d9d9;
    border-radius: 18px;
    color: #7a7a7a;
    font-size: 1rem;
    background: #fafafa;
}

/* =========================================
   LIGHTBOX
========================================= */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 94vw;
    max-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.gallery-lightbox-content img {
    display: block;
    max-width: 94vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}

.gallery-lightbox-caption {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    width: auto;
    max-width: 80vw;
    z-index: 100001;
}

.gallery-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.28s ease;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-close:hover {
    background: rgba(255,255,255,0.26);
    transform: scale(1.06);
}

/* =========================================
   RESPONSIVE - LARGE TABLET
========================================= */
@media (max-width: 1100px) {
    .gallery-grid {
        column-count: 2;
    }

    .gallery-hero {
        min-height: 360px;
    }
}

/* =========================================
   RESPONSIVE - TABLET
========================================= */
@media (max-width: 768px) {
    .gallery-section {
        padding: 54px 0 70px;
    }

    .gallery-hero {
        min-height: 300px;
    }

    .gallery-hero-content {
        padding: 70px 0 30px;
    }

    .gallery-hero-content p {
        font-size: 0.96rem;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 14px;
    }

    .gallery-card {
        margin-bottom: 14px;
    }

    .gallery-filters {
        gap: 10px;
        margin-bottom: 28px;
    }

    .gallery-filter-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .gallery-card-overlay {
        opacity: 1;
        padding: 14px 14px;
        background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.10) 56%, rgba(0,0,0,0));
    }

    .gallery-card-category {
        font-size: 0.92rem;
    }

    .gallery-card-open {
        font-size: 0.82rem;
    }

    .gallery-lightbox {
        padding: 10px;
    }

    .gallery-lightbox-content img {
        max-width: 96vw;
        max-height: 78vh;
    }

    .gallery-lightbox-caption {
        bottom: 12px;
        font-size: 0.92rem;
        max-width: 88vw;
    }

    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }
}

/* =========================================
   RESPONSIVE - PHONE
========================================= */
@media (max-width: 520px) {
    .gallery-grid {
        column-count: 1;
    }

    .gallery-hero {
        min-height: 250px;
    }

    .gallery-hero-content h1 {
        margin-bottom: 12px;
    }

    .gallery-hero-content p {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .gallery-filters {
        justify-content: flex-start;
    }

    .gallery-filter-btn {
        font-size: 11px;
        padding: 9px 12px;
    }
}