/* IncrediFielders — shared styles (replaces Freeway table layout) */
:root {
  --blue: #647ec3;
  --blue-dark: #4b63a6;
  --blue-light: #e8edf8;
  --ink: #222;
  --muted: #555;
  --page-max: 1000px;
  --font: Optima, "Optima Nova", Candara, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f3f5fa;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 50;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Page frame ---------- */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  background: #fff;
  border-left: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  min-height: 100vh;
}

.banner { display: block; background: var(--blue); }
.banner img { width: 100%; }

.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--blue);
  color: #fff;
  padding: 18px 14px 24px;
}

.menu-toggle { display: none; }

.nav-group + .nav-group { margin-top: 26px; }

.nav-heading {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255,255,255,0.8);
  text-align: center;
}
.nav-heading a { color: #fff; text-decoration: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 4px; }

.site-nav ul a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
}
.site-nav ul a:hover,
.site-nav ul a:focus-visible { background: rgba(255,255,255,0.18); }
.site-nav ul a[aria-current="page"] {
  background: #fff;
  color: var(--blue-dark);
  font-weight: bold;
}


/* ---------- Main content ---------- */
main { padding: 28px 32px 40px; min-width: 0; }

.intro { font-size: 18px; margin: 0 0 24px; }
.intro .name { color: var(--blue); }
.accent { color: var(--blue); }

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: bold;
}

/* Trip page heading: original title graphic flanked by icons */
.trip-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 24px;
}
.trip-heading .icon { width: auto; max-height: 60px; flex: 0 1 auto; }
.trip-heading .title { flex: 0 1 auto; min-width: 0; max-height: 67px; width: auto; }
.sr-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* ---------- Photo gallery ---------- */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gallery.large { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--blue-light);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}
.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.04); opacity: .9; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--blue);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 14px 16px 20px;
}

/* ---------- Photo viewer (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 28, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 84vh;
  max-height: 84dvh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.lb-btn {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,0.3); }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  color: #ddd;
  font-size: 15px;
  pointer-events: none;
}
body.lb-lock { overflow: hidden; }

/* ---------- Phone & small tablet ---------- */
@media (max-width: 760px) {
  body { background: #fff; font-size: 16px; }
  .page { border: 0; }
  .layout { display: block; }

  .site-nav { padding: 0; position: sticky; top: 0; z-index: 20; }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: 0;
    font: inherit;
    font-size: 17px;
    font-weight: bold;
    padding: 12px 16px;
    cursor: pointer;
  }
  .menu-toggle .bars,
  .menu-toggle .bars::before,
  .menu-toggle .bars::after {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    content: "";
  }
  .menu-toggle .bars::before { position: absolute; top: -7px; }
  .menu-toggle .bars::after { position: absolute; top: 7px; }
  .menu-toggle .current { margin-left: auto; font-weight: normal; opacity: .9; }

  .nav-panel {
    display: none;
    padding: 6px 16px 20px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .site-nav.open .nav-panel { display: block; }
  .no-js .nav-panel { display: block; }

  .nav-group + .nav-group { margin-top: 18px; }
  .nav-heading { text-align: left; }
  .site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .site-nav li + li { margin-top: 0; }
  .site-nav ul a { text-align: left; padding: 10px 12px; background: rgba(255,255,255,0.1); }

  main { padding: 20px 16px 32px; }
  .intro { font-size: 17px; }
  h1 { font-size: 24px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery.large { grid-template-columns: 1fr; }

  .trip-heading { gap: 8px; }
  .trip-heading .icon { max-height: 40px; max-width: 18%; }

  .lb-prev, .lb-next { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); transform: none; }
  .lb-count { bottom: max(68px, calc(env(safe-area-inset-bottom) + 60px)); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
}

/* ---------- Team-member photo collage (recreates the original Freeway look) ---------- */
.collage-wrap {
  margin: 0;
  padding: 10px 6px 14px;
  background: #fff;
  border: 1px solid #dfe5f3;
  border-radius: 10px;
}
.gallery.collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.gallery.collage li {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery.collage a {
  display: block;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
  line-height: 0;
}
.gallery.collage img {
  width: auto;
  height: auto;
  max-width: 234px;
  max-height: 234px;
  object-fit: contain;
  border: 3px solid #637ea0;
  box-shadow: 0 0 1px #aaa;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gallery.collage a:hover img,
.gallery.collage a:focus-visible img {
  border-color: #fdc253;
  box-shadow: 0 0 4px #888;
  transform: none;
  opacity: 1;
}
.collage-wrap figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
@media (hover: none) {
  .collage-wrap figcaption { font-size: 13px; }
}
@media (max-width: 760px) {
  .collage-wrap { padding: 6px 2px 10px; }
  .gallery.collage li { width: 50%; padding: 6px; }
  .gallery.collage img { max-width: 100%; max-height: 190px; }
}

/* Home page: the original used slightly larger framed photos */
.gallery.collage.home img { max-width: 261px; max-height: 261px; }
@media (max-width: 760px) {
  .gallery.collage.home img { max-width: 100%; max-height: 200px; }
}

/* ---------- "Coming Soon" placeholder pages ---------- */
.cs-name { color: var(--blue); margin-bottom: 20px; }
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 260px;
  padding: 40px 20px;
  border-radius: 12px;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border: 3px solid #637ea0;
  box-shadow: 0 2px 10px rgba(75, 99, 166, 0.25);
}
.coming-soon .cs-text {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.coming-soon .cs-text::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 14px auto 0;
  background: #fdc253;
  border-radius: 2px;
}
.coming-soon .cs-sub { font-size: 17px; opacity: 0.92; max-width: 32em; }
@media (max-width: 760px) {
  .coming-soon { min-height: 200px; padding: 30px 16px; }
  .coming-soon .cs-text { font-size: 34px; }
  .coming-soon .cs-sub { font-size: 15px; }
}
