.gallery-hero { --hero-image: url("assets/campus-aerial.webp"); }
body[data-page="gallery"] .inner-main { overflow: visible; }
.gallery-explorer { padding: 100px 0 112px; overflow: clip; background: #f7f8fb; }
.gallery-browser { display: grid; grid-template-columns: 260px minmax(0,1fr); align-items: start; gap: 32px; }
.gallery-filters { position: sticky; top: 104px; max-height: calc(100vh - 124px); display: grid; gap: 18px; overflow-y: auto; padding: 25px; border: 1px solid rgba(35,54,137,.1); border-radius: 22px; background: #fff; box-shadow: 0 15px 40px rgba(17,28,81,.07); scrollbar-width: thin; }
.gallery-filter-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--navy); }
.gallery-filter-heading strong { font-size: 15px; }
.gallery-filter-heading span { color: var(--muted); font-size: 10px; }
.gallery-filters label { display: grid; gap: 7px; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gallery-filters select { width: 100%; height: 46px; padding: 0 38px 0 13px; border: 1px solid #d8dee8; border-radius: 999px; background: #fff; color: #34415d; font: 600 12px var(--font-primary); }
.gallery-reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--red); font: 800 10px var(--font-primary); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.reset-x { position: relative; display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -2px; }
.reset-x::before, .reset-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; border-radius: 2px; background: currentColor; }
.reset-x::before { transform: translate(-50%,-50%) rotate(45deg); }
.reset-x::after { transform: translate(-50%,-50%) rotate(-45deg); }
.gallery-accordion-list { display: grid; gap: 12px; }
.gallery-accordion { overflow: hidden; border: 1px solid rgba(35,54,137,.14); border-radius: 19px; background: #fff; box-shadow: 0 12px 30px rgba(17,28,81,.055); }
.gallery-accordion[hidden] { display: none; }
.gallery-accordion summary { display: grid; grid-template-columns: 104px minmax(0,1fr) 42px; align-items: center; min-height: 94px; gap: 18px; padding: 10px 17px 10px 10px; color: var(--navy); cursor: pointer; list-style: none; transition: background .25s,color .25s; }
.gallery-accordion summary::-webkit-details-marker { display: none; }
.gallery-accordion summary > img { width: 104px; height: 74px; border-radius: 12px; object-fit: cover; }
.gallery-accordion summary > span { display: grid; gap: 3px; }
.gallery-accordion summary small { color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; transition: color .25s; }
.gallery-accordion summary strong { font: 700 23px/1.08 var(--font-secondary); }
.gallery-accordion summary em { color: var(--muted); font-size: 10px; font-style: normal; transition: color .25s; }
.gallery-accordion summary i { position: relative; width: 36px; height: 36px; border: 1px solid rgba(35,54,137,.18); border-radius: 50%; transition: border-color .25s,transform .3s; }
.gallery-accordion summary i::before, .gallery-accordion summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%,-50%); }
.gallery-accordion summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .25s; }
.gallery-accordion summary:hover { background: rgba(35,54,137,.045); }
.gallery-accordion[open] summary { background: var(--navy); color: #fff; }
.gallery-accordion[open] summary small { color: var(--sky); }
.gallery-accordion[open] summary em { color: rgba(255,255,255,.7); }
.gallery-accordion[open] summary i { border-color: rgba(255,255,255,.35); transform: rotate(180deg); }
.gallery-accordion[open] summary i::after { transform: translate(-50%,-50%) rotate(0deg); }
.gallery-accordion-carousel { position: relative; background: #f3f5f9; animation: galleryAccordionIn .3s ease both; }
.gallery-accordion-photos { display: flex; gap: 9px; overflow-x: auto; padding: 13px 48px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.gallery-accordion-photos::-webkit-scrollbar { display: none; }
.gallery-accordion-photos.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.gallery-accordion-photos button { overflow: hidden; min-width: 0; flex: 0 0 29%; padding: 0; border: 0; border-radius: 12px; background: var(--navy); cursor: zoom-in; scroll-snap-align: start; }
.gallery-accordion-photos img { display: block; width: 100%; height: 118px; object-fit: cover; transition: transform .4s ease,opacity .3s; }
.gallery-accordion-photos button:hover img, .gallery-accordion-photos button:focus-visible img { opacity: .86; transform: scale(1.045); }
.gallery-accordion-nav { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(35,54,137,.18); border-radius: 50%; background: rgba(255,255,255,.88); color: var(--navy); box-shadow: 0 5px 16px rgba(17,28,81,.12); cursor: pointer; transform: translateY(-50%); transition: opacity .2s,transform .2s,background .2s; }
.gallery-accordion-nav.prev { left: 9px; }
.gallery-accordion-nav.next { right: 9px; }
.gallery-accordion-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-accordion-nav[disabled] { opacity: .22; pointer-events: none; }
.gallery-pagination-controls { grid-column: 2; display: flex; justify-content: center; gap: 10px; padding-top: 17px; }
.gallery-pagination-controls .button { min-width: 130px; }
@keyframes galleryAccordionIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.gallery-video-banner { width: 100%; padding: 0; overflow: hidden; background: var(--navy-dark); }
.gallery-video-banner-frame { position: relative; width: 100%; height: clamp(320px,32vw,520px); overflow: hidden; background: var(--navy-dark); isolation: isolate; }
.gallery-video-banner-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,rgba(17,28,81,.72),rgba(17,28,81,.08) 68%); pointer-events: none; }
.gallery-video-banner-frame iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: auto; min-width: 100%; min-height: 100%; aspect-ratio: 16/9; border: 0; transform: translate(-50%,-50%); pointer-events: none; }
.gallery-video-banner-copy { position: absolute; z-index: 2; left: clamp(24px,5vw,66px); bottom: clamp(25px,4vw,52px); display: grid; max-width: 560px; gap: 8px; color: #fff; pointer-events: none; }
.gallery-video-banner-copy span { color: var(--sky); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.gallery-video-banner-copy strong { font: 700 clamp(25px,3vw,42px)/1.02 var(--font-secondary); }
.gallery-video-banner-cta { position: absolute; z-index: 3; right: clamp(24px,5vw,66px); bottom: clamp(25px,4vw,52px); }

.video-gallery { padding: 105px 0; overflow: hidden; background: var(--navy-dark); color: #fff; }
.video-gallery .section-intro h2 { color: #fff; }
.video-gallery .section-intro > p { color: rgba(255,255,255,.62); }
.video-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,360px); gap: 26px; }
.video-feature { min-width: 0; overflow: hidden; color: #fff; }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 20px; background: #050a1a; box-shadow: 0 20px 45px rgba(0,0,0,.26); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-main-poster { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0; background: #050a1a; cursor: pointer; }
.video-main-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .76; transition: transform .55s,opacity .35s; }
.video-main-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(10,20,68,.35),rgba(10,20,68,.06)); pointer-events: none; }
.video-main-poster:hover img { opacity: .88; transform: scale(1.018); }
.video-play-glass { width: 48px; height: 48px; display: grid; place-items: center; padding-left: 3px; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-style: normal; font-size: 14px; line-height: 1; box-shadow: 0 9px 28px rgba(5,12,46,.3); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.video-main-poster .video-play-glass { position: absolute; z-index: 2; top: 50%; left: 50%; width: 68px; height: 68px; font-size: 19px; transform: translate(-50%,-50%); transition: background .25s,transform .25s; }
.video-main-poster:hover .video-play-glass { background: rgba(177,27,53,.72); transform: translate(-50%,-50%) scale(1.06); }
.youtube-file-fallback { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #050a1a; color: #fff; }
.youtube-file-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .4s,opacity .3s; }
.youtube-file-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(17,28,81,.5),rgba(17,28,81,.08)); }
.youtube-file-fallback > span { position: relative; z-index: 3; width: 58px; height: 58px; display: grid; place-items: center; padding-left: 3px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: var(--red); color: #fff; font-size: 19px; line-height: 1; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.youtube-file-fallback:hover img { opacity: .86; transform: scale(1.025); }
.gallery-video-banner-frame > .youtube-file-fallback { pointer-events: auto; }
.video-feature-copy { min-height: 86px; padding: 19px 4px 4px; }
.video-feature h3 { margin: 0; color: #fff; font-size: clamp(18px,2vw,25px); }
.video-feature-copy p { margin: 7px 0 0; color: rgba(255,255,255,.66); font-size: 13px; }
.video-playlist-panel { min-width: 0; overflow: hidden; border: 1px solid rgba(113,197,232,.25); border-radius: 18px; background: rgba(255,255,255,.055); }
.video-playlist-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 18px 18px 15px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(113,197,232,.12); }
.video-playlist-heading > div { min-width: 0; display: grid; gap: 3px; }
.video-playlist-heading span { color: var(--sky); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.video-playlist-heading strong { overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.video-playlist-heading small { flex: 0 0 auto; color: rgba(255,255,255,.62); font-size: 10px; }
.video-playlist { max-height: 445px; counter-reset: video-list; display: grid; align-content: start; gap: 0; overflow-y: auto; padding: 7px 6px 7px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.48) rgba(255,255,255,.08); }
.video-playlist::-webkit-scrollbar { width: 7px; }
.video-playlist::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 999px; }
.video-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.42); border-radius: 999px; }
.video-option { position: relative; display: grid; grid-template-columns: 46% minmax(0,1fr); align-items: stretch; gap: 0; overflow: hidden; min-height: 112px; padding: 0; border: 1px solid rgba(113,197,232,.28); border-radius: 16px; background: rgba(57,101,170,.82); color: #fff; text-align: left; cursor: pointer; transition: background .25s,border-color .25s,transform .25s; }
.video-option { counter-increment: video-list; margin: 4px 5px 4px 33px; overflow: visible; }
.video-option::after { content: counter(video-list); position: absolute; top: 50%; right: calc(100% + 10px); color: rgba(255,255,255,.66); font: 700 11px var(--font-primary); transform: translateY(-50%); }
.video-option.active::after { content: "▶"; color: var(--sky); font-size: 10px; }
.video-option:hover, .video-option.active { border-color: rgba(255,255,255,.4); background: var(--red); transform: translateX(-3px); box-shadow: none; }
.video-option-media { position: relative; min-height: 100%; overflow: hidden; }
.video-option-media::after { content: ""; position: absolute; inset: 0; background: rgba(20,39,104,.15); pointer-events: none; }
.video-option-media img { width: 100%; height: 100%; min-height: 112px; object-fit: cover; transition: transform .35s; }
.video-option:hover .video-option-media img { transform: scale(1.035); }
.video-option-media .video-play-glass { position: absolute; z-index: 2; top: 50%; left: 50%; width: 39px; height: 39px; transform: translate(-50%,-50%); }
.video-option-copy { min-width: 0; display: grid; gap: 6px; padding: 3px 5px 3px 0; }
.video-option-copy { align-content: center; padding: 13px 14px; }
.video-option-copy strong { color: #fff; font-size: 14px; line-height: 1.2; }
.video-option-copy small { color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.35; }

@media (max-width: 900px) {
  .gallery-browser { grid-template-columns: 1fr; }
  .gallery-pagination-controls { grid-column: 1; }
  .gallery-filters { position: static; max-height: none; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; }
  .gallery-filter-heading { grid-column: 1/-1; }
  .gallery-reset { grid-column: 1/-1; }
  .video-layout { grid-template-columns: 1fr; gap: 20px; }
  .video-playlist-panel { border-radius: 16px; }
  .video-playlist { max-height: 360px; grid-template-columns: 1fr; overflow-x: hidden; overflow-y: auto; padding: 2px 5px 2px 2px; scrollbar-width: thin; }
  .video-option { grid-template-columns: 140px minmax(0,1fr); align-items: center; }
  .video-option-media img { min-height: 100px; }
  .video-option:hover, .video-option.active { transform: none; }
}

@media (max-width: 640px) {
  .gallery-explorer { padding: 68px 0 76px; }
  .gallery-explorer .section-intro { margin-bottom: 25px; }
  .gallery-filters { order: -1; grid-template-columns: 1fr; gap: 12px; padding: 18px; border-radius: 18px; }
  .gallery-filter-heading, .gallery-reset { grid-column: auto; }
  .gallery-accordion { border-radius: 16px; }
  .gallery-accordion summary { grid-template-columns: 78px minmax(0,1fr) 34px; min-height: 80px; gap: 12px; padding: 8px 12px 8px 8px; }
  .gallery-accordion summary > img { width: 78px; height: 62px; border-radius: 10px; }
  .gallery-accordion summary strong { font-size: 19px; }
  .gallery-accordion summary i { width: 32px; height: 32px; }
  .gallery-accordion-photos { gap: 7px; padding: 9px 41px; }
  .gallery-accordion-photos button { flex-basis: 72%; }
  .gallery-accordion-photos img { height: 105px; }
  .gallery-accordion-nav { width: 31px; height: 31px; }
  .gallery-accordion-nav.prev { left: 6px; }
  .gallery-accordion-nav.next { right: 6px; }
  .gallery-video-banner { padding: 0; }
  .gallery-video-banner-frame { height: 220px; }
  .gallery-video-banner-frame iframe { width: 100%; height: auto; min-width: 100%; min-height: 100%; }
  .gallery-video-banner-copy { left: 22px; right: 22px; bottom: 24px; }
  .gallery-video-banner-copy strong { font-size: 25px; }
  .gallery-video-banner-cta { top: 18px; right: auto; bottom: auto; left: 22px; min-height: 38px; padding: 0 17px; font-size: 9px; }
  .video-gallery { padding: 72px 0; }
  .video-frame { border-radius: 16px; }
  .video-feature h3 { font-size: 17px; }
  .video-playlist { max-height: 315px; margin-right: 0; }
  .video-feature-copy { min-height: 82px; padding: 16px 18px 18px; }
  .video-option { grid-template-columns: 112px minmax(0,1fr); min-height: 88px; }
  .video-option-media img { min-height: 88px; }
  .video-option-media .video-play-glass { width: 34px; height: 34px; }
}
