/* Diaporama (festicarte-anniv et pages similaires) */

.slideshow {
  max-width: 320px;
  margin: 0 auto;
}

.slideshow-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.slideshow-frame img {
  display: none;
  position: relative;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.slideshow-frame img.is-active {
  display: block;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.slideshow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slideshow-btn:hover {
  background: var(--sand);
}

.slideshow-counter {
  min-width: 64px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.slideshow-fullscreen {
  display: none;
  font-size: 16px;
}

/* Mise en page quand le diaporama occupe tout l'écran (bouton plein écran,
   uniquement proposé en paysage mobile — voir slideshow.js) */
.slideshow:fullscreen,
.slideshow:-webkit-full-screen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  padding: 12px 0;
}

.slideshow:fullscreen .slideshow-frame,
.slideshow:-webkit-full-screen .slideshow-frame {
  flex: 1;
  min-height: 0;
}

.slideshow:fullscreen .slideshow-frame img,
.slideshow:-webkit-full-screen .slideshow-frame img {
  max-height: 100%;
  max-width: 100%;
}

.slideshow:fullscreen .slideshow-controls,
.slideshow:-webkit-full-screen .slideshow-controls {
  flex: 0 0 auto;
}

.slideshow:fullscreen .slideshow-counter,
.slideshow:-webkit-full-screen .slideshow-counter {
  color: #fffdf3;
}
