.gallery-page {
  --gallery-paper: #191b18;
  --gallery-ink: #e8e4dc;
  height: auto;
  min-height: 100svh;
  overflow: auto;
  background: var(--gallery-paper);
  color: var(--gallery-ink);
  -webkit-font-smoothing: antialiased;
}
html:has(.gallery-page) { height: auto; overflow: auto; }
.gallery-page.overlay-open { overflow: hidden; }
.gallery-page [hidden] { display: none !important; }
.gallery-page .topbar {
  position: relative;
  inset: auto;
  margin: 0 3.5%;
  padding: 22px 0;
  min-height: 88px;
  align-items: center;
  border-bottom: 1px solid #3d4037;
  z-index: 1;
}
.gallery-page .brand { font-size: 13px; letter-spacing: .07em; }
.gallery-page .topbar nav { gap: 30px; align-items: center; }
.gallery-page .topbar nav :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  font-size: 10px;
  color: inherit;
  letter-spacing: .08em;
}
.gallery { margin: 0; }
.gallery-room {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #191b18;
}
.gallery-picture, .gallery-picture img, #gallery-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
#gallery-film { opacity: 0; pointer-events: none; }
.gallery-room.has-film #gallery-film { opacity: 1; }
.exhibit-zone {
  position: absolute;
  top: 49%;
  width: 14%;
  height: 28%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #e8e4dc;
  text-align: left;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.exhibit-neinfeld { left: 31.5%; }
.exhibit-shop { left: 54.5%; }
.gallery-page :is(button, a):focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.exhibit-zone:focus-visible { outline-offset: -4px !important; outline-color: #fff !important; box-shadow: inset 0 0 0 7px #252720; }
.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 3.5%;
  padding: 19px 0;
  border-bottom: 1px solid #3d4037;
  font-size: 8px;
  letter-spacing: .1em;
  line-height: 1.6;
}
.caption-divider { margin: 0 8px; color: #b6b4a9; }
.gallery-controls { display: flex; gap: 18px; }
.gallery-controls button {
  min-height: 44px;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #888b7c;
  color: inherit;
  font: inherit;
}
#gallery-status { flex-basis: 100%; margin: 0; font-size: 11px; letter-spacing: normal; }
.gallery-footer { margin: 0 3.5%; padding: 25px 0 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 8px; letter-spacing: .1em; }
.gallery-footer a { padding: 12px 0; color: inherit; text-decoration: none; }
.gallery-noscript { padding: 20px 3.5%; font-size: 14px; }
.gallery-page #neinfeld-overlay {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(900px, calc(100% - 40px));
  height: fit-content;
  max-height: calc(100dvh - 40px);
  border: 1px solid #ffffff30;
}
.gallery-page #neinfeld-overlay::backdrop { background: #171814cf; backdrop-filter: blur(5px); }
.gallery-page .neinfeld-panel { min-height: auto; padding: 24px; gap: 22px; }
.gallery-page #neinfeld-advert { max-height: calc(100dvh - 230px); }
.gallery-page .navigation-overlay,
.gallery-page #shop-overlay { z-index: 1100; transition: opacity 180ms ease; }
@media (max-width: 700px) {
  .gallery-page .topbar { margin: 0 20px; padding: 12px 0; min-height: 74px; flex-wrap: wrap; gap: 4px 16px; }
  .gallery-page .brand { font-size: 11px; min-height: 44px; }
  .gallery-page .topbar nav { gap: 16px; }
  .gallery-page .topbar nav :is(button, a) { font-size: 9px; }
  .gallery-room { aspect-ratio: 6 / 5; }
  .gallery-room.master-film #gallery-film { width: 148.148148%; max-width: none; left: -24.074074%; }
  .exhibit-zone { width: 20.740741%; top: 49%; height: 30%; }
  .exhibit-neinfeld { left: 22.592593%; }
  .exhibit-shop { left: 56.666667%; }
  .gallery-caption { margin: 0 20px; padding: 15px 0; gap: 10px; font-size: 7px; }
  .gallery-invitation { display: none; }
  .gallery-footer { margin: 0 20px; padding: 20px 0 26px; flex-wrap: wrap; gap: 8px 16px; font-size: 7px; }
  .gallery-footer > span:last-child { flex-basis: 100%; color: #b6b4a9; }
  .gallery-page #neinfeld-overlay { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .gallery-page .neinfeld-panel { padding: 14px; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page *, .gallery-page *::before, .gallery-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
