.oedipe-slideshow {
  margin: 3rem auto 3.5rem;
  max-width: 58rem;
  width: 100%;
}

.oedipe-slideshow__stage {
  background: #f8f7f4;
  border: 1px solid var(--couleur-bordure);
  border-radius: 8px;
  overflow: hidden;
  padding: clamp(0.9rem, 2vw, 1.5rem);
}

.oedipe-slideshow__slide {
  margin: 0;
}

.oedipe-slideshow__slide[hidden] {
  display: none;
}

.oedipe-slideshow__slide.is-active {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.oedipe-slideshow__image {
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  width: 100%;
}

.oedipe-slideshow__image img {
  display: block;
  height: auto;
  max-height: min(72vh, 52rem);
  max-width: 100%;
  width: auto;
}

.oedipe-slideshow figcaption {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.oedipe-slideshow figcaption strong {
  display: block;
  font-weight: 600;
}

.oedipe-slideshow__controls,
.oedipe-slideshow__dots {
  align-items: center;
  display: flex;
  justify-content: center;
}

.oedipe-slideshow__controls {
  gap: 1rem;
  margin-top: 1.1rem;
}

.oedipe-slideshow__control,
.oedipe-slideshow__dot {
  appearance: none;
  background: #fff;
  border: 1px solid var(--couleur-bordure);
  color: var(--couleur-lien);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.oedipe-slideshow__control {
  border-radius: 50%;
  font-size: 1rem;
  height: 2.7rem;
  width: 2.7rem;
}

.oedipe-slideshow__control:hover,
.oedipe-slideshow__control:focus-visible,
.oedipe-slideshow__dot:hover,
.oedipe-slideshow__dot:focus-visible {
  border-color: var(--couleur-lien);
  outline: none;
}

.oedipe-slideshow__counter {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  min-width: 4rem;
  text-align: center;
}

.oedipe-slideshow__dots {
  gap: 0.6rem;
  margin-top: 1rem;
}

.oedipe-slideshow__dot {
  border-radius: 50%;
  height: 0.85rem;
  padding: 0;
  width: 0.85rem;
}

.oedipe-slideshow__dot.is-active {
  background: var(--couleur-lien);
  border-color: var(--couleur-lien);
}

.oedipe-slideshow__noscript {
  margin: 2rem auto;
  max-width: 42rem;
  text-align: center;
}

html[data-theme="dark"] .oedipe-slideshow__stage {
  background: #151515;
}

html[data-theme="dark"] .oedipe-slideshow figcaption,
html[data-theme="dark"] .oedipe-slideshow__counter {
  color: var(--couleur-texte);
}

html[data-theme="dark"] .oedipe-slideshow__control,
html[data-theme="dark"] .oedipe-slideshow__dot {
  background: #111;
}

@media (max-width: 640px) {
  .oedipe-slideshow {
    margin-top: 2.25rem;
  }

  .oedipe-slideshow__image img {
    max-height: min(62vh, 34rem);
  }

  .oedipe-slideshow__controls {
    gap: 0.75rem;
  }

  .oedipe-slideshow__control {
    height: 2.45rem;
    width: 2.45rem;
  }
}
