/* ==============================
   SLIDESHOW CORE (ALL GALLERIES)
   ============================== */

.courtroom-stage {
  padding-left: 0;
}

.slide-single img {
  display: block;
  max-height: 90vh;      /* desktop default */
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.slide-single {
  margin: 0;              /* remove auto centering */
}

.slide-single img {
  display: block;
  margin-left: 0;         /* force left alignment */
  margin-right: auto;
}


/* Thumbs-on desktop adjustment */
body.thumbs-on .slide-single img {
  max-height: 82vh;
}

/* ==============================
   iPAD / TABLET FIX
   ============================== 

@media (min-width: 769px) and (max-width: 1024px) {

  .slide-single img,
  body.thumbs-on .slide-single img {
    max-height: 520px;   /* 👈 controls visible */
    height: auto;
    width: 100%;
    object-fit: cover;
  }

}*/
@media (min-width: 769px) and (max-width: 1024px) {

  .courtroom-stage {
    max-height: 520px;
    display: flex;
    flex-direction: column;
  }

  .slide-single {
    flex: 1;              /* image area */
    overflow: hidden;
  }

  .slideshow-controls-row {
    flex-shrink: 0;       /* controls always visible */
  }

}


/* ==============================
   CAPTION
   ============================== */

.slide-meta {
  margin-top: 8px;
  width: 100%;
}

.slide-caption {
  max-width: 960px;
  margin: 8px 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #e0e0e0;
  text-align: left;
}

/* ==============================
   CONTROLS
   ============================== */

.slideshow-controls-row {
  margin-top: 4px;
}

.slideshow-controls {
  display: flex;
  gap: 16px;
  padding: 0 20px;
  align-items: center;
}

.slideshow-controls button {
  background: none;
  border: none;
  color: #cccccc;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.slideshow-controls button:hover,
#toggleAutoplay.is-active {
  color: #999966;
}

/* ==============================
   THUMB STRIP (ANIMATED)
   ============================== */

.thumb-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;

  max-height: 0;
  opacity: 0;
  transform: translateY(8px);

  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    transform 0.6s ease;

  padding: 0;
  margin: 0;
}

body.thumbs-on .thumb-strip {
  max-height: 90px;
  opacity: 1;
  transform: translateY(0);
  padding: 6px 0 4px;
}

/* HARD LOCK THUMB SIZE — FINAL */

.thumb-strip img {
  height: 56px !important;
  width: auto !important;
  max-height: 56px !important;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.7;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.thumb-strip img:hover,
.thumb-strip img.active {
  opacity: 1;
  outline: 2px solid #999966;
}
@media (max-width: 768px) {

  .thumb-strip {
    max-height: 0;
    overflow: hidden;
  }

  body.thumbs-on .thumb-strip {
    max-height: 90px;
  }

}
/* ==============================
   SLIDE ALIGNMENT (ALL BROWSERS)
   ============================== */

.slide-single {
  margin: 0;
  display: block;
}

.slide-single img {
  display: block;
  margin-left: 0;
  margin-right: auto;
}
/* ==============================
   MOBILE THUMB STRIP FIX
   ============================== */

@media (max-width: 768px) {

  .thumb-strip {
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.6s ease,
      opacity 0.4s ease,
      transform 0.6s ease;
  }

  body.thumbs-on .thumb-strip {
    max-height: 90px;
  }

}
