@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:wght@400;500&display=swap");

:root {
  --ink: #171815;
  --muted: #716c62;
  --paper: #fbfaf6;
  --warm: #eee7dd;
  --night: #20221d;
  --line: rgba(23, 24, 21, 0.14);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 3px;
  text-transform: uppercase;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.gallery-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 5vw, 72px) 60px;
  background: linear-gradient(0deg, rgba(17, 17, 14, 0.78), rgba(17, 17, 14, 0.1)), var(--hero-image) var(--hero-position, center) / cover;
  color: var(--white);
}

.gallery-hero-inner {
  max-width: 980px;
}

.centered-hero {
  align-items: center;
  text-align: center;
}

.centered-hero .gallery-hero-inner {
  margin: 0 auto;
}

.centered-hero h1,
.centered-hero p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.96;
}

.gallery-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.gallery-stream {
  display: grid;
  gap: clamp(30px, 5vw, 82px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.gallery-viewbar {
  position: sticky;
  top: 82px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 72px) 0;
}

.gallery-viewbar[hidden] {
  display: none !important;
}

.gallery-viewbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gallery-view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
}

.gallery-view-toggle button {
  min-height: 40px;
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-view-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.gallery-stream figure {
  width: 100%;
  max-width: 1040px;
  margin: 0;
  justify-self: center;
  background: var(--warm);
  box-shadow: 0 22px 70px rgba(30, 27, 23, 0.14);
}

.gallery-stream figure:nth-child(3n + 1) {
  max-width: 1120px;
}

.gallery-stream figure:nth-child(3n + 2) {
  max-width: 760px;
}

.gallery-stream figure:nth-child(3n) {
  max-width: 860px;
}

.gallery-stream img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-back-button {
  justify-self: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  padding: 0 22px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-back-button:hover {
  background: var(--ink);
  color: var(--white);
}

.gallery-stream.is-compact-view {
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
  max-width: 1480px;
  padding-top: clamp(24px, 4vw, 52px);
}

.gallery-stream.is-compact-view figure,
.gallery-stream.is-compact-view figure:nth-child(n) {
  max-width: none;
  justify-self: stretch;
  aspect-ratio: 1 / 1;
  box-shadow: none;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-stream.is-compact-view .gallery-back-button {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 18px 0;
}

.gallery-stream.is-compact-view img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-stream.is-compact-view figure:hover img {
  transform: scale(1.035);
  filter: contrast(1.03);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 30px);
  background: rgba(17, 18, 15, 0.94);
}

.gallery-lightbox.is-active {
  display: flex;
}

.gallery-lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 88svh;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.44);
}

.gallery-lightbox button {
  position: fixed;
  border: 0;
  background: rgba(251, 250, 246, 0.08);
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.gallery-lightbox button:hover {
  background: rgba(251, 250, 246, 0.16);
}

.gallery-lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 34px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  width: 52px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 42px;
}

.gallery-lightbox-prev {
  left: 18px;
}

.gallery-lightbox-next {
  right: 18px;
}

.access-panel {
  display: grid;
  gap: 18px;
  max-width: 620px;
  margin: clamp(42px, 8vw, 90px) auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--white);
}

.access-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  padding: 14px 15px;
  outline: none;
}

.access-panel input:focus {
  border-color: var(--ink);
}

.access-panel input.password-entry {
  -webkit-text-security: disc;
}

.access-panel button {
  min-height: 52px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.gallery-choice {
  max-width: 980px;
  margin: clamp(24px, 5vw, 70px) auto 0;
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.gallery-choice[hidden] {
  display: none !important;
}

.gallery-choice .eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
}

.gallery-choice h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.gallery-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.gallery-choice-actions button {
  position: relative;
  min-height: clamp(210px, 28vw, 330px);
  border: 1px solid var(--ink);
  background: var(--night);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-choice-actions button:nth-child(2) {
  background: var(--night);
  color: var(--white);
}

.gallery-choice-actions img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.gallery-choice-actions span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(23, 24, 21, 0.84);
}

.gallery-choice-actions button:hover img {
  opacity: 0.9;
  transform: scale(1.035);
}

.locked-gallery[hidden] {
  display: none;
}

.video-section {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 110px) clamp(20px, 5vw, 72px);
  text-align: center;
}

.video-copy {
  max-width: 760px;
  margin: 0 auto;
}

.video-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
}

.video-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.dark-eyebrow {
  color: var(--muted);
}

.video-frame {
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 70px rgba(30, 27, 23, 0.18);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.5fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.about-content-text {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.about-content figure {
  min-height: clamp(420px, 54vw, 680px);
  margin: 0;
  background: var(--warm);
}

.about-portrait img {
  object-position: center top;
}

.about-copy {
  max-width: 780px;
}

.about-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.04;
}

.about-copy p {
  color: var(--muted);
  font-size: 18px;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: var(--night);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.gallery-footer a {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
  .gallery-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    font-size: 11px;
  }

  .gallery-header nav a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .gallery-viewbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .gallery-view-toggle {
    width: 100%;
  }

  .gallery-view-toggle button {
    padding: 0 10px;
    font-size: 11px;
  }

  .gallery-hero {
    min-height: 84svh;
    padding-top: 120px;
  }

  .gallery-hero {
    background-position: var(--hero-position-mobile, var(--hero-position, center));
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
    overflow-wrap: anywhere;
  }

  .gallery-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .film-hero {
    min-height: auto;
    padding: 92px 18px 36px;
  }

  .film-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .film-hero p:not(.eyebrow) {
    max-width: 520px;
    margin-top: 18px;
  }

  .video-section {
    gap: 20px;
    padding: 28px 12px 44px;
  }

  .video-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(30px, 9vw, 42px);
  }

  .video-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .gallery-stream figure,
  .gallery-stream figure:nth-child(n) {
    max-width: none;
    justify-self: stretch;
  }

  .gallery-stream.is-compact-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .gallery-lightbox {
    padding: 8px;
  }

  .gallery-lightbox img {
    max-height: 82svh;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    top: auto;
    bottom: 18px;
    width: 58px;
    height: 48px;
    transform: none;
    font-size: 34px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content figure {
    min-height: 420px;
  }

  .gallery-footer {
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .film-page {
    background: #000;
  }

  .film-page .gallery-header,
  .film-page .film-hero,
  .film-page .video-copy,
  .film-page .gallery-footer {
    display: none;
  }

  .film-page .video-section {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    max-width: none;
    padding: 0;
    background: #000;
  }

  .film-page .video-frame {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .film-page .video-frame video {
    width: 100vw;
    height: 100vh;
  }
}
