:root {
  --bg: #141210;
  --bg-elevated: #1c1916;
  --ink: #f3ece3;
  --ink-muted: #b5a99a;
  --accent: #c4a574;
  --accent-strong: #e0c49a;
  --line: rgba(243, 236, 227, 0.12);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 72rem;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(196, 165, 116, 0.14), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(90, 110, 120, 0.12), transparent 50%),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.visually-hidden,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(20, 18, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-logo img {
  height: 1.6rem;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.site-nav .nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.site-nav a:hover,
.site-nav__gallery {
  color: var(--ink);
}

.site-nav__gallery {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease);
}

.nav-toggle__bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bar::after {
  position: absolute;
  top: 6px;
}

.mobile-nav {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem var(--space) 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.mobile-nav a {
  text-decoration: none;
  font-size: 1.1rem;
}

@media (min-width: 800px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(20, 18, 16, 0.35), rgba(20, 18, 16, 0.75)),
    url("../images/hero-fallback.svg") center / cover no-repeat,
    #2a2420;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  overflow: hidden;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(1.04);
}

.hero.is-photo .hero__slide.is-active img {
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(20, 18, 16, 0.55) 38%, transparent 68%),
    linear-gradient(105deg, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.18) 48%, rgba(20, 18, 16, 0.4) 100%);
  transition: background 0.8s var(--ease);
}

.hero.is-photo .hero__wash {
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(20, 18, 16, 0.72) 42%, rgba(20, 18, 16, 0.25) 72%),
    linear-gradient(115deg, rgba(20, 18, 16, 0.62) 0%, rgba(20, 18, 16, 0.22) 55%, rgba(20, 18, 16, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) var(--space) clamp(2.5rem, 6vh, 4rem);
}



/* Hero album filmstrip banner */
.hero__filmstrip {
  --filmstrip-h: clamp(10rem, 28vw, 20rem);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(1.35rem, 3.5vh, 2.25rem);
  height: var(--filmstrip-h);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.62);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.hero__filmstrip::before,
.hero__filmstrip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14vw, 6rem);
  z-index: 2;
  pointer-events: none;
}

.hero__filmstrip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 8%, transparent 100%);
}

.hero__filmstrip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 8%, transparent 100%);
}

.hero__filmstrip-viewport {
  height: 100%;
  overflow: hidden;
}

.hero__filmstrip-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  padding-inline: clamp(0.5rem, 1.2vw, 0.85rem);
  animation: hero-filmstrip-scroll var(--filmstrip-duration, 72s) linear infinite;
  will-change: transform;
}

.hero__filmstrip-item {
  flex: 0 0 auto;
  height: 100%;
  min-width: clamp(11rem, 22vw, 18rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(243, 236, 227, 0.1);
}

.hero__filmstrip-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero__filmstrip-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(0.9);
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.hero__filmstrip-link:hover img,
.hero__filmstrip-link:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1.08);
}

.hero__filmstrip-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.hero__filmstrip-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 0.55rem 0.45rem;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  background: linear-gradient(
    to top,
    rgba(8, 7, 6, 0.94) 0%,
    rgba(8, 7, 6, 0.5) 52%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.hero__filmstrip-link:hover .hero__filmstrip-caption,
.hero__filmstrip-link:focus-visible .hero__filmstrip-caption {
  opacity: 1;
  transform: translateY(0);
}

.hero__filmstrip:hover .hero__filmstrip-track {
  animation-play-state: paused;
}

.hero__filmstrip-item .hero__filmstrip-link {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}


.hero__filmstrip-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(0.9);
}

@keyframes hero-filmstrip-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__filmstrip-viewport,
  .hero__filmstrip {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .hero__filmstrip-track {
    animation: none;
    transform: none;
  }
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 24px rgba(20, 18, 16, 0.35);
  animation: rise 0.95s var(--ease) both;
}

.hero__title {
  margin: 0 0 1.75rem;
  max-width: 22ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.45;
  animation: rise 0.95s var(--ease) 0.12s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.95s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #1a1510;
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: #1a1510;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* Hub choice: Gallery vs Recipes */
.section--choose {
  border-bottom: 1px solid var(--line);
}

.choice-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  background: linear-gradient(
    160deg,
    rgba(243, 236, 227, 0.04),
    rgba(196, 165, 116, 0.06)
  );
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.choice-card:hover,
.choice-card:focus-visible {
  border-color: var(--accent);
  background: linear-gradient(
    160deg,
    rgba(196, 165, 116, 0.1),
    rgba(243, 236, 227, 0.04)
  );
  color: var(--ink);
  transform: translateY(-2px);
}

.choice-card__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.choice-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.02em;
}

.choice-card__text {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 32ch;
}

.site-nav__recipes {
  margin-left: 0.35rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--space);
}

.section__intro {
  margin-bottom: 2rem;
  max-width: 38rem;
}

.section__intro--wide {
  max-width: 48rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section__lede {
  margin: 0;
  color: var(--ink-muted);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.gallery-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--line);
  color: var(--ink-muted);
}

.album-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-elevated);
  text-decoration: none;
  min-height: 16rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s var(--ease) forwards;
}

