@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) center / cover;
  color: var(--white);
}

.gallery-hero-inner {
  max-width: 980px;
}

.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-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;
}

.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 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);
}

.locked-gallery[hidden] {
  display: none;
}

.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-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-hero {
    min-height: 84svh;
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
    overflow-wrap: anywhere;
  }

  .gallery-hero p:not(.eyebrow) {
    font-size: 16px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content figure {
    min-height: 420px;
  }

  .gallery-footer {
    flex-direction: column;
  }
}
