/* ============================================================
   SKYTOP TENTS — v3
   Sky-blue brand. Flat ink/canvas/sky-blue. Rectangular UI.
   Palette derived from the Skytop ridge logo.
   Type: Oswald (display) + Source Sans 3 (body)
   ============================================================ */

:root {
  --ink: #143b5e;          /* deep sky-navy — headers, hero, dark bands */
  --ink-2: #1f4e79;        /* logo deep blue — secondary / hover */
  --canvas: #ffffff;
  --paper: #f1f5f9;        /* cool off-white */
  --marigold: #2f6da3;     /* primary accent / CTA — sky blue */
  --marigold-deep: #235e8f;/* accent text on light backgrounds */
  --sky: #4a8dc4;          /* lighter sky for highlights */
  --sky-light: #a8cce6;    /* pale sky tint */
  --green: #157f3f;        /* accessible green — white text passes WCAG AA (was #1fa855, 3.08:1) */
  --line: #d6e0ea;         /* cool hairline */
  --line-dark: #2c4d6b;
  --accent-on-dark: #7fb3e0;/* lighter sky — accent/emphasis that passes contrast on the navy bands */
  --text: #28333e;
  --muted: #5f6b78;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* <picture> acts transparently so the inner <img> stays the grid/flex child */
picture { display: contents; }

/* Visually-hidden skip link that appears on keyboard focus */
.skip-link {
  position: absolute; left: 12px; top: -52px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
  font-weight: 700; text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 {
  font-family: "Oswald", "Source Sans 3", sans-serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.015em; }
h3 { font-size: 1.1rem; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
/* Wider container for media-heavy sections (gallery) so they don't stay
   pinned to the 1100px reading column on large desktops. */
.wrap-wide { max-width: 1500px; margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
section.tight { padding: 44px 0; }

.kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--marigold-deep); margin-bottom: 12px;
}
.lede { font-size: 1.05rem; color: var(--muted); max-width: 620px; }
.hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- buttons: rectangular, decisive ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 4px;
  font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid #5b8fc9; outline-offset: 2px; }
.btn-gold { background: var(--marigold); color: #fff; border-color: var(--marigold); }
.btn-gold:hover { background: #3a82bd; border-color: #3a82bd; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-line-light:hover { border-color: #fff; }
.btn-wa { background: var(--green); color: #fff; border-color: var(--green); }
.btn-wa:hover { background: #1a934c; border-color: #1a934c; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.05); }
.topline {
  background: var(--ink-2); color: rgba(255,255,255,0.85);
  font-size: 0.8rem; padding: 7px 0; text-align: center; font-weight: 600;
}
.topline strong { color: var(--accent-on-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 14px 22px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Oswald", sans-serif; font-weight: 800;
  font-size: 1.22rem; color: #fff; text-decoration: none;
}
.logo .logo-mark { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-on-dark); }
.nav-links a:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #fff; text-decoration: none; font-size: 0.95rem; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 9px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.menu-btn svg { width: 26px; height: 26px; stroke: #fff; }
.menu-btn:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }

@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-direction: column; align-items: flex-start; padding: 18px 22px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; width: 100%; padding: 10px 0; } /* ≥44px tap targets in the drawer */
  .menu-btn { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

/* ---------- hero: flat ink, ridge line drawing ---------- */
.hero { background: var(--ink); color: #fff; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px;
  align-items: start; padding: 64px 0 72px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero .lede { color: rgba(255,255,255,0.75); margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { list-style: none; display: grid; gap: 9px; border-top: 1px solid var(--line-dark); padding-top: 20px; max-width: 480px; }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; font-size: 0.93rem; color: rgba(255,255,255,0.85); }
.hero-facts li::before { content: "—"; color: var(--marigold); font-weight: 800; }
.ridgeline { position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none; opacity: 0.35; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 60px; } }

/* ---------- quote form ---------- */
.panel { background: #fff; border: 1px solid var(--line); padding: 24px; }
.hero .panel { border: none; box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.panel h3 { margin-bottom: 4px; }
.panel .sub { font-size: 0.87rem; color: var(--muted); margin-bottom: 16px; }
.qform { display: grid; gap: 12px; }
.qform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qform label { font-size: 0.8rem; font-weight: 800; color: var(--ink); display: grid; gap: 5px; letter-spacing: 0.02em; }
.qform input, .qform select, .qform textarea {
  min-width: 0;
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 3px;
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--text);
}
.qform input:focus, .qform select:focus, .qform textarea:focus {
  outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(47,109,163,0.22);
}
.qform .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.qform .fine { font-size: 0.78rem; color: var(--muted); text-align: center; }
.form-status { margin-top: 12px; padding: 11px 14px; border-radius: 4px; font-size: 0.9rem; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { background: #e6f4ec; color: #15803d; border: 1px solid #b7e0c6; }
.form-status.err { background: #fdecec; color: #b42318; border: 1px solid #f3c2bd; }
/* Collapse paired fields/buttons earlier (large phones) so they stop colliding */
@media (max-width: 640px) { .qform .row, .qform .actions { grid-template-columns: 1fr; } }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto; }
.trust-item {
  padding: 18px 22px; font-size: 0.88rem; font-weight: 700; color: var(--ink);
  border-left: 1px solid var(--line); display: grid; gap: 2px;
}
.trust-item:first-child { border-left: none; }
.trust-item span { font-weight: 600; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-top: none; }
}

/* ---------- photo placeholders that read as photo slots ---------- */
.photo {
  background: #e9e7e1 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" fill="none" stroke="%23b9b6ad" stroke-width="1.6"><rect x="3" y="5" width="18" height="14" rx="1"/><circle cx="9" cy="10" r="1.6"/><path d="M21 16l-5-5-9 8"/></svg>') no-repeat center;
  position: relative; min-height: 280px;
}
.photo::after {
  content: attr(data-label);
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 10px; text-transform: uppercase;
}

/* ---------- service rows (replaces card grid) ---------- */
.svc { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 30px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.svc-row .photo { min-height: 170px; width: 100%; }
.svc-row h3 { font-size: 1.3rem; margin-bottom: 6px; }
.svc-row h3 .pa { color: var(--marigold-deep); }
.svc-row p { color: var(--muted); font-size: 0.96rem; max-width: 520px; }
.svc-row .go { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 0.95rem; }
.svc-row:hover .go { color: var(--marigold-deep); }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- spec table: the signature ---------- */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.spec th {
  background: var(--ink); color: #fff; text-align: left; padding: 12px 16px;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.spec td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:nth-child(even) td { background: var(--paper); }
.spec td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.spec .tag {
  display: inline-block; background: #e3eef7; color: var(--marigold-deep);
  font-size: 0.75rem; font-weight: 800; padding: 2px 8px; margin-left: 8px;
}
.spec-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* ---------- included list ---------- */
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin-top: 28px; }
.inc { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.inc strong { display: block; color: var(--ink); font-size: 0.98rem; }
.inc span { color: var(--muted); font-size: 0.9rem; }
.inc .dot { width: 8px; height: 8px; background: var(--marigold); margin-top: 8px; flex: none; }
@media (max-width: 900px) { .inc-grid { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 28px; }
.step { padding: 26px 24px; border-left: 1px solid var(--line); }
.step:first-child { border-left: none; }
.step .n { font-family: "Oswald", sans-serif; font-weight: 800; font-size: 0.85rem; color: var(--marigold-deep); letter-spacing: 0.1em; }
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
}

/* ---------- reviews: plain quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 30px; }
.quote { border-top: 3px solid var(--marigold); padding-top: 16px; }
.quote p { font-size: 0.97rem; color: var(--text); }
.quote .who { display: block; margin-top: 12px; font-size: 0.83rem; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- area ---------- */
.area-list { columns: 3; margin-top: 24px; font-size: 0.95rem; color: var(--text); }
.area-list li { list-style: none; padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.area-list li.home { font-weight: 800; color: var(--ink); }
@media (max-width: 700px) { .area-list { columns: 2; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 28px; }
details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
details summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.25rem; color: var(--marigold-deep); flex: none; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; max-width: 640px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 10px 0 24px; max-width: 540px; }

/* ---------- footer ---------- */
footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { color: var(--ink); font-size: 0.92rem; margin-bottom: 12px; }
.foot-grid a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 8px; font-size: 0.92rem; }
.foot-grid a:hover { color: var(--marigold-deep); }
.foot-logo { display: flex; align-items: center; gap: 9px; font-family: "Oswald", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-bottom: 10px; }
.foot-logo .foot-mark { height: 22px; width: auto; }
.foot-note { font-size: 0.86rem; max-width: 300px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  footer { padding-bottom: 96px; } /* clear the sticky mobile call bar */
}
.foot-grid a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; font-weight: 800; font-size: 1rem; text-decoration: none;
}
.callbar .c-call { background: var(--ink); color: #fff; }
.callbar .c-wa { background: var(--green); color: #fff; }
.callbar svg { width: 19px; height: 19px; }
@media (max-width: 900px) { .callbar { display: grid; } }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 56px 0 64px; position: relative; }
.page-hero h1 { color: #fff; max-width: 720px; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page-hero .lede { color: rgba(255,255,255,0.75); margin-top: 16px; }
.page-hero .hero-actions { margin-top: 26px; margin-bottom: 0; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.list { list-style: none; display: grid; gap: 0; margin-top: 18px; }
.list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.list li::before { content: ""; width: 8px; height: 8px; background: var(--marigold); margin-top: 8px; flex: none; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  /* Cap tall portrait photos so they don't dominate the mobile viewport */
  .split .ph-img { max-height: 360px; }
}

.pa-inline { color: var(--marigold-deep); font-weight: 800; }

/* ---------- photo heroes (v3) — real Skytop photos ---------- */
.hero-home {
  background:
    linear-gradient(100deg, rgba(13,38,61,0.92) 0%, rgba(13,38,61,0.72) 55%, rgba(13,38,61,0.55) 100%),
    url('images/hero-home-1600.jpg'),
    #143b5e;
  background-size: cover; background-position: center;
}
.page-hero { background-size: cover; background-position: center; }
.ph-wed {
  background:
    linear-gradient(100deg, rgba(13,38,61,0.9) 0%, rgba(13,38,61,0.68) 60%, rgba(13,38,61,0.5) 100%),
    url('images/hero-weddings-1600.jpg'), #143b5e;
  background-size: cover; background-position: center;
}
.ph-corp {
  background:
    linear-gradient(100deg, rgba(13,38,61,0.9) 0%, rgba(13,38,61,0.68) 60%, rgba(13,38,61,0.5) 100%),
    url('images/hero-corporate-1600.jpg'), #143b5e;
  background-size: cover; background-position: center;
}
.ph-yard {
  background:
    linear-gradient(100deg, rgba(13,38,61,0.9) 0%, rgba(13,38,61,0.68) 60%, rgba(13,38,61,0.5) 100%),
    url('images/hero-backyard-1600.jpg'), #143b5e;
  background-size: cover; background-position: center;
}
/* Smaller hero files on phones */
@media (max-width: 800px) {
  .hero-home {
    background:
      linear-gradient(100deg, rgba(13,38,61,0.92) 0%, rgba(13,38,61,0.72) 55%, rgba(13,38,61,0.55) 100%),
      url('images/hero-home-800.jpg'), #143b5e;
    background-size: cover; background-position: center;
  }
  .ph-wed {
    background:
      linear-gradient(100deg, rgba(13,38,61,0.9) 0%, rgba(13,38,61,0.68) 60%, rgba(13,38,61,0.5) 100%),
      url('images/hero-weddings-800.jpg'), #143b5e;
    background-size: cover; background-position: center;
  }
  .ph-corp {
    background:
      linear-gradient(100deg, rgba(13,38,61,0.9) 0%, rgba(13,38,61,0.68) 60%, rgba(13,38,61,0.5) 100%),
      url('images/hero-corporate-800.jpg'), #143b5e;
    background-size: cover; background-position: center;
  }
  .ph-yard {
    background:
      linear-gradient(100deg, rgba(13,38,61,0.9) 0%, rgba(13,38,61,0.68) 60%, rgba(13,38,61,0.5) 100%),
      url('images/hero-backyard-800.jpg'), #143b5e;
    background-size: cover; background-position: center;
  }
}
.ph-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; border: 1px solid var(--line); }
.svc-row .ph-img { min-height: 170px; max-height: 190px; }


/* ============================================================
   MOBILE HARDENING (iOS Safari fixes)
   ============================================================ */

/* Inputs at 16px stop iOS Safari's auto-zoom on focus */
@media (max-width: 900px) {
  .qform input, .qform select, .qform textarea { font-size: 16px; }
  section { padding: 48px 0; }
  section.tight { padding: 38px 0; }
  .hero-grid { padding: 100px 0 56px; }
  .page-hero { padding: 100px 0 52px; }
}

/* Small phones: stop the nav row from overflowing, full-width CTAs */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .nav-phone { display: none; } /* sticky call bar covers calling on mobile */
  .logo { font-size: 1.1rem; }
  .topline { font-size: 0.72rem; padding: 6px 12px; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .panel { padding: 18px 16px; }
  .cta-band { text-align: center; }
  .cta-band .hero-actions { align-items: stretch; }
  .quotes { gap: 26px; }
  .foot-bottom { flex-direction: column; }
}

/* Make sure long words/URLs never force overflow */
h1, h2, h3, p, a, li, td, th { overflow-wrap: break-word; }

/* ============================================================
   GALLERY
   Responsive CSS grid: columns grow with the viewport (auto-fill),
   left-to-right DOM order preserved, uniform tiles via aspect-ratio.
   Lives in .wrap-wide so it spreads on large desktops instead of
   being pinned to the 1100px text column.
   ============================================================ */
.gal-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gal-grid a {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line); background: var(--paper);
}
.gal-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease, opacity 0.3s ease;
}
.gal-grid a:hover img { transform: scale(1.05); opacity: 0.96; }
.gal-grid a:focus-visible { outline: 3px solid #5b8fc9; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .gal-grid img { transition: none; }
  .gal-grid a:hover img { transform: none; }
}
@media (max-width: 540px) {
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

.gal-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.gal-videos video { width: 100%; display: block; border: 1px solid var(--line); background: #000; aspect-ratio: 9 / 16; object-fit: cover; }
.gal-videos figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 700px) { .gal-videos { grid-template-columns: 1fr; } .gal-videos video { aspect-ratio: auto; } }

/* Homepage gallery teaser strip */
.gal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.gal-strip a { display: block; border: 1px solid var(--line); }
.gal-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.gal-strip a:hover img { opacity: 0.92; }
@media (max-width: 700px) { .gal-strip { grid-template-columns: 1fr 1fr; } }

/* Lightbox */
.lightbox { border: none; padding: 0; background: transparent; max-width: min(94vw, 1500px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(13,38,61,0.88); }
.lightbox img { max-width: min(94vw, 1500px); max-height: 88vh; width: auto; height: auto; display: block; margin: 0 auto; }
.lightbox .lb-close {
  position: absolute; top: 8px; right: 8px;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 10px 13px; font-weight: 800;
}
.lightbox .lb-close:focus-visible { outline: 3px solid #5b8fc9; }
