html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Slideshow container fills remaining space after headers */
.swiper-container {
  width: 100vw;
  height: calc(100vh - (56px + 56px)); /* subtract header1 + header2 */
}

/* Center slide content */
.swiper-slide {
    position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Image scaling */
.swiper-slide img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
}

/* Caption styling */
.swiper-slide figcaption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}
.slide-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 75vw;
  max-height: 75vh;
}

.slide-figure img {
  max-width: 100%;
  max-height: 85%;   /* reserve space for caption */
  object-fit: contain;
}

.slide-figure figcaption {
  margin-top: 0.5em;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}

/* Default desktop styles (leave as-is) */

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .slideshow-container {
    position: relative;        /* make sure it flows in the document */
    top: 0;                    /* reset any offset */
    margin-top: 250px;
    z-index: 1;                 /* keep it below headers if needed */
  }

  .slideshow-container img {
    width: 100%;
    height: auto;
    object-fit: contain;        /* ensures full image is visible */
  }

  header, .header1, .header2 {
    position: fixed;            /* keep headers pinned */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;                /* headers stay above slideshow */
  }

  body {
    padding-top: 250px;
    /* pushes content down so slideshow starts below headers */
  }
}
