/* ==========================================================================
   ŠOTO ad VENTO — Beach Bar Mocca, Uvala Jert
   A photo album for a beach bar's Advent, not a photographer's portfolio.
   Mediterranean winter: sea blue, sand, pine, string-light gold, one warm
   red. The chrome is dark — the hero photo, the gallery bar, the footer, the
   lightbox — and everything the photographs sit on is pale, so the pictures
   are the brightest thing on any screen.
   ========================================================================== */

:root {
  /* the bay */
  --sea-deep:   #0d3138;
  --sea-night:  #08242a;
  --sea-line:   #17454e;

  /* paper */
  --sand:       #f4ecdf;
  --sand-soft:  #fbf7ef;
  --sand-line:  #e3d7c3;

  /* what hangs in the pines */
  --pine:       #285b48;
  --advent-red: #a94438;
  --sunset:     #d97843;
  --gold:       #d6aa5c;

  --ink:        #183238;
  --muted:      #738184;
  --on-dark:    #f2e9db;
  --on-dark-dim: #9fb0b3;

  --wrap: 1180px;
  --pad:  clamp(1.15rem, 4.5vw, 3.5rem);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 6px;

  /* gallery gaps — photographs, not cards */
  --grid-gap: 7px;
}

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

/* The page opens and closes on the dark ground, so the canvas behind an
   overscroll has to be dark too. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--sea-night); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

/* Fraunces is reserved for the wordmark, the two section headings and the
   year numerals. Everything else is the sans, or the page turns into a
   magazine again. */
.display {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 120;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

p { margin: 0 0 1em; max-width: 62ch; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 32%, transparent); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--sand); padding: 0.8rem 1.2rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* --------------------------------------------------------------- header -- */

.top {
  position: absolute; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 0.8rem;
  padding: clamp(0.7rem, 2vw, 1.15rem) var(--pad);
  color: var(--on-dark);
}

.mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; min-width: 0; }
.mark img { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.mark b { font-weight: 600; font-size: 0.98rem; line-height: 1.15; letter-spacing: -0.005em; }
.mark span {
  display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--on-dark-dim);
}
.top .mark { text-shadow: 0 1px 12px rgba(6, 28, 34, 0.5); }

/* the back chevron only the gallery pages carry */
.mark__back { flex: 0 0 auto; width: 18px; height: 18px; margin-right: -0.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }

/* ----------------------------------------------- language, one small menu -- */

/* Five flags in a row is too much noise on a phone, so the switcher is a
   <details> that opens a list. It is still five real crawlable links, and it
   still opens without JavaScript. */
.top__right { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
.lang { position: relative; flex: 0 0 auto; }
.lang > summary {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.34rem 0.55rem 0.34rem 0.45rem;
  border-radius: 999px; cursor: pointer; list-style: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--on-dark) 12%, transparent);
  transition: background-color 0.2s var(--ease);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::marker { content: ""; }
.lang > summary:hover { background: color-mix(in srgb, var(--on-dark) 22%, transparent); }
.lang__chev { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; transition: transform 0.2s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }

.lang img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); flex: 0 0 auto; }

.lang__menu {
  position: absolute; right: 0; top: calc(100% + 0.45rem);
  min-width: 11rem; padding: 0.3rem;
  background: var(--sand-soft); color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(6, 26, 33, 0.3), 0 2px 6px rgba(6, 26, 33, 0.18);
}
.lang__menu a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.6rem; border-radius: 8px;
  text-decoration: none; font-size: 0.92rem;
}
.lang__menu a:hover { background: var(--sand); }
.lang__menu a[aria-current="true"] { font-weight: 600; background: color-mix(in srgb, var(--gold) 26%, transparent); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: min(88svh, 820px);
  display: flex; align-items: flex-end;
  background: var(--sea-night);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 62% 46%;
  transform: scale(1.005);
}
html.js-reveal .hero__img { animation: drift 26s var(--ease) forwards; }
@keyframes drift { from { transform: scale(1.005); } to { transform: scale(1.03); } }

