/* =========================================================
   LKJFilms — a quiet frame
   Hand-written CSS. No frameworks, no external dependencies.
   ========================================================= */

:root {
  --bg: #121211;
  --frame: #0b0b0a;
  --paper: #f2f0e9;
  --white: #f5f3ed;
  --muted: #918e87;
  --muted-soft: #6d6a64;
  --line: rgba(245, 243, 237, 0.14);
  --line-soft: rgba(245, 243, 237, 0.075);
  --inset: clamp(10px, 2vw, 26px);
  --rail: clamp(222px, 22vw, 304px);
  --header-h: clamp(76px, 10vh, 108px);
  --page-gutter: clamp(20px, 3.4vw, 54px);
  --sans: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial,
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(120% 90% at 82% 5%, rgba(255, 255, 255, 0.025), transparent 48%),
    var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--paper);
  color: #10100f;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 1000;
  transform: translate(-50%, -180%);
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: #0b0b0a;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- The frame ---------- */

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - (var(--inset) * 2));
  height: calc(100svh - (var(--inset) * 2));
  margin: var(--inset);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--frame);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--page-gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(144px, 12.4vw, 184px);
}

.brand img {
  width: 100%;
  height: auto;
  /* The supplied signature is white-on-transparent. */
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.035));
}

/* ---------- Language switch ---------- */

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

.lang:hover {
  border-color: rgba(245, 243, 237, 0.34);
  background: rgba(255, 255, 255, 0.025);
}

.lang-divider {
  color: rgba(245, 243, 237, 0.2);
  font-size: 9px;
}

.lang-option {
  transition: color 0.3s var(--ease);
}

.lang-option.is-active {
  color: var(--white);
}

.lang:hover .lang-option:not(.is-active) {
  color: rgba(245, 243, 237, 0.66);
}

/* ---------- Shared layout ---------- */

.home-layout,
.page-layout {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
}

.side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 3.4vh, 44px) var(--page-gutter) 24px;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(9px, 1.4vh, 18px);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-left: 17px;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.08vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.2;
  transition: color 0.3s var(--ease);
}

.nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translateY(-50%) scale(0);
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav a:hover::before,
.nav a[aria-current="page"]::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.side-foot {
  margin-top: auto;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ---------- Home stage ---------- */

.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0 clamp(14px, 1.6vw, 24px) clamp(14px, 1.6vw, 24px) 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #141412;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  margin: 0;
  opacity: 0;
  transition: opacity 1.7s var(--ease);
}

.slide.is-active {
  opacity: 1;
}

.slide picture {
  position: absolute;
  inset: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.025) brightness(0.94);
  transform: scale(1.065);
  transition:
    opacity 1.7s var(--ease),
    transform 8.5s linear;
}

.slide.is-active img {
  transform: scale(1);
}

.stage-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.11), transparent 18%, transparent 76%, rgba(5, 5, 4, 0.2)),
    radial-gradient(130% 105% at 50% 42%, transparent 60%, rgba(4, 4, 3, 0.16));
}

.stage-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage-meter {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 26px);
  z-index: 4;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.stage-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left center;
  animation: meter var(--slide-duration, 7000ms) linear forwards;
}

@keyframes meter {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ---------- Interior pages ---------- */

.page-layout {
  min-height: 0;
}

.page-content {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--page-gutter) clamp(36px, 5vh, 60px) 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 243, 237, 0.2) transparent;
}

.page-content::-webkit-scrollbar {
  width: 5px;
}

.page-content::-webkit-scrollbar-track {
  background: transparent;
}

.page-content::-webkit-scrollbar-thumb {
  background: rgba(245, 243, 237, 0.18);
}

.page-inner {
  max-width: 1280px;
  padding-top: clamp(10px, 2.2vh, 28px);
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  padding-bottom: clamp(32px, 5vh, 64px);
}

