/*==============================================================================
    The Nathan Family — Gallery Portal
==============================================================================*/

.gallery-page{
    background:var(--bg);
    color:var(--text);
}

.gallery-hero{
    position:relative;
    display:flex;
    min-height:64vh;
    align-items:flex-end;
    overflow:hidden;
    background:#493b31;
}

.gallery-hero__content{
    position:relative;
    z-index:2;
    display:flex;
    width:min(1180px,90%);
    margin:0 auto;
    flex-direction:column;
    padding:110px 0 72px;
    color:#fff;
}

.gallery-eyebrow,
.gallery-section__label{
    margin:0 0 12px;
    color:#b17b69;
    font-family:"Inter","Segoe UI",sans-serif;
    font-size:.72rem;
    font-weight:600;
    letter-spacing:.2em;
    text-transform:uppercase;
}

.gallery-hero .gallery-eyebrow{
    color:#ead1aa;
}

.gallery-hero h1{
    margin:0;
    color:#fff;
    font-size:clamp(3.8rem,8vw,7rem);
    line-height:.92;
    text-shadow:0 3px 18px rgba(0,0,0,.45);
}

.gallery-hero__logo{
    position:absolute;
    z-index:3;
    top:12px;
    left:24px;
    width:150px;
    height:150px;
    object-fit:contain;
}

.gallery-hero__subtitle{
    max-width:590px;
    margin:20px 0 0;
    color:rgba(255,255,255,.94);
    font-size:1.08rem;
    font-style:normal;
    line-height:1.75;
    text-shadow:0 2px 10px rgba(0,0,0,.65);
}

.gallery-flourish{
    display:flex;
    align-items:center;
    gap:10px;
    width:150px;
    margin-top:25px;
    color:#f0c47e;
}

.gallery-flourish span{
    flex:1;
    height:1px;
    background:currentColor;
}

.gallery-flourish b{
    font-size:1.3rem;
    font-weight:400;
}

.gallery-hero__visual{
    position:absolute;
    inset:0;
}

.gallery-hero__visual img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.gallery-hero__visual::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(31,22,16,.74) 0%,rgba(31,22,16,.48) 42%,rgba(31,22,16,.12) 76%),
        linear-gradient(0deg,rgba(24,17,12,.62) 0%,transparent 55%);
    pointer-events:none;
}

.gallery-container{
    width:min(1180px,92%);
    margin:0 auto;
    padding:68px 0 76px;
}

.gallery-section__header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:38px;
    margin-bottom:32px;
}

.gallery-section__header h2{
    margin:0;
    color:#5b3732;
    font-size:clamp(2.2rem,4vw,3rem);
}

.gallery-section__header > p{
    max-width:480px;
    margin:0;
    color:var(--text-light);
    text-align:right;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:26px;
}

.gallery-album{
    overflow:hidden;
    background:var(--paper);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:transform .25s ease,box-shadow .25s ease;
}

.gallery-album:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 38px rgba(0,0,0,.13);
}

.gallery-album a{
    display:flex;
    height:100%;
    flex-direction:column;
}

.gallery-album__image{
    position:relative;
    height:220px;
    overflow:hidden;
    background:#e9e1d7;
}

.gallery-album__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.gallery-album:hover .gallery-album__image img{
    transform:scale(1.035);
}

.gallery-album__badge{
    position:absolute;
    left:16px;
    bottom:14px;
    padding:6px 10px;
    background:rgba(255,253,249,.92);
    color:#6c5247;
    border-radius:999px;
    font-family:"Inter","Segoe UI",sans-serif;
    font-size:.68rem;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.gallery-album__content{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:22px 22px 24px;
}

.gallery-album__date{
    margin:0 0 7px;
    color:#b17b69;
    font-family:"Inter","Segoe UI",sans-serif;
    font-size:.7rem;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.gallery-album h3{
    margin:0 0 8px;
    color:#513727;
    font-size:1.65rem;
    line-height:1.1;
}

.gallery-album__description{
    margin:0;
    color:var(--text-light);
    font-size:.94rem;
    line-height:1.6;
}

.gallery-album__link{
    margin-top:auto;
    padding-top:20px;
    color:var(--green);
    font-family:"Inter","Segoe UI",sans-serif;
    font-size:.78rem;
    font-weight:600;
    letter-spacing:.04em;
}

.gallery-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:38px;
}

.gallery-pagination button{
    min-width:42px;
    min-height:42px;
    border:1px solid var(--border);
    border-radius:50%;
    background:var(--paper);
    color:var(--text);
    cursor:pointer;
    font:600 .85rem "Inter","Segoe UI",sans-serif;
    transition:.2s ease;
}

.gallery-pagination button:hover:not(:disabled){
    border-color:var(--gold);
    color:#8b653c;
}

.gallery-pagination button:disabled{
    opacity:.35;
    cursor:default;
}

.gallery-pagination__status{
    color:var(--text-light);
    font-family:"Inter","Segoe UI",sans-serif;
    font-size:.82rem;
}

@media(max-width:900px){
    .gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:620px){
    .gallery-hero{
        min-height:72vh;
    }

    .gallery-hero__content{
        padding:110px 0 48px;
    }

    .gallery-hero h1{
        font-size:clamp(3rem,14vw,4.2rem);
    }

    .gallery-hero__logo{
        top:18px;
        left:18px;
        width:120px;
        height:120px;
    }

    .gallery-hero__visual::after{
        background:linear-gradient(0deg,rgba(30,21,15,.82),rgba(30,21,15,.18));
    }

    .gallery-section__header{
        display:block;
    }

    .gallery-section__header > p{
        margin-top:12px;
        text-align:left;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .gallery-album__image{
        height:240px;
    }
}

@media(prefers-reduced-motion:reduce){
    .gallery-album,
    .gallery-album__image img{
        transition:none;
    }
}
