:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --surface-soft: #f3eadc;
  --ink: #24201b;
  --muted: #71695f;
  --line: #e0d5c6;
  --teal: #246b70;
  --teal-dark: #174f54;
  --rose: #bb5965;
  --plum: #4a3148;
  --gold: #c28a35;
  --shadow: 0 18px 46px rgba(44, 35, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.8), rgba(246, 241, 232, 1) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-lightbox-open {
  overflow: hidden;
}

body.access-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(246, 241, 232, 0.96)),
    url("/static/celebration-bg.svg") center / cover,
    var(--bg);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(36, 32, 27, 0.1);
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--teal);
  color: white;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.topnav a,
.button,
.upload-button,
.download-link,
.filter {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.topnav a {
  color: var(--muted);
}

.topnav__download,
.button--dark {
  background: var(--ink);
  color: white !important;
}

main {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.hero {
  min-height: min(560px, calc(100svh - 140px));
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__media {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(20, 17, 13, 0.06), rgba(20, 17, 13, 0.48)),
    url("/static/celebration-bg.svg") center 42% / cover;
}

.hero__content {
  display: grid;
  align-content: center;
  padding: clamp(28px, 6vw, 64px);
}

.kicker,
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.hero__lead {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero__actions,
.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button--primary,
.upload-button {
  background: var(--teal);
  color: white;
}

.access-shell {
  min-height: 100svh;
  width: min(100% - 28px, 520px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.access-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 6vw, 42px);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.access-card__mark {
  margin-bottom: 18px;
}

.access-card h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 14vw, 5.4rem);
}

.access-card__text {
  color: var(--muted);
  line-height: 1.55;
}

.access-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.access-form label {
  color: var(--muted);
  font-weight: 900;
}

.access-form input {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-size: 1.15rem;
}

.access-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(36, 107, 112, 0.18);
}

.access-error {
  margin: 2px 0 0;
  color: #9a2639;
  font-weight: 850;
}

.button--primary:hover,
.upload-button:hover {
  background: var(--teal-dark);
}

.button--quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.quick-card {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(44, 35, 24, 0.08);
}

.quick-card:hover {
  border-color: rgba(36, 107, 112, 0.48);
  transform: translateY(-1px);
}

.quick-card--primary {
  background: var(--teal);
  color: white;
}

.quick-card__number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(36, 32, 27, 0.1);
  font-weight: 950;
}

.quick-card--primary .quick-card__number {
  background: rgba(255, 255, 255, 0.2);
}

.quick-card strong {
  font-size: 1.12rem;
  line-height: 1.15;
}

.quick-card small {
  color: var(--muted);
  line-height: 1.45;
}

.quick-card--primary small {
  color: rgba(255, 255, 255, 0.8);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.summary span {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--muted);
}

.summary strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.messages {
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 13px 16px;
  background: #e8f5ed;
  color: #27573a;
  font-weight: 800;
}

.messages p {
  margin-bottom: 0;
}

.upload-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 22px 0 34px;
  padding: clamp(20px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(244, 234, 219, 0.9)),
    var(--surface);
  box-shadow: 0 12px 36px rgba(44, 35, 24, 0.09);
}

.upload-copy p:not(.section-label),
.gallery-header p,
.empty-state p,
.media-meta small {
  color: var(--muted);
  line-height: 1.5;
}

.upload-form {
  display: grid;
  gap: 12px;
}

.dropzone {
  min-height: 210px;
  border: 2px dashed #b8c4bd;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--teal-dark);
  text-align: center;
  cursor: pointer;
}

.dropzone:hover {
  border-color: var(--teal);
  background: #f2f7f3;
}

.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dropzone__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  font-size: 2rem;
  font-weight: 750;
}

.dropzone__title {
  font-size: 1.08rem;
  font-weight: 950;
}

.dropzone__hint {
  max-width: 440px;
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-button {
  width: 100%;
}

progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
}

