/* ── Weekly Slideshow 2.7 ─────────────────────────────────────────────────── */

#wss-slideshow {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #888888;
  margin: 0;
}

/* #wss-slides { position: absolute; inset: 0; } */
#wss-slides { position: absolute; top:0; right:0; bottom:0; left:0; } 


.wss-slide {
/*  position: absolute; inset: 0; */
  position: absolute; top:0; right:0; bottom:0; left:0; 
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
  animation: none;
  will-change: transform, opacity;
}
.wss-slide.active { opacity: 1; }

.wss-img {
/*  position: absolute; inset: 0; */
  position: absolute; top:0; right:0; bottom:0; left:0; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
/*
.wss-slide.active .wss-img { 
  animation: wss-kenburns 8s ease-out forwards;
}

@keyframes wss-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}
*/
#wss-overlay {
/*  position: absolute; inset: 0; */
  position: absolute; top:0; right:0; bottom:0; left:0; 
  background: linear-gradient(to bottom, transparent 85%, rgba(0,0,0,0.55) 95%, rgba(0,0,0,0.80) 100%);
  pointer-events: none;
  z-index: 2;
}

#wss-caption {
  position: absolute;
  bottom: 60px; left: 0; right: 0;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

#wss-album-name {
  display: inline-block;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
/*  text-transform: uppercase; */
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 6px;
}

#wss-prev, #wss-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  background: rgba(0,0,0,0.28);
  border: none; color: #fff;
  font-size: 2.2rem; line-height: 1;
  width: 48px; height: 72px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 4px 4px 0;
}
#wss-next { right: 0; border-radius: 4px 0 0 4px; }
#wss-prev { left: 0; }
#wss-prev:hover, #wss-next:hover { background: rgba(0,0,0,0.55); }

#wss-dots {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 4;
}

.wss-dot {
  width: 8px; height: 8px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.wss-dot.active, .wss-dot:hover { background: #fff; transform: scale(1.3); }

/* ── Portrait mobil ──────────────────────────────────────────────────────── */
@media (max-width: 600px) and (orientation: portrait) {
  #wss-slideshow { position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */ height: 0; } 
  
  .wss-slide {
    background-size: cover;
    background-position: center;
  } 
  
  #wss-caption { bottom: 20px; }
  #wss-dots    { bottom: 4px; }
  #wss-album-name { font-size: clamp(0.3rem, 2vw, 0.6rem); }
  #wss-prev, #wss-next { width: 36px; height: 54px; font-size: 1.6rem;  font-size: 1.0rem; }
} 

/* ── Mobile Querformat: volle Höhe, Blur-Balken ─────────────────────────── */
@media (orientation: landscape) and (max-height: 500px) { 
/*  #wss-slideshow { padding-bottom: 0; height: 100dvh; height: 100vh; height: 100dvh; } 21/9 => 42.85% */
/*  #wss-slideshow { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: calc(env(safe-area-inset-bottom) + 16px); } */
  #wss-slideshow { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: 42.85%; } 

/* Bilder: 16:9 zentriert, mit schwarzen Balken oben/unten (letterbox) */
  .wss-slide { 
    background-size: contain;   
/* ganzes Bild sichtbar, kein Crop */
    background-repeat: no-repeat; 
    background-position: center;
/*    background-position: center center; */
  } 
  
  #wss-caption { bottom: 28px; }
  #wss-dots { bottom: 4px; }
  #wss-album-name { font-size: clamp(0.75rem, 2vw, 1.1rem); }
  #wss-prev, #wss-next { width: 36px; height: 48px; font-size: 1.5rem; }
} 

/* ── Reduzierte Bewegung ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wss-slide.active .wss-img { animation: none; }
  .wss-slide { transition: opacity 0.4s ease; }
}

/* ── Album-Name ausblenden ────────────────────────────────────────────────── */
#wss-caption {
  transition: opacity 1.5s ease;
}
#wss-caption.wss-caption-hidden {
  opacity: 0;
}

/* ── Vollbild-Button ─────────────────────────────────────────────────────── */
#wss-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, opacity 1.5s ease;
  line-height: 1;
  padding: 0;
}
#wss-fullscreen:hover { background: rgba(0,0,0,0.65); }
#wss-fullscreen.wss-caption-hidden { opacity: 0; pointer-events: none; }

#wss-slideshow.wss-pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  width: auto !important;
  height: auto !important;
  padding-bottom: 0 !important;
  z-index: 99999 !important;
}

html.wss-fs-lock, body.wss-fs-lock{
  overflow:hidden !important;
}