/* The water under the type is bright, so the scrim has to do real work — the
   hero is unreadable without it on a sunlit frame. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(184deg, rgba(8, 34, 42, 0.5) 0%, rgba(8, 34, 42, 0) 24%),
    linear-gradient(2deg, rgba(6, 26, 33, 0.92) 0%, rgba(6, 26, 33, 0.74) 26%,
                          rgba(6, 26, 33, 0.36) 50%, rgba(6, 26, 33, 0.06) 70%,
                          rgba(6, 26, 33, 0) 82%);
}

.hero__body {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--pad) clamp(2rem, 6vw, 4rem);
  color: var(--on-dark);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(2.9rem, 11.5vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(6, 24, 30, 0.45);
}
.wordmark i {
  font-style: normal; font-weight: 400;
  font-size: 0.46em; letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--gold) 70%, var(--on-dark));
  padding-inline: 0.12em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 60;
}

.hero__lead {
  margin: clamp(0.9rem, 2.4vw, 1.4rem) 0 clamp(1.3rem, 3.5vw, 2rem);
  max-width: 32ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.22rem);
  text-shadow: 0 1px 18px rgba(6, 24, 30, 0.8);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; }
.hero__alt {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.98rem; font-weight: 600;
  color: var(--on-dark); text-decoration: none;
  text-shadow: 0 1px 14px rgba(6, 24, 30, 0.85);
}
.hero__alt::after { content: "→"; transition: transform 0.2s var(--ease); }
.hero__alt:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 0; border-radius: 999px;
  background: var(--advent-red); color: #fff;
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn:hover { background: #97382e; transform: translateY(-1px); }

.btn--quiet {
  background: color-mix(in srgb, var(--on-dark) 13%, transparent);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-dark) 24%, transparent);
  font-weight: 500;
}
.btn--quiet:hover { background: color-mix(in srgb, var(--on-dark) 24%, transparent); }

/* ---------------------------------------------------------- year picker -- */

.years { padding-block: clamp(2.6rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }

.lede { margin-bottom: clamp(1.4rem, 3.5vw, 2.2rem); }
.lede h2 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 120;
  font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.04;
  max-width: 18ch;
}
.lede p { margin-top: 0.7rem; color: var(--muted); max-width: 46ch; }

.years__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

/* The whole card is the link — a small button inside a big photograph is a
   worse target on every device. */
.year {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--on-dark);
  background: var(--sea-deep);
  height: 100%;
}
/* Only the first card carries the ratio: the columns are different widths, so
   a ratio on both would leave the narrow one short and the row ragged. */
.years__grid > .year:first-child { aspect-ratio: 4 / 5; height: auto; }
.year__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform 0.8s var(--ease);
}
.year:hover .year__img, .year:focus-visible .year__img { transform: scale(1.035); }
.year::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(2deg, rgba(6, 26, 33, 0.88) 0%, rgba(6, 26, 33, 0.6) 26%,
                                    rgba(6, 26, 33, 0.14) 54%, rgba(6, 26, 33, 0) 72%);
}
.year__body {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  padding: clamp(1rem, 2.6vw, 1.7rem);
  text-shadow: 0 1px 16px rgba(6, 24, 30, 0.6);
}
/* The photograph carries the weight here; the numeral is a label, not a
   graphic element. */
.year__num {
  display: block;
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.035em;
  color: var(--on-dark);
}
.year__h { margin-top: 0.35rem; font-size: clamp(0.98rem, 0.94rem + 0.3vw, 1.15rem); font-weight: 600; }
.year__when { margin: 0.15rem 0 0; font-size: 0.88rem; color: color-mix(in srgb, var(--gold) 80%, var(--on-dark)); }
.year__go {
  display: flex; align-items: baseline; gap: 0.55rem;
  margin-top: clamp(0.7rem, 1.8vw, 1rem);
  font-size: 0.95rem; font-weight: 600;
}
.year__go b { font-weight: 600; }
.year__count { font-weight: 400; color: var(--on-dark-dim); }
.year__go::after { content: "→"; margin-left: auto; transition: transform 0.2s var(--ease); }
.year:hover .year__go::after { transform: translateX(4px); }

