/* =========================================================
   Zero-Waste Festivals · Results
   A separate environment from the preparation pages:
   the festival at night, under string lights.
   ========================================================= */

:root {
  --night:     #15110e;
  --night-2:   #1b1612;
  --card:      #221c17;
  --card-2:    #2b241e;
  --line:      rgba(255, 236, 214, .12);
  --line-2:    rgba(255, 236, 214, .24);
  --text:      #efe5d6;
  --muted:     #b9aa96;   /* 8:1 on --night */
  --lamp:      #f5c45a;
  --lamp-glow: rgba(245, 196, 90, .5);
  --terra:     #ef7a4f;   /* 6.3:1 on --night */
  --sea:       #6fcabd;
  --serif:     "Literata", Georgia, "Times New Roman", serif;
  --sans:      "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap:      1180px;
  --radius:    18px;
  --header-h:  68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.r-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.r-skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--lamp); color: #1b140c; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.r-skip:focus { top: 12px; }

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

/* ===================== HEADER ===================== */
.r-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 17, 14, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.r-header-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.r-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.r-brand-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; }
.r-brand-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lamp); border: 1px solid rgba(245, 196, 90, .45); border-radius: 999px; padding: 3px 9px;
}

.r-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.r-nav a {
  text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s;
  white-space: nowrap;
}
.r-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.r-nav a.r-switch {
  margin-left: 8px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px;
}
.r-nav a.r-switch:hover { border-color: var(--lamp); background: transparent; }

.r-actions { display: flex; align-items: center; gap: 10px; }

.lang-switcher { display: flex; gap: 2px; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 4px; }
.lang-switcher button {
  border: none; background: transparent; font-size: 1.02rem; line-height: 1;
  padding: 5px 7px; border-radius: 999px; cursor: pointer;
  filter: grayscale(70%) opacity(.6); transition: filter .15s, background .15s;
}
.lang-switcher button:hover { filter: none; }
.lang-switcher button.active { filter: none; background: rgba(255, 255, 255, .14); }

.r-toggle {
  display: none; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-size: 1.2rem; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
}

/* ===================== HERO ===================== */
.r-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding: 170px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.r-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: saturate(.85);
  transform: scale(1.04);
}
.r-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(245, 196, 90, .16), transparent 70%),
    linear-gradient(180deg, rgba(21, 17, 14, .55) 0%, rgba(21, 17, 14, .55) 35%, rgba(21, 17, 14, .86) 72%, var(--night) 100%);
}

.r-lights { position: absolute; left: 0; top: 0; width: 100%; height: 190px; z-index: 0; overflow: visible; }
.r-lights .wire { fill: none; stroke: rgba(30, 22, 15, .9); stroke-width: 1.6; }
.r-lights .drop { stroke: rgba(30, 22, 15, .9); stroke-width: 1.4; }
.r-lights .glow { fill: url(#bulbGlow); opacity: .85; animation: flicker 3.4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.r-lights .core { fill: #ffe3a1; }

@keyframes flicker {
  0%   { opacity: .55; }
  45%  { opacity: .95; }
  60%  { opacity: .7; }
  100% { opacity: 1; }
}

.r-hero-in { position: relative; z-index: 1; }

.r-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.r-done {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lamp); color: #1b140c; font-weight: 700; letter-spacing: .08em;
  border-radius: 999px; padding: 5px 12px; box-shadow: 0 0 26px var(--lamp-glow);
}

.r-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  line-height: 1.03; letter-spacing: -.02em;
  max-width: 15ch;
  text-wrap: balance;
}
.r-title em { display: block; font-style: italic; color: var(--lamp); }

.r-lead { margin-top: 26px; max-width: 640px; font-size: 1.12rem; color: rgba(239, 229, 214, .88); }

.r-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.r-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: box-shadow .2s, transform .15s, border-color .2s, background .2s;
}
.r-btn-lamp { background: var(--lamp); color: #1b140c; }
.r-btn-lamp:hover { box-shadow: 0 0 34px var(--lamp-glow); transform: translateY(-1px); }
.r-btn-line { border-color: var(--line-2); color: var(--text); }
.r-btn-line:hover { border-color: var(--lamp); color: var(--lamp); }

/* ===================== NUMBERS ===================== */
.r-numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--night-2); }
.r-numbers-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.r-num { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.r-num:first-child { border-left: none; }
.r-num b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; color: var(--lamp); }
.r-num span { display: block; margin-top: 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ===================== SECTIONS ===================== */
.r-section { padding: 110px 0; }
.r-section-alt { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.r-head { max-width: 760px; margin-bottom: 56px; }
.r-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 14px;
}
.r-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.r-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.r-intro { margin-top: 16px; font-size: 1.06rem; color: var(--muted); }

/* ===================== DAYS ===================== */
.r-days { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }

.r-rail { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; padding-left: 4px; }
.r-rail::before { content: ""; position: absolute; left: 8.5px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.r-rail a {
  position: relative; display: grid; grid-template-columns: 14px auto 1fr; align-items: baseline; gap: 12px;
  padding: 7px 0; text-decoration: none; color: var(--muted); transition: color .2s;
}
.r-rail a::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; align-self: center;
  background: var(--night); border: 1px solid var(--line-2); transition: background .25s, box-shadow .25s, border-color .25s;
}
.r-rail .n { font-family: var(--serif); font-size: 1.05rem; }
.r-rail .d { font-size: .8rem; white-space: nowrap; }
.r-rail a:hover { color: var(--text); }
.r-rail a.active { color: var(--text); }
.r-rail a.active::before { background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 14px 2px var(--lamp-glow); }
.r-rail a.active .n { color: var(--lamp); }

.r-bookend { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.02rem; }
.r-bookend::before { content: ""; flex: 0 0 28px; height: 1px; background: var(--line-2); }
.r-bookend-start { margin-bottom: 48px; }
.r-bookend-end { margin-top: 8px; }

.r-day {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px;
  padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line);
}
.r-day:last-of-type { border-bottom: none; margin-bottom: 40px; padding-bottom: 0; }
.r-day-num {
  font-family: var(--serif); font-size: 4.6rem; line-height: .9; font-weight: 400;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color .4s, color .4s;
}
.r-day.is-current .r-day-num { -webkit-text-stroke-color: var(--lamp); }
.r-day-date { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.r-day h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }

.r-acts { list-style: none; margin-top: 22px; }
.r-acts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-top: 1px dashed var(--line); }
.r-acts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); margin-top: .62em; opacity: .85; }
.r-acts strong { display: block; font-weight: 600; }
.r-acts p { margin-top: 3px; color: var(--muted); font-size: .97rem; }
.r-acts a { color: var(--lamp); text-underline-offset: 3px; }

.r-photos { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
.r-photos .ph:first-child { grid-column: span 2; grid-row: span 2; }
.r-photos[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 380px; }
.r-photos[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
.r-photos[data-count="1"] .ph:first-child,
.r-photos[data-count="2"] .ph:first-child { grid-column: auto; grid-row: auto; }
.ph {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: none; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; background: var(--card);
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.ph:hover img { transform: scale(1.04); filter: brightness(1.08); }
.ph-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(21, 17, 14, .62); font-family: var(--serif); font-size: 1.6rem; color: var(--text);
}

/* ===================== OUTPUTS ===================== */
.r-outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.r-out {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.r-out:hover, .r-out.reveal.in:hover { transform: translateY(-4px); border-color: rgba(245, 196, 90, .45); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.r-browser { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.r-browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.r-browser span {
  margin-left: 10px; flex: 1; min-width: 0; font-size: .74rem; color: var(--muted);
  background: rgba(0, 0, 0, .25); border-radius: 6px; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r-shot { display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: none; cursor: zoom-in; background: var(--card-2); overflow: hidden; }
.r-shot:focus-visible { outline-offset: -3px; }
.r-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.r-out:hover .r-shot img { transform: scale(1.03); }
.r-out-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.r-out-team { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.r-out h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.2; margin-top: 4px; }
.r-out-sub { font-family: var(--serif); font-style: italic; color: var(--muted); }
.r-out-text { margin-top: 6px; color: rgba(239, 229, 214, .86); font-size: .98rem; }
.r-out-link { margin-top: auto; padding-top: 14px; color: var(--lamp); font-weight: 600; text-decoration: none; }
.r-out-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.r-note { margin-top: 28px; font-size: .9rem; color: var(--muted); }

/* ===================== GALLERY ===================== */
.r-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.r-filters button {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 7px 15px; font-size: .88rem; color: var(--muted); cursor: pointer; transition: all .15s;
}
.r-filters button:hover { color: var(--text); border-color: var(--text); }
.r-filters button.active { background: var(--lamp); border-color: var(--lamp); color: #1b140c; font-weight: 600; }

.r-gallery { columns: 3 260px; column-gap: 12px; }
.r-gallery .ph { height: auto; margin-bottom: 12px; break-inside: avoid; }
.r-gallery .ph img { height: auto; }

/* ===================== THANK YOU ===================== */
.r-thanks { text-align: center; position: relative; overflow: hidden; }
.r-thanks::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 196, 90, .13), transparent);
  pointer-events: none;
}
.r-thanks-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.r-thanks-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--lamp); line-height: 1.05; }
.r-thanks-text { margin-top: 18px; max-width: 560px; font-size: 1.1rem; color: var(--muted); }
.r-partners { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 40px; }
.r-partners li { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: .92rem; }

/* ===================== FOOTER ===================== */
.r-footer { background: #fff; color: #3a3128; text-align: center; padding: 48px 0 40px; }
.r-footer-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; margin-bottom: 26px; }
.r-footer-logos img { height: 48px; width: auto; object-fit: contain; }
/* EU emblem at least 60px high (Erasmus+ visibility rules), never smaller than the logos beside it */
.r-footer-logos .logo-eu { height: 76px; }
.r-footer-logos .logo-eplus { height: 44px; }
.r-footer-logos .logo-inedivim { height: 60px; }
.r-footer-logos .logo-org { height: 76px; }
.r-made { max-width: 760px; margin: 0 auto 12px; font-size: .86rem; line-height: 1.6; color: #3a3128; }
.r-disclaimer { max-width: 760px; margin: 0 auto; font-size: .82rem; line-height: 1.6; color: #5b5045; }
.r-copy { margin-top: 16px; font-size: .84rem; color: #6b5f53; }
.r-footer .footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px; margin-top: 20px; font-size: .88rem; }
.r-footer .footer-links a, .r-footer .footer-links button { display: inline-block; line-height: 1.5; color: #3a3128; background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(58, 49, 40, .35); }
.r-footer .footer-links a:hover, .r-footer .footer-links button:hover { text-decoration-color: currentColor; }
.r-footer :focus-visible { outline-color: #1b140c; }

/* ===================== LIGHTBOX ===================== */
.r-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 8, 6, .95);
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
  padding: 24px 12px;
}
.r-lb-figure { grid-column: 2; grid-row: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.r-lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); border-radius: 10px; object-fit: contain; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.r-lb-figure figcaption { font-size: .9rem; color: var(--muted); text-align: center; }
.r-lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  font-size: 1.6rem; line-height: 1; cursor: pointer; justify-self: center; transition: border-color .15s, color .15s;
}
.r-lb-btn:hover { border-color: var(--lamp); color: var(--lamp); }
.r-lb-close { position: absolute; top: 18px; right: 18px; font-size: 1.1rem; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.r-out.reveal { transition: opacity .7s ease, transform .7s ease, border-color .25s, box-shadow .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .r-lights .glow { animation: none; }
  .ph img, .r-shot img, .r-out, .r-out.reveal { transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .r-brand-tag { display: none; }
  .r-nav a { padding: 8px 9px; }
  .r-nav a.r-switch { margin-left: 4px; }
}

@media (max-width: 1000px) {
  .r-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .r-actions { margin-left: auto; }
  .r-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night-2); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    padding: 8px 16px 18px; display: none;
  }
  .r-nav.open { display: flex; }
  .r-nav a { padding: 13px 10px; font-size: 1rem; }
  .r-nav a.r-switch { margin: 10px 0 0; text-align: center; }
}

@media (max-width: 860px) {
  .r-days { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .r-rail {
    position: sticky; top: var(--header-h); z-index: 50;
    flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -24px 40px; padding: 12px 24px;
    background: rgba(21, 17, 14, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .r-rail::-webkit-scrollbar { display: none; }
  .r-rail::before { display: none; }
  .r-rail a {
    display: flex; align-items: baseline; gap: 6px; flex: 0 0 auto;
    padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  }
  .r-rail a::before { display: none; }
  .r-rail a.active { background: var(--lamp); border-color: var(--lamp); color: #1b140c; }
  .r-rail a.active .n { color: #1b140c; }
  .r-rail .n { font-size: .95rem; }
  .r-rail .d { font-size: .76rem; }   /* 12px+ on phones */

  .r-day { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-bottom: 48px; margin-bottom: 48px; }
  .r-day-num { font-size: 3.2rem; }
  .r-outputs { grid-template-columns: minmax(0, 1fr); }
  .r-numbers-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-num:nth-child(3) { border-left: none; }
  .r-num:nth-child(n+3) { border-top: 1px solid var(--line); }
  html { scroll-padding-top: calc(var(--header-h) + 70px); }
}

@media (max-width: 560px) {
  .r-wrap { padding: 0 16px; }
  /* footer logos two per row */
  .r-footer-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 24px 16px; }
  .r-footer .footer-links a, .r-footer .footer-links button { padding: 12px 4px; }
  .r-rail { margin: 0 -16px 36px; padding: 10px 16px; }
  .r-brand-name { font-size: 1rem; }
  .r-brand-tag { display: none; }
  .lang-switcher button { padding: 4px 5px; font-size: .95rem; }
  .r-hero { padding: 150px 0 64px; min-height: 0; }
  .r-section { padding: 76px 0; }
  .r-head { margin-bottom: 40px; }
  .r-photos { grid-auto-rows: 110px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-photos .ph:first-child { grid-column: span 2; }
  .r-photos[data-count="6"] .ph:nth-child(6) { grid-column: span 2; }
  .r-photos[data-count="1"] { grid-auto-rows: 240px; }
  .r-photos[data-count="2"] { grid-auto-rows: 160px; }
  .r-lightbox { grid-template-columns: minmax(0, 1fr); padding: 64px 8px 80px; }
  .r-lb-figure { grid-column: 1; }
  .r-lb-figure img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .r-lb-prev, .r-lb-next { position: absolute; bottom: 18px; }
  .r-lb-prev { left: calc(50% - 60px); }
  .r-lb-next { right: calc(50% - 60px); }
}

@media (max-width: 420px) {
  .r-header-in { gap: 10px; }
  .r-brand-name { font-size: .92rem; line-height: 1.05; }
  .r-brand-name span { display: block; }
  .r-toggle { width: 38px; height: 38px; }
  .lang-switcher { padding: 3px; }
  .lang-switcher button { padding: 4px 4px; font-size: .9rem; }
  .r-num { padding: 28px 8px; }
  .r-num span { font-size: .76rem; letter-spacing: .04em; }
}
