/* Photo gallery: an asymmetric mosaic and full-image preview. */
.college-gallery{padding:58px 0 64px;background:var(--surface)}
.college-gallery .shell{max-width:1480px}
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.gallery-heading .eyebrow{font-size:.625rem;letter-spacing:1.8px;margin-bottom:10px}
.gallery-heading h2{font-family:var(--font-display);font-size:clamp(2rem,2.8vw,2.75rem);font-weight:600;line-height:1.2;letter-spacing:-.8px;color:var(--body-text);margin:0 0 12px}
.gallery-heading h2 span{color:var(--primary-blue)}
.gallery-intro{font-size:.875rem;line-height:1.7;color:var(--muted-text);margin:0}
.gallery-view-all{display:inline-flex;align-items:center;gap:18px;white-space:nowrap;font-size:.75rem;font-weight:500;color:var(--body-text);padding-bottom:6px;border-bottom:1px solid var(--hairline)}
.gallery-view-all i{color:var(--primary-blue)}
.gallery-view-all:hover{color:var(--primary-blue)}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;margin-bottom:18px;border-top:1px solid var(--hairline)}
.gallery-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.gallery-filters button{padding:8px 16px;border-radius:5px;border:1px solid transparent;font-size:.875rem;font-weight:500;color:var(--muted-text);transition:background .2s,color .2s}
.gallery-filters button:hover{background:var(--page-bg);color:var(--body-text)}
.gallery-filters button[aria-pressed="true"]{background:var(--primary-navy);color:#fff;border-color:var(--primary-navy)}
.gallery-photo-count{font-size:.625rem;letter-spacing:1px;white-space:nowrap;color:var(--muted-text)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:220px;gap:16px}
.gallery-tile{position:relative;isolation:isolate;display:block;width:100%;height:100%;min-width:0;padding:0;border-radius:9px;overflow:hidden;background:var(--primary-navy);text-align:left;color:#fff;animation:gallery-appear .4s ease both}
.gallery-tile[hidden]{display:none}
.gallery-tile--featured{grid-column:span 2;grid-row:span 2}
.gallery-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(var(--primary-rgb),.08) 30%,rgba(var(--primary-rgb),.3) 58%,rgba(var(--primary-rgb),.88));pointer-events:none}
.gallery-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.gallery-tile[data-category="leadership"] img{object-position:center 25%}
.gallery-tile-caption{position:absolute;z-index:1;left:20px;right:20px;bottom:20px;display:flex;flex-direction:column;gap:5px}
.gallery-photo-category{font-size:.5rem;font-weight:500;letter-spacing:1.8px;text-transform:uppercase;color:var(--gold)}
.gallery-tile-caption strong{font-family:var(--font-display);font-size:1.125rem;line-height:1.3;font-weight:600;color:#fff}
.gallery-tile-caption>span:last-child{font-size:.625rem;color:var(--on-dark-muted);line-height:1.5}
.gallery-tile--featured .gallery-tile-caption{left:28px;right:28px;bottom:28px;gap:8px}
.gallery-tile--featured .gallery-tile-caption strong{font-size:2rem}
.gallery-tile--featured .gallery-tile-caption>span:last-child{font-size:.75rem}
.gallery-zoom{position:absolute;z-index:1;right:14px;top:14px;display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(var(--primary-rgb),.28);color:#fff;font-size:.75rem;transition:background .25s,color .25s}
.gallery-tile:is(:hover,:focus-visible) img{transform:scale(1.045)}
.gallery-tile:is(:hover,:focus-visible) .gallery-zoom{background:var(--gold);border-color:var(--gold);color:var(--primary-navy)}
.gallery-grid.is-filtered{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:280px}
.gallery-grid.is-filtered .gallery-tile--featured{grid-column:auto;grid-row:auto}
.gallery-grid.is-filtered .gallery-tile--featured .gallery-tile-caption{left:20px;bottom:20px}
.gallery-grid.is-filtered .gallery-tile--featured .gallery-tile-caption strong{font-size:1.125rem}
.gallery-bottom{display:flex;align-items:center;gap:24px;margin-top:24px;color:var(--muted-text)}
.gallery-hint{display:inline-flex;align-items:center;gap:8px;font-size:.625rem;white-space:nowrap}
.gallery-hint i{color:var(--primary-blue)}
.gallery-bottom-line{flex:1;height:1px;background:var(--hairline)}
.gallery-bottom-label{font-size:.5rem;letter-spacing:1.5px}
@keyframes gallery-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.gallery-lightbox{width:calc(100% - 40px);max-width:1100px;max-height:94dvh;padding:0;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:var(--footer-bg);color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.4);overflow:auto}
.gallery-lightbox::backdrop{background:rgba(var(--footer-rgb),.88);backdrop-filter:blur(7px)}
.gallery-lightbox[open]{display:flex;flex-direction:column;animation:gallery-appear .2s ease both}
.gallery-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.12);font-size:.6875rem;letter-spacing:.6px}
.gallery-close,.gallery-prev,.gallery-next{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:50%;color:#fff;font-size:.875rem}
.gallery-close:hover,.gallery-prev:hover,.gallery-next:hover{background:var(--gold);border-color:var(--gold);color:var(--primary-navy)}
.gallery-modal-stage{min-height:0;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--footer-bg);overflow:hidden}
.gallery-modal-image{display:block;max-width:100%;max-height:67dvh;width:auto;height:auto;object-fit:contain}
.gallery-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}
.gallery-modal-footer>div{text-align:center;min-width:0}
.gallery-modal-caption{font-family:var(--font-display);font-size:1rem;line-height:1.4;margin:0 0 4px;color:#fff}
.gallery-modal-counter{font-size:.625rem;color:var(--on-dark-muted);letter-spacing:1px}
html[data-theme="dark"] .gallery-heading .eyebrow,html[data-theme="dark"] .gallery-heading h2 span,html[data-theme="dark"] .gallery-view-all:hover,html[data-theme="dark"] .gallery-view-all i,html[data-theme="dark"] .gallery-hint i{color:var(--gold)}
@media(max-width:1100px){.gallery-grid{grid-auto-rows:200px;gap:12px}.gallery-tile-caption{left:16px;right:16px;bottom:16px}.gallery-tile-caption strong{font-size:1rem}}
@media(max-width:991.98px){
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:220px}
 .gallery-tile--featured{grid-column:span 2;grid-row:auto}
 .gallery-grid.is-filtered{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:220px}
 .gallery-tile--featured .gallery-tile-caption strong{font-size:1.5rem}
}
@media(max-width:575.98px){
 .college-gallery{padding:38px 0 42px}
 .gallery-heading{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:24px}
 .gallery-intro{font-size:.8125rem}
 .gallery-toolbar{align-items:flex-start;gap:8px;margin-bottom:8px}
 .gallery-photo-count{display:none}
 .gallery-filters{gap:4px}
 .gallery-filters button{padding:8px 10px;font-size:.8125rem}
 .gallery-grid{grid-auto-rows:180px;gap:10px}
 .gallery-tile--featured{grid-row:auto}
 .gallery-tile-caption{left:12px;right:12px;bottom:12px;gap:4px}
 .gallery-tile-caption strong{font-size:.875rem}
 .gallery-tile-caption>span:last-child{font-size:.5625rem}
 .gallery-photo-category{font-size:.4375rem;letter-spacing:1.2px}
 .gallery-tile--featured .gallery-tile-caption{left:18px;bottom:18px}
 .gallery-zoom{right:10px;top:10px;width:26px;height:26px;font-size:.625rem}
 .gallery-grid.is-filtered{grid-template-columns:1fr;grid-auto-rows:240px}
 .gallery-bottom{gap:12px;margin-top:18px}
 .gallery-bottom-label{display:none}
 .gallery-lightbox{width:calc(100% - 20px);border-radius:8px}
 .gallery-modal-header,.gallery-modal-footer{padding:12px 14px}
 .gallery-modal-stage{padding:8px}
 .gallery-modal-caption{font-size:.875rem}
}
@media(prefers-reduced-motion:reduce){.gallery-tile,.gallery-lightbox[open]{animation:none}.gallery-tile img,.gallery-zoom,.gallery-filters button{transition:none}.gallery-tile:is(:hover,:focus-visible) img{transform:none}}
@media print{.gallery-lightbox,.gallery-toolbar,.gallery-zoom,.gallery-view-all{display:none}.gallery-tile{break-inside:avoid}.college-gallery{padding:24px 0}}