/* the 2026 line — a sentence, not an empty card */
.soon {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-top: clamp(1.2rem, 3vw, 1.8rem);
  border-top: 1px solid var(--sand-line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem;
}
.soon h2 { font-size: 1.05rem; font-weight: 600; }
.soon p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* -------------------------------------------------------------- collage -- */

.strip { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.strip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; margin-bottom: clamp(0.9rem, 2.4vw, 1.4rem); }
.strip__head h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }
.strip__head p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Columns rather than a grid: every photograph keeps its own shape, so no
   face is cropped out to fit a cell. */
.collage { columns: 3; column-gap: var(--grid-gap); }
.collage img {
  width: 100%; height: auto;
  margin-bottom: var(--grid-gap);
  border-radius: 4px;
  background: var(--sand-line);
  break-inside: avoid;
}

/* -------------------------------------------------------- the place band -- */

.place {
  background: var(--sea-deep); color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.place a { color: var(--on-dark); }
.place__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.place__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sea-night); aspect-ratio: 4 / 5; }
.place__photo img { width: 100%; height: 100%; object-fit: cover; }
.place h2 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 120;
  font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.04;
  margin-bottom: 0.9rem;
}
.place p { color: color-mix(in srgb, var(--on-dark) 86%, transparent); }

.sign {
  margin-top: clamp(1.4rem, 3.5vw, 2rem);
  padding-left: clamp(0.9rem, 2.5vw, 1.3rem);
  border-left: 3px solid var(--sunset);
}
.sign blockquote {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 90;
  font-size: clamp(1.05rem, 0.98rem + 0.6vw, 1.35rem);
  line-height: 1.28;
}
.sign cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.82rem; color: var(--gold); }
.sign__after { margin: 0.5rem 0 0; font-size: 0.95rem; }

/* --------------------------------------------------------------- footer -- */

.foot {
  background: var(--sea-night); color: var(--on-dark);
  padding-block: clamp(2rem, 5vw, 3rem);
  font-size: 0.92rem;
}
.foot a { color: var(--on-dark); }
.foot__row { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; justify-content: space-between; }
.foot p { margin: 0; color: var(--on-dark-dim); max-width: none; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; }
.foot__credit { margin-top: 1.1rem; font-size: 0.82rem; color: color-mix(in srgb, var(--on-dark) 45%, transparent); }

/* -------------------------------------------------------------- gallery -- */

body.year-page { background: var(--sand-soft); }

/* one bar, sticky, that thins down and picks up the year once it is scrolled */
.top--gallery {
  position: sticky; inset: 0 0 auto;
  background: var(--sea-night);
  transition: padding 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.top--gallery .mark { text-shadow: none; }
.top--gallery.is-stuck {
  padding-block: 0.45rem;
  box-shadow: 0 6px 22px rgba(6, 26, 33, 0.24);
}
/* `.mark span` sets display on every span in the brand block, so hiding the
   year line needs to out-specify it, in both directions. */
.top__meta { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; color: var(--gold); }
.top--gallery .mark .top__meta, .top--gallery .mark .top__meta span { display: none; }
.top--gallery.is-stuck .mark span { display: none; }
.top--gallery.is-stuck .mark .top__meta { display: block; }
.top--gallery.is-stuck .mark .top__meta span { display: inline; }

.to-top {
  margin-left: 0.2rem; opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.top--gallery.is-stuck .to-top { opacity: 1; visibility: visible; }

/* Compact on purpose: the first row of photographs should be in the first
   screenful on a phone. */
.g-head { padding-block: clamp(1.2rem, 3.5vw, 1.9rem) clamp(0.9rem, 2.5vw, 1.3rem); }
.g-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  text-decoration: none; margin-bottom: 0.8rem;
}
.g-back::before { content: "←"; }
.g-back:hover { color: var(--ink); }
.g-head h1 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 120;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.9rem);
  letter-spacing: -0.025em; line-height: 1.02;
}
.g-head h1 em { font-style: normal; color: var(--advent-red); }
.g-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem;
  margin-top: 0.7rem;
  font-size: 0.92rem; color: var(--muted);
}
.g-meta a { color: var(--pine); font-weight: 500; }
.g-meta .dot { color: var(--sand-line); }

.grid { padding-bottom: clamp(2.5rem, 7vw, 4.5rem); }
.grid__row { display: flex; gap: var(--grid-gap); margin-bottom: var(--grid-gap); }