.eyebrow {
  margin: 0 0 clamp(14px, 2vh, 22px);
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.display {
  max-width: 14ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.5rem, 4.9vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.display > span,
.display > em {
  display: block;
}

.display em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 0.86em;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.page-lede {
  max-width: 38ch;
  margin: 0 0 0.25em;
  color: var(--muted);
  font-size: clamp(0.84rem, 1.05vw, 0.97rem);
  font-weight: 400;
  line-height: 1.75;
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-soft);
}

/* ---------- Films page ---------- */

.film-player {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #050504;
  aspect-ratio: 16 / 9;
}

.film-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.film-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 0;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.film-meta span:nth-child(2) {
  margin-left: auto;
}

.film-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(44px, 7vh, 86px);
  padding-top: clamp(22px, 3vh, 32px);
  border-top: 1px solid var(--line-soft);
}

.film-note {
  margin: 0;
}

.film-note dt {
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.film-note dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.film-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(9px, 1vw, 14px);
  margin-top: clamp(34px, 5vh, 58px);
}

.film-strip a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #171715;
}

.film-strip a:first-child {
  aspect-ratio: auto;
}

.film-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.84);
  transition:
    transform 0.8s var(--ease),
    filter 0.5s var(--ease);
}

.film-strip a:hover img {
  transform: scale(1.035);
  filter: saturate(0.95) brightness(0.96);
}

/* ---------- Stills page ---------- */

.gallery {
  columns: 3;
  column-gap: clamp(10px, 1.2vw, 18px);
  padding-top: clamp(18px, 2.5vh, 30px);
  border-top: 1px solid var(--line-soft);
}

.photo-card {
  display: block;
  width: 100%;
  margin: 0 0 clamp(18px, 2.2vw, 30px);
  padding: 0;
  break-inside: avoid;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.photo-card__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, 3 / 2);
  background: #151513;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.01) brightness(0.93);
  transition:
    transform 0.9s var(--ease),
    filter 0.6s var(--ease);
}

.photo-card:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.01) brightness(1);
}

