:root {
  --bg: #ffffff;
  --ink: #161616;
  --muted: #666666;
  --line: #ececec;
  --accent: #bc0000;
  --max: 1280px;
  --site-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--site-font);
  font-weight: 300;
  line-height: 1.32;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }

button, input, textarea, select {
  font-family: var(--site-font);
  font-weight: 300;
}
strong, b { font-weight: 300; }
.site-header {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 0;
  text-align: center;
}
.brand { display: inline-block; text-decoration: none; }
.brand img { width: 142px; height: auto; margin: 0 auto; }
.main-nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--site-font);
  font-size: 16px;
  letter-spacing: .025em;
  text-transform: uppercase;
  font-weight: 300;
}
.main-nav a {
  color: #555555;
  text-decoration: none;
  font-weight: 300;
}
.main-nav a[aria-current="page"],
.main-nav a:hover { color: var(--accent); }
main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}
.home-page main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 95px;
  padding-bottom: 100px;
}
.home-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -.015em;
}
.red-title {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 300;
}
.home-copy p { margin: 0 0 35px; }
.actions {
  margin-top: 195px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  background: #fff;
}
.button.primary { background: #000; color: #fff; border-color: #000; }
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 110px 26px;
  color: #5f5f5f;
  font-size: 16px;
  line-height: 1.2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.sub-page main {
  padding-top: 96px;
  padding-bottom: 100px;
}
.centered { text-align: center; margin-left: auto; margin-right: auto; }
.narrow { max-width: 860px; }
.page-title { margin: 0 auto 58px; }
.page-title .red-title { margin-bottom: 18px; }
.page-title p:not(.red-title) {
  margin: 0 auto;
  max-width: 640px;
  font-size: 20px;
  color: var(--ink);
}
.text-page {
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  line-height: 1.42;
}
.text-page p { margin: 0 0 24px; }
.text-page h1,
.text-page h2 {
  margin: 42px 0 14px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
}
.small-note { color: var(--muted); font-size: 17px; }
.gallery-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  transition: opacity .18s ease, transform .18s ease;
}
.gallery-item span {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .025em;
}
.gallery-item:hover img { opacity: .82; transform: translateY(-2px); }
.lightbox {
  width: min(88vw, 1180px);
  max-width: calc(100vw - 170px);
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0,0,0,.78); }
.lightbox figure {
  margin: 0;
  background: #111;
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
}
.lightbox img {
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
  background: #111;
}
.lightbox figcaption {
  padding: 12px 18px 18px;
  color: #ddd;
  background: #111;
  font-size: 15px;
  letter-spacing: .04em;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.96);
  color: #111;
  cursor: pointer;
  font-family: var(--site-font);
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 6px 22px rgba(0,0,0,.22);
}
.lightbox-close {
  top: -54px;
  right: -54px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
}
.lightbox-prev { left: -68px; padding-bottom: 3px; }
.lightbox-next { right: -68px; padding-bottom: 3px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: #fff; }
.contact-lines a { color: var(--accent); }
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .site-footer { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 720px) {
  .site-header { padding-top: 26px; }
  .brand img { width: 118px; }
  .main-nav { gap: 8px 14px; font-size: 13px; letter-spacing: .02em; }
  main { padding-left: 20px; padding-right: 20px; }
  .home-page main {
    align-items: flex-start;
    padding-top: 62px;
    padding-bottom: 64px;
  }
  .home-copy {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.32;
  }
  .red-title { font-size: 18px; margin-bottom: 24px; }
  .home-copy p { margin-bottom: 28px; }
  .actions { margin-top: 54px; }
  .button { min-height: 38px; font-size: 13px; padding: 0 18px; }
  .sub-page main { padding-top: 64px; }
  .text-page, .page-title p:not(.red-title) { font-size: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery-item span { font-size: 13px; }
  .site-footer {
    padding: 0 20px 24px;
    font-size: 14px;
    display: block;
    text-align: center;
  }
  .site-footer p + p { margin-top: 8px; }

  .lightbox {
    width: min(94vw, 1120px);
    max-width: calc(100vw - 24px);
  }
  .lightbox img { max-height: 74vh; }
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 46px;
    border-radius: 0;
    font-size: 30px;
    background: rgba(255,255,255,.9);
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 720px) {
  .lightbox {
    width: min(98vw, 100vw);
    padding: 20px 54px 0;
  }
  .lightbox img { max-height: 70vh; }
  .lightbox figcaption { font-size: 13px; }
  .lightbox-close { top: 4px; right: 8px; width: 40px; height: 40px; }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; font-size: 24px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
