@font-face {
  font-family: "Amsterdam Four";
  src: url("assets/fonts/amsterdam-four.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --green: #003d20;
  --green-dark: #00190d;
  --terracotta: #9f5434;
  --terracotta-dark: #894027;
  --blush: #f1d5c5;
  --ivory: #fffdf8;
  --ink: #18362c;
  --gold: #c09a58;
  --paper: #f6f2ea;
  --envelope-paper: #ece6db;
  --envelope-texture: url("assets/natural-paper.png");
  --border: rgba(24, 54, 44, 0.18);
  --shadow: 0 1.2rem 3rem rgba(43, 34, 27, 0.13);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Amsterdam Four", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.gallery-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(159, 84, 52, 0.11), transparent 27rem),
    radial-gradient(circle at 90% 48%, rgba(0, 61, 32, 0.1), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

.paper-grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

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

.gallery-header {
  width: min(76rem, calc(100% - 2rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 0;
  text-align: center;
}

.gallery-header__brand {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  left: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 2;
  width: clamp(5.5rem, 10vw, 7rem);
  display: block;
  color: var(--green);
}

.gallery-header__brand img {
  width: 100%;
  height: auto;
  display: block;
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-header h1 {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.gallery-header__subtext {
  margin: 0.75rem 0 0;
  color: var(--terracotta-dark);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.gallery-shell {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.gallery-intro {
  max-width: 42rem;
  margin: clamp(1.35rem, 3vw, 2.25rem) auto clamp(2.75rem, 6vw, 4.25rem);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  text-align: center;
}

.paper-card {
  position: relative;
  border: 1px solid rgba(69, 60, 43, 0.14);
  background: var(--envelope-texture), var(--envelope-paper);
  box-shadow: var(--shadow);
}

.paper-card::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(192, 154, 88, 0.28);
  pointer-events: none;
}

.auth-card {
  width: min(38rem, 100%);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 6vw, 3.75rem);
  text-align: center;
}

.auth-card h2,
.section-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.05;
}

.auth-card h2 {
  margin-bottom: 1.8rem;
}

.auth-card > p:not(.section-kicker) {
  margin: 0.8rem 0 1.5rem;
  font-size: 1.1rem;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-card label {
  display: block;
  margin: 0;
  font-weight: 600;
  text-align: left;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
}

input[type="password"] {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(0, 61, 32, 0.35);
  border-radius: 0.2rem;
  font-size: 1rem;
}

.button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--primary {
  color: var(--ivory);
  background: var(--green);
}

.button--primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button--secondary {
  color: var(--green);
  background: transparent;
  border-color: var(--green);
}

.button--danger {
  color: white;
  background: #8b2f28;
}

.button--danger:hover:not(:disabled) {
  background: #70231e;
}

.text-button {
  padding: 0.35rem 0.15rem;
  color: var(--green);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.text-link {
  display: inline-block;
  text-decoration: none;
}

.form-message,
.gallery-message {
  min-height: 1.4em;
  margin: 0.35rem 0 0;
  color: var(--terracotta-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-message {
  min-height: 0;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0;
  border-block: 1px solid var(--border);
  font-size: 0.92rem;
}

.gallery-toolbar p {
  margin: 0;
}

.gallery-toolbar--guest {
  display: none;
  justify-content: center;
  margin-bottom: 0.8rem;
  padding: 0;
  border: 0;
}

.mobile-file-picker {
  display: none;
  gap: 0.45rem;
  font-size: 1rem;
}

.gallery-logout {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 3;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 61, 32, 0.45);
  border-radius: 0.2rem;
}

.gallery-logout:hover {
  color: var(--ivory);
  background: var(--green);
}

.gallery-toolbar__actions,
.selection-bar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  display: inline-block;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.upload-card {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-heading__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.file-limit {
  color: rgba(24, 54, 44, 0.75);
  font-size: 0.9rem;
}

.file-picker {
  position: relative;
  z-index: 1;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.5rem;
  color: var(--green);
  background: rgba(241, 213, 197, 0.22);
  border: 1px dashed rgba(0, 61, 32, 0.55);
  border-radius: 0.2rem;
  text-align: center;
  cursor: pointer;
}

.file-picker:hover {
  background: rgba(241, 213, 197, 0.38);
}

.file-picker__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

.file-picker strong {
  font-size: 1.25rem;
}

.file-picker span:last-child {
  color: var(--ink);
}

.consent-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  cursor: pointer;
  line-height: 1.35;
}

.consent-row input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.05rem 0 0;
  accent-color: var(--green);
}

.upload-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.15rem;
}

.overall-progress {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
}

.overall-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

progress {
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: rgba(0, 61, 32, 0.12);
}

progress::-webkit-progress-bar {
  background: rgba(0, 61, 32, 0.12);
}

progress::-webkit-progress-value {
  background: var(--terracotta);
}

progress::-moz-progress-bar {
  background: var(--terracotta);
}

.upload-queue {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.8rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}

.queue-item__name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item__status {
  color: rgba(24, 54, 44, 0.75);
  font-size: 0.86rem;
}

.queue-item:is(.is-error, .is-invalid) .queue-item__status {
  color: #9b2c20;
}

.retry-button {
  color: var(--terracotta-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.photos-section {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0.85rem 0 1.25rem;
  padding: 0.85rem 0;
  border-block: 1px solid var(--border);
}

.selection-bar > span,
.selection-bar > strong {
  line-height: 1.35;
}

#galleryView {
  padding-bottom: 0;
}

#galleryView.has-selection {
  padding-bottom: 6rem;
}

.selection-dock {
  position: fixed;
  right: auto;
  bottom: max(0.8rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  width: min(70rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--envelope-texture), rgba(246, 242, 234, 0.97);
  border: 1px solid rgba(69, 60, 43, 0.2);
  border-radius: 0.35rem;
  box-shadow: 0 0.65rem 2.2rem rgba(43, 34, 27, 0.24);
  transform: translateX(-50%);
  justify-content: center;
}

.selection-dock .selection-bar__actions {
  width: 100%;
  justify-content: flex-end;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(0.65rem, 1.6vw, 1.15rem);
}

.photo-card {
  position: relative;
  aspect-ratio: 1;
}

.photo-tile {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  background: rgba(0, 61, 32, 0.09);
  border: 0;
  cursor: zoom-in;
}

.photo-tile::after {
  content: "Öffnen";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.25rem 0.5rem;
  color: white;
  background: rgba(0, 25, 13, 0.72);
  border-radius: 0.15rem;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-tile:hover::after,
.photo-tile:focus-visible::after {
  opacity: 1;
  transform: none;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.photo-tile:hover img {
  transform: scale(1.025);
}

.photo-select-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  background: rgba(255, 253, 248, 0.94);
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.65rem rgba(0, 25, 13, 0.24);
  font-family: system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.photo-select-button:hover,
.photo-select-button[aria-pressed="true"] {
  background: var(--green);
}

.photo-card.is-selected .photo-tile {
  outline: 4px solid var(--green);
  outline-offset: -4px;
}

.photo-card.is-selected .photo-tile img {
  transform: scale(0.96);
}

.photo-tile.is-selecting {
  cursor: pointer;
}

.photo-tile.is-selecting::after {
  display: none;
}

.photo-tile.is-selected {
  outline: 4px solid var(--green);
  outline-offset: -4px;
}

.photo-tile.is-selected img {
  transform: scale(0.96);
}

.photo-tile__selection {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 253, 248, 0.92);
  border: 2px solid var(--green);
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
}

.photo-tile.is-selecting .photo-tile__selection {
  opacity: 1;
}

.photo-tile.is-selected .photo-tile__selection {
  background: var(--green);
}

.admin-photos {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.admin-photo__date {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.25rem 0.45rem;
  color: white;
  background: rgba(0, 25, 13, 0.76);
  border-radius: 0.15rem;
  font-size: 0.76rem;
  pointer-events: none;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  margin: 1.5rem auto 0;
}

.load-more {
  display: flex;
  margin: 1.5rem auto 0;
}

.gallery-pagination__status {
  min-width: 7.5rem;
  color: rgba(24, 54, 44, 0.78);
  font-weight: 600;
  text-align: center;
}

.load-all-button {
  flex-basis: 100%;
  width: fit-content;
  margin: 0.1rem auto 0;
  padding: 0.25rem 0.1rem;
  color: rgba(24, 54, 44, 0.7);
  border: 0;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.load-all-button:hover:not(:disabled) {
  color: var(--green);
}

.load-all-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.privacy-details {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  color: rgba(24, 54, 44, 0.9);
  font-size: 0.86rem;
  text-align: right;
}

.privacy-details summary {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding-top: 0.2rem;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  opacity: 0.72;
  transition: opacity 160ms ease;
}

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

.privacy-details summary::after {
  content: "+";
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.privacy-details summary:hover,
.privacy-details summary:focus-visible {
  opacity: 1;
}

.privacy-details[open] {
  text-align: left;
}

.privacy-details[open] summary::after {
  content: "−";
}

.privacy-details p {
  margin: 0.7rem 0 0;
  padding: 0.8rem 1rem;
  background: rgba(241, 213, 197, 0.3);
  border-left: 2px solid var(--terracotta);
  line-height: 1.45;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: white;
  background: rgba(0, 18, 10, 0.97);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(0, 18, 10, 0.92);
}

.lightbox[open] {
  display: grid;
  grid-template: auto minmax(0, 1fr) / auto minmax(0, 1fr) auto;
}

.lightbox__bar {
  z-index: 2;
  grid-area: 1 / 1 / 2 / 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem max(0.8rem, env(safe-area-inset-right)) 0.7rem max(0.8rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox__bar > div {
  display: flex;
  gap: 0.45rem;
}

.lightbox__button,
.lightbox__nav {
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.lightbox__button {
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.2rem;
}

.lightbox__close {
  width: 2.5rem;
  padding: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-area: 2 / 2;
  grid-column: 2;
  place-items: center;
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  touch-action: pan-y;
}

.lightbox__stage img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  image-orientation: from-image;
}

.lightbox__loader {
  position: absolute;
  z-index: 0;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox__nav {
  width: clamp(2.8rem, 7vw, 5rem);
  border-block: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.lightbox__nav--previous {
  grid-area: 2 / 1;
}

.lightbox__nav--next {
  grid-area: 2 / 3;
}

.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.noscript {
  margin: 2rem;
  padding: 1rem;
  color: white;
  background: var(--terracotta-dark);
  text-align: center;
}

@media (max-width: 640px) {
  .gallery-logout {
    padding: 0.3rem 0.1rem;
    color: rgba(24, 54, 44, 0.7);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
  }

  .gallery-logout:hover {
    color: var(--green);
    background: transparent;
  }

  .gallery-header {
    padding-top: 5.75rem;
  }

  .gallery-header__brand {
    top: 0.65rem;
    left: 50%;
    width: 4.75rem;
    transform: translateX(-50%);
  }

  .gallery-header h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    overflow-wrap: anywhere;
  }

  .gallery-header__subtext {
    margin-top: 0.55rem;
    font-size: 0.9rem;
  }

  .gallery-intro {
    margin-bottom: 1.25rem;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-bar__actions {
    align-items: stretch;
    flex-direction: column;
  }

  #galleryView.has-selection {
    padding-bottom: 10rem;
  }

  .selection-dock {
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .selection-dock .selection-bar__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .selection-dock .selection-bar__actions > * {
    flex: 1 1 9rem;
  }

  .selection-dock #downloadSelectedButton {
    order: -1;
    flex-basis: 100%;
  }

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

  .photos-section .section-heading {
    align-items: start;
  }

  .gallery-toolbar--guest {
    display: flex;
  }

  .mobile-file-picker {
    display: inline-flex;
    min-height: 3.15rem;
    gap: 0.55rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.12rem;
  }

  .mobile-file-picker span {
    font-family: system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 0.75;
  }

  .upload-card .file-picker {
    display: none;
  }

  .upload-card.is-empty {
    display: none;
  }

  .upload-card .consent-row {
    margin-top: 0.4rem;
  }

  .upload-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .gallery-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .gallery-pagination .button {
    padding-inline: 0.8rem;
  }

  .load-all-button {
    grid-column: 1 / -1;
  }

  .photo-tile::after {
    display: none;
  }

  .lightbox[open] {
    grid-template: auto minmax(0, 1fr) auto / 1fr 1fr;
  }

  .lightbox__stage {
    grid-area: 2 / 1 / 3 / 3;
    grid-column: 1 / -1;
  }

  .lightbox__bar {
    grid-area: 1 / 1 / 2 / 3;
  }

  .lightbox__nav {
    z-index: 2;
    width: auto;
    min-height: 3.4rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .lightbox__nav--previous {
    grid-area: 3 / 1;
    grid-column: 1;
  }

  .lightbox__nav--next {
    grid-area: 3 / 2;
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