.photo-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.photo-card__meta span:first-child {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.photo-card:hover .photo-card__meta span:first-child {
  color: var(--white);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(92vw, 1500px);
  max-width: none;
  max-height: 92svh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0a0a09;
  color: var(--white);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(5, 5, 4, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  max-height: 92svh;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.lightbox__caption {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__count {
  margin-left: auto;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.lightbox__close,
.lightbox__arrow {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.lightbox__close {
  width: 32px;
  height: 32px;
  font-size: 17px;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(12px, 2vw, 24px) clamp(48px, 6vw, 78px);
  background: #090908;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(92svh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  font-size: 17px;
}

.lightbox__arrow[data-lightbox-prev] {
  left: 13px;
}

.lightbox__arrow[data-lightbox-next] {
  right: 13px;
}

/* ---------- Blog page ---------- */

.posts {
  padding-top: clamp(20px, 3vh, 34px);
  border-top: 1px solid var(--line-soft);
}

.post {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(28px, 4vh, 48px) 0 clamp(32px, 4.5vh, 56px);
  border-bottom: 1px solid var(--line-soft);
}

.post:first-child {
  padding-top: 0;
}

.post__aside {
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.post__aside time {
  display: block;
}

.post__body {
  min-width: 0;
  max-width: 640px;
}

.post__title {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.post__body p {
  margin: 0 0 1em;
  color: var(--muted);
  font-size: clamp(0.86rem, 1vw, 0.94rem);
  line-height: 1.85;
}

.post__body p:last-child {
  margin-bottom: 0;
}

.post__body blockquote {
  max-width: 28ch;
  margin: clamp(24px, 4vh, 40px) 0;
  padding: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* ---------- Contact page ---------- */

.contact {
  min-height: min(600px, 60vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 9vh, 110px) 0 clamp(48px, 8vh, 90px);
}

.contact__email {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  width: fit-content;
  margin-top: clamp(26px, 4vh, 44px);
  color: var(--white);
  font-size: clamp(1.35rem, 3.4vw, 3.35rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.1;
  word-break: break-word;
}

.contact__email::after {
  content: "↗";
  color: var(--muted-soft);
  font-size: 0.46em;
  letter-spacing: 0;
  transition:
    color 0.3s var(--ease),
    transform 0.45s var(--ease);
}

.contact__email:hover::after {
  color: var(--white);
  transform: translate(3px, -3px);
}

.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 26px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.copy-email:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.copy-email__state {
  color: var(--muted-soft);
}

.section-label {
  margin: clamp(38px, 6vh, 72px) 0 0;
}

.contact__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.contact .page-lede {
  margin-top: 26px;
}

body[data-page="contact"] .side-foot {
  display: none;
}

.contact__foot span:last-child {
  margin-left: auto;
}

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(13px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .page-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .display {
    max-width: 16ch;
  }

  .gallery {
    columns: 2;
  }
}

@media (max-width: 920px) {
  .slide--lake img {
    object-position: 26% 52%;
  }
}

@media (max-width: 760px) {
  :root {
    --inset: 8px;
    --header-h: 72px;
    --page-gutter: 18px;
    --rail: auto;
  }

  .frame {
    height: calc(100svh - (var(--inset) * 2));
  }

  .site-header {
    gap: 16px;
  }

  .brand {
    width: clamp(122px, 34vw, 150px);
  }

  .lang {
    min-height: 32px;
    padding: 0 11px;
    font-size: 9px;
  }

  .home-layout {
    display: flex;
    flex-direction: column;
  }

  .home-layout .side {
    padding: 2px var(--page-gutter) 0;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 23px;
    padding: 10px 0 22px;
  }

  .nav a {
    min-height: 24px;
    padding-left: 12px;
    font-size: 0.88rem;
  }

  .nav a::before {
    width: 3px;
    height: 3px;
  }

  .side-foot {
    display: none;
  }

  .stage {
    flex: 1 1 auto;
    min-height: 46svh;
    margin: 0 12px 12px;
  }

  .slide--lake img {
    object-position: 24% 52%;
  }

  .page-layout {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
  }

  .page-layout .side {
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-content {
    overflow: visible;
    padding: 0 var(--page-gutter) 48px;
  }

  .page-inner {
    padding-top: 12px;
  }

  .page-head {
    padding-bottom: 28px;
  }

  .display {
    max-width: 13ch;
    font-size: clamp(2.25rem, 11.2vw, 3.6rem);
  }

  .page-lede {
    max-width: 44ch;
  }

  .film-meta {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .film-meta span:nth-child(2) {
    margin-left: 0;
  }

  .film-notes {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 38px;
  }

  .film-strip {
    grid-template-columns: 1fr 1fr;
  }

  .film-strip a:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .film-strip a:not(:first-child) {
    aspect-ratio: 1 / 1;
  }

  .gallery {
    columns: 2;
    column-gap: 8px;
  }

  .photo-card {
    margin-bottom: 16px;
  }

  .photo-card__meta {
    display: block;
    padding-top: 7px;
    font-size: 8px;
  }

  .photo-card__meta span {
    display: block;
  }

  .post {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post__aside {
    display: flex;
    gap: 12px;
  }

  .lightbox {
    width: calc(100vw - 20px);
    max-height: 94svh;
  }

  .lightbox__inner {
    max-height: 94svh;
  }

  .lightbox__stage {
    padding: 10px 44px;
  }

  .lightbox__stage img {
    max-height: calc(94svh - 120px);
  }

  .lightbox__arrow {
    width: 34px;
    height: 34px;
  }

  .lightbox__arrow[data-lightbox-prev] {
    left: 6px;
  }

  .lightbox__arrow[data-lightbox-next] {
    right: 6px;
  }

  .contact {
    min-height: auto;
    padding: 52px 0 60px;
  }

  .contact__email {
    font-size: clamp(1.24rem, 6.8vw, 2.4rem);
  }

  .contact__foot span:last-child {
    margin-left: 0;
  }
}

@media (max-width: 470px) {
  .gallery {
    columns: 1;
  }

  .photo-card__meta {
    display: flex;
    font-size: 9px;
  }

  .photo-card__meta span {
    display: inline;
  }

  .film-strip {
    grid-template-columns: 1fr;
  }

  .film-strip a:first-child {
    aspect-ratio: 16 / 10;
  }

  .film-strip a:not(:first-child) {
    aspect-ratio: 16 / 10;
  }

  .display {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  :root {
    --header-h: 72px;
  }

  .side {
    padding-top: 12px;
  }

  .nav {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .slide img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
