/* ==========================================================
   joromualdo.me — Portugal / United Kingdom / Finland
   Granite paper, azulejo cobalt, port-wine accent.
   ========================================================== */

@font-face { font-family: "Gloock"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/gloock-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #ecedea;      /* granite / snow light */
  --paper-raised: #f6f6f4;
  --ink: #23262c;        /* Porto granite in shade */
  --stone: #6b7078;      /* secondary text */
  --frost: #cbd3d7;      /* rules, birch bark */
  --cobalt: #1e3f8c;     /* azulejo blue */
  --cobalt-deep: #162f69;
  --ruby: #6e1f33;       /* port wine — prices, cart */

  --display: "Gloock", "Georgia", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --measure: 66ch;

}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h, 0px) + 16px); }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--cobalt); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  padding: 22px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: padding .25s ease, box-shadow .25s ease;
}
.header-social {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  top: 50%; transform: translateY(-50%);
  display: flex; gap: 18px;
}
.header-social a { display: flex; color: var(--ink); }
.header-social a:hover { color: var(--stone); }
.site-header.is-scrolled { padding-top: 12px; padding-bottom: 10px; gap: 6px; box-shadow: 0 1px 0 var(--frost); }
.site-header.is-scrolled .logo { font-size: 1.45rem; }
.logo {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size .25s ease;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; font-size: 1rem; }
.site-nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav .cart-link { color: var(--ruby); font-weight: 600; }
.nav-toggle {
  display: none;
  font: inherit; font-size: 0.95rem;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  padding: 6px 14px; cursor: pointer;
}

@media (max-width: 760px) {
  .site-header, .site-header.is-scrolled { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: 14px var(--gutter); }
  .site-header.is-scrolled .logo { font-size: 1.7rem; }
  .site-nav.is-open { max-height: calc(100svh - 70px); overflow-y: auto; }
  .nav-toggle { display: block; }
  .header-social { display: none; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--frost); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--frost); font-weight: 600; }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 48px; }
main:has(.stories) { padding-bottom: 0; }

/* ---- Home: full-bleed stacked images ---- */
.stories { width: 100vw; margin-left: calc(50% - 50vw); }
.story {
  position: sticky;
  top: var(--header-h, 0px);
  display: block;
  height: 76vh;
  height: min(76svh, calc(100svh - var(--header-h, 0px)));
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
}
.story img { width: 100%; height: 100%; object-fit: cover; }
.story::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .12);
  transition: background-color .35s ease;
  pointer-events: none;
}
a.story:hover, a.story:focus-visible { color: #fff; }
a.story:hover::after, a.story:focus-visible::after { background: rgba(0, 0, 0, .45); }
a.story:focus-visible { outline-offset: -4px; outline-color: #fff; }
.story-end::after { background: rgba(0, 0, 0, .3); }
.story-shade-dark::after { background: rgba(0, 0, 0, .38); }
a.story-shade-dark:hover::after, a.story-shade-dark:focus-visible::after { background: rgba(0, 0, 0, .55); }
.story-text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
  text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.story-text-top { justify-content: flex-start; padding-top: 14%; }
.story-text-bottom { justify-content: flex-end; padding-bottom: 10%; }
.story-title { font-family: var(--display); font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.05; }
.story-sub { margin-top: 10px; font-size: clamp(1rem, 1.5vw, 1.15rem); letter-spacing: 0.02em; }
.story-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; text-shadow: none; }

.page-head { padding: clamp(28px, 5vw, 56px) 0 8px; }
.page-head h1 { margin-bottom: 0.4em; }

/* ---- Place filter ---- */
.place-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 24px;
  border: 0; margin: 0;
}
.place-filter legend { position: absolute; left: -9999px; }
.place-filter button {
  font: inherit; font-size: 0.92rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--frost);
  padding: 7px 16px; cursor: pointer;
}
.place-filter button:hover { border-color: var(--ink); }
.place-filter button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* ---- Work grid (masonry columns) ---- */
.grid { columns: 3 300px; column-gap: clamp(14px, 2vw, 28px); padding-bottom: 64px; }
.grid-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 clamp(20px, 3vw, 36px);
  text-decoration: none;
}
.grid-item[hidden] { display: none; }
.grid-item .frame { position: relative; overflow: hidden; background: var(--frost); }
.grid-item img { width: 100%; transition: opacity .3s; }
.grid-item:hover img { opacity: .9; }
.grid-item .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 0.9rem; }
.grid-item .title { font-weight: 500; }
.grid-item .place { color: var(--stone); text-align: right; }

.watermark {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 0.7rem; color: rgba(255,255,255,.75);
  pointer-events: none; user-select: none;
}

/* ---- Sequence ---- */
.sequence { padding: 48px 0 80px; display: grid; gap: clamp(56px, 9vw, 120px); }
.sequence-item { margin: 0; }
.sequence-item .media { position: relative; display: flex; justify-content: center; }
.sequence-item img { max-height: 86vh; width: auto; }
.sequence-item .caption {
  max-width: 900px; margin: 14px auto 0;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 0.9rem; color: var(--stone);
}
.sequence-item .caption .title { display: block; color: var(--ink); font-family: var(--display); font-size: 1.25rem; }
.sequence-item .tech { text-align: right; }

