/* GMT Film. Layout and type follow the Squarespace site captured 12 Oct 2026
   (see ../../photo-site-archive/SITE-DOCUMENTATION.md). Desktop above 800px, mobile below. */

:root {
  --font: "Figtree", "Proxima Nova", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
  --text: #666;
  --ink: #121212;
  --link: #1f1f1f;
  --current: #a3a3a3;
  --muted: #949494;
  --rule: #bbb;
  --sidebar-left: 50px;
  --sidebar-width: 180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 14px; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Sidebar (desktop) ---------- */

.site-header {
  position: fixed;
  top: 50px;
  left: var(--sidebar-left);
  width: var(--sidebar-width);
  z-index: 10;
}

.site-title {
  display: inline-block;
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #000;
}

.tagline {
  margin: 6px 0 30px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #aaa;
}

.nav ul { list-style: none; margin: 0; padding: 0; }

.nav-galleries a {
  display: block;
  padding: 3.2px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--link);
}

.nav-pages { margin-top: 20px !important; }

.nav-pages a {
  display: block;
  padding: 2.6px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--link);
}

.nav a[aria-current] { color: var(--current); }
.nav a:hover { color: var(--current); }

.menu-toggle, .mobile-nav { display: none; }

/* ---------- Content pages ---------- */

.page { padding: 50px 97px 80px 300px; }

.page h1 {
  margin: 0 0 26px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Home: feature cards, text left and image right */

.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.card-text { padding: 10%; }

.card h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 2.97vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: #000;
}

.card-text p {
  margin: 0;
  font-size: 14.08px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--muted);
}

.card-image { align-self: start; }
.card-image img { width: 100%; }

.page hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--rule);
}

/* Contact form */

.contact-form { margin-top: 34px; }

.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.field { display: block; margin: 0 0 28px; }

.field-title, .contact-form legend {
  display: block;
  padding: 0 0 4px;
  line-height: 20px;
  color: var(--ink);
}

.contact-form legend { padding: 0; margin-bottom: 3px; }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-row .field { margin-bottom: 0; }
.contact-form .name-group { margin-bottom: 28px; }

.caption { display: block; font-size: 11.2px; line-height: 16px; color: var(--text); }
.required { font-size: 12px; color: var(--text); margin-left: 3px; }

.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  line-height: 16px;
  letter-spacing: inherit;
}

.contact-form textarea { height: 100px; resize: vertical; }

.contact-form .trap { position: absolute; left: -5000px; }

.button {
  display: inline-block;
  padding: 14px 35px;
  border: 0;
  border-radius: 0;
  background: #272727;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover { background: #000; }
.button[disabled] { opacity: 0.6; cursor: default; }

.form-status { margin-top: 20px; color: var(--ink); }
.form-status:empty { display: none; }

/* ---------- Gallery grid ---------- */

.gallery { padding: 40px 50px 90px 290px; }

.grid { position: relative; }

.tile {
  display: block;
  background: rgba(175, 175, 175, 0.1);
}

.tile img { width: 100%; transition: opacity 0.2s; }
.tile:hover img { opacity: 0.9; }
.tile-title { display: none; }

/* Without the layout script, tiles simply stack. */
.grid:not(.is-masonry) .tile + .tile { margin-top: 10px; }
.grid.is-masonry .tile { position: absolute; }
.grid.is-masonry .tile img { height: 100%; object-fit: cover; }

/* ---------- Single photo view ---------- */

.photo-stage {
  position: fixed;
  top: 40px;
  right: 40px;
  bottom: 40px;
  left: 280px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.zones { position: absolute; inset: 0; display: flex; }
.zones a { flex: 1; }
.zones .zone-thumbs { flex: 0 0 20%; }
.zones .zone-prev { cursor: w-resize; }
.zones .zone-next { cursor: e-resize; }
.zones .zone-thumbs { cursor: zoom-out; }

.photo-meta {
  position: fixed;
  left: var(--sidebar-left);
  bottom: 50px;
  width: var(--sidebar-width);
  z-index: 11;
}

.photo-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.photo-controls, .thumbs-link {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-controls { color: #222; }
.thumbs-link { margin-top: 15px; color: var(--text); }
.photo-controls a:hover, .thumbs-link a:hover { color: var(--current); }

/* ---------- Mobile (under 800px) ---------- */

@media (max-width: 799px) {
  .site-header {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 20px 20px 34px;
  }

  .tagline { margin-bottom: 0; }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
    border: 0;
    background: none;
    color: var(--current);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
  }

  .site-header .nav { display: none; }

  .mobile-nav {
    padding: 28px 0 30px;
    background: var(--current);
    text-align: center;
  }

  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }

  .mobile-nav a {
    display: block;
    padding: 3.6px;
    font-size: 18px;
    font-weight: 500;
    line-height: 45px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.7);
  }

  .mobile-nav a[aria-current] { color: #fff; }

  /* No JavaScript: show the menu under the title instead. */
  .no-js .menu-toggle { display: none; }
  .no-js .site-header .nav { display: block; margin-top: 20px; }

  .page { padding: 37px 20px 60px; }

  .card { grid-template-columns: 1fr; }
  .card-image { order: -1; }
  .card h2 { margin-bottom: 21px; font-size: 29px; }
  .card-text p { font-size: 13px; }

  .name-row { grid-template-columns: 1fr; gap: 28px; }

  .gallery { padding: 20px 20px 60px; }
  .grid .tile { background: none; }
  .grid:not(.is-masonry) .tile + .tile { margin-top: 20px; }
  .tile-title { display: block; margin-top: 7px; font-weight: 700; }

  .photo-stage { position: static; display: block; padding: 20px 20px 0; }
  .photo-stage img { width: 100%; max-height: none; }
  .zones { display: none; }
  .photo-meta { position: static; width: auto; padding: 14px 20px 60px; }
}