.upload-status {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.gallery-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 30px 0 16px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 330px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.filter.is-active {
  border-color: var(--rose);
  background: var(--rose);
  color: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(44, 35, 24, 0.08);
}

.media-card.is-lightbox-buffer {
  display: none;
}

.media-frame {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: #1f2526;
  cursor: zoom-in;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(36, 107, 112, 0.9), rgba(74, 49, 72, 0.92)),
    #1f2526;
  color: white;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
}

.media-frame:hover img,
.media-frame:hover video {
  transform: scale(1.035);
}

.media-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.media-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.media-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.download-link {
  min-height: 40px;
  background: #f7e7eb;
  color: #873b4a;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px 18px;
  background: var(--surface);
  text-align: center;
}

.pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 24px 0 6px;
}

.pagination--top {
  margin: -2px 0 16px;
}

.pagination__pages {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination__button,
.pagination__page,
.pagination__ellipsis {
  min-height: 48px;
  min-width: 48px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 900;
}

.pagination__button {
  background: var(--teal);
  color: white;
}

.pagination__button:hover {
  background: var(--teal-dark);
}

.pagination__page,
.pagination__ellipsis {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.pagination__page.is-active {
  border-color: var(--rose);
  background: var(--rose);
  color: white;
}

.pagination__button.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: rgba(14, 18, 20, 0.93);
  color: white;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  min-width: 0;
  max-width: 1180px;
  max-height: calc(100svh - 36px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
}

.lightbox__stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: calc(100svh - 170px);
  border-radius: 8px;
  display: block;
  background: #050607;
  object-fit: contain;
}

.lightbox.is-fullscreen-viewer {
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 0;
  padding: max(10px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: #050607;
}

.lightbox.is-fullscreen-viewer .lightbox__figure {
  width: 100%;
  max-width: none;
  max-height: calc(100svh - 20px);
  grid-template-rows: minmax(0, 1fr);
}

.lightbox.is-fullscreen-viewer .lightbox__stage img,
.lightbox.is-fullscreen-viewer .lightbox__stage video {
  max-width: calc(100vw - 122px);
  max-height: calc(100svh - 28px);
  border-radius: 0;
}

.lightbox.is-fullscreen-viewer .lightbox__caption {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: 64px;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px);
  z-index: 4;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  text-align: left;
  backdrop-filter: blur(12px);
}

.lightbox.is-fullscreen-viewer .lightbox__actions {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lightbox.is-fullscreen-viewer .lightbox__download,
.lightbox.is-fullscreen-viewer .lightbox__share {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.lightbox__caption {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: center;
}

.lightbox__caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.lightbox__caption small {
  color: rgba(255, 255, 255, 0.72);
}

.lightbox__download,
.lightbox__share,
.lightbox__close,
.lightbox__nav {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.lightbox__download {
  min-width: 180px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lightbox__share {
  min-width: 190px;
  padding: 0 18px;
  background: var(--teal);
}

.lightbox__share:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (min-width: 861px) {
  .lightbox__share {
    display: none;
  }
}

.lightbox__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 3;
  width: 48px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  z-index: 3;
  width: 54px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 3.3rem;
  line-height: 1;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 860px) {
  .topnav a:not(.topnav__download) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: 240px;
  }

  .hero__content {
    padding: 24px;
  }

  .summary,
  .quick-actions,
  .upload-section,
  .gallery-header {
    grid-template-columns: 1fr;
  }

  .gallery-tools {
    display: grid;
  }

  .filters {
    width: 100%;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 12px, 1160px);
    padding-top: 8px;
    padding-bottom: 44px;
  }

  .topbar {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .topnav__download {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.86rem;
  }

  .hero {
    box-shadow: 0 10px 28px rgba(44, 35, 24, 0.1);
  }

  .hero__media {
    min-height: clamp(230px, 62vw, 340px);
    background-position: center 38%;
  }

  .hero__content {
    padding: 18px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(2.15rem, 13vw, 3.55rem);
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero__lead {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .quick-actions {
    gap: 8px;
    margin: 10px 0;
  }

  .quick-card {
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    padding: 12px;
  }

  .quick-card strong,
  .quick-card small {
    grid-column: 2;
  }

  .quick-card small {
    display: none;
  }

  .summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .summary span:last-child {
    grid-column: 1 / -1;
  }

  .summary span {
    min-height: 60px;
    padding: 10px;
  }

  .summary strong {
    font-size: 1.22rem;
  }

  .upload-section {
    margin-top: 16px;
    padding: 14px;
  }

  .dropzone {
    min-height: 148px;
    padding: 16px;
  }

  .dropzone__icon {
    width: 48px;
    height: 48px;
  }

  .gallery-header {
    margin-top: 22px;
  }

  .gallery-tools {
    gap: 8px;
  }

  .filters {
    gap: 6px;
  }

  .filter,
  .button,
  .upload-button,
  .pagination__button,
  .pagination__page {
    min-height: 46px;
  }

  .pagination {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pagination__button {
    width: 100%;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .media-frame {
    aspect-ratio: 1 / 1;
  }

  .media-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  .media-meta span {
    font-size: 0.82rem;
  }

  .media-meta small {
    font-size: 0.76rem;
  }

  .download-link {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 0.84rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: max(12px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom));
  }

  .lightbox__figure {
    width: 100%;
    max-height: calc(100svh - 24px);
  }

  .lightbox__stage img,
  .lightbox__stage video {
    max-height: calc(100svh - 156px);
  }

  .lightbox__nav {
    position: fixed;
    top: 50%;
    width: 42px;
    min-height: 64px;
    transform: translateY(-50%);
    font-size: 2.6rem;
    background: rgba(0, 0, 0, 0.36);
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }

  .lightbox__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lightbox__download,
  .lightbox__share {
    width: 100%;
    min-height: 46px;
  }

  .lightbox.is-fullscreen-viewer {
    grid-template-columns: 1fr;
    padding: max(8px, env(safe-area-inset-top)) 0 max(8px, env(safe-area-inset-bottom));
  }

  .lightbox.is-fullscreen-viewer .lightbox__stage img,
  .lightbox.is-fullscreen-viewer .lightbox__stage video {
    max-width: 100vw;
    max-height: calc(100svh - 96px);
  }

  .lightbox.is-fullscreen-viewer .lightbox__caption {
    left: 10px;
    right: 58px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 54px);
  }

  .lightbox.is-fullscreen-viewer .lightbox__actions {
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox.is-fullscreen-viewer .lightbox__download,
  .lightbox.is-fullscreen-viewer .lightbox__share {
    width: auto;
    min-height: 42px;
    padding: 0 6px;
    font-size: 0.78rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 6px;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .lightbox__figure {
    width: 100%;
    max-width: none;
    max-height: calc(100svh - 16px);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .lightbox__stage img,
  .lightbox__stage video {
    max-width: calc(100vw - 126px);
    max-height: calc(100svh - 66px);
  }

  .lightbox__caption {
    display: none;
  }

  .lightbox__actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .lightbox__download,
  .lightbox__share {
    width: auto;
    min-width: 116px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .lightbox__close {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 40px;
    min-height: 40px;
    font-size: 1.7rem;
  }

  .lightbox__nav {
    width: 42px;
    min-height: 58px;
    font-size: 2.4rem;
  }

  .lightbox.is-fullscreen-viewer {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .lightbox.is-fullscreen-viewer .lightbox__stage img,
  .lightbox.is-fullscreen-viewer .lightbox__stage video {
    max-width: calc(100vw - 94px);
    max-height: calc(100svh - 12px);
  }

  .lightbox.is-fullscreen-viewer .lightbox__caption {
    display: none;
  }

  .lightbox.is-fullscreen-viewer .lightbox__actions {
    left: 50%;
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 120px));
    transform: translateX(-50%);
  }
}
