/* =========================================================
   AKINDE 80TH BIRTHDAY CELEBRATION
   GALLERY PAGE
   ========================================================= */


/* =========================================================
   PAGE BACKGROUND
   ========================================================= */

.gallery-page {

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(200, 163, 77, 0.09),
            transparent 32%
        ),

        radial-gradient(
            circle at 8% 48%,
            rgba(123, 30, 58, 0.045),
            transparent 28%
        ),

        radial-gradient(
            circle at 92% 62%,
            rgba(200, 163, 77, 0.05),
            transparent 28%
        ),

        linear-gradient(
            180deg,
            #fffdf9 0%,
            #fbf7f1 48%,
            #fffdf9 100%
        );

}


/* =========================================================
   GALLERY HERO
   ========================================================= */

.gallery-hero {

    padding:
        82px 20px 65px;

    text-align:
        center;

}


.gallery-hero .section-container {

    max-width:
        900px;

    margin:
        0 auto;

}


.gallery-hero h1 {

    margin:
        0;

    color:
        var(--burgundy-deep);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2.6rem, 6vw, 4.6rem);

    font-weight:
        700;

    line-height:
        1.05;

}


.gallery-hero .hero-intro {

    max-width:
        720px;

    margin:
        24px auto 0;

    color:
        #705e65;

    font-size:
        1rem;

    line-height:
        1.8;

}


/* =========================================================
   GALLERY SECTIONS
   ========================================================= */

.gallery-section {

    padding:
        70px 20px;

}


.celebrant-gallery-section {

    padding-top:
        35px;

}


.memory-gallery-section {

    position:
        relative;

    background:
        linear-gradient(
            180deg,
            rgba(244, 238, 229, 0.58),
            rgba(255, 253, 249, 0.72)
        );

    border-top:
        1px solid
        rgba(200, 163, 77, 0.12);

}


.section-container {

    width:
        100%;

    max-width:
        1200px;

    margin:
        0 auto;

}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.gallery-section .section-label {

    margin:
        0 0 7px;

    color:
        var(--gold);

    font-size:
        0.68rem;

    font-weight:
        700;

    letter-spacing:
        0.20em;

    text-align:
        center;

}


.gallery-section h2 {

    margin:
        0;

    color:
        var(--burgundy-deep);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height:
        1.2;

    text-align:
        center;

}


.gallery-heading-break {

    display:
        inline;

}


.gold-line {

    width:
        55px;

    height:
        2px;

    margin:
        16px auto 0;

    background:
        var(--gold);

}


.section-intro {

    max-width:
        700px;

    margin:
        18px auto 38px;

    color:
        #75656b;

    font-size:
        0.94rem;

    line-height:
        1.8;

    text-align:
        center;

}


/* =========================================================
   GALLERY GRID
   ========================================================= */

.gallery-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        20px;

}


.celebrant-gallery-grid {

    max-width:
        1000px;

    margin:
        0 auto;

}


/* =========================================================
   GALLERY ITEM
   ========================================================= */

.gallery-item {

    position:
        relative;

    margin:
        0;

    overflow:
        hidden;

    aspect-ratio:
        4 / 5;

    background:
        #eee7de;

    border:
        1px solid
        rgba(200, 163, 77, 0.28);

    border-radius:
        16px;

    box-shadow:
        0 10px 28px
        rgba(38, 8, 17, 0.09);

}


.gallery-image-button {

    position:
        relative;

    display:
        block;

    width:
        100%;

    height:
        100%;

    padding:
        0;

    margin:
        0;

    border:
        0;

    background:
        transparent;

    overflow:
        hidden;

}


.gallery-image-button img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 0.45s ease;

}


.gallery-image-button::after {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            180deg,
            transparent 52%,
            rgba(38, 8, 17, 0.46) 100%
        );

    opacity:
        0;

    transition:
        opacity 0.3s ease;

}


.gallery-image-button:hover img {

    transform:
        scale(1.045);

}


.gallery-image-button:hover::after {

    opacity:
        1;

}


/* =========================================================
   VIEW ICON
   ========================================================= */

.gallery-view-icon {

    position:
        absolute;

    right:
        16px;

    bottom:
        16px;

    z-index:
        2;

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,0.72);

    border-radius:
        50%;

    background:
        rgba(58, 7, 21, 0.78);

    color:
        var(--gold-light);

    font-size:
        1.35rem;

    font-weight:
        300;

    line-height:
        1;

    opacity:
        0;

    transform:
        translateY(7px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

}


.gallery-image-button:hover
.gallery-view-icon,
.gallery-image-button:focus-visible
.gallery-view-icon {

    opacity:
        1;

    transform:
        translateY(0);

}


.gallery-image-button:focus-visible {

    outline:
        3px solid
        rgba(200, 163, 77, 0.55);

    outline-offset:
        -3px;

}


/* =========================================================
   MEMORY GALLERY
   ========================================================= */

.memory-gallery-grid {

    min-height:
        120px;

}


