/* slideshow: her small pictures under the bouquet. A click on one shows it large in the bouquet's place, in the same frame.
   The small pictures stay in view all the time, so a visitor sees that a click shows more (Heinz and Sandra,
   call 20.11: "darunter kleine Bilder … sodass man durchklicken kann" — "ich muss klicken, wenn ich mehr wissen will"). */

/* the large picture is seen whole, in its own shape (Sandra, voice note 30.11: "wenn man die Bilder anklickt und man die auch
   ganz sehen würde"): its frame takes the picture's proportions (--ar, set by slideshow.js) inside a square room that never
   changes size, so her words beside it and the small pictures under it stay where they are */
.about .slide-stage {
  width: min(520px, 100%);
  margin-left: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: end center;   /* the picture stands on its small pictures, and the room's space stays above it */
  container-type: inline-size;
}
.about .slide-stage .frame-k {
  width: calc(100cqw * min(1, var(--ar, 1)));
  aspect-ratio: var(--ar, 1);
  margin: 0;
}
/* the bouquet opens square, as on the Startseite (--ar: 1 on the page); once a visitor has picked a picture, it stands still
   at its whole size, so nothing of it is cut */
.about .slide-stage .frame-k.picked img { transform: none; object-position: 50% 50% !important; }
@media (max-width: 860px) { .about .slide-stage { width: 100%; margin: 0; } }

.thumbs {
  list-style: none;
  width: min(520px, 100%);
  margin: clamp(16px, 2vw, 28px) 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* ten pictures, two rows of five (Sandra, voice note 30.11: "Vielleicht dürfen es auch einfach 10 Fotos sein") */
  gap: clamp(8px, 1vw, 16px);
}
.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--hair);
  cursor: pointer;
  opacity: .72;
  transition: opacity var(--hover);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* the picture that is shown large: whole in colour, with a ring in her blue */
.thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--blue, #0f5e66); outline-offset: 3px; }
.thumb:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .thumb:hover { opacity: 1; } }
@media (max-width: 860px) { .thumbs { margin-left: 0; } }
@media (max-width: 480px) { .thumbs { gap: 8px; } }
@media (max-width: 600px) { .thumbs { margin-bottom: 44px; } }
@media (prefers-reduced-motion: reduce) { .thumb { transition: none; } }
html:not(.js) .thumbs { display: none; }   /* without the script a click would do nothing */
