dialog {
  width: min(1180px, 94vw);
}

.site-header {
  height: 92px;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.7), rgba(5, 8, 16, 0.08));
}

.site-header .brand {
  gap: 16px;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 700;
}

.site-header .sigil {
  width: 44px;
  height: 44px;
  border-width: 2px;
  font-size: 12px;
}

.site-header .header-nav {
  margin-left: auto;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.site-header .header-nav a {
  color: #fff;
  text-shadow:
    -1px -1px 0 #244b9a,
    1px -1px 0 #244b9a,
    -1px 1px 0 #244b9a,
    1px 1px 0 #244b9a,
    0 2px 8px rgba(0, 0, 0, 0.9);
}

.site-header .header-nav a:hover,
.site-header .header-nav a:focus-visible {
  color: var(--gold);
}

.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  font-size: inherit;
}

.gallery .card-image {
  overflow: hidden;
  background: #191a19;
}

.gallery .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 8, 0.95), transparent 58%);
}

.gallery .card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-position, center);
}

.gallery .card-image.crop-left img {
  object-position: left center;
}

.gallery .card-image.crop-right img {
  object-position: right center;
}

.gallery .card-image.crop-rx78 img {
  object-position: center 37%;
}

.gallery .card-image.crop-top img {
  object-position: center top;
}

.gallery .card-image.crop-top {
  transform-origin: center top;
}

.gallery .card {
  grid-column: span 6;
  min-height: 560px;
}

.gallery {
  max-width: 1800px;
  margin-inline: auto;
}

.collection .section-heading {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto 34px;
}

.section-heading h2.collection-title {
  font-size: clamp(1.75rem, 2.1vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0.12em;
}

.gallery .card.card--featured {
  grid-column: 1 / -1;
  min-height: 640px;
}

.gallery .card:only-child {
  grid-column: 1 / -1;
  min-height: 640px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer {
  display: block;
}

.legal {
  max-width: 980px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #777a76;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: none;
}

.manifesto-copy {
  max-width: 980px;
  margin: 38px auto 0;
  font: 500 clamp(24px, 2.8vw, 40px) / 1.35 "Cormorant Garamond", serif;
  letter-spacing: -0.015em;
}

.manifesto-copy p {
  margin: 0;
}

.manifesto-copy p + p {
  margin-top: 38px;
}

.manifesto-copy p:last-child {
  font-size: 0.8em;
}

.manifesto .signature {
  display: inline-block;
  margin-top: 42px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.manifesto .signature:hover,
.manifesto .signature:focus-visible {
  border-color: currentColor;
  color: #5f451d;
}

.modal-media {
  min-width: 0;
  background: #0b0c0c;
}

.modal-notes .battle-cry {
  color: #f87171;
  font-style: italic;
}

.modal-notes {
  color: var(--muted);
  line-height: 1.7;
}

.modal-notes p {
  margin: 0;
}

.modal-notes p + p {
  margin-top: 1em;
}

.modal-image {
  position: relative;
}

.image-expand {
  display: block;
  width: 100%;
  height: 650px;
  padding: 0;
  border: 0;
  background: #0b0c0c;
  cursor: zoom-in;
}

.image-expand > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.image-expand > img.is-loading {
  opacity: 0;
}

.image-expand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.modal-image:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #050505;
}

.modal-image:fullscreen .image-expand {
  height: 100vh;
  cursor: zoom-out;
}

.image-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(233, 228, 216, 0.35);
  border-radius: 50%;
  background: rgba(12, 13, 13, 0.72);
  color: var(--paper);
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(5px);
}

.image-nav:hover,
.image-nav:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.image-nav.previous {
  left: 16px;
}

.image-nav.next {
  right: 16px;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
  padding: 8px;
  background: #0b0c0c;
}

.modal-thumbs:empty {
  display: none;
}

.modal-thumbs button {
  height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #151616;
  cursor: pointer;
}

.modal-thumbs button[aria-current="true"] {
  border-color: var(--gold);
}

.modal-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close {
  width: 38px;
  height: 38px;
  line-height: 1;
  background: rgba(12, 13, 13, 0.55);
}

.close:hover,
.close:focus-visible {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .site-header {
    min-height: 112px;
    height: auto;
    padding: 12px 18px 14px;
    align-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .site-header .brand {
    width: 100%;
    gap: 13px;
    font-size: 23px;
  }

  .site-header .sigil {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .site-header .header-nav {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 24px;
    font-size: 12px;
  }

  .site-header .header-cta {
    display: inline-flex;
  }

  .hero-image {
    object-position: center;
  }

  .gallery .card {
    min-height: 440px;
  }

  .gallery .card.card--featured {
    min-height: 440px;
  }

  .gallery .card:only-child {
    min-height: 440px;
  }

  .footer-main {
    display: grid;
    gap: 25px;
  }

  .modal-image {
    min-height: 0;
  }

  .image-expand {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .modal-thumbs button {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