.memory-gallery-grid .gallery-item {

    aspect-ratio:
        4 / 3;

}


/* =========================================================
   LOADING
   ========================================================= */

.gallery-loading {

    grid-column:
        1 / -1;

    min-height:
        180px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    color:
        #75656b;

}


.gallery-spinner {

    width:
        32px;

    height:
        32px;

    margin-bottom:
        13px;

    border:
        3px solid
        rgba(200, 163, 77, 0.20);

    border-top-color:
        var(--gold);

    border-radius:
        50%;

    animation:
        gallerySpin 0.8s
        linear infinite;

}


@keyframes gallerySpin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.gallery-empty {

    max-width:
        650px;

    margin:
        10px auto 0;

    padding:
        50px 25px;

    text-align:
        center;

    border:
        1px solid
        rgba(200, 163, 77, 0.16);

    border-radius:
        16px;

    background:
        rgba(255,255,255,0.68);

}


.gallery-empty-mark {

    width:
        58px;

    height:
        58px;

    margin:
        0 auto 16px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--gold);

    border-radius:
        50%;

    color:
        var(--gold);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        22px;

    font-weight:
        700;

}


.gallery-empty h3 {

    margin:
        0 0 8px;

    color:
        var(--burgundy-deep);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        1.35rem;

}


.gallery-empty p {

    max-width:
        500px;

    margin:
        0 auto;

    color:
        #75656b;

    font-size:
        0.88rem;

    line-height:
        1.7;

}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-lightbox {

    position:
        fixed;

    inset:
        0;

    z-index:
        9999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        35px;

    background:
        rgba(25, 7, 13, 0.92);

    backdrop-filter:
        blur(5px);

}


.gallery-lightbox[hidden] {

    display:
        none;

}


.gallery-lightbox-content {

    position:
        relative;

    width:
        min(92vw, 1100px);

    height:
        min(88vh, 850px);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

}


.gallery-lightbox-content img {

    display:
        block;

    max-width:
        100%;

    max-height:
        100%;

    width:
        auto;

    height:
        auto;

    object-fit:
        contain;

    border:
        1px solid
        rgba(239, 213, 139, 0.35);

    box-shadow:
        0 25px 80px
        rgba(0,0,0,0.45);

}


.gallery-lightbox-close {

    position:
        absolute;

    top:
        18px;

    right:
        22px;

    z-index:
        3;

    width:
        46px;

    height:
        46px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0;

    border:
        1px solid
        rgba(239,213,139,0.55);

    border-radius:
        50%;

    background:
        rgba(58,7,21,0.75);

    color:
        #fff;

    font-size:
        1.8rem;

    font-weight:
        300;

    line-height:
        1;

}


.gallery-lightbox-close:hover {

    background:
        rgba(200,163,77,0.25);

    color:
        var(--gold-light);

}


.gallery-lightbox-close:focus-visible {

    outline:
        3px solid
        rgba(239,213,139,0.55);

    outline-offset:
        3px;

}


/* =========================================================
   PREVENT PAGE SCROLL WHILE LIGHTBOX IS OPEN
   ========================================================= */

body.gallery-lightbox-open {

    overflow:
        hidden;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .gallery-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            16px;

    }


    .gallery-hero {

        padding:
            65px 18px 50px;

    }


    .gallery-section {

        padding:
            55px 18px;

    }

}


