/* GoAventuro Photography
   Black page with neutral grays; the one accent is the logo navy (#18334f)
   lifted light. One typeface (Archivo) in two widths: normal for reading,
   expanded for place names. */

:root {
  --ink: #000000;
  --ink-2: #111111;
  --navy: #18334f;
  --line: #2a2a2a;
  --mist: #ededed;
  --fog: #a8a8a8;
  --signal: #93bde3;
  --danger: #ffa395;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: min(100% - 2 * var(--gutter), 1320px);
}

@media (max-width: 759px) {
  :root { --header-h: 64px; }
}

/* ------------------------------------------------------------ base */

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

::selection { background: var(--signal); color: var(--ink); }

.wrap { width: var(--wrap); margin-inline: auto; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--signal); border-color: var(--signal); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn--ghost {
  background: transparent;
  color: var(--mist);
  border-color: rgba(237, 237, 237, .35);
}
.btn--ghost:hover { background: rgba(237, 237, 237, .08); border-color: var(--mist); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(237, 237, 237, .22);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: var(--mist);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(237, 237, 237, .12); border-color: var(--mist); }
.icon-btn svg { width: 22px; height: 22px; }

.link-btn {
  padding: .25rem;
  border: 0;
  background: none;
  color: var(--signal);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 7vw, 7.5rem);
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity .3s;
}
.site-header.is-solid,
.page-place .site-header {
  background: rgba(0, 0, 0, .94);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid,
  .page-place .site-header {
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
  }
}
.site-header.is-solid::before,
.page-place .site-header::before { opacity: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  min-height: 44px;
  text-decoration: none;
}
.brand__mark { width: auto; height: 38px; }
.brand__word { width: auto; height: 18px; }

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding-block: .6rem;
  color: var(--mist);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.site-nav a:hover { text-decoration-line: underline; text-decoration-color: var(--signal); }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mist);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle__bars { top: 23px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 759px) {
  .brand__mark { height: 32px; }
  .brand__word { height: 15px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
  }
  .site-nav ul { flex-direction: column; align-items: center; gap: .5rem; }
  .site-nav a {
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 650;
    font-stretch: 115%;
    letter-spacing: -.01em;
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  /* backdrop-filter would trap the fixed menu inside the header box */
  .menu-open .site-header { backdrop-filter: none !important; }
  .brand { position: relative; z-index: 2; }
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  background: var(--ink);
}

.panels {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.panels::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  flex: 0 0 86%;
  scroll-snap-align: start;
  border-right: 1px solid rgba(237, 237, 237, .07);
}
@media (min-width: 600px) { .panel { flex-basis: 50%; } }
@media (min-width: 900px) { .panel { flex-basis: calc(100% / 3); } }
@media (min-width: 1200px) { .panel { flex-basis: 25%; } }

.panel__link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: var(--mist);
  text-decoration: none;
  animation: panel-open 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 110ms + 120ms);
}
.panel__link:focus-visible { outline-offset: -6px; }

@keyframes panel-open {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) brightness(.74);
  transform: scale(1.001);
  transition: transform 1.4s var(--ease), filter .7s var(--ease);
}
.panel__link:hover .panel__img,
.panel__link:focus-visible .panel__img {
  filter: saturate(1) brightness(.94);
  transform: scale(1.045);
}

.panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .4) 34%, rgba(0, 0, 0, 0) 60%);
}

