.slideshow-container {
  position: relative;
  max-width: 400px;
  margin: 0.75rem auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Navigation buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  padding: 0;
  font-size: 1.1rem;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.65);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prev { left: 10px; }
.next { right: 10px; }

.prev:focus, .next:focus {
  outline: 3px solid #ffd54f;
  outline-offset: 4px;
}

/* Dots */
.slideshow-dots { text-align: center; margin-top: 0.5rem; }
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
}
.dot.active { background: var(--primary-color, #0077cc); }

/* Optional fade keyframes (kept for compatibility) */
@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Wrapper */
.slideshow {
  text-align: center;
  padding: 1rem;
}

/* Responsive tweaks */
@media (max-width: 420px) {
  .slideshow-container { max-width: 90%; aspect-ratio: 3/4; }
  .prev, .next { width: 34px; height: 34px; font-size: 1rem; }
  .slideshow { padding: 0.5rem; }