/* ---- Prose pages ---- */
.prose { max-width: var(--measure); padding: clamp(40px, 6vw, 72px) 0 32px; }
.prose p, .prose li { font-size: 1.06rem; }
.prose a { color: var(--cobalt); }
.lede { font-size: 1.2rem; color: var(--stone); }

/* ---- About ---- */
.about-hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: clamp(40px, 6vw, 72px) 0 40px;
}
.about-text p { max-width: var(--measure); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photos img:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }

.about-section { max-width: var(--measure); padding: 24px 0 40px; border-top: 1px solid var(--frost); }
.about-section h2 { margin-top: 24px; }
details { border-bottom: 1px solid var(--frost); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--cobalt); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 4px; color: var(--stone); }

.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-list li { display: grid; grid-template-columns: 110px 1fr; padding: 9px 0; border-bottom: 1px solid var(--frost); }
.gear-label { color: var(--stone); }

/* ---- Blog (same structure as scandixplore.com/blog) ---- */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

.eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone); margin: 0 0 1rem;
}
.eyebrow .dash { display: inline-block; width: 2.2rem; height: 1px; background: var(--ink); }
.eyebrow-plain {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone); margin: 0 0 0.6rem;
}
.text-link {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.text-link:hover { color: var(--stone); }

.page-hero {
  padding: clamp(5rem, 10vw, 7rem) 0 4rem;
  background:
    linear-gradient(rgba(20, 22, 26, 0.5), rgba(20, 22, 26, 0.88)),
    var(--hero-img) var(--hero-pos, center) / cover no-repeat;
  color: #fff;
}
.page-hero .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow .dash { background: #fff; }
.page-hero .display { font-size: clamp(3rem, 8.5vw, 5.8rem); line-height: 1.05; margin: 0.3em 0; }
.page-hero .display em { font-style: italic; }
.page-hero .lede { color: rgba(255, 255, 255, 0.78); max-width: 42ch; font-size: 1.05rem; }

.band { padding: 3.5rem 0 4.5rem; }
.journal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 900px) { .journal-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .journal-list { grid-template-columns: 1fr; } }
.journal-entry { padding: 0.6rem; border-radius: 4px; transition: box-shadow .3s ease, transform .3s ease; }
.journal-entry:hover { box-shadow: 0 12px 28px rgba(35, 38, 44, 0.12); transform: translateY(-2px); }
.journal-entry-img { position: relative; display: block; overflow: hidden; margin-bottom: 1.2rem; border-radius: 3px; }
.journal-entry-img img { width: 100%; height: 15rem; object-fit: cover; transition: transform .4s ease; }
.journal-entry:hover .journal-entry-img img { transform: scale(1.06); }
.journal-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: rgba(35, 38, 44, 0.75); color: #fff;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.journal-meta { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone); margin: 0 0 0.5rem; }
.journal-meta-dot, .post-meta-dot { margin: 0 0.4rem; }
.journal-entry h2 { font-size: 1.5rem; margin: 0 0 0.5rem; line-height: 1.2; }
.journal-entry h2 a { text-decoration: none; }
.journal-entry h2 a:hover { color: var(--stone); }
.journal-desc { color: var(--stone); font-size: 0.92rem; margin: 0 0 0.8rem; }

.post-hero-full { height: 26rem; overflow: hidden; }
.post-hero-full img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .post-hero-full { height: 16rem; } }
.post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem;
  align-items: start; padding: 3rem 0 4rem;
}
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }
.post-main { max-width: 72ch; }
.post-main h1 { font-size: clamp(2rem, 5vw, 3rem); }
.post-meta-line { color: var(--stone); font-size: 0.85rem; margin: 0.6rem 0 1.6rem; }
.post-divider { border: none; border-top: 1px solid var(--frost); margin: 0 0 2.2rem; }
.post-main p, .post-main li { color: #4a4f57; line-height: 1.75; }
.post-main strong { color: var(--ink); }
.post-main h2 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; margin-top: 2.4rem; }
.post-main blockquote {
  font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.35;
  margin: 2.5rem 0; text-align: center;
}
.post-main img { width: 100%; height: auto; margin: 2rem 0; }
.post-share { border-top: 1px solid var(--frost); margin-top: 3rem; padding-top: 1.6rem; }
.share-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.share-links a, .copy-link-btn {
  font: inherit; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); background: none; border: none; cursor: pointer; padding: 0; text-decoration: none;
}
.share-links a:hover, .copy-link-btn:hover { color: var(--ink); }
.post-sidebar { position: sticky; top: calc(var(--header-h, 0px) + 2rem); display: grid; gap: 2rem; }
@media (max-width: 900px) { .post-sidebar { position: static; } }
.sidebar-cta, .sidebar-related {
  background: var(--paper-raised); border: 1px solid var(--frost); padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(35, 38, 44, 0.06);
}
.sidebar-cta h3 { font-family: var(--display); font-size: 1.4rem; margin: 0.4rem 0 0.6rem; }
.sidebar-cta p { color: var(--stone); font-size: 0.9rem; margin: 0 0 1.2rem; }
.sidebar-btn {
  display: block; text-align: center; text-decoration: none;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.9rem 1.2rem; border: 1px solid var(--ink); color: var(--ink);
}
.sidebar-btn:hover { background: var(--ink); color: #fff; }
.sidebar-related-item {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
  padding: 0.8rem 0; border-bottom: 1px solid var(--frost);
}
.sidebar-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-related-item img { width: 3.2rem; height: 3.2rem; object-fit: cover; flex-shrink: 0; }
.sidebar-related-item span { font-size: 0.88rem; line-height: 1.3; }
.sidebar-related-item:hover span { color: var(--stone); }
.article-photo img { margin: 2rem 0; }

/* ---- Contact ---- */
.contact-email { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.6rem); }
.contact-email a { color: var(--cobalt); text-decoration: none; border-bottom: 2px solid var(--frost); }
.contact-email a:hover { border-bottom-color: var(--cobalt); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c9ccd1; position: relative; z-index: 2; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 32px; }
.footer-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.footer-places p { margin: 0; font-size: 0.95rem; }
.footer-place { display: block; font-family: var(--display); font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid #3a3e46;
  font-size: 0.9rem;
}
.footer-social { display: flex; gap: 14px; margin-top: 36px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid #555a63; border-radius: 50%;
}
.footer-social a:hover { border-color: #fff; }
.footer-copy { margin: 24px 0 0; font-size: 0.85rem; color: #9a9ea6; max-width: 70ch; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--frost); }
@media (max-width: 760px) {
  .footer-places { grid-template-columns: 1fr; }
}

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

/* ---- Dark theme (food page) ---- */
body.theme-dark { background: #0d0d0e; color: #e7e7e5; }
.theme-dark .site-header { background: #0d0d0e; }
.theme-dark .site-header.is-scrolled { box-shadow: 0 1px 0 #2a2c30; }
.theme-dark .logo, .theme-dark .site-nav a, .theme-dark .header-social a { color: #f2f2f0; }
.theme-dark .site-nav a[aria-current="page"] { border-bottom-color: #f2f2f0; }
.theme-dark .site-nav a:hover, .theme-dark .header-social a:hover { color: #a9acb1; }
.theme-dark .nav-toggle { color: #f2f2f0; border-color: #f2f2f0; }
.theme-dark .site-footer { background: #0d0d0e; border-top: 1px solid #222428; }
@media (max-width: 760px) { .theme-dark .site-nav a { border-bottom-color: #2a2c30; } }

/* ---- Food landing page ---- */
.food-hero { position: relative; height: 82vh; height: min(82svh, calc(100svh - var(--header-h, 0px))); min-height: 460px; overflow: hidden; }
.food-hero img { width: 100%; height: 100%; object-fit: cover; }
.food-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 55%); }
.food-hero-text {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 7vh, 72px);
  color: #fff;
}
.food-hero-text h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0.25em; }
.food-hero-text p { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.85); margin: 0 0 26px; }

.food-section { padding: clamp(48px, 8vw, 96px) 0 0; }
.food-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.5vw, 20px); }
.food-gallery figure { margin: 0; overflow: hidden; background: #1a1b1d; }
.food-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.food-gallery-details img { aspect-ratio: 1; transform: scale(1.6); }
@media (max-width: 700px) {
  .food-gallery { grid-template-columns: 1fr 1fr; }
  .food-gallery figure:first-child { grid-column: span 2; }
  .food-gallery figure:first-child img { aspect-ratio: 3 / 2; }
}

.food-text { max-width: 760px; }
.food-text h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.food-text p { color: #b9bbbf; font-size: 1.06rem; line-height: 1.75; }
.food-steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; }
.food-steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding-top: 22px; border-top: 1px solid #2a2c30; }
.food-steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-size: 2rem; line-height: 1; color: #6f737a; }
.food-steps h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; color: #fff; margin: 0 0 4px; }
.food-steps p { margin: 0; }
.food-closing { padding-bottom: clamp(56px, 8vw, 96px); }
.food-closing .btn { margin-top: 12px; }
.theme-dark .btn-light { background: #fff; color: #0d0d0e; border-color: #fff; }
.theme-dark .btn-light:hover { background: #d9d9d6; border-color: #d9d9d6; }

/* ---- Lightbox ---- */
.lightbox-trigger { cursor: zoom-in; }
.lightbox-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.food-gallery figure img { transition: opacity .25s ease; }
.food-gallery figure:hover img { opacity: .85; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: #08080a;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox-figure figcaption { color: #a9acb1; font-size: 0.9rem; margin-top: 12px; text-align: center; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 10px 14px; opacity: .75;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox-close { top: 8px; right: 12px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox { padding: 56px 8px 24px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
}
