/* Gallery page — reference-matched full-width hero, filters and photo cards. */
.gallery-hero{position:relative;display:grid;grid-template-columns:minmax(0,58%) minmax(0,42%);min-height:244px;background:#06264a;color:#fff;overflow:hidden;isolation:isolate}
.gallery-hero__copy{position:relative;z-index:2;padding:1.05rem clamp(1.4rem,5.1vw,5rem) 1.8rem max(1.4rem,calc((100vw - 1400px)/2));display:flex;flex-direction:column;justify-content:center;min-width:0;background:linear-gradient(115deg,#06264a 0%,#082e58 100%)}
.gallery-breadcrumbs{display:flex;align-items:center;gap:.55rem;margin:0 0 1.45rem;color:#dbe7f5;font:600 .82rem Inter,sans-serif}
.gallery-breadcrumbs a{color:#fff;text-decoration:none}.gallery-breadcrumbs a:hover{color:#f6c84e}
.gallery-hero__title-row{display:flex;align-items:center;gap:clamp(1rem,4vw,4rem);max-width:760px}
.gallery-hero h1{margin:0;color:#fff;font:800 clamp(2.7rem,5vw,4.5rem)/1.02 Manrope,Inter,sans-serif;letter-spacing:-.055em;white-space:nowrap}
.gallery-hero h1 em{font-style:normal;color:#ffc83d}
.gallery-hero__camera{width:clamp(62px,7vw,105px);height:auto;flex:0 0 auto;fill:none;stroke:rgb(255 255 255 / 32%);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transform:rotate(8deg)}
.gallery-hero__description{max-width:610px;margin:.85rem 0 0;color:#f3f6fb;font:500 clamp(1rem,1.45vw,1.28rem)/1.48 Inter,sans-serif}
.gallery-hero__visual{position:relative;min-height:244px;overflow:hidden;margin-left:-2px}
.gallery-hero__visual::before{content:"";position:absolute;z-index:2;inset:0 auto 0 -1px;width:100%;background:#ffc32e;clip-path:polygon(21% 0,24% 0,3% 100%,0 100%)}
.gallery-hero__visual img{display:block;width:100%;height:100%;min-height:244px;object-fit:cover;object-position:center 48%;}
.gallery-section{position:relative;background:#f8fafc;padding:2rem 0 5rem;overflow:hidden}
.gallery-section__inner{position:relative;z-index:1}
.gallery-filters{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.8rem;margin:0 0 1.75rem;padding:0 0 .15rem;background:transparent;border:0;box-shadow:none;overflow:visible}
.gallery-filter{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:52px;flex:0 0 auto;padding:.78rem 1.12rem;border:1px solid #e5ebf3;border-radius:15px;background:#fff;color:#10264d;box-shadow:0 7px 18px rgb(16 38 77 / 10%);font:800 .88rem Manrope,Inter,sans-serif;white-space:nowrap;cursor:pointer;transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}
.gallery-filter svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gallery-filter:hover,.gallery-filter:focus-visible{transform:translateY(-2px);border-color:#e4b638;outline:none;box-shadow:0 10px 22px rgb(16 38 77 / 13%)}
.gallery-filter.is-active{background:#ffc333;border-color:#ffc333;color:#08264a;box-shadow:0 9px 20px rgb(202 145 19 / 24%)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem 1.35rem;align-items:stretch}
.gallery-card{position:relative;display:block;width:100%;aspect-ratio:1.78/1;min-width:0;padding:0;margin:0;border:0;border-radius:17px;overflow:hidden;background:#dfe7f1;color:#fff;text-align:left;cursor:zoom-in;box-shadow:0 8px 17px rgb(12 35 66 / 15%);transition:transform .24s ease,box-shadow .24s ease}
.gallery-card[hidden]{display:none!important}
.gallery-card:hover,.gallery-card:focus-visible{transform:translateY(-4px);box-shadow:0 16px 28px rgb(12 35 66 / 20%);outline:3px solid #e7ba42;outline-offset:2px}
.gallery-card__image{position:absolute;inset:0;display:block;overflow:hidden;background:#dce5ef}
.gallery-card__image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .45s ease}
.gallery-card:hover .gallery-card__image img{transform:scale(1.045)}
.gallery-card__image::after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(180deg,transparent 0%,rgb(0 0 0 / 72%) 100%);pointer-events:none}
.gallery-card__expand{position:absolute;top:11px;right:11px;z-index:2;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgb(8 26 48 / 68%);border:1px solid rgb(255 255 255 / 65%);backdrop-filter:blur(5px)}
.gallery-card__expand svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gallery-card__caption{position:absolute;z-index:2;left:0;right:0;bottom:0;display:block;padding:.8rem 1rem .9rem;color:#fff;font:800 .96rem Manrope,Inter,sans-serif;line-height:1.2;text-shadow:0 1px 3px rgb(0 0 0 / 35%)}
.gallery-empty{padding:2rem;text-align:center;background:#fff;border-radius:12px;color:#66758c}
.gallery-load-more-wrap{display:flex;justify-content:center;padding:2rem 0 .4rem}
.gallery-load-more{display:inline-flex;align-items:center;justify-content:center;gap:1rem;min-width:290px;min-height:50px;padding:.7rem 1.5rem;border:1.5px solid #10264d;border-radius:999px;background:transparent;color:#10264d;font:800 .95rem Manrope,Inter,sans-serif;cursor:pointer;transition:background .2s ease,color .2s ease,transform .2s ease}
.gallery-load-more:hover,.gallery-load-more:focus-visible{background:#10264d;color:#fff;transform:translateY(-2px);outline:none}.gallery-load-more[hidden]{display:none}
.gallery-load-more span{font-size:1.3rem;line-height:1}
.gallery-privacy-note{max-width:920px;margin:1rem auto 0;text-align:center;font-size:.76rem;line-height:1.6;color:#718096}
.gallery-bottom-wave{position:absolute;left:0;right:0;bottom:0;height:54px;background:#06264a;clip-path:polygon(0 42%,5% 14%,12% 2%,19% 24%,28% 82%,38% 100%,51% 92%,63% 70%,74% 70%,84% 84%,92% 55%,100% 10%,100% 100%,0 100%);z-index:0}
.gallery-bottom-wave::before{content:"";position:absolute;inset:0;background:#f4bd30;clip-path:polygon(0 0,5% 0,12% 0,19% 16%,28% 72%,38% 89%,51% 80%,63% 57%,74% 57%,84% 70%,92% 42%,100% 0,100% 22%,92% 68%,84% 95%,74% 82%,63% 82%,51% 100%,38% 100%,28% 96%,19% 38%,12% 18%,5% 30%,0 60%)}
.gallery-cta{padding:2.8rem 0;background:#fff}.gallery-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:2rem}.gallery-cta h2{font:800 clamp(1.6rem,2.7vw,2.25rem)/1.15 Manrope,sans-serif;color:#10264d;margin:.2rem 0 .6rem}.gallery-cta p:not(.section-kicker){color:#68768b;margin:0;line-height:1.65}.gallery-cta .button{display:inline-flex;align-items:center;gap:.8rem;white-space:nowrap}
.gallery-lightbox{width:min(94vw,1100px);max-width:1100px;max-height:92vh;padding:1rem;border:1px solid rgb(255 255 255 / 20%);border-radius:18px;background:#061a31;color:#fff;box-shadow:0 30px 90px rgb(0 0 0 / 45%);overflow:hidden}
.gallery-lightbox::backdrop{background:rgb(3 13 26 / 84%);backdrop-filter:blur(6px)}
.gallery-lightbox__toolbar{display:flex;align-items:center;justify-content:space-between;color:#d8e2ee;padding:0 .2rem .8rem}.gallery-lightbox__toolbar p{margin:0;font-size:.8rem;letter-spacing:.08em}
.gallery-lightbox__close{width:42px;height:42px;border:1px solid rgb(255 255 255 / 30%);border-radius:50%;background:rgb(255 255 255 / 8%);color:#fff;font-size:1.7rem;cursor:pointer}
.gallery-lightbox__figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:.7rem}.gallery-lightbox__figure img{display:block;max-width:100%;width:auto;height:min(70vh,760px);object-fit:contain;background:#0c2745;border-radius:10px}.gallery-lightbox__figure figcaption{font:700 1rem Manrope,sans-serif;color:#f4c64f;text-align:center}
.gallery-lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:54px;border:1px solid rgb(255 255 255 / 35%);border-radius:12px;background:rgb(4 23 44 / 82%);color:#fff;font-size:2rem;cursor:pointer;z-index:2}.gallery-lightbox__nav--prev{left:1.2rem}.gallery-lightbox__nav--next{right:1.2rem}.gallery-lightbox__hint{text-align:center;color:#aebdd0;font-size:.72rem;margin:.7rem 0 0}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1100px){.gallery-hero{grid-template-columns:55% 45%}.gallery-hero h1{font-size:clamp(2.55rem,4.8vw,3.6rem)}.gallery-filters{flex-wrap:nowrap;gap:.65rem;overflow-x:auto;overflow-y:hidden;padding:0 .1rem .55rem;scrollbar-width:thin;scrollbar-color:#d4dce8 transparent;scroll-snap-type:x proximity}.gallery-filter{padding:.72rem .9rem;scroll-snap-align:start}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.gallery-filters{gap:.55rem}.gallery-hero{grid-template-columns:1fr;min-height:0}.gallery-hero__copy{padding:1rem 1.3rem 1.5rem}.gallery-breadcrumbs{margin-bottom:1.2rem}.gallery-hero h1{font-size:clamp(2.5rem,10vw,3.6rem)}.gallery-hero__visual{min-height:210px}.gallery-hero__visual img{min-height:210px;max-height:260px}.gallery-hero__visual::before{clip-path:polygon(0 0,7% 0,0 100%)}.gallery-section{padding:1.25rem 0 4.4rem}.gallery-filters{gap:.55rem;margin-bottom:1.15rem;padding:0 .1rem .45rem}.gallery-filter{min-height:46px;padding:.65rem .85rem;font-size:.8rem}.gallery-filter svg{width:20px;height:20px;flex-basis:20px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.gallery-card{border-radius:13px}.gallery-card__caption{padding:.65rem .7rem;font-size:.82rem}.gallery-card__expand{width:32px;height:32px;top:8px;right:8px}.gallery-card__expand svg{width:18px;height:18px}.gallery-load-more-wrap{padding:1.5rem 0 .2rem}.gallery-load-more{min-width:250px}.gallery-cta__inner{align-items:flex-start;flex-direction:column}}
@media(max-width:420px){.gallery-hero__title-row{gap:.6rem}.gallery-hero__camera{width:52px}.gallery-hero__description{font-size:.98rem}.gallery-grid{gap:.65rem}.gallery-card__caption{font-size:.74rem;padding:.55rem .6rem}.gallery-filter{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-card__image img,.gallery-filter,.gallery-load-more{transition:none!important}.gallery-card:hover,.gallery-filter:hover,.gallery-load-more:hover{transform:none}}


/* Gallery hero: leadership-inspired navy and gold emblem composition. */
.gallery-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,58%) minmax(0,42%);min-height:clamp(420px,34vw,520px);background:linear-gradient(112deg,#061d38 0%,#082d55 55%,#0b315b 100%);color:#fff;overflow:hidden}
.gallery-hero::after{content:"";position:absolute;z-index:5;left:-2%;right:-2%;bottom:-1px;height:42px;border-top:2px solid #f7c33d;border-radius:50% 50% 0 0 / 45% 45% 0 0;box-shadow:0 -6px 0 -4px rgba(247,195,61,.55);pointer-events:none}
.gallery-hero__copy{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:2.2rem clamp(1.5rem,5.2vw,5.5rem) 3rem max(1.5rem,calc((100vw - 1400px)/2));background:linear-gradient(115deg,rgba(4,25,49,.98),rgba(8,43,80,.92));}
.gallery-hero__copy::before,.gallery-hero__copy::after{content:"";position:absolute;border:1px solid rgba(245,195,61,.13);border-radius:50%;pointer-events:none}
.gallery-hero__copy::before{width:520px;height:520px;right:-280px;top:-390px}
.gallery-hero__copy::after{width:360px;height:360px;left:32%;bottom:-335px}
.gallery-breadcrumbs{position:relative;z-index:1;margin:0 0 clamp(1.7rem,3vw,2.7rem);font-size:.84rem;letter-spacing:.01em}
.gallery-hero__title-row{position:relative;z-index:1;display:block;max-width:760px}
.gallery-hero h1{white-space:normal;font-size:clamp(3.2rem,6.3vw,5.6rem);line-height:.99;letter-spacing:-.065em}
.gallery-hero h1 em{color:#ffc83d;font-style:normal}
.gallery-hero__description{position:relative;z-index:1;max-width:630px;margin:1.25rem 0 0;color:#e6eef8;font:500 clamp(1.05rem,1.5vw,1.34rem)/1.6 Inter,sans-serif}
.gallery-hero__button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:.85rem;align-self:flex-start;margin-top:1.7rem;padding:.85rem 1.25rem;border-radius:11px;background:#ffca43;color:#08264a;text-decoration:none;font:800 .92rem Manrope,Inter,sans-serif;box-shadow:0 10px 24px rgba(0,0,0,.16);transition:transform .2s ease,background .2s ease}
.gallery-hero__button:hover,.gallery-hero__button:focus-visible{transform:translateY(-3px);background:#ffda71;outline:2px solid #fff;outline-offset:3px}
.gallery-hero__visual{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:2rem 2rem 3rem;overflow:hidden;background:radial-gradient(circle at 52% 48%,rgba(249,197,65,.13),transparent 34%),linear-gradient(145deg,rgba(10,51,91,.35),rgba(4,26,51,.1))}
.gallery-hero__visual::before{content:"";position:absolute;z-index:0;inset:0 auto 0 -1px;width:100%;background:#ffc333;clip-path:polygon(5% 0,7.5% 0,0 100%,0 100%);opacity:.98}
.gallery-emblem-orbit{position:relative;z-index:1;width:min(32vw,390px);aspect-ratio:1;display:grid;place-items:center;isolation:isolate}
.gallery-emblem-orbit__track{position:absolute;inset:4%;border:1px dashed rgba(255,204,72,.42);border-radius:50%;pointer-events:none}
.gallery-emblem-orbit__track--one{animation:galleryOrbitSpin 42s linear infinite}
.gallery-emblem-orbit__track--two{inset:11%;border-style:solid;border-color:rgba(255,255,255,.12);animation:galleryOrbitSpin 58s linear infinite reverse}
.gallery-emblem-orbit__logo-frame{position:relative;z-index:2;width:67%;aspect-ratio:1;display:grid;place-items:center;padding:9px;border:4px solid #f5c344;border-radius:50%;background:#fff;box-shadow:0 0 0 10px rgba(255,255,255,.07),0 0 38px rgba(255,204,67,.25),0 22px 55px rgba(0,0,0,.25)}
.gallery-emblem-orbit__logo-frame img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%;background:#fff}
.gallery-orbit-icon{position:absolute;z-index:3;display:grid;place-items:center;width:52px;height:52px;border:1px solid rgba(255,204,72,.48);border-radius:15px;background:rgba(7,37,70,.88);color:#ffd05a;box-shadow:0 10px 25px rgba(0,0,0,.18);backdrop-filter:blur(8px);animation:galleryIconFloat 4.8s ease-in-out infinite}
.gallery-orbit-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gallery-orbit-icon--book{top:10%;left:4%;animation-delay:-.8s}
.gallery-orbit-icon--camera{top:12%;right:3%;animation-delay:-2s}
.gallery-orbit-icon--trophy{bottom:13%;left:5%;animation-delay:-1.5s}
.gallery-orbit-icon--spark{right:4%;bottom:12%;animation-delay:-3s}
.gallery-hero__visual-caption{position:absolute;z-index:4;bottom:2.1rem;left:50%;transform:translateX(-50%);padding:.48rem .9rem;border:1px solid rgba(255,204,72,.45);border-radius:999px;background:rgba(4,28,52,.9);color:#ffe08a;white-space:nowrap;font:800 .65rem Manrope,Inter,sans-serif;letter-spacing:.12em}
@keyframes galleryOrbitSpin{to{transform:rotate(360deg)}}
@keyframes galleryIconFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(max-width:1000px){.gallery-hero{grid-template-columns:minmax(0,56%) minmax(0,44%)}.gallery-emblem-orbit{width:min(37vw,340px)}.gallery-orbit-icon{width:46px;height:46px}}
@media(max-width:760px){.gallery-hero{grid-template-columns:1fr;min-height:0}.gallery-hero__copy{padding:1.5rem 1.3rem 1.7rem}.gallery-breadcrumbs{margin-bottom:1.5rem}.gallery-hero h1{font-size:clamp(3rem,12vw,4.2rem)}.gallery-hero__description{margin-top:1rem;font-size:1rem}.gallery-hero__button{margin-top:1.25rem}.gallery-hero__visual{min-height:300px;padding:1.2rem 1rem 3rem}.gallery-hero__visual::before{inset:0 0 auto;width:100%;height:7px;clip-path:none}.gallery-emblem-orbit{width:min(72vw,290px)}.gallery-orbit-icon{width:42px;height:42px;border-radius:13px}.gallery-orbit-icon svg{width:21px;height:21px}.gallery-hero__visual-caption{bottom:1.35rem}.gallery-hero::after{height:28px}}
@media(max-width:390px){.gallery-emblem-orbit{width:76vw}.gallery-hero__visual{min-height:270px}.gallery-hero h1{font-size:2.85rem}}
@media(prefers-reduced-motion:reduce){.gallery-emblem-orbit__track--one,.gallery-emblem-orbit__track--two,.gallery-orbit-icon{animation:none!important}.gallery-hero__button{transition:none}}


/* Gallery hero v4 — cinematic emblem motion without rotating or altering the school logo */
.gallery-hero {
  background: radial-gradient(ellipse at 73% 48%, rgba(34, 85, 135, .38), transparent 37%),
              linear-gradient(112deg, #051b34 0%, #082d55 54%, #0b315b 100%);
}
.gallery-hero__copy > * {
  animation: galleryHeroReveal .82s cubic-bezier(.2,.72,.2,1) both;
}
.gallery-hero__copy .gallery-breadcrumbs { animation-delay: .05s; }
.gallery-hero__copy .gallery-hero__title-row { animation-delay: .16s; }
.gallery-hero__copy .gallery-hero__description { animation-delay: .27s; }
.gallery-hero__copy .gallery-hero__button { animation-delay: .38s; }
.gallery-hero__visual::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -20% auto -20% -70%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(255,216,116,.12), transparent);
  transform: skewX(-18deg);
  animation: galleryHeroShimmer 10s ease-in-out infinite;
  pointer-events: none;
}
.gallery-emblem-orbit__track--pulse {
  inset: -2%;
  border: 1px solid rgba(255, 207, 92, .38);
  box-shadow: 0 0 0 12px rgba(255, 207, 92, .035), inset 0 0 28px rgba(255, 207, 92, .045);
  animation: galleryOrbitPulse 5.5s ease-in-out infinite;
}
.gallery-emblem-orbit__logo-frame {
  animation: galleryLogoGlow 5.8s ease-in-out infinite;
  will-change: box-shadow, transform;
}
.gallery-emblem-orbit__logo-frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(118deg, transparent 25%, rgba(255,255,255,.3) 48%, transparent 68%);
  transform: translateX(-150%) rotate(14deg);
  animation: galleryLogoSheen 9s ease-in-out infinite;
  pointer-events: none;
}
.gallery-orbit-icon {
  animation: galleryIconFloat 4.5s ease-in-out infinite, galleryIconGlow 6s ease-in-out infinite;
}
.gallery-orbit-icon--camera { animation-delay: -1.6s, -2.4s; }
.gallery-orbit-icon--trophy { animation-delay: -2.3s, -1.2s; }
.gallery-orbit-icon--spark { animation-delay: -3s, -3.4s; }
@keyframes galleryHeroReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes galleryHeroShimmer {
  0%, 58% { left: -70%; opacity: 0; }
  65% { opacity: .9; }
  82%, 100% { left: 145%; opacity: 0; }
}
@keyframes galleryOrbitPulse {
  0%, 100% { transform: scale(.985); opacity: .42; }
  50% { transform: scale(1.035); opacity: .95; }
}
@keyframes galleryLogoGlow {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,.07), 0 0 34px rgba(255,204,67,.23), 0 22px 55px rgba(0,0,0,.25); }
  50% { box-shadow: 0 0 0 15px rgba(255,255,255,.09), 0 0 58px rgba(255,204,67,.42), 0 22px 55px rgba(0,0,0,.25); }
}
@keyframes galleryLogoSheen {
  0%, 60% { transform: translateX(-150%) rotate(14deg); opacity: 0; }
  68% { opacity: .9; }
  82%, 100% { transform: translateX(150%) rotate(14deg); opacity: 0; }
}
@keyframes galleryIconGlow {
  0%, 100% { box-shadow: 0 10px 25px rgba(0,0,0,.18), 0 0 0 rgba(255,204,72,0); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,.2), 0 0 18px rgba(255,204,72,.19); }
}
@media (max-width: 760px) {
  .gallery-hero__visual::after { width: 48%; }
  .gallery-emblem-orbit__track--pulse { inset: -1%; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-hero__copy > *,
  .gallery-hero__visual::after,
  .gallery-emblem-orbit__track--pulse,
  .gallery-emblem-orbit__logo-frame,
  .gallery-emblem-orbit__logo-frame::after,
  .gallery-orbit-icon { animation: none !important; }
}