.tile {
  position: relative;
  display: block; padding: 0; border: 0;
  overflow: hidden; border-radius: 4px;
  background: var(--sand-line);
  cursor: zoom-in;
  flex: 0 0 auto;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.tile img.is-in { opacity: 1; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); filter: brightness(1.06); }

.grid__empty { padding-block: 4rem; color: var(--muted); }

/* ------------------------------------------------------------- lightbox -- */

.lb {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  background: #05171c;
  touch-action: pan-y;
  color: var(--on-dark);
}
/* minmax(0, 1fr) is load-bearing: a grid item's min-width is auto, so without
   it the 177-thumbnail filmstrip sets the column's min-content width (~11000px)
   and the stage image and download button render far off-screen. */
.lb.is-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
}
.lb__bar, .lb__stage, .lb__foot, .lb__strip { min-width: 0; }

/* Everything but the photograph fades out while nothing is happening, and
   comes back on the first move, key or tap. */
.lb__bar, .lb__foot, .lb__nav { transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.lb.is-idle .lb__bar, .lb.is-idle .lb__foot, .lb.is-idle .lb__nav { opacity: 0; visibility: hidden; }

.lb__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem clamp(0.6rem, 2.5vw, 1.2rem); }
.lb__count { font-size: 0.88rem; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }
.lb__spacer { margin-left: auto; }
/* not a primary CTA — it must not compete with the photograph */
.lb__bar .btn { padding: 0.5rem 1.05rem; font-size: 0.9rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--on-dark) 10%, transparent);
  color: var(--on-dark); cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, var(--on-dark) 22%, transparent); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The photo is letterboxed into a filled box rather than sized with percentage
   max-height, which does not reliably resolve against a 1fr grid row — the
   image grew past the row and the filmstrip drew on top of it. */
.lb__stage { position: relative; min-height: 0; overflow: hidden; }
.lb__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}
.lb__stage img.is-in { opacity: 1; }
.lb.is-zoomed .lb__stage { cursor: grab; }
.lb.is-zoomed .lb__stage img { transition: opacity 0.25s var(--ease); }

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(42px, 6vw, 56px); height: clamp(42px, 6vw, 56px);
}
.lb__nav--prev { left: clamp(0.4rem, 2vw, 1.2rem); }
.lb__nav--next { right: clamp(0.4rem, 2vw, 1.2rem); }

.lb__foot { padding: 0.4rem clamp(0.6rem, 2.5vw, 1.2rem) 0.7rem; text-align: center; }
.lb__hint { font-size: 0.78rem; color: color-mix(in srgb, var(--on-dark) 40%, transparent); margin: 0 auto; max-width: none; }

.lb__strip { display: flex; gap: 5px; overflow-x: auto; padding: 0.3rem 0 0.45rem; scrollbar-width: thin; }
.lb__strip button { flex: 0 0 auto; width: 46px; height: 34px; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: 0.38; background: var(--sea-deep); transition: opacity 0.2s var(--ease); }
.lb__strip button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.lb__strip button:hover { opacity: 0.75; }
.lb__strip img { width: 100%; height: 100%; object-fit: cover; }

body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- misc -- */

.reveal { opacity: 0; transform: translateY(14px); }
html.js-reveal .reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js-reveal .reveal.is-in, html:not(.js-reveal) .reveal { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
  .years__grid { grid-template-columns: 1fr 1fr; }
  .years__grid > .year:first-child { aspect-ratio: 3 / 4; }
  .place__grid { grid-template-columns: 1fr; }
  .place__photo { aspect-ratio: 3 / 2; }
}

@media (max-width: 700px) {
  :root { --grid-gap: 5px; }
  .collage { columns: 2; }
}

@media (max-width: 560px) {
  :root { --grid-gap: 4px; }
  .hero { min-height: min(80svh, 640px); }
  .mark span { display: none; }
  .years__grid { grid-template-columns: 1fr; }
  .year, .years__grid > .year:first-child { aspect-ratio: 5 / 4; height: auto; }
  .year__img { object-position: 50% 26%; }
  .foot__row { gap: 0.8rem; }
  .lb__strip { display: none; }
  .lb__bar .btn span { display: none; }
  .lb__bar .btn { padding: 0.5rem 0.75rem; }
  .lb__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html.js-reveal .hero__img { animation: none; }
}
