:root {
  --bg: #ffffff;
  --text: #121212;
  --muted: #6f6a64;
  --line: rgba(18, 18, 18, 0.08);
  --hover: #000000;
  --max-width: 1500px;
  --content-width: 1320px;
  --hero-width: 980px;
  --rail-width: 240px;
  --serif:
    "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, serif;
  --sans:
    "Inter", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--hover);
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  display: none;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.home {
  min-height: 100vh;
}

.home-header {
  margin-bottom: 1.5rem;
}

.home-title-wrap {
  display: flex;
  justify-content: center;
}

.home-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.home-title:hover {
  color: var(--hover);
  transform: translateY(-1px);
}

.home-feature {
  position: relative;
  max-width: 1440px;
  min-height: 72vh;
  margin: 0 auto;
}

.hero {
  width: 100%;
  max-width: var(--hero-width);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
}

.hero-image-link {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 180ms ease;
}

.hero-meta {
  width: 100%;
  max-width: 720px;
  margin: 1.25rem auto 0;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.hero-title a {
  transition:
    opacity 180ms ease,
    letter-spacing 180ms ease;
}

.hero-title a:hover {
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.hero-description {
  min-height: 1.5em;
  max-width: 34rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.home-albums {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--rail-width);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.home-albums-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.7rem;
  text-align: right;
}

.home-albums-link {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-style: italic;
  color: rgba(18, 18, 18, 0.72);
  transition:
    color 180ms ease,
    transform 180ms ease,
    letter-spacing 180ms ease,
    opacity 180ms ease;
}

.home-albums-link:hover {
  color: var(--hover);
  transform: translateX(-2px);
  letter-spacing: 0.01em;
}

.home-albums-link.is-featured {
  color: var(--text);
}

.page-albums,
.page-album,
.photo-page {
  max-width: 1400px;
  margin: 0 auto;
}

.page-title,
.photo-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-description,
.photo-description,
.eyebrow {
  color: var(--muted);
}

.album-header {
  margin-bottom: 2rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.album-cloud {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.4rem;
  flex-wrap: wrap;
}

.album-cloud-link {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-style: italic;
  color: rgba(18, 18, 18, 0.72);
  transition:
    color 180ms ease,
    transform 180ms ease,
    letter-spacing 180ms ease,
    opacity 180ms ease;
}

.album-cloud-link:hover {
  color: var(--hover);
  transform: translateY(-1px);
  letter-spacing: 0.01em;
}

.thumb-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.5rem;
}

.thumb-card {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
}

.thumb-card-link {
  display: block;
}

.thumb-card-link-composition {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.thumb-image {
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 160px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.thumb-image-composition {
  max-width: 160px;
  max-height: 160px;
}

.thumb-card-link:hover .thumb-image {
  opacity: 0.94;
  transform: translateY(-2px);
}

.photo-page {
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.photo-figure {
  margin: 0;
}

.photo-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-figure-composition {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.photo-image-button-composition {
  flex: 1 1 320px;
  min-width: 0;
  width: auto;
}

.photo-image {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  margin: 0 auto;
}

.photo-image-composition {
  max-height: calc(100vh - 220px);
}

.photo-bottom {
  max-width: 920px;
  margin: 1rem auto 0;
  padding-top: 0.5rem;
}

.photo-meta {
  text-align: center;
  margin-bottom: 0.75rem;
}

.photo-title {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.photo-description {
  max-width: 36rem;
  margin: 0.4rem auto 0;
  font-size: 0.92rem;
}

.photo-chrome {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
  padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.photo-chrome-left,
.photo-chrome-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.photo-chrome a {
  color: inherit;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.photo-chrome a:hover {
  color: var(--text);
}

.photo-chrome-site {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text) !important;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  --lightbox-progress: 1;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, calc(0.92 * var(--lightbox-progress)));
  cursor: zoom-out;
}

.lightbox-inner {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: auto;
  overscroll-behavior: contain;
  opacity: var(--lightbox-progress);
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: none;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: var(--lightbox-progress);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .home-feature {
    min-height: auto;
  }

  .hero {
    max-width: 100%;
  }

  .hero-image {
    max-height: 50vh;
  }

  .home-albums {
    position: static;
    width: auto;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: flex-start;
  }

  .home-albums-list {
    width: auto;
    max-width: 42rem;
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem 0.95rem;
    text-align: center;
  }

  .home-albums-link {
    font-size: clamp(1rem, 4.2vw, 1.4rem);
  }
}

@media (max-width: 800px) {
  .site-main {
    padding: 1rem 1.25rem 2rem;
  }

  .hero-image {
    max-height: 40vh;
  }

  .hero-meta {
    margin-top: 0.9rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.93rem;
  }

  .album-cloud {
    gap: 0.6rem 1rem;
  }

  .photo-figure-composition {
    gap: 0.35rem;
  }

  .photo-image {
    max-height: calc(100vh - 180px);
  }

  .photo-bottom {
    margin-top: 0.75rem;
  }

  .photo-title {
    font-size: 1.2rem;
  }

  .photo-chrome {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .photo-chrome-left,
  .photo-chrome-right {
    gap: 0.75rem;
  }

  .lightbox-inner {
    padding: 1rem;
  }

  .lightbox-close {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
  }
}
