.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#caption {
    text-align: center;
    padding: 10px;
    font-style: italic;
    color: #444;
    background: rgba(255, 255, 255, 0.8);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.cycle-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.cycle-slideshow > div {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cycle-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Caption now outside the slideshow */
.slideshow-caption {
  text-align: center;
  margin: 10px auto 20px;
  width: 100%;
  max-width: 940px;
  font-size: 1.4rem;
  font-family: "Georgia", serif;
  font-weight: bold;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px 20px 20px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 11px;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* Phones (portrait orientation) */
@media (max-width: 768px) {
  /* Ensure slideshow and caption stay centered */
  .slideshow-container {
    width: 95%;
    aspect-ratio: 16 / 9;
    margin: 10px auto;
    border-radius: 16px;
  }

  .slideshow-caption {
    width: 90%;
    font-size: 1rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .slideshow-caption {
    font-size: 0.9rem;
    padding: 6px;
  }
}