.lounge-mosaic img:first-child,
.city-mosaic img:first-child {
  object-position: left bottom;
}

.about-link {
  border: 0;
  border-bottom: 1px solid var(--white);
  background: transparent;
  padding: 0 0 10px;
  margin-top: 17px;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 1.3px;
}

.about-link span { font-size: 17px; margin-left: 9px; }

@media(max-width:700px) {
 .story-page .water-mosaic img:first-child { object-position: 40% center; }
}

.gallery-slide { flex: 0 0 100%; min-width: 0; }
.opening-single .opening-photo, .opening-single:before { pointer-events: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #d5c9af; outline-offset: 6px; }
@media(prefers-reduced-motion:reduce) {
 .opening-single .opening-photo { animation: none; }
}

/* Keep chapter information calm and give the onward journey its own space. */
.gallery-dialog .gallery-caption {
 display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.8fr);
 grid-template-rows: auto auto auto; gap: 7px 36px;
 height: 178px; padding: 22px 7vw; align-content: center; align-items: start;
}
.gallery-dialog .gallery-viewport { height: calc(100svh - 248px); }
.gallery-dialog #gallery-label-small { grid-column: 1; grid-row: 1; font-size: 8px; }
.gallery-dialog #gallery-title { grid-column: 1; grid-row: 2; font: normal 24px/1.2 Georgia,serif; margin: 0; }
.gallery-dialog .photo-description { grid-column: 1; grid-row: 3; margin: 0; font: 14px/1.4 Georgia,serif; }
.gallery-dialog #gallery-count { grid-column: 2; grid-row: 1; position: static; margin: 0; justify-self: end; }
.gallery-dialog .next-chapter { grid-column: 2; grid-row: 2 / 4; justify-self: end; align-self: center; max-width: 320px; padding: 12px 16px; border: 1px solid #77736b; font-size: 11px; line-height: 1.6; text-align: left; }
@media(max-width:700px) {
 .gallery-dialog .gallery-caption { height: 205px; padding: 17px 22px; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto auto auto; gap: 6px 12px; }
 .gallery-dialog .gallery-viewport { height: calc(100svh - 275px); }
 .gallery-dialog #gallery-title { font-size: 22px; }
 .gallery-dialog .next-chapter { grid-column: 1 / -1; grid-row: 4; justify-self: stretch; max-width: none; padding: 9px 12px; margin-top: 4px; }
}

/* A continuous journey with ordinary, visitor-controlled scrolling. */
.story-track { display: block; overflow: visible; scroll-snap-type: none; }
.story-page { margin-bottom: 28px; min-height: 620px; }
.stories { padding-bottom: 28px; }
.story-controls { display: none; }
.stories-meta span { display: none; }
.stories-meta:before { content: 'DIE BILDREISE / VIER KAPITEL'; }
.mosaic img, .story-page.active .mosaic img { transform: none; filter: brightness(.94) saturate(.95); }
@media(max-width:700px) { .story-page { min-height: 560px; margin-bottom: 16px; } }

.gallery-caption { height: 155px; position: relative; flex-wrap: wrap; gap: 10px 26px; align-content: center; }
.gallery-viewport { height: calc(100svh - 225px); }
.gallery-caption .photo-description { flex-basis: 100%; font: 15px/1.4 Georgia,serif; letter-spacing: 0; }
.next-chapter { border: 0; border-bottom: 1px solid #77736b; background: transparent; padding: 7px 0; font-size: 10px; letter-spacing: .7px; cursor: pointer; }
.next-chapter[hidden] { display: none; }
.gallery-arrow:disabled { opacity: .2; cursor: default; }
@media(max-width:700px) {
 .gallery-caption { height: 185px; display: flex; padding: 15px 22px; gap: 7px 15px; }
 .gallery-viewport { height: calc(100svh - 255px); }
 .gallery-caption h2 { font-size: 25px; }
 .gallery-caption span { top: 16px; bottom: auto; }
 .gallery-caption .photo-description { font-size: 14px; }
}

.opening-collected:after { display: none; }

.opening-prints {
  position: absolute;
  inset: 12vh 5vw 12vh 53%;
  pointer-events: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.opening-prints figure {
  position: relative;
  z-index: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: #161512;
  border: 1px solid #615a50;
  box-shadow: 0 16px 38px #0009;
  animation: opening-arrive var(--float-time) cubic-bezier(.22,.7,.18,1) both;
}

.opening-prints img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(.82) saturate(.88);
}

.opening-prints figure:nth-child(1) { grid-row: 1 / span 2; transform: none; --float-time: 1.15s; }
.opening-prints figure:nth-child(2) { grid-column: 2; grid-row: 1; transform: none; --float-time: 1.55s; }
.opening-prints figure:nth-child(3) { grid-column: 2; grid-row: 2; transform: none; --float-time: 1.9s; }

.opening-collected > :not(.opening-prints) { position: relative; z-index: 2; }
.opening-collected h1 { max-width: 56%; font-size: clamp(58px, 7vw, 108px); }

@keyframes opening-arrive {
  from { opacity: 0; translate: 0 42px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 700px) {
  .opening-prints { inset: 9vh 6vw 48vh 45vw; gap: 5px; }
  .opening-prints figure { padding: 0; }
  .opening-collected h1 { max-width: none; font-size: 60px; }
}

@media (max-width: 700px) {
  .mosaic img:first-child {
    object-position: left bottom;
  }
}

.opening-single { background: #090909; overflow: hidden; }
.opening-single:after { display: none; }
.opening-single .opening-photo {
  position: absolute;
  inset: -2%;
  background: url('assets/IMG_1703.jpg') center/cover;
  filter: brightness(.72) saturate(.88);
  animation: single-arrive 2.35s cubic-bezier(.22,.7,.18,1) both, single-breathe 18s ease-in-out 2.35s infinite alternate;
}
.opening-single:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,#050505e8 0%,#050505b3 37%,transparent 72%), linear-gradient(0deg,#000a 0%,transparent 54%);
}
.opening-single > :not(.opening-photo) { position: relative; z-index: 2; }
.opening-single > .kicker { margin-top: 4vh; }
.opening-single h1 { max-width: 760px; font-size: clamp(59px,9vw,132px); }
.opening-single .opening-note { max-width: 290px; }
@keyframes single-arrive {
  0% { clip-path: inset(0 0 0 100%); transform: scale(1.13); filter: brightness(.35) saturate(.5) blur(13px); }
  45% { clip-path: inset(0); }
  100% { transform: scale(1); filter: brightness(.72) saturate(.88) blur(0); }
}
@keyframes single-breathe { to { transform: scale(1.045); } }
@media (max-width: 700px) {
  .opening-single .opening-photo { background-position: 56% center; }
  .opening-single h1 { max-width: none; font-size: 65px; }
}