@media (max-width: 650px) {

    .gallery-hero {

        padding:
            50px 15px 40px;

    }


    .gallery-hero h1 {

        font-size:
            2.65rem;

    }


    .gallery-hero .hero-intro {

        font-size:
            0.88rem;

    }


    .gallery-section {

        padding:
            45px 15px;

    }


    .gallery-section h2 {

        font-size:
            1.95rem;

    }


    .gallery-heading-break {

        display:
            block;

    }


    .section-intro {

        font-size:
            0.86rem;

        margin-bottom:
            28px;

    }


    .gallery-grid {

        grid-template-columns:
            1fr 1fr;

        gap:
            10px;

    }


    .gallery-item {

        border-radius:
            11px;

    }


    .gallery-view-icon {

        width:
            32px;

        height:
            32px;

        right:
            9px;

        bottom:
            9px;

        font-size:
            1.1rem;

    }


    .gallery-lightbox {

        padding:
            15px;

    }


    .gallery-lightbox-content {

        width:
            96vw;

        height:
            82vh;

    }


    .gallery-lightbox-close {

        top:
            10px;

        right:
            10px;

        width:
            40px;

        height:
            40px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-image-button img,
    .gallery-image-button::after,
    .gallery-view-icon {

        transition:
            none;

    }


    .gallery-spinner {

        animation:
            none;

    }

}
/* =========================================================
   WELL-WISHERS' MEMORY PHOTO INFORMATION
   ========================================================= */

.memory-gallery-grid .memory-gallery-item {

    aspect-ratio:
        auto;

    overflow:
        hidden;

    display:
        flex;

    flex-direction:
        column;

    background:
        #fffdf9;

}


.memory-gallery-grid
.memory-gallery-item
.gallery-image-button {

    aspect-ratio:
        4 / 3;

    flex-shrink:
        0;

}


/* =========================================================
   MEMORY PHOTO INFORMATION
   ========================================================= */

.memory-photo-name {

    margin:
        16px 16px 3px;

    color:
        var(--burgundy-deep);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        1.05rem;

    font-weight:
        700;

    line-height:
        1.35;

}


.memory-photo-location {

    margin:
        0 16px 8px;

    color:
        #75656b;

    font-size:
        0.78rem;

    line-height:
        1.4;

}


.memory-photo-caption {

    margin:
        0 16px 18px;

    color:
        #594b50;

    font-size:
        0.86rem;

    line-height:
        1.65;

}


/* =========================================================
   MAKE PLUS INDICATOR PERMANENTLY VISIBLE
   ========================================================= */

.gallery-view-icon {

    opacity:
        1;

    transform:
        translateY(0);

}


/* =========================================================
   ELEGANT HOVER ENHANCEMENT
   ========================================================= */

.gallery-image-button:hover
.gallery-view-icon {

    transform:
        scale(1.06);

}


.gallery-image-button:focus-visible
.gallery-view-icon {

    opacity:
        1;

    transform:
        scale(1.06);

}


/* =========================================================
   MEMORY CARD HOVER
   ========================================================= */

.memory-gallery-item {

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.memory-gallery-item:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 16px 34px
        rgba(38, 8, 17, 0.13);

}


/* =========================================================
   MOBILE MEMORY INFORMATION
   ========================================================= */

@media (max-width: 650px) {

    .memory-photo-name {

        margin:
            12px 12px 3px;

        font-size:
            0.92rem;

    }


    .memory-photo-location {

        margin:
            0 12px 6px;

        font-size:
            0.72rem;

    }


    .memory-photo-caption {

        margin:
            0 12px 14px;

        font-size:
            0.78rem;

        line-height:
            1.55;

    }

}
/* =========================================================
   FINAL MEMORY CARD DIMENSION FIX
   ========================================================= */

.memory-gallery-grid .gallery-item.memory-gallery-item {

    aspect-ratio:
        auto;

    height:
        auto;

    overflow:
        hidden;

}


.memory-gallery-grid
.gallery-item.memory-gallery-item
.gallery-image-button {

    width:
        100%;

    height:
        auto;

    aspect-ratio:
        4 / 3;

    flex-shrink:
        0;

}


/* =========================================================
   CAPTION — ALWAYS VISIBLE
   ========================================================= */

.memory-gallery-grid
.memory-gallery-item
.memory-photo-caption {

    display:
        block;

    visibility:
        visible;

    opacity:
        1;

    position:
        relative;

    z-index:
        2;

}
/* =========================================================
   GALLERY PAGE — SITE NAVIGATION
   ========================================================= */

.gallery-page .site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background:
        linear-gradient(
            145deg,
            var(--burgundy-dark),
            var(--burgundy-deep)
        );
    border-bottom:
        1px solid rgba(200, 163, 77, 0.22);
}


.gallery-page .site-nav {
    width: 100%;
}


.gallery-page .nav-container {
    width: min(1380px, 92%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;
    padding: 20px 0;
}


/* =========================================================
   BRAND
   ========================================================= */

.gallery-page .site-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    flex-shrink: 0;

    color: var(--white);
}


.gallery-page .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold-light);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.2rem;
    font-weight: 700;
}


.gallery-page .brand-name {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.22em;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.gallery-page .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 25px;
}


.gallery-page .nav-links a {
    position: relative;

    color:
        rgba(255, 255, 255, 0.88);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.09em;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.gallery-page .nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition:
        width 0.25s ease;
}


.gallery-page .nav-links a:hover {
    color: var(--gold-light);
}


.gallery-page .nav-links a:hover::after {
    width: 100%;
}


/* =========================================================
   ACTIVE — GALLERY
   ========================================================= */

.gallery-page .nav-links a.nav-active {
    color: var(--gold-light) !important;
}


.gallery-page .nav-links a.nav-active::after {
    width: 100%;
    background: var(--gold) !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .gallery-page .nav-container {
        width: 94%;
    }

    .gallery-page .nav-links {
        gap: 15px;
    }

    .gallery-page .nav-links a {
        font-size: 0.60rem;
        letter-spacing: 0.06em;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .gallery-page .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }


    .gallery-page .nav-links {
        width: 100%;

        display: flex;
        flex-wrap: wrap;

        justify-content: center;

        gap: 8px 14px;
    }


    .gallery-page .nav-links a {
        padding: 7px 2px;

        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }


    .gallery-page .nav-links a::after {
        bottom: 0;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .gallery-page .nav-container {
        width: 94%;
    }


    .gallery-page .site-brand {
        justify-content: center;
    }


    .gallery-page .nav-links {
        gap: 5px 10px;
    }


    .gallery-page .nav-links a {
        font-size: 0.57rem;
        letter-spacing: 0.04em;
    }

}