/* Marcellus = headings (same as the home page headings) */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");

/* =========================================================================
   Gallery > Photo Gallery
   Orange + navy + gold, same structure as the other redesigned pages.
   Scoped under .gallery-page (class names use the gl- prefix so they do not
   clash with the Transport page's .gallery-item rules).

   Typography matches the home page (colours unchanged):
     main headings = Marcellus, capitals, weight 400, underline
     paragraphs    = var(--font-body), weight 400 + 0.15px stroke
   ========================================================================= */

.gallery-page {
  --gl-navy: #0B2F5B;
  --gl-orange: #E8790E;
  --gl-gold: #FFC400;
  --gl-blue: #1667B0;
  --gl-green: #1F8A5B;
  --gl-red: #D32F2F;
  --gl-purple: #7B3FA0;
  --gl-soft: var(--ink-soft, #555);
  background: #fff;
}

/* ---------- Banner placeholder (1920 x 600) ---------- */
.gallery-page .gl-hero {
  position: relative;
  width: 100%;
  height: clamp(260px, 31.25vw, 600px);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0B2F5B 0%, #E8790E 100%);
}
.gl-hero-img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.gl-hero-ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center; color: #fff;
}
.gl-hero-ph i { font-size: 3.8rem; color: var(--gl-gold); }
.gl-hero-ph b { font-size: 1.6rem; }
.gl-hero-ph span { font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); }
.gl-hero-ph code {
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px; border-radius: 6px; font-size: 0.92rem;
}

/* ---------- Intro: breadcrumb on its own line, title below ---------- */
.gallery-page .gl-intro { padding: 56px 0 48px; text-align: center; }
.gl-crumbs {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem; font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--gl-soft);
  margin-bottom: 20px;
}
.gl-crumbs i { font-size: 0.65rem; }
.gl-crumbs a:hover { color: var(--gl-orange); }
.gl-crumbs span { color: var(--gl-red); }

/* Title: same font / size / weight as the home-page headings, with underline */
.gl-title {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400; line-height: 1.15; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gl-navy);
  padding-bottom: 4px;
  border-bottom: 3px solid var(--gl-navy);   /* underline = text width */
}
.gl-tagline {
  margin: 26px auto 0; max-width: 800px;
  font-family: var(--font-body);
  font-size: 1.22rem; font-weight: 400; line-height: 1.9;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--gl-orange);
}

/* ---------- Photo grid ---------- */
.gallery-page .gl-grid-section { padding: 80px 0 100px; background: #FFF3E3; }
.gallery-page .gl-head { max-width: 840px; margin: 0 auto 48px; text-align: center; }
.gallery-page .gl-head h2 {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400; line-height: 1.15; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gl-navy);
  margin: 0; padding: 0 0 4px;
  border: 0;
  border-bottom: 3px solid var(--gl-navy);   /* underline = text width */
}

/* Each section: heading on the LEFT, photos on the RIGHT */
.gl-block {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start;
  padding: 44px 0;
  border-top: 2px dashed rgba(11, 47, 91, 0.18);
}
.gl-block:first-of-type { border-top: 0; padding-top: 8px; }
.gl-block-head { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.gl-block-icon {
  width: 62px; height: 62px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gl-navy); color: var(--gl-gold); font-size: 1.5rem;
  box-shadow: 0 14px 26px -14px rgba(11, 47, 91, 0.7);
}
.gl-block-head h3 {
  margin: 0; padding: 0 0 6px; border: 0;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--gl-navy);
  border-bottom: 3px solid var(--gl-orange);
}

/* Photos: every line has one height; widths follow each photo's own ratio (--gr) */
.gl-block-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gl-row { display: flex; gap: 16px; align-items: stretch; }
.gl-item {
  --c: var(--gl-orange);
  position: relative; overflow: hidden; margin: 0;
  flex: var(--gr) 1 0; min-width: 0;
  aspect-ratio: var(--ar);
  border-radius: 18px;
  border: 5px solid #fff;
  background: linear-gradient(135deg, #fff, #FFF3C4);
  box-shadow: 0 24px 48px -26px rgba(11, 47, 91, 0.55);
}
.gl-item img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.gl-item:hover img { transform: scale(1.06); }
.gl-item:has(img:not([style*="none"])) { cursor: zoom-in; }

/* School Gallery: 8 squares, 4 per line */
.gl-squares .gl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gl-squares .gl-item { flex: none; }

/* Placeholder tiles */
.gl-ph {
  position: absolute; inset: 10px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 8px; overflow: hidden;
  border: 2px dashed #F0BF8C; border-radius: 12px; color: var(--gl-navy);
}
.gl-ph i { font-size: 2rem; color: var(--c); opacity: 0.85; }
.gl-ph b { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.gl-ph .gl-size {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--gl-red);
}
.gl-ph .gl-file {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor; color: var(--gl-soft); word-break: break-all;
}

/* ---------- Video gallery link band ---------- */
.gallery-page .gl-cta {
  position: relative; overflow: hidden;
  padding: 70px 0;
  background: linear-gradient(135deg, #0B2F5B 0%, #0F4C8A 100%);
}
.gl-cta::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: 320px; height: 320px; top: -130px; right: -80px;
  border: 28px solid rgba(255, 196, 0, 0.22);
}
.gl-cta .container { position: relative; z-index: 2; }
.gl-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Small label = the main heading (gold, Marcellus, underline), same idea as the home page */
.gl-cta-eyebrow {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400; line-height: 1.15; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gl-gold);
  padding: 0 0 4px; margin: 0 0 22px;
  border-bottom: 3px solid var(--gl-gold);   /* underline = text width */
}
.gl-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em;
  color: #fff; margin: 0; border: 0; padding: 0;
}
.gl-cta .btn { font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gl-block { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
  .gl-block-head { position: static; flex-direction: row; align-items: center; gap: 14px; }
  .gl-block-icon { width: 50px; height: 50px; font-size: 1.2rem; }
}
@media (max-width: 700px) {
  .gallery-page .gl-intro { padding: 40px 0 36px; }
  .gallery-page .gl-grid-section { padding: 56px 0 70px; }
  .gallery-page .gl-head { margin-bottom: 32px; }
  .gallery-page .gl-cta { padding: 52px 0; }
  .gl-tagline { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .gl-row { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
  .gl-row .gl-item { flex: 1 1 calc(50% - 6px); }
  .gl-row .gl-item:only-child { flex-basis: 100%; }
  .gl-squares .gl-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gl-ph .gl-file { display: none; }
  .gl-cta-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Empty state + lightbox (photos come from the Admin Panel) ---------- */
.gl-empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; font-size: 1.2rem; color: var(--gl-soft); }
.gl-empty i { margin-right: 8px; color: var(--gl-orange); }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 12, 28, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(94vw, 1300px); max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lb-cap { color: #fff; font-size: 1.1rem; text-align: center; margin: 0; }
.lb-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #fff; color: #111; font-size: 1.2rem; cursor: pointer;
}