:root {
  --color-primary: #046017;
  --color-bg: #fffcf5;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-danger: #a40000;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(4, 96, 23, 0.08);
  --font-sans: "Funnel Sans", "Cantarell", "Andika", system-ui, -apple-system,
    "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-display: "Oswald", "Funnel Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-family: var(--font-sans);
  font-weight: 400;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.site-header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(4, 96, 23, 0.06);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.28rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.55rem;
  width: 100%;
}

.brand {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
  justify-self: center;
  min-width: 0;
}

.header-logo {
  flex: 0 0 auto;
  line-height: 0;
}

.header-logo--left {
  justify-self: start;
}

.header-logo--right {
  justify-self: end;
}

.header-logo-img {
  display: block;
  width: clamp(4.5rem, 14vw, 7.5rem);
  height: auto;
}

.header-logo-img--pedevilla {
  /* Il bianco del raster si “annulla” sul verde dell’header (come trasparenza su questo sfondo) */
  mix-blend-mode: multiply;
}

.header-logo-img--telespazio {
  mix-blend-mode: normal;
}

@media (max-width: 36rem) {
  .header-bar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo-left logo-right"
      "brand brand";
  }

  .header-logo--left {
    grid-area: logo-left;
  }

  .header-logo--right {
    grid-area: logo-right;
  }

  .brand {
    grid-area: brand;
  }
}

.nav {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.nav a {
  color: #e8f5e9;
  text-decoration: none;
  font-size: 0.78rem;
}

.nav a:hover { text-decoration: underline; }

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  flex: 1 1 auto;
  width: 100%;
}

