/* Container fills parent width; height derived from 16:9 ratio */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background: #111;
  touch-action: pan-y;
}
.slideshow > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slideshow > img.is-active {
  opacity: 1;
  z-index: 1;
}
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 6px 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.slideshow__btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.slideshow__btn:focus {
  outline: 2px solid #81ACE5;
  outline-offset: 1px;
}
.slideshow__btn--prev {
  left: 6px;
}
.slideshow__btn--next {
  right: 6px;
}
.slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}
.slideshow__dot {
  width: 10px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
}
.slideshow__dot.is-active {
  background: #81ACE5;
}
.slideshow__dot:focus {
 
}
@media (prefers-reduced-motion: reduce) {
  .slideshow > img {
    transition: none;
  }
}
@media only screen and (max-width : 1000px) {
    .slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 4px 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
    
  .slideshow__dots {
    display: none;
  }
}