.panel__text {
  position: absolute;
  left: clamp(1.25rem, 3vw, 3.25rem);
  right: 1.25rem;
  bottom: clamp(1.75rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.panel__coords {
  margin-bottom: .85rem;
  color: var(--fog);
  font-size: .8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.panel__title {
  font-size: clamp(1.75rem, 1rem + 1.5vw, 2.5rem);
  font-weight: 650;
  font-stretch: 114%;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.panel__region {
  margin-top: .3rem;
  font-size: .9375rem;
  color: rgba(237, 237, 237, .86);
}
.panel__count {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(237, 237, 237, .25);
  color: var(--fog);
  font-size: .8125rem;
}
@media (hover: hover) {
  .panel__count {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .5s var(--ease);
  }
  .panel__link:hover .panel__count,
  .panel__link:focus-visible .panel__count { opacity: 1; transform: none; }
}

.hero__nav {
  position: absolute;
  top: calc(50% - 2rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 48px;
  min-height: 48px;
  padding: .75rem;
  border: 0;
  background: none;
  color: var(--mist);
  font: inherit;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .6));
  transition: opacity .3s;
}
.hero__nav svg { width: 20px; height: 20px; flex-shrink: 0; }
.hero__nav span { writing-mode: vertical-rl; }
.hero__nav--prev { left: max(.25rem, calc(var(--gutter) - 1.25rem)); }
.hero__nav--prev span { transform: rotate(180deg); }
.hero__nav--next { right: max(.25rem, calc(var(--gutter) - 1.25rem)); }
.hero__nav[disabled] { opacity: 0; pointer-events: none; }

.hero__bar {
  display: grid;
  grid-template-columns: auto minmax(120px, 520px);
  justify-content: space-between;
  align-items: center;
  gap: 1rem 3rem;
  padding: 1.1rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: .875rem;
}
.hero__bar p { margin: 0; }
.progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}
.progress__thumb {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--signal);
  transition: transform .15s linear;
}
@media (max-width: 599px) {
  .hero__bar { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  gap: 1rem;
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section h2 {
  margin: 0;
  font-size: clamp(2.125rem, 1.25rem + 3vw, 3.75rem);
  font-weight: 650;
  font-stretch: 114%;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.section__head p { margin: 0; color: var(--fog); }

/* ------------------------------------------------------------ justified photo rows */

.justified {
  --row: 230px;
  --gap: clamp(6px, .9vw, 14px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.justified::after { content: ""; flex-grow: 999999; }
@media (min-width: 900px) { .justified { --row: 280px; } }
@media (min-width: 1400px) { .justified { --row: 320px; } }
@media (max-width: 599px) { .justified { --row: 140px; } }

.tile {
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--row));
  min-width: 0;
  margin: 0;
}
.tile__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--r);
  background: var(--ink-2);
  cursor: zoom-in;
}
.tile__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) brightness(.9);
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.tile__link:hover img,
.tile__link:focus-visible img { filter: none; transform: scale(1.035); }
.tile__link:focus-visible { outline-offset: 2px; }
.tile__caption {
  margin-top: .55rem;
  overflow: hidden;
  color: var(--fog);
  font-size: .8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------ about */

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 6fr; }
}
.about__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: cover;
}
.about__text h2 { margin-bottom: 1.75rem; }
.about__text p { max-width: 58ch; }
.about__text p:first-of-type {
  font-size: clamp(1.1875rem, 1rem + .5vw, 1.375rem);
  line-height: 1.5;
}
.facts {
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--fog); font-size: .9375rem; }
.facts dd { margin: 0; }

/* ------------------------------------------------------------ prints */

.prints { background: var(--ink-2); }
.steps {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.1rem;
  color: var(--signal);
  font-size: 2.75rem;
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1;
}
.steps h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 600;
  font-stretch: 108%;
}
.steps p { margin: 0; color: var(--fog); }
.prints__alt { margin: 1.25rem 0 0; color: var(--fog); font-size: .9375rem; }
.prints__alt a { color: var(--mist); text-underline-offset: 4px; }
.steps strong { color: var(--mist); font-weight: 600; }

/* ------------------------------------------------------------ contact */

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 4fr 6fr; align-items: start; }
}
.contact__intro h2 { margin-bottom: 1.25rem; }
.contact__intro p { max-width: 42ch; color: var(--fog); }
.contact__links {
  display: grid;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.contact__links a { text-underline-offset: 4px; }

.form { position: relative; display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .45rem; }
.field label { font-size: .9375rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
  color: var(--mist);
  font: inherit;
  transition: border-color .2s;
}
.prints + .contact .field input,
.prints + .contact .field select,
.prints + .contact .field textarea { background: #0a0a0a; }
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4a4a4a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--signal);
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .875rem; }

.form__summary {
  padding: 1rem 1.15rem;
  border: 1px solid var(--danger);
  border-radius: 8px;
}
.form__summary p { margin: 0 0 .35rem; font-weight: 600; }
.form__summary ul { margin: 0; padding-left: 1.1rem; }
.form__summary a { color: var(--danger); }

