.feld {
  touch-action: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.feld canvas {
  touch-action: none;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .feld {
    cursor: url("/assets/bilder/fotoausflug/kamera-zeiger.svg") 32 37, crosshair;
  }
}

.leiste {
  --platz-b: min(calc((100vw - 2rem - 7 * .75rem) / 8), calc(13vh * 4 / 3), 9rem);
  left: 0;
  right: 0;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  z-index: 10;
  pointer-events: none;
  justify-content: center;
  gap: .75rem;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  position: absolute;
}

.leiste__platz {
  width: var(--platz-b);
  aspect-ratio: 4 / 3;
  background: #fffdf838;
  border: 3px solid #fffdf8d9;
  border-radius: 6px;
  position: relative;
}

.leiste__platz--voll {
  background: none;
  border-color: #0000;
}

.leiste__foto {
  object-fit: cover;
  border: 4px solid var(--farbe-flaeche);
  background: var(--farbe-flaeche);
  transform-origin: center;
  border-radius: 3px;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  box-shadow: 0 4px 14px #00000047;
}

.leiste__foto--a {
  rotate: -3deg;
}

.leiste__foto--b {
  rotate: 2deg;
}

.leiste__foto--c {
  rotate: -1deg;
}

.foto-lob {
  top: calc(1.5rem + env(safe-area-inset-top));
  z-index: 15;
  color: var(--farbe-haupt-text);
  font-family: var(--schrift-titel);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  max-width: calc(100vw - 9rem);
  transition: opacity .6s var(--uebergang);
  pointer-events: none;
  background: #173a30d9;
  border-radius: 999px;
  margin: 0;
  padding: .6em 1.2em;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  position: absolute;
  left: 50%;
  translate: -50%;
}

.foto-lob--sichtbar {
  opacity: 1;
}

@media (width <= 40rem) {
  .foto-lob {
    white-space: normal;
    width: max-content;
    max-width: calc(100vw - 7rem);
  }
}

.schimmer {
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(#fffdf800 45%, #fffdf8 100%);
  position: absolute;
  inset: 0;
}

.spielbildschirm--album .leiste {
  visibility: hidden;
}

.lob--album {
  justify-content: flex-end;
}

.album {
  z-index: 1;
  background: #f6efe2f0;
  border-radius: 12px;
  flex: auto;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, 1.5vw, 1.25rem);
  width: 100%;
  min-height: 0;
  padding: clamp(.75rem, 2vw, 1.5rem);
  display: grid;
  position: relative;
}

.album[hidden] {
  display: none;
}

.album__foto {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  min-height: 0;
  margin: 0;
  display: flex;
}

.album__bild {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 5px solid var(--farbe-flaeche);
  border-radius: 3px;
  flex: auto;
  max-width: 100%;
  min-height: 0;
  box-shadow: 0 4px 14px #00000038;
}

.album__foto:nth-child(3n+1) .album__bild {
  rotate: -2deg;
}

.album__foto:nth-child(3n+2) .album__bild {
  rotate: 1.5deg;
}

.album__name {
  color: var(--farbe-text);
  text-align: center;
  font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
}

@media (orientation: portrait) {
  .album {
    grid-template-rows: repeat(4, minmax(0, 1fr));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