@media (min-width: 48rem) {
  .main.main--auth-centered {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .main.main--auth-centered > :last-child {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    width: 100%;
  }

  /* Login: la card occupa parte dell’altezza viewport così immagine + form si allungano */
  .main.main--auth-centered > section.login-card {
    width: min(100%, 36rem);
    min-height: clamp(17rem, 58vh, 40rem);
    max-height: min(90vh, 44rem);
  }
}

.auth-switch {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.55;
}

.auth-switch a {
  color: var(--color-primary);
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(4, 96, 23, 0.12);
  background: rgba(255, 252, 245, 0.95);
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.65rem 1rem 1rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.card.narrow { max-width: 420px; margin: 0 auto; }

.card.narrow.login-card {
  max-width: min(100%, 36rem);
}

.login-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.login-card-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.login-card-media {
  min-height: 0;
  flex: 0 1 auto;
}

.login-card-media img {
  display: block;
  width: 100%;
  height: clamp(7rem, 30vh, 14rem);
  object-fit: cover;
  object-position: center;
}

.login-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 32rem) {
  .login-card-layout {
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
  }

  .login-card-media {
    flex: 0 0 40%;
    max-width: 40%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .login-card-media img {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .login-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 60%;
    min-width: 0;
    min-height: 0;
    padding: 1.1rem 1.35rem;
  }
}

h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.muted { color: var(--color-muted); font-size: 0.95rem; }

.stack { display: flex; flex-direction: column; gap: 0.85rem; }

.field span { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; color: var(--color-muted); }

.input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

.input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.9rem; }

.link { background: none; border: none; color: var(--color-primary); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.link.danger { color: var(--color-danger); }

.error { color: var(--color-danger); font-size: 0.85rem; }

.flash-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 0.35rem; }
.flash-success { background: #e8f5e9; color: #1b5e20; }
.flash-danger { background: #ffebee; color: #b71c1c; }
.flash-warning { background: #fff8e1; color: #6d4c41; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th, .table td {
  text-align: left;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid #e0e0e0;
}

.table th { color: var(--color-primary); font-weight: 600; }

.actions { white-space: nowrap; }
.actions form.inline { display: inline; margin-left: 0.5rem; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filters.stack-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.inline-filters { margin-bottom: 1rem; }

.tile-list { list-style: none; padding: 0; margin: 0; }
.tile-list li { margin-bottom: 0.65rem; }

.tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #f1f8e9;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  border: 1px solid #c8e6c9;
}

.tile:hover { background: #e8f5e9; }

.tile-arrow { font-size: 1.4rem; opacity: 0.6; }

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.breadcrumb a { color: var(--color-primary); }

.day-list { list-style: none; padding: 0; margin: 0; columns: 2; gap: 0.5rem; }
@media (max-width: 600px) { .day-list { columns: 1; } }

.day-link {
  display: block;
  padding: 0.45rem 0;
  color: var(--color-primary);
  text-decoration: none;
  text-transform: capitalize;
}

.day-link.today { font-weight: 700; }

.my-booking {
  background: #e8f5e9;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

fieldset.field { border: 1px solid #c8e6c9; border-radius: 8px; padding: 0.75rem; }
.check { display: block; margin: 0.35rem 0; }

.pwa-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-top: 2px solid var(--color-primary);
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 50;
}

.pwa-banner.hidden { display: none; }

.pwa-banner p { margin: 0; flex: 1 1 200px; text-align: center; }

code { background: #f5f5f5; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }

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

.btn-ghost.danger {
  color: var(--color-danger);
  border-color: #ffcdd2;
}

.btn-ghost.danger:hover {
  background: #ffebee;
}

/* Dashboard utente (home prenotazione) */
.dashboard-stack {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.dashboard-foot {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.dashboard-foot .sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.badge-card {
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 8px 28px rgba(4, 96, 23, 0.1);
  border: 1px solid rgba(4, 96, 23, 0.08);
}

.badge-status {
  background: linear-gradient(165deg, #f3f8ff 0%, #ffffff 55%);
  text-align: center;
}

.badge-book {
  background: linear-gradient(165deg, #fffef9 0%, #ffffff 50%);
  text-align: center;
}

.badge-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.badge-subtitle {
  margin: 0.35rem 0 1rem;
  font-size: 0.9rem;
}

.status-detail {
  text-align: left;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid #e3f2fd;
}

.status-line {
  margin: 0.25rem 0;
  font-size: 0.98rem;
}

.status-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.status-empty {
  margin: 0;
  padding: 0.5rem 0.25rem;
}

.status-actions {
  margin-top: 1rem;
  text-align: center;
}

.wizard-lock-hint {
  margin: 0 0 1rem;
  text-align: left;
  font-size: 0.88rem;
}

.wizard.is-locked {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.15);
}

.wizard-steps-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.wizard-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e8f5e9;
  color: var(--color-muted);
  border: 2px solid #c8e6c9;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wizard-dot.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.wizard-line {
  width: 2.5rem;
  height: 2px;
  background: #c8e6c9;
  border-radius: 1px;
}

.wizard-step-caption {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wizard-viewport {
  overflow: hidden;
}

.wizard-track {
  display: flex;
  width: 200%;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.wizard-panel {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 0 0.2rem;
  text-align: left;
}

.wizard-next,
.wizard-confirm {
  width: 100%;
  margin-top: 1rem;
}

.wizard-back {
  margin-bottom: 0.75rem;
}

.wizard-banner {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  text-align: left;
}

.wizard-banner--danger {
  background: #ffebee;
  color: #b71c1c;
}

.wizard-banner--warning {
  background: #fff8e1;
  color: #6d4c41;
}

.wizard-loading {
  text-align: center;
  padding: 1rem;
}

.chip-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chip-radio {
  position: relative;
  cursor: pointer;
}

.chip-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-radio span {
  display: block;
  padding: 0.65rem 1rem;
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  background: #fafcfa;
  font-weight: 600;
  color: var(--color-primary);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.chip-radio input:checked + span {
  border-color: var(--color-primary);
  background: #e8f5e9;
  box-shadow: 0 0 0 3px rgba(4, 96, 23, 0.12);
}

.chip-radio input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.turni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .turni-grid {
    grid-template-columns: 1fr;
  }
}

.turno-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem 1rem;
  border: 1px solid #dcedc8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(4, 96, 23, 0.06);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}

.turno-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(4, 96, 23, 0.1);
  border-color: var(--color-primary);
}

.turno-card.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(4, 96, 23, 0.18);
}

.turno-card.is-disabled,
.turno-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.turno-chart {
  display: block;
}

.donut-track {
  stroke: #e4ebe6;
}

.donut-fill--calm {
  stroke: #1b5e20;
}

.donut-fill--mid {
  stroke: #558b2f;
}

.donut-fill--tight {
  stroke: #ef6c00;
}

.donut-fill--full {
  stroke: #bdbdbd;
}

.donut-num {
  font-size: 1.25rem;
  font-weight: 700;
  fill: var(--color-text);
}

.donut-cap {
  font-size: 0.55rem;
  fill: var(--color-muted);
  letter-spacing: 0.02em;
}

.turno-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.turno-meta {
  font-size: 0.75rem;
  line-height: 1.3;
}

.turno-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.booking-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.booking-item {
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: #fbfffc;
}

.booking-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.booking-date {
  font-weight: 700;
  color: var(--color-primary);
}

.booking-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.booking-badge--ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.booking-badge--done {
  background: #eceff1;
  color: #455a64;
}

.booking-line {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.booking-actions {
  margin-top: 0.75rem;
}

.status-bookings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-bookings .status-detail {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(4, 96, 23, 0.12);
}

.status-bookings .status-detail:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.wizard-per-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.qr-inline,
.qr-block {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.qr-block {
  display: block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: #f4f7f4;
  border-radius: 6px;
}

.cell-dropdown {
  margin: 0;
}

.cell-dropdown summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
}

.cell-dropdown summary::-webkit-details-marker {
  display: none;
}

.cell-dropdown summary::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.7;
}

.cell-dropdown[open] summary::after {
  content: " ▴";
}

.cell-dropdown-body {
  margin-top: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: #f8faf8;
  border-radius: 6px;
  font-size: 0.88rem;
}

.table-admin-bookings .cell-dropdown summary {
  font-weight: 500;
  color: inherit;
}

.qr-cell {
  min-width: 9rem;
}

.cell-dropdown--qr .cell-dropdown-body {
  text-align: center;
}

.qr-scan {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.qr-scan-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.qr-scan-trigger:active {
  transform: scale(0.98);
}

.qr-scan-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.qr-scan-img {
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(4, 96, 23, 0.15);
  background: #fff;
  image-rendering: pixelated;
  pointer-events: none;
}

.qr-scan-hint {
  font-size: 0.68rem;
  color: var(--color-muted);
  font-weight: 500;
}

.qr-scan-caption {
  margin: 0;
  max-width: 12rem;
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-all;
}

.qr-scan-caption code {
  font-size: inherit;
}

.status-qr,
.booking-qr {
  margin-top: 0.5rem;
}

/* Lightbox QR a schermo intero */
body.qr-lightbox-open {
  overflow: hidden;
}

.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.qr-lightbox[hidden] {
  display: none !important;
}

.qr-lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.qr-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 28rem);
  max-height: 100%;
  padding: 1rem 1.1rem 1.25rem;
  text-align: center;
}

.qr-lightbox-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.qr-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.qr-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.qr-lightbox-img-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.qr-lightbox-img {
  display: block;
  width: min(92vw, 92dvh, 22rem);
  height: auto;
  max-height: min(72dvh, 22rem);
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
}

.qr-lightbox-caption {
  margin: 0;
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-all;
  color: #e8f5e9;
}

.qr-lightbox-caption code {
  font-size: inherit;
  color: inherit;
  background: transparent;
}

.qr-lightbox-foot {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 40rem) {
  .qr-lightbox-img {
    width: min(80vw, 24rem);
    max-height: min(80vh, 24rem);
  }
}