.form__photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin: 0;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
  font-size: .9375rem;
}
.form__photo span { color: var(--fog); }
.form__photo strong { font-weight: 600; overflow-wrap: anywhere; }
.form__photo .link-btn { margin-left: auto; }

.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { margin: 0; color: var(--fog); font-size: .9375rem; }
.form__status.is-success { color: var(--mist); }
.form__status.is-error { color: var(--danger); }

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

.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.site-footer p { margin: 0; }
.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  width: var(--wrap);
  margin-inline: auto;
}
@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer__brand { display: inline-block; }
.site-footer__brand img { display: block; width: 148px; height: auto; }
.site-footer__label { margin-bottom: .35rem !important; color: var(--fog); font-size: .8125rem; }
.coords { margin-top: .2rem !important; color: var(--fog); font-variant-numeric: tabular-nums; }
.site-footer__links {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a,
.contact__links a {
  color: var(--mist);
  text-decoration-color: rgba(237, 237, 237, .35);
  text-underline-offset: 4px;
}
.site-footer__links a:hover,
.contact__links a:hover { text-decoration-color: var(--signal); }
.site-footer__legal {
  width: var(--wrap);
  margin: 3rem auto 0 !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: .8125rem;
}

/* ------------------------------------------------------------ location page */

.place { padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 4rem)); }

.place__head {
  display: grid;
  justify-items: start;
  gap: .75rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-bottom: clamp(.5rem, 2vw, 1.5rem);
  color: var(--fog);
  font-size: .9375rem;
  text-decoration: none;
}
.back-link:hover { color: var(--mist); }
.back-link svg { width: 18px; height: 18px; }
.place__coords {
  margin: 0;
  color: var(--fog);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.place__title {
  margin: 0;
  font-size: clamp(3.25rem, .75rem + 9.5vw, 9rem);
  font-weight: 700;
  font-stretch: 120%;
  line-height: .9;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.place__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.5rem;
  margin-top: .5rem;
}
.place__region { margin: 0; font-size: 1.25rem; }
.place__count { margin: 0; color: var(--fog); }
.place__intro { max-width: 62ch; margin: .75rem 0 0; color: var(--fog); }

.next-place {
  position: relative;
  display: block;
  height: clamp(320px, 55vh, 560px);
  margin-top: clamp(4.5rem, 10vw, 8.5rem);
  overflow: hidden;
  color: var(--mist);
  text-decoration: none;
}
.next-place__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.58);
  transition: transform 1.4s var(--ease), filter .7s var(--ease);
}
.next-place:hover .next-place__img,
.next-place:focus-visible .next-place__img { filter: saturate(.95) brightness(.78); transform: scale(1.03); }
.next-place:focus-visible { outline-offset: -6px; }
.next-place__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0) 65%);
}
.next-place__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 6vw, 4rem);
  display: grid;
  justify-items: start;
  gap: .35rem;
}
.next-place__label { color: var(--fog); font-size: .9375rem; }
.next-place__title {
  font-size: clamp(2.75rem, 1rem + 6vw, 6.5rem);
  font-weight: 700;
  font-stretch: 120%;
  line-height: .92;
  letter-spacing: -.025em;
}
.next-place__region { font-size: 1.125rem; }
.next-place + .site-footer { border-top: 0; }

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

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, .97);
  color: var(--mist);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: lightbox-in .25s ease-out;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(4rem, 7vh, 5rem) clamp(.5rem, 7vw, 6rem) 1rem;
  touch-action: pan-y;
}
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .25s;
}
.lightbox__img.is-loading { opacity: .35; }

.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  border-top: 1px solid var(--line);
}
.lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .85rem;
  margin: 0;
}
.lightbox__count { color: var(--fog); font-size: .875rem; font-variant-numeric: tabular-nums; }
.lightbox__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__nav { position: absolute; top: calc(50% - 3.5rem); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }

@media (max-width: 599px) {
  .lightbox__actions { width: 100%; }
  .lightbox__actions .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .panel__link:hover .panel__img,
  .tile__link:hover img,
  .next-place:hover .next-place__img { transform: none; }
}
