/* =====================================================================
   Gallery page - clean image-led redesign
   Full campus-life page with unique visual sections and school branding.
   ===================================================================== */

.gallery-page {
  background: var(--white);
  color: var(--text);
  overflow: hidden;
}

.gallery-page * {
  box-sizing: border-box;
}

.gallery-page img {
  display: block;
  max-width: 100%;
}

.gallery-page h1,
.gallery-page h2,
.gallery-page h3,
.gallery-page p {
  margin-top: 0;
}

.gallery-page h1,
.gallery-page h2,
.gallery-page h3 {
  color: var(--navy-dark);
}

.gallery-page p {
  color: var(--muted);
  line-height: 1.7;
}

.gallery-page .section {
  padding-bottom: clamp(78px, 7vw, 118px);
  padding-top: clamp(78px, 7vw, 118px);
}

.gallery-page .lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 650;
  line-height: 1.78;
}

.gallery-page h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.gallery-kicker {
  align-items: center;
  color: var(--gold-dark);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  gap: 10px;
  letter-spacing: 1.55px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.gallery-kicker:before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  height: 3px;
  width: 28px;
}

.gallery-kicker-light {
  color: var(--gold);
}

/* ================= HERO ================= */
.gallery-hero {
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(4, 22, 42, 0.94) 0%,
      rgba(5, 39, 70, 0.84) 44%,
      rgba(14, 91, 72, 0.62) 100%
    ),
    url("../images/folder-2/DSC09633.JPG") center / cover no-repeat;
  color: var(--white);
  display: flex;
  min-height: clamp(560px, 74vh, 740px);
  overflow: hidden;
  position: relative;
}

