:root {
  --margin: 64px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

@font-face {
  font-family: 'Supreme';
  src: url(Supreme-Variable.ttf);
}

html {
  font-size: 16px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 300;
  line-height: 1.2;
  background: #f9f8f6;
  color: #1a1a1a;
}

header {
  padding: 1rem var(--margin) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h1 {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: currentColor;
}

/* ── Slideshow (index.html) ── */

section {
  display: grid;
  grid-template-columns: 4fr 5fr 2fr 0fr 0fr 0fr;
  gap: 0;
  width: 100%;
  cursor: e-resize;
  padding: 1rem var(--margin);
  transition: grid-template-columns 0.4s;
}

section div {
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s;
}

section div.hide {
  opacity: 0;
}

section figure {
  width: 100%;
  padding: 0 calc(var(--gutter) / 2);
}

section img {
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ── Gallery (gallery.html) ── */

main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding: 48px var(--margin) var(--margin);
}

main figure {
  display: block;
}

main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ── Tablet ── */
@media (max-width: 900px) {
  main { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --margin: 24px; }

  /* Nav */
  nav { gap: 0.85rem; }
  nav a { font-size: 0.6rem; }

  /* Slideshow: single image, full width */
  section {
    padding: 1rem 0 0;
    cursor: pointer;
  }

  section figure { padding: 0; }

  section div.hide { display: none; }

  /* Gallery intro */
  .intro { padding: 2rem var(--margin) 0; }
  .intro h2 { font-size: 2rem; }

  /* Gallery grid */
  main {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px var(--margin) var(--margin);
  }

  /* About: full-bleed image at 100vh, text below */
  .about-layout {
    display: block;
    padding: 0;
    min-height: auto;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .about-content {
    padding: 3rem var(--margin) 4rem;
  }

  .about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
  }

  .about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 100%;
  }
}

/* ── Small mobile ── */
@media (max-width: 400px) {
  :root { --margin: 16px; }

  h1 { font-size: 0.65rem; }
  nav { gap: 0.6rem; }
  nav a { font-size: 0.55rem; }

  .intro h2 { font-size: 1.6rem; }
  .about-content h2 { font-size: 2rem; }
}

/* ── Gallery intro ── */

.intro {
  padding: 3rem var(--margin) 0;
}

.intro h2 {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.intro p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #555;
}

/* ── About page — mobile first ── */

.about-layout {
  display: block;
  padding-top: 1rem;
}

.about-image img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-content {
  padding: 3rem var(--margin) 4rem;
}

.about-content p {
  max-width: 100%;
}

/* Desktop: side-by-side split */
@media (min-width: 769px) {
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 2.5rem);
    padding: 1rem 0 0 var(--margin);
  }

  .about-image { order: 2; }

  .about-content {
    order: 1;
    padding: 3rem var(--gutter) 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-content p {
    max-width: 640px;
  }

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

.about-content h2 {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.about-content p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.9;
  color: #333;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.about-content p:last-child {
  font-style: italic;
  margin-bottom: 0;
  margin-top: 1rem;
}