.album-card:nth-child(1) { animation-delay: 0.05s; }
.album-card:nth-child(2) { animation-delay: 0.12s; }
.album-card:nth-child(3) { animation-delay: 0.19s; }
.album-card:nth-child(4) { animation-delay: 0.26s; }
.album-card:nth-child(5) { animation-delay: 0.33s; }
.album-card:nth-child(6) { animation-delay: 0.4s; }

.album-card__media {
  position: absolute;
  inset: 0;
}

.album-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.8s var(--ease);
}

.album-card:hover .album-card__media img {
  transform: scale(1.08);
}

.album-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.92) 10%, rgba(12, 10, 8, 0.15) 60%);
}

.album-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem 1.2rem;
}

.album-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
}

.album-card__count {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.gallery-footnote {
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Posts */
.post-rail {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .post-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  display: grid;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.post-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__date {
  display: block;
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.post-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.2;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__excerpt {
  margin: 0;
  color: var(--ink-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pagination__link {
  text-decoration: none;
  font-weight: 600;
}

.pagination__status {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Article */
.article {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) var(--space);
}

.article__header {
  margin-bottom: 1.75rem;
}

.article__date {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.article__title {
  margin: 0.4rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article__dek {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.article__hero {
  margin: 0 0 2rem;
}

.article__hero figcaption {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.gh-content > * + * {
  margin-top: 1.1em;
}

.gh-content h2,
.gh-content h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.gh-content img {
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 2.5rem;
  display: grid;
  gap: 0.5rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
}

.site-footer__copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer__nav .nav {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.gh-content .kg-width-wide { max-width: min(72rem, 100vw); width: calc(100vw - 2rem); }
.gh-content .kg-width-full { max-width: 100vw; width: 100vw; position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; }
.gh-content .kg-gallery-row { display: flex; gap: .5rem; }
.gh-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.album-card__media--empty {
  background: linear-gradient(135deg, #2a2420 0%, #1a1512 100%);
}
.album-card__media img {
  object-position: center;
}

/* Album password gate */
.gallery-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(6px);
}

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

.gallery-gate__dialog {
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.gallery-gate__text {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1a1a1a;
}

.gallery-gate__input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.gallery-gate__input:focus {
  outline: 2px solid #3eb0ef;
  border-color: #3eb0ef;
}

.gallery-gate__error {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #c0392b;
}

.gallery-gate__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-gate__btn {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.gallery-gate__btn--primary {
  background: #15171a;
  color: #fff;
}

.gallery-gate__btn--primary:hover {
  background: #2a2d31;
}

.gallery-gate__btn--ghost {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
}

.gallery-gate__btn--ghost:hover {
  background: #f5f5f5;
}

/* In-theme album lightbox */
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(100vw - 1.5rem, 72rem);
  height: min(100vh - 1.5rem, 54rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 1rem;
  color: var(--ink);
}

.lightbox.has-strip .lightbox__frame {
  grid-template-rows: auto 1fr auto auto;
}

.lightbox__bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
}

.lightbox__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__counter {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__icon {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(243, 236, 227, 0.06);
  color: var(--ink);
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__icon:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 5.5rem);
  max-height: calc(100% - 1.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.25s var(--ease);
}

.lightbox__img[hidden] {
  display: none !important;
}

.lightbox__video {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 5.5rem);
  max-height: calc(100% - 1.5rem);
  width: auto;
  height: auto;
  background: #000;
  object-fit: contain;
}

.lightbox__video[hidden] {
  display: none !important;
}

.lightbox__img.is-loading {
  opacity: 0.35;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(20, 18, 16, 0.72);
  color: var(--ink);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__nav:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.lightbox__nav--prev {
  left: 0.65rem;
}

.lightbox__nav--next {
  right: 0.65rem;
}

.lightbox__status {
  position: absolute;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: rgba(20, 18, 16, 0.82);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.lightbox__strip {
  position: relative;
  min-height: 4.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.lightbox__strip[hidden] {
  display: none !important;
}

.lightbox__strip-track {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  height: 100%;
  min-height: 4.75rem;
  padding: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 165, 116, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.lightbox__thumb {
  appearance: none;
  flex: 0 0 auto;
  width: 4.1rem;
  height: 3.85rem;
  padding: 0;
  border: 1px solid rgba(243, 236, 227, 0.14);
  background: var(--bg-elevated);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.lightbox__thumb:hover,
.lightbox__thumb:focus-visible {
  opacity: 1;
  border-color: var(--accent);
  outline: none;
}

.lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(224, 196, 154, 0.35);
  transform: translateY(-1px);
}

.lightbox__thumb.is-empty {
  background: linear-gradient(135deg, #2a2420 0%, #1a1512 100%);
}

.lightbox__thumb.is-video {
  position: relative;
}

.lightbox__thumb.is-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.28);
  pointer-events: none;
  z-index: 1;
}

.lightbox__thumb.is-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.7rem;
  border-color: transparent transparent transparent rgba(243, 236, 227, 0.92);
  transform: translate(-35%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 2;
}

.lightbox__footer {
  display: flex;
  justify-content: flex-end;
}

.lightbox__fallback {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.lightbox__fallback:hover {
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .lightbox__frame {
    width: 100vw;
    height: 100vh;
    padding: 0.55rem;
    gap: 0.5rem;
  }

  .lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .lightbox__strip,
  .lightbox__strip-track {
    min-height: 4.1rem;
  }

  .lightbox__thumb {
    width: 3.5rem;
    height: 3.25rem;
  }
}

