.gallery-page-hero,
.gallery-album-hero {
    padding: 90px 0 75px;
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(236, 190, 102, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #362310 0%,
            #68451e 100%
        );
    color: #ffffff;
}

.gallery-page-heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.gallery-page-heading > p {
    margin-bottom: 10px;
    color: #efc36c;
    font-weight: 700;
}

.gallery-page-heading h1,
.gallery-album-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 700;
}

.gallery-page-heading span,
.gallery-album-hero p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.gallery-page-section,
.gallery-photo-section {
    padding: 85px 0;
    background: #fffdf9;
}


/* Categories */

.gallery-category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 42px;
}

.gallery-category-button {
    padding: 10px 18px;
    border: 1px solid #e4d5bf;
    border-radius: 999px;
    background: #ffffff;
    color: #63471f;
    font-weight: 600;
    text-decoration: none;
}

.gallery-category-button:hover,
.gallery-category-button.active {
    border-color: #b97c27;
    background: #b97c27;
    color: #ffffff;
}


/* Album Card */

.gallery-album-card {
    overflow: hidden;
    border: 1px solid #eee4d6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(61, 40, 17, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-album-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 25px 55px rgba(61, 40, 17, 0.13);
}

.gallery-album-image-wrapper {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
}

.gallery-album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-album-card:hover
.gallery-album-image {
    transform: scale(1.05);
}

.gallery-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7efe2;
    color: #b77b25;
    font-size: 3rem;
}

.gallery-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #a56b1a;
    font-size: .8rem;
    font-weight: 700;
}

.gallery-album-body {
    padding: 24px;
}

.gallery-album-category {
    margin-bottom: 7px;
    color: #b77b25;
    font-size: .82rem;
    font-weight: 700;
}

.gallery-album-body h2 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.gallery-album-body h2 a {
    color: #382713;
    text-decoration: none;
}

.gallery-album-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: #88735a;
    font-size: .9rem;
}

.gallery-view-album,
.gallery-back-link,
.gallery-album-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a86e1d;
    font-weight: 600;
    text-decoration: none;
}


/* Album */

.gallery-album-information {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.8);
}

.gallery-album-information span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gallery-album-back {
    margin-bottom: 20px;
    color: #efc36c;
}


/* Photo Grid */

.gallery-photo-grid {
    columns: 3 280px;
    column-gap: 18px;
}

.gallery-photo-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    break-inside: avoid;
    border: 0;
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
}

.gallery-photo-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 15, 7, .45);
    color: #ffffff;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity .25s ease;
}

.gallery-photo-item:hover img {
    transform: scale(1.035);
}

.gallery-photo-item:hover
.gallery-photo-overlay {
    opacity: 1;
}


/* Empty */

.gallery-empty-state {
    padding: 60px 25px;
    border: 1px dashed #dfceb4;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
}

.gallery-empty-state > i {
    display: block;
    margin-bottom: 15px;
    color: #bc8231;
    font-size: 3rem;
}


/* Lightbox */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 80px;
    background: rgba(10, 7, 4, .94);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    text-align: center;
}

.gallery-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    object-fit: contain;
}

.gallery-lightbox-caption {
    margin: 15px 0 0;
    color: #ffffff;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

.gallery-lightbox-close {
    top: 25px;
    right: 25px;
}

.gallery-lightbox-prev {
    left: 24px;
    top: 50%;
}

.gallery-lightbox-next {
    right: 24px;
    top: 50%;
}


@media (max-width: 767.98px) {
    .gallery-page-hero,
    .gallery-album-hero {
        padding: 65px 0 55px;
    }

    .gallery-page-section,
    .gallery-photo-section {
        padding: 60px 0;
    }

    .gallery-album-image-wrapper {
        height: 220px;
    }

    .gallery-lightbox {
        padding: 70px 15px 25px;
    }

    .gallery-lightbox-prev {
        left: 10px;
    }

    .gallery-lightbox-next {
        right: 10px;
    }
}