/* ── Slideshow-Seiten (Home + Galerie) ─────────────────────────────────── */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;    /* Fallback für ältere Browser */
  height: 100dvh;   /* sichtbare Höhe – berücksichtigt ein-/ausfahrende Adressleiste mobil */
  overflow: hidden;
}

main {
  flex: 1;
  min-height: 0;
  padding: 19px 12% 96px;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-image {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#main-image.visible { opacity: 1; }
#main-image.fading  { opacity: 0; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  main { padding: 12px 7% 64px; }
}

/* ── Mobile Landscape ── */
@media (max-height: 500px) and (orientation: landscape) {
  header { padding: 10px 24px 8px; }
  .site-title { font-size: 14px; letter-spacing: 0.12em; }
  nav a { font-size: 8px; }
  main { padding: 6px 6% 20px; }
}
