/* ================= BATCH PHOTOS PAGE ================= */

.batch-page-header{
    background:linear-gradient(135deg,#2f3b46 0%,#3d4d5a 55%,#455764 100%);
    color:#fff;
    padding:64px 40px;
}

.batch-page-header__inner{
    max-width:1000px;
    margin:auto;
}

.batch-page-header__eyebrow,
.selected-year-heading span{
    display:block;
    color:var(--gold);
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.22em;
    text-transform:uppercase;
}

.batch-page-header__eyebrow{
    color:#f0d28a;
    margin-bottom:12px;
}

.batch-page-header h1{
    font-size:clamp(2rem,4vw,3rem);
    margin:0 0 14px;
}

.batch-page-header p{
    max-width:720px;
    margin:0;
    line-height:1.8;
    color:rgba(255,255,255,.9);
}

.batch-content{
    padding:38px 35px 60px;
    background:#f7f6f2;
}


/* ================= YEAR SELECTOR ================= */

.batch-selector{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:15px;

    padding:24px 26px;
    margin-bottom:36px;

    background:#fff;
    border:1px solid rgba(47,59,70,.08);
    border-radius:16px;

    box-shadow:0 8px 25px rgba(15,23,42,.05);
}

.batch-selector__label{
    color:#2f3b46;
    font-size:.95rem;
    font-weight:600;
    white-space:nowrap;
}

.batch-year-form{
    flex-shrink:0;
}

.batch-year-form select{
    min-width:190px;

    padding:12px 42px 12px 16px;

    border:1px solid #d8d8d8;
    border-radius:9px;

    background:#fff;
    color:#2f3b46;

    font:600 .95rem inherit;

    cursor:pointer;
    outline:none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.batch-year-form select:hover{
    border-color:#b9a66b;
}

.batch-year-form select:focus{
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(201,168,76,.15);
}


/* ================= SELECTED YEAR ================= */

.selected-year-heading{
    text-align:center;
    margin-bottom:34px;
}

.selected-year-heading h2{
    margin:5px 0 0;
    color:#2f3b46;
    font-size:clamp(1.7rem,3vw,2.25rem);
}


/* ================= DEPARTMENT ================= */

.batch-department{
    margin-bottom:48px;
}

.batch-department__heading{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}

.department-line{
    width:5px;
    height:28px;
    flex-shrink:0;
    background:var(--gold);
    border-radius:4px;
}

.batch-department__heading h2{
    margin:0;
    color:#2f3b46;
    font-size:1.35rem;
}


/* ================= PHOTO GRID ================= */

.batch-photo-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}


/* ================= PHOTO CARD ================= */

.batch-photo-card{
    min-width:0;
    overflow:hidden;

    background:#fff;

    border:1px solid rgba(47,59,70,.08);
    border-radius:15px;

    box-shadow:0 8px 25px rgba(15,23,42,.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.batch-photo-card:hover{
    transform:translateY(-5px);
    box-shadow:0 14px 32px rgba(15,23,42,.11);
}


/* ================= PHOTO BUTTON ================= */

.batch-photo-trigger{
    display:block;
    width:100%;
    padding:0;

    border:0;
    background:none;

    cursor:pointer;
    text-align:left;
}


/* ================= PHOTO ================= */

.batch-photo-image{
    position:relative;

    width:100%;
    aspect-ratio:4/3;

    overflow:hidden;
    background:#e9e9e9;
}

.batch-photo-image img{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;

    transition:transform .5s ease;
}

.batch-photo-card:hover .batch-photo-image img{
    transform:scale(1.04);
}


/* ================= PHOTO OVERLAY ================= */

.batch-photo-overlay{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    gap:7px;

    background:rgba(20,28,34,.55);
    color:#fff;

    opacity:0;

    transition:opacity .25s ease;
}

.batch-photo-card:hover .batch-photo-overlay,
.batch-photo-trigger:focus-visible .batch-photo-overlay{
    opacity:1;
}

.view-icon{
    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;

    border:1px solid rgba(255,255,255,.65);
    border-radius:50%;

    font-size:20px;
}

.batch-photo-overlay span:last-child{
    font-size:.82rem;
    font-weight:600;
}


/* ================= PHOTO INFORMATION ================= */

.batch-photo-info{
    padding:16px 18px 18px;
}

.batch-photo-info h3{
    margin:0 0 5px;
    color:#2f3b46;
    font-size:1.05rem;
}

.batch-photo-info p{
    margin:0;
    color:#777;
    font-size:.82rem;
}


/* ================= ACCESSIBILITY ================= */

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;

    overflow:hidden;

    clip:rect(0,0,0,0);

    white-space:nowrap;
    border:0;
}


/* ================= LIGHTBOX ================= */

.photo-lightbox{
    position:fixed;
    inset:0;

    z-index:1000;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:30px;

    visibility:hidden;
    opacity:0;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.photo-lightbox.active{
    visibility:visible;
    opacity:1;
}

.photo-lightbox__backdrop{
    position:absolute;
    inset:0;

    background:rgba(10,15,19,.88);

    cursor:pointer;
}

.photo-lightbox__content{
    position:relative;
    z-index:1;

    max-width:min(1200px,94vw);
    max-height:92vh;

    display:flex;
    flex-direction:column;
    align-items:center;
}

.photo-lightbox__content img{
    display:block;

    max-width:100%;
    max-height:82vh;

    object-fit:contain;

    border-radius:8px;

    box-shadow:0 20px 60px rgba(0,0,0,.4);

    transform:scale(.96);

    transition:transform .25s ease;
}

.photo-lightbox.active .photo-lightbox__content img{
    transform:scale(1);
}

.photo-lightbox__close{
    position:absolute;

    top:-16px;
    right:-16px;

    z-index:2;

    width:40px;
    height:40px;

    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;

    background:#2f3b46;
    color:#fff;

    font-size:28px;
    line-height:1;

    cursor:pointer;
}

.photo-lightbox__close:hover{
    background:var(--gold);
    color:#2f3b46;
}

.photo-lightbox__caption{
    margin-top:12px;

    color:#fff;

    font-size:.95rem;
    font-weight:600;

    text-align:center;
}

body.lightbox-open{
    overflow:hidden;
}


/* ================= TABLET ================= */

@media(max-width:1024px){

    .batch-content{
        padding:30px 24px 50px;
    }

    .batch-photo-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* ================= MOBILE ================= */

@media(max-width:768px){

    .batch-page-header{
        padding:44px 20px;
    }

    .batch-page-header h1{
        font-size:2rem;
    }

    .batch-page-header p{
        font-size:.92rem;
        line-height:1.7;
    }

    .batch-content{
        padding:22px 16px 45px;
    }


    /* Keep label and dropdown together on mobile */

    .batch-selector{
        align-items:center;
        justify-content:center;

        flex-direction:row;

        gap:10px;

        padding:18px;

        margin-bottom:28px;
    }

    .batch-selector__label{
        font-size:.88rem;
    }

    .batch-year-form{
        flex:0 1 auto;
    }

    .batch-year-form select{
        min-width:150px;
        width:auto;
    }


    .selected-year-heading{
        margin-bottom:28px;
    }

    .batch-department{
        margin-bottom:38px;
    }

    .batch-department__heading h2{
        font-size:1.15rem;
    }

    .batch-photo-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .batch-photo-card:hover{
        transform:none;
    }

    .batch-photo-overlay{
        display:none;
    }

    .photo-lightbox{
        padding:16px;
    }

    .photo-lightbox__content{
        max-width:100%;
        max-height:90vh;
    }

    .photo-lightbox__content img{
        max-width:100%;
        max-height:78vh;
        border-radius:5px;
    }

    .photo-lightbox__close{
        top:-10px;
        right:-5px;

        width:38px;
        height:38px;
    }

}


/* ================= SMALL MOBILE ================= */

@media(max-width:420px){

    .batch-page-header{
        padding:38px 16px;
    }

    .batch-content{
        padding-left:12px;
        padding-right:12px;
    }

    .batch-selector{
        padding:15px;
        gap:8px;
    }

    .batch-selector__label{
        font-size:.8rem;
    }

    .batch-year-form select{
        min-width:135px;
        padding:10px 30px 10px 12px;
        font-size:.85rem;
    }

    .batch-photo-info{
        padding:14px 15px 16px;
    }

}