/* Minimal photography gallery */

:root {
  --bg: #fff;
  --fg: #0b0b0b;
  --muted: #686868;
  --line: #e6e6e6;
  --panel: #f7f7f7;
  --max: 1180px;
  --header: 68px;
  --gap: clamp(18px, 2vw, 30px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  min-height: var(--header);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 5vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.header-link {
  justify-self: end;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
}

.menu-button span {
  display: block;
  height: 3px;
  background: var(--fg);
  border-radius: 999px;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(86vw, 340px);
  padding: 82px 34px 34px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  transform: translateX(-104%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
}

.side-menu.is-open { transform: translateX(0); }

.side-menu a {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.close-button {
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 3rem;
  line-height: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.28);
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: clamp(44px, 7vw, 92px) 0 clamp(26px, 4vw, 48px);
  text-align: center;
}

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0.06em;
  font-weight: 950;
}

.intro {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.gallery-theme {
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2,
.prints-note h2,
footer h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: 0.14em;
  font-weight: 950;
}

.button {
  justify-self: start;
  display: inline-block;
  border: 2px solid var(--fg);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.82rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.button:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: var(--gap);
  align-items: start;
}

.photo-card button {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}

.thumb-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.96);
  transition: transform 180ms ease, opacity 180ms ease;
}

.photo-card:hover img {
  transform: scale(1.018);
  opacity: 0.92;
}

.photo-card p {
  margin: 9px 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.meta {
  display: inline;
  color: var(--muted);
  font-weight: 400;
}

.awards {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.prints-note {
  border-top: 1px solid var(--line);
  padding: 40px 0 64px;
  max-width: 720px;
}

.prints-note p {
  color: var(--muted);
  font-size: 1.08rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 46px 18px 58px;
  text-align: center;
}

footer p {
  margin: 12px 0;
  color: var(--muted);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.lightbox {
  width: min(94vw, 1180px);
  max-height: 92vh;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lightbox img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #111;
}

.lightbox figcaption {
  text-align: center;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  border-radius: 999px;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 0;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (min-width: 780px) {
  .section-heading { grid-template-columns: auto 1fr; }
  .section-heading h2 { text-align: right; }
  .gallery-theme:first-of-type .section-heading h2 { text-align: left; }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 58px 1fr 58px;
    padding: 0 8px;
  }

  .header-link { font-size: 0; }
  .header-link::after { content: "@"; font-size: 1rem; }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .photo-card p { font-size: 0.86rem; }
  .lightbox-nav { display: none; }
}
.site-title,
.hero h2,
.section-heading h2,
.prints-note h2,
footer h2 {
  letter-spacing: 0.06em !important;
  font-weight: 700 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}