.slideshow {
  position: relative;
  width: 100%;
  margin: 1.5rem auto;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}

.slideshow > .slide-caption {
  display: none;
}

.slideshow figure.slide {
  display: none !important;
  width: 100%;
  text-align: center;
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.slideshow figure.slide.active {
  display: block !important;
}

.slide-image {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image fits nicely */
.slide-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slide-image iframe.slideshow-video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}


.slideshow figure.slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
  background: transparent !important;
}

.slideshow figure.slide figcaption strong {
  font-weight: bold;
  color: inherit;
}

.slideshow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.1rem;
}

.slideshow-nav-btn--prev { left: 0.5rem; }
.slideshow-nav-btn--next { right: 0.5rem; }

.slideshow-nav-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.slideshow-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.slideshow-dot.active { }

[data-md-color-scheme="default"] .slideshow-dot {
  background: rgba(0, 0, 0, 0.25);
}

[data-md-color-scheme="default"] .slideshow-dot.active {
  background: rgba(0, 0, 0, 0.8);
}

[data-md-color-scheme="slate"] .slideshow-dot {
  background: rgba(255, 255, 255, 0.4);
}

[data-md-color-scheme="slate"] .slideshow-dot.active {
  background: rgba(255, 255, 255, 0.9);
}

.slideshow-dot:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.slideshow-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.slideshow-lightbox.is-open {
  display: flex;
}

.slideshow-lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.slideshow-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.slideshow-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.slideshow-lightbox-video {
  display: none;
  width: min(80vw, 1200px);
  max-height: 80vh;
  aspect-ratio: 16 / 9;
  border: 0;
}

.slideshow-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.4rem;
}

.slideshow-lightbox-prev { left: 2.5rem; }
.slideshow-lightbox-next { right: 2.5rem; }

.slideshow-lightbox-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #f5f5f5;
}

.slideshow-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