.gallery-hero:before {
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--green-bright),
    var(--blue)
  );
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.gallery-hero-shell {
  align-items: center;
  display: flex;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

.gallery-hero-copy {
  max-width: 850px;
  padding: clamp(104px, 10vw, 150px) 0 clamp(80px, 8vw, 120px);
}

.gallery-hero .gallery-kicker {
  color: var(--gold);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.gallery-hero-copy h1 {
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.65rem, 5vw, 4.85rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 840px;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.gallery-hero .hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 1.45vw, 1.18rem);
  font-weight: 700;
  line-height: 1.72;
  margin: 0 0 32px;
  max-width: 730px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.gallery-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-hero-tags li {
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 900;
  min-height: 50px;
  padding: 12px 20px;
}

/* ================= 01 STORY NAV ================= */
.gallery-story-nav {
  background: var(--white);
  padding-bottom: clamp(46px, 5vw, 72px) !important;
  padding-top: clamp(46px, 5vw, 72px) !important;
}

.story-nav-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-nav-grid article {
  background: var(--white);
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(6, 43, 85, 0.08);
  padding: 24px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.story-nav-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.story-nav-grid span {
  color: var(--gold-dark);
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 950;
  margin-bottom: 18px;
}

.story-nav-grid article:nth-child(2) span {
  color: var(--green-dark);
}

.story-nav-grid article:nth-child(3) span {
  color: var(--blue);
}

.story-nav-grid article:nth-child(4) span {
  color: var(--coral);
}

.story-nav-grid strong {
  color: var(--navy-dark);
  display: block;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.story-nav-grid p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ================= 02 CAMPUS ================= */
.gallery-campus {
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 198, 0, 0.14), transparent 30%),
    radial-gradient(
      circle at 90% 24%,
      rgba(32, 201, 151, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #f8fbff 0%, var(--white) 100%);
}

.campus-layout {
  align-items: center;
  display: grid;
  gap: clamp(42px, 6vw, 86px);
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.campus-copy {
  max-width: 610px;
}

.campus-note {
  background: var(--white);
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-left: 5px solid var(--gold);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(6, 43, 85, 0.08);
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding: 22px 24px;
}

.campus-note strong {
  color: var(--navy-dark);
}

.campus-note span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
}

.campus-collage {
  min-height: 570px;
  position: relative;
}

.campus-main-photo,
.campus-small-photo {
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.campus-main-photo {
  border: 10px solid var(--white);
  border-radius: 38px;
  box-shadow: 0 34px 78px rgba(6, 43, 85, 0.18);
  inset: 0 88px 86px 28px;
  z-index: 2;
}

.campus-small-photo {
  border: 8px solid var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(6, 43, 85, 0.18);
  z-index: 3;
}

.campus-small-one {
  height: 210px;
  right: 0;
  top: 64px;
  width: min(330px, 46%);
}

.campus-small-two {
  bottom: 0;
  height: 220px;
  left: 0;
  width: min(370px, 54%);
}

.campus-collage img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  width: 100%;
}

.campus-collage figure:hover img {
  transform: scale(1.05);
}

.campus-collage figure:after {
  background: linear-gradient(180deg, transparent 25%, rgba(4, 31, 61, 0.82));
  content: "";
  inset: 0;
  position: absolute;
}

.campus-collage figcaption {
  bottom: 18px;
  color: var(--white);
  font-weight: 950;
  left: 20px;
  position: absolute;
  right: 20px;
  z-index: 2;
}

/* ================= 03 LABS ================= */
.gallery-labs,
.gallery-leadership {
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 198, 0, 0.15),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(32, 201, 151, 0.14),
      transparent 30%
    ),
    linear-gradient(145deg, var(--navy-dark) 0%, #062b55 56%, #073066 100%);
  color: var(--white);
}

.labs-heading,
.stage-heading,
.leadership-gallery-heading {
  display: grid;
  justify-items: center;
  margin: 0 auto clamp(34px, 4vw, 54px);
  max-width: 900px;
  text-align: center;
}

.labs-heading h2,
.labs-heading p,
.leadership-gallery-heading h2,
.leadership-gallery-heading p {
  color: var(--white);
}

.labs-heading .lead,
.leadership-gallery-heading .lead {
  color: rgba(255, 255, 255, 0.76);
  max-width: 720px;
}

.labs-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-card {
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.lab-card-feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 618px;
}

.lab-card-wide {
  grid-column: span 2;
}

.lab-card img,
.stage-tile img,
.awards-wall img,
.sports-grid img,
.leadership-photo-row img,
.community-mosaic img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  width: 100%;
}

.lab-card:hover img,
.stage-tile:hover img,
.awards-wall figure:hover img,
.sports-grid figure:hover img,
.leadership-photo-row figure:hover img,
.community-mosaic figure:hover img {
  transform: scale(1.05);
}

.lab-card:after,
.stage-tile:after,
.sports-main:after,
.leadership-photo-row figure:after,
.community-mosaic figure:after {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.02),
    rgba(4, 31, 61, 0.86)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.lab-card figcaption,
.stage-tile figcaption,
.sports-main figcaption,
.leadership-photo-row figcaption,
.community-mosaic figcaption {
  bottom: 24px;
  display: grid;
  gap: 8px;
  left: 24px;
  position: absolute;
  right: 24px;
  z-index: 2;
}

.lab-card span,
.stage-tile span,
.sports-main span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  justify-self: flex-start;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.lab-card strong,
.stage-tile strong,
.sports-main strong {
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.1;
}

/* ================= 04 ASSEMBLY ================= */
.gallery-assembly {
  background: var(--white);
}

.assembly-strip {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.assembly-flow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assembly-flow article {
  background: var(--white);
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 52px rgba(6, 43, 85, 0.09);
  overflow: hidden;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.assembly-flow article:nth-child(2) {
  transform: translateY(26px);
}

.assembly-flow article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.assembly-flow article:nth-child(2):hover {
  transform: translateY(18px);
}

.assembly-flow img {
  height: 260px;
  object-fit: cover;
  width: 100%;
}

.assembly-flow div {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 20px;
}

.assembly-flow span {
  align-items: center;
  background: rgba(255, 198, 0, 0.18);
  border-radius: 16px;
  color: var(--gold-dark);
  display: inline-flex;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.assembly-flow strong {
  color: var(--navy-dark);
}

/* ================= 05 TRANSPORT ================= */
.gallery-transport,
.gallery-awards {
  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(32, 201, 151, 0.12),
      transparent 30%
    ),
    radial-gradient(circle at 94% 8%, rgba(255, 198, 0, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--white) 100%);
}

.transport-panel {
  align-items: stretch;
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(255, 198, 0, 0.18),
      transparent 30%
    ),
    linear-gradient(140deg, var(--navy-dark), var(--navy));
  border-radius: clamp(28px, 4vw, 44px);
  box-shadow: 0 34px 84px rgba(4, 31, 61, 0.24);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  overflow: hidden;
}

.transport-photo {
  margin: 0;
  min-height: 560px;
}

.transport-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.transport-copy {
  align-self: center;
  padding: clamp(32px, 5vw, 58px);
}

.transport-copy h2,
.transport-copy p {
  color: var(--white);
}

.transport-copy .lead {
  color: rgba(255, 255, 255, 0.78);
}

.transport-mini-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.transport-mini-grid figure {
  border-radius: 22px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.transport-mini-grid img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.transport-mini-grid figcaption {
  background: rgba(4, 31, 61, 0.72);
  border-radius: 999px;
  bottom: 12px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  left: 12px;
  padding: 8px 12px;
  position: absolute;
}

/* =====================================================================
   CLEAN EQUAL CARD FIX - Cultural Stage + Student Leadership
   Paste-safe override. Keep this block at the END of gallery.css.
   ===================================================================== */

.gallery-stage,
.gallery-leadership {
  --gallery-card-height: clamp(330px, 28vw, 420px);
  --gallery-card-radius: 30px;
  --gallery-card-gap: clamp(16px, 1.8vw, 22px);
  --gallery-card-shadow: 0 24px 62px rgba(4, 31, 61, 0.18);
  --gallery-dark-filter: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.16) 0%,
    rgba(4, 31, 61, 0.34) 42%,
    rgba(4, 31, 61, 0.88) 100%
  );
}

.gallery-stage {
  padding-bottom: clamp(88px, 8vw, 128px) !important;
}

.gallery-leadership {
  padding-top: clamp(88px, 8vw, 128px) !important;
}

.stage-mosaic,
.leadership-photo-row {
  align-items: stretch;
  display: grid;
  gap: var(--gallery-card-gap);
}

/* Stage: clean 3 cards first row, 2 balanced cards second row */
.stage-mosaic {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stage-mosaic .stage-tile {
  grid-column: span 2;
}

.stage-mosaic .stage-tile:nth-last-child(-n + 2) {
  grid-column: span 3;
}

/* Remove old uneven masonry sizing */
.stage-feature,
.stage-wide {
  grid-column: span 2;
  grid-row: auto;
  min-height: 0;
}

/* Leadership: 3 equal cards */
.leadership-photo-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-tile,
.leadership-photo-row figure,
.leadership-photo-row figure:first-child {
  background: var(--navy-dark);
  border-radius: var(--gallery-card-radius);
  box-shadow: var(--gallery-card-shadow);
  height: var(--gallery-card-height);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  transform: none !important;
}

.stage-tile img,
.leadership-photo-row img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition:
    transform 0.55s ease,
    filter 0.55s ease;
  width: 100%;
}

.stage-tile:hover img,
.leadership-photo-row figure:hover img {
  transform: scale(1.055);
}

/* Same color filter on every card */
.stage-tile::after,
.leadership-photo-row figure::after {
  background: var(--gallery-dark-filter) !important;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.stage-tile figcaption,
.leadership-photo-row figcaption {
  bottom: 22px;
  color: var(--white);
  display: grid;
  gap: 8px;
  left: 22px;
  position: absolute;
  right: 22px;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  z-index: 2;
}

.stage-tile figcaption {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
}

.stage-tile strong,
.leadership-photo-row figcaption {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 950;
  line-height: 1.12;
}

.stage-tile span {
  background: rgba(255, 198, 0, 0.16);
  border: 1px solid rgba(255, 198, 0, 0.34);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  justify-self: flex-start;
  letter-spacing: 0.5px;
  padding: 7px 11px;
  text-transform: uppercase;
}

/* Tablet */
@media (max-width: 1180px) {
  .stage-mosaic,
  .leadership-photo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-mosaic .stage-tile,
  .stage-mosaic .stage-tile:nth-last-child(-n + 2),
  .stage-feature,
  .stage-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .stage-tile,
  .leadership-photo-row figure,
  .leadership-photo-row figure:first-child {
    height: 360px !important;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .stage-mosaic,
  .leadership-photo-row {
    grid-template-columns: 1fr;
  }

  .stage-tile,
  .leadership-photo-row figure,
  .leadership-photo-row figure:first-child {
    border-radius: 24px;
    height: 330px !important;
  }
}

@media (max-width: 460px) {
  .stage-tile,
  .leadership-photo-row figure,
  .leadership-photo-row figure:first-child {
    height: 300px !important;
  }
}
/* ================= 07 AWARDS ================= */
.awards-layout {
  align-items: center;
  display: grid;
  gap: clamp(36px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.gallery-awards {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 198, 0, 0.14), transparent 30%),
    linear-gradient(145deg, #071d36 0%, var(--navy-dark) 58%, #062b55 100%);
  color: var(--white);
}

.awards-copy h2,
.awards-copy p {
  color: var(--white);
}

.awards-copy .lead {
  color: rgba(255, 255, 255, 0.78);
}

.awards-wall {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.awards-wall figure {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  margin: 0;
  overflow: hidden;
}

.awards-wall figure:nth-child(2),
.awards-wall figure:nth-child(4) {
  transform: translateY(26px);
}

.awards-wall img {
  height: 260px;
}

.awards-wall figcaption {
  color: var(--white);
  font-weight: 950;
  padding: 18px 20px;
}

/* ================= 08 SPORTS ================= */
.gallery-sports {
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(255, 198, 0, 0.15),
      transparent 30%
    ),
    linear-gradient(180deg, var(--page, #f8fbff) 0%, var(--white) 100%);
}

.sports-grid {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 86px);
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.sports-main {
  border-radius: 42px;
  box-shadow: 0 34px 78px rgba(6, 43, 85, 0.18);
  height: 570px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.sports-mini-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.sports-mini-row figure {
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(6, 43, 85, 0.1);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.sports-mini-row img {
  height: 210px;
}

.sports-mini-row figcaption {
  background: rgba(4, 31, 61, 0.74);
  border-radius: 999px;
  bottom: 12px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 950;
  left: 12px;
  padding: 8px 12px;
  position: absolute;
}

/* ================= 09 LEADERSHIP ================= */
.leadership-photo-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.leadership-photo-row figure {
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  height: 460px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.leadership-photo-row figure:first-child {
  height: 540px;
}

.leadership-photo-row figcaption,
.community-mosaic figcaption {
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 950;
}

/* ================= 10 COMMUNITY ================= */
.gallery-community {
  background:
    radial-gradient(
      circle at 8% 16%,
      rgba(32, 201, 151, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #f8fbff 0%, var(--white) 100%);
}

.community-grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.community-copy {
  max-width: 620px;
}

.community-mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-mosaic figure {
  border-radius: 28px;
  box-shadow: 0 22px 56px rgba(6, 43, 85, 0.1);
  height: 260px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.community-large {
  grid-row: span 2;
  height: 536px !important;
}

/* ================= CTA ================= */
.gallery-enquiry-section {
  background: var(--white);
}

.gallery-enquiry-card {
  align-items: center;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 198, 0, 0.18),
      transparent 30%
    ),
    linear-gradient(140deg, var(--navy-dark), var(--navy));
  border-radius: 34px;
  box-shadow: 0 28px 64px rgba(4, 31, 61, 0.28);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  position: relative;
}

.gallery-enquiry-card:before {
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--green-bright),
    var(--blue)
  );
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gallery-enquiry-card h2,
.gallery-enquiry-card p {
  color: var(--white);
}

.gallery-enquiry-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  max-width: 760px;
}

.gallery-enquiry-card p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  max-width: 640px;
}

.gallery-enquiry-button {
  align-items: center;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(242, 184, 0, 0.32);
  color: var(--navy-dark);
  display: inline-flex;
  font-size: 1.04rem;
  font-weight: 950;
  justify-content: center;
  min-width: 190px;
  padding: 15px 24px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.gallery-enquiry-button:hover {
  box-shadow: 0 18px 36px rgba(242, 184, 0, 0.42);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .campus-layout,
  .assembly-strip,
  .transport-panel,
  .awards-layout,
  .sports-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .campus-copy,
  .assembly-title,
  .awards-copy,
  .sports-copy,
  .community-copy {
    max-width: 840px;
  }

  .labs-board,
  .stage-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-card-feature,
  .lab-card-wide,
  .stage-feature,
  .stage-wide {
    grid-column: span 1;
    grid-row: auto;
    min-height: 360px;
  }

  .transport-photo {
    min-height: 420px;
  }

  .leadership-photo-row {
    grid-template-columns: 1fr 1fr;
  }

  .leadership-photo-row figure:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .gallery-hero-shell,
  .gallery-hero-copy {
    text-align: center;
  }

  .gallery-hero-copy {
    margin: 0 auto;
  }

  .gallery-hero .gallery-kicker,
  .gallery-hero-tags {
    justify-content: center;
  }

  .gallery-hero .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .story-nav-grid,
  .assembly-flow,
  .awards-wall,
  .transport-mini-grid,
  .sports-mini-row,
  .leadership-photo-row,
  .community-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-enquiry-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .gallery-page .section {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .gallery-hero {
    min-height: 560px;
  }

  .gallery-hero-copy {
    padding-top: 86px;
  }

  .gallery-hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3.55rem);
  }

  .gallery-hero-tags li {
    width: 100%;
    justify-content: center;
  }

  .story-nav-grid,
  .labs-board,
  .stage-mosaic,
  .assembly-flow,
  .awards-wall,
  .transport-mini-grid,
  .sports-mini-row,
  .leadership-photo-row,
  .community-mosaic {
    grid-template-columns: 1fr;
  }

  .campus-collage {
    display: grid;
    gap: 16px;
    min-height: 0;
  }

  .campus-main-photo,
  .campus-small-photo {
    inset: auto;
    height: 320px;
    position: relative;
    width: 100%;
  }

  .campus-main-photo,
  .campus-small-photo,
  .lab-card,
  .assembly-flow article,
  .transport-panel,
  .stage-tile,
  .awards-wall figure,
  .sports-main,
  .sports-mini-row figure,
  .leadership-photo-row figure,
  .community-mosaic figure {
    border-radius: 24px;
  }

  .lab-card,
  .lab-card-feature,
  .lab-card-wide,
  .stage-tile,
  .stage-feature,
  .stage-wide,
  .sports-main,
  .leadership-photo-row figure,
  .leadership-photo-row figure:first-child,
  .community-mosaic figure,
  .community-large {
    height: 340px !important;
    min-height: 0;
  }

  .assembly-flow article:nth-child(2),
  .awards-wall figure:nth-child(2),
  .awards-wall figure:nth-child(4) {
    transform: none;
  }

  .transport-photo {
    min-height: 320px;
  }

  .transport-copy {
    padding: 28px 22px;
  }

  .gallery-enquiry-button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .story-nav-grid article,
  .campus-note,
  .transport-copy,
  .gallery-enquiry-card {
    padding: 22px;
  }

  .campus-main-photo,
  .campus-small-photo,
  .lab-card,
  .stage-tile,
  .sports-main,
  .leadership-photo-row figure,
  .community-mosaic figure {
    height: 300px !important;
  }
}

/* =====================================================================
   FINAL FIX - STUDENT LEADERSHIP ALIGNMENT ONLY
   Keep Student Leadership section. This only makes its images equal.
   Paste-safe: keep this block at the absolute end of gallery.css.
   ===================================================================== */

.gallery-leadership {
  padding-top: clamp(88px, 8vw, 128px) !important;
  padding-bottom: clamp(88px, 8vw, 128px) !important;
}

.gallery-leadership .leadership-photo-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(16px, 1.8vw, 22px) !important;
  align-items: stretch !important;
}

.gallery-leadership .leadership-photo-row figure,
.gallery-leadership .leadership-photo-row figure:first-child {
  grid-column: auto !important;
  width: 100% !important;
  height: clamp(360px, 28vw, 440px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  position: relative !important;
  transform: none !important;
  background: var(--navy-dark);
  box-shadow: 0 24px 62px rgba(4, 31, 61, 0.18) !important;
}

.gallery-leadership .leadership-photo-row img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.01);
  transition: transform 0.55s ease;
}

.gallery-leadership .leadership-photo-row figure:hover img {
  transform: scale(1.055);
}

.gallery-leadership .leadership-photo-row figure::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.16) 0%,
    rgba(4, 31, 61, 0.34) 42%,
    rgba(4, 31, 61, 0.88) 100%
  ) !important;
}

.gallery-leadership .leadership-photo-row figcaption {
  position: absolute !important;
  left: 22px !important;
  right: 22px !important;
  bottom: 22px !important;
  z-index: 2 !important;
  color: var(--white) !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem) !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

@media (max-width: 900px) {
  .gallery-leadership .leadership-photo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gallery-leadership .leadership-photo-row figure,
  .gallery-leadership .leadership-photo-row figure:first-child {
    height: 360px !important;
  }
}

@media (max-width: 680px) {
  .gallery-leadership .leadership-photo-row {
    grid-template-columns: 1fr !important;
  }

  .gallery-leadership .leadership-photo-row figure,
  .gallery-leadership .leadership-photo-row figure:first-child {
    border-radius: 24px !important;
    height: 330px !important;
  }
}

@media (max-width: 460px) {
  .gallery-leadership .leadership-photo-row figure,
  .gallery-leadership .leadership-photo-row figure:first-child {
    height: 300px !important;
  }
}
