.college-gallery {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
    background: #faf9f6;
}

.college-gallery::before {
    position: absolute;
    top: -260px;
    right: -210px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: rgb(190 157 95 / 6%);
    content: "";
    pointer-events: none;
}

.college-gallery > .container { position: relative; z-index: 1; }

.college-gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.college-gallery__heading { max-width: 680px; }

.college-gallery__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #a47d3f;
    font: 700 .7rem/1.5 'Manrope', sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.college-gallery__eyebrow span { width: 26px; height: 1px; background: currentColor; }

.college-gallery__heading h1 {
    margin: 0 0 9px;
    color: #172b40;
    font: 600 clamp(2.45rem, 5vw, 3.6rem)/1 'Cormorant Garamond', serif;
}

.college-gallery__heading h1 span { color: #b88a45; }
.college-gallery__heading p { margin: 0; color: #777168; font: 400 .94rem/1.75 'Manrope', sans-serif; }

.college-gallery__count { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; }
.college-gallery__count strong { color: #b88a45; font: 500 3rem/1 'Cormorant Garamond', serif; }
.college-gallery__count span { padding-left: 13px; border-left: 1px solid #d9d0c1; color: #81796e; font: 700 .65rem/1.5 'Manrope', sans-serif; letter-spacing: .1em; text-transform: uppercase; }

.college-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9e4dc;
}

.college-gallery__filters a {
    padding: 9px 15px;
    border: 1px solid #e6e0d6;
    border-radius: 999px;
    background: #fff;
    color: #596474;
    font: 700 .75rem/1.4 'Manrope', sans-serif;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.college-gallery__filters a:hover,
.college-gallery__filters a.is-active { border-color: #173653; background: #173653; color: #fff; }

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

.college-gallery-card {
    overflow: hidden;
    border: 1px solid #e7e1d8;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 25px rgb(39 31 21 / 5%);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.college-gallery-card:hover { transform: translateY(-5px); border-color: rgb(184 138 69 / 40%); box-shadow: 0 16px 36px rgb(39 31 21 / 10%); }

.college-gallery-card__image {
    position: relative;
    display: block;
    width: 100%;
    height: 270px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #eee9e1;
    cursor: zoom-in;
}

.college-gallery-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.college-gallery-card:hover .college-gallery-card__image img { transform: scale(1.045); }

.college-gallery-card__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgb(15 29 43 / 0%);
    color: #fff;
    font: 700 .8rem/1 'Manrope', sans-serif;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease;
}

.college-gallery-card:hover .college-gallery-card__zoom,
.college-gallery-card__image:focus-visible .college-gallery-card__zoom { background: rgb(15 29 43 / 40%); opacity: 1; }

.college-gallery-card__body { padding: 17px 19px 20px; }
.college-gallery-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #827b70; font: 600 .66rem/1.5 'Manrope', sans-serif; }
.college-gallery-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.college-gallery-card__category { color: #a27a42; }
.college-gallery-card__body h2 { margin: 0; color: #243447; font: 600 1.3rem/1.3 'Cormorant Garamond', serif; }
.college-gallery-card__body p { margin: 8px 0 0; color: #777; font: 400 .8rem/1.65 'Manrope', sans-serif; }

.college-gallery-empty { grid-column: 1 / -1; padding: 65px 20px; text-align: center; }
.college-gallery-empty > span { display: inline-grid; width: 58px; height: 58px; margin-bottom: 16px; place-items: center; border-radius: 50%; background: #f1ece2; color: #a47d3f; font-size: 1.3rem; }
.college-gallery-empty h2 { margin: 0 0 7px; color: #203750; font: 600 1.65rem/1.25 'Cormorant Garamond', serif; }
.college-gallery-empty p { margin: 0; color: #767d84; font: 400 .88rem/1.6 'Manrope', sans-serif; }
.college-gallery__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding: 17px 0 0;
    border-top: 1px solid #e9e4dc;
}

.college-gallery__pagination-summary { margin: 0; color: #81796e; font: 500 .76rem/1.5 'Manrope', sans-serif; }
.college-gallery__pagination-summary strong { color: #34485c; font-weight: 800; }
.college-gallery__pagination-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.college-gallery__page-link {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #e4ded3;
    border-radius: 8px;
    background: #fff;
    color: #34485c;
    font: 700 .75rem/1.2 'Manrope', sans-serif;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.college-gallery__page-link:hover:not(.is-disabled, .is-current) { transform: translateY(-1px); border-color: #b88a45; background: #fbf8f1; color: #75571f; }
.college-gallery__page-link.is-current { border-color: #173653; background: #173653; color: #fff; }
.college-gallery__page-link.is-disabled { background: #f5f4f1; color: #b3b0aa; cursor: default; }
.college-gallery__page-ellipsis { padding: 0 2px; color: #948d82; }

.college-gallery-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px 95px;
    background: rgb(8 15 23 / 94%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.college-gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.college-gallery-lightbox > img { display: block; max-width: min(100%, 1200px); max-height: 78vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 24px 70px rgb(0 0 0 / 45%); }
.college-gallery-lightbox > p { position: absolute; right: 80px; bottom: 58px; left: 80px; margin: 0; color: rgb(255 255 255 / 85%); font: 500 .85rem/1.5 'Manrope', sans-serif; text-align: center; }
.college-gallery-lightbox__close { position: absolute; top: 22px; right: 25px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1rem; }
.college-gallery-lightbox__close:hover { background: rgb(255 255 255 / 14%); }
.college-gallery-lightbox__nav { position: absolute; top: 50%; display: grid; width: 48px; height: 48px; transform: translateY(-50%); place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(255 255 255 / 6%); color: #fff; cursor: pointer; }
.college-gallery-lightbox__nav:hover { border-color: #b88a45; background: #b88a45; }
.college-gallery-lightbox__nav--prev { left: 25px; }
.college-gallery-lightbox__nav--next { right: 25px; }
.college-gallery-lightbox__counter { position: absolute; bottom: 20px; left: 50%; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); color: #fff; font: 600 .75rem/1 'Manrope', sans-serif; }
.college-gallery-lightbox__counter span:nth-child(2) { width: 34px; height: 1px; background: rgb(255 255 255 / 45%); }
body.gallery-viewer-open { overflow: hidden; }

@media (max-width: 1000px) { .college-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .college-gallery { padding: 54px 0 66px; }
    .college-gallery__header { align-items: flex-start; flex-direction: column; gap: 20px; }
    .college-gallery__grid { grid-template-columns: 1fr; gap: 18px; }
    .college-gallery-card__image { height: 280px; }
    .college-gallery__pagination { align-items: center; flex-direction: column; gap: 13px; }
    .college-gallery__pagination-nav { justify-content: center; gap: 5px; }
    .college-gallery__page-link { min-width: 36px; min-height: 36px; padding: 6px 9px; }
    .college-gallery__page-link span { font-size: 0; }
    .college-gallery__page-link i { font-size: .72rem; }
    .college-gallery-lightbox { padding: 70px 16px 82px; }
    .college-gallery-lightbox > p { right: 18px; bottom: 56px; left: 18px; }
    .college-gallery-lightbox__counter { bottom: 18px; }
    .college-gallery-lightbox__nav { width: 40px; height: 40px; }
    .college-gallery-lightbox__nav--prev { left: 10px; }
    .college-gallery-lightbox__nav--next { right: 10px; }
}
@media (max-width: 450px) {
    .college-gallery__heading h1 { font-size: 2.45rem; }
    .college-gallery-card__image { height: 235px; }
    .college-gallery-card__meta { align-items: flex-start; flex-direction: column; gap: 5px; }
}
