/* ======================================================
   Universal Slideshow – Refined & Balanced CSS
   (based on previous visual behaviour)
   ====================================================== */

/* ---------------------------
   Slideshow container
--------------------------- */
.us-slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* ---------------------------
   Frame
--------------------------- */
.us-slideshow-frame {
  position: relative;
  width: 100%;
  height: 420px; /* rustiger, gecontroleerde hoogte */
  overflow: hidden;
}

/* ---------------------------
   Slides
--------------------------- */
.us-slideshow-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* GEEN cropping */
  background: #000;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.us-slideshow-frame img.is-active {
  opacity: 1;
}

/* ---------------------------
   Fullscreen behaviour (desktop)
--------------------------- */
.us-slideshow:fullscreen {
  background: #000;
}

.us-slideshow:fullscreen .us-slideshow-frame {
  width: 100%;
  height: 100vh;
}

/* In fullscreen mag hij wél coveren */
.us-slideshow:fullscreen img {
  object-fit: contain;
}

/* ---------------------------
   Close button (fullscreen)
--------------------------- */
.us-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 36px;
  line-height: 1;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  z-index: 20;
  user-select: none;
}

.us-close:hover {
  color: #ffffff;
}

/* Alleen zichtbaar in fullscreen */
.us-slideshow:not(:fullscreen) .us-close {
  display: none;
}

/* ---------------------------
   Responsive fine-tuning
--------------------------- */
@media (max-width: 900px) {
  .us-slideshow-frame {
    height: 260px;
  }
}

/* ---------------------------
   Info drawer (optional per slide)
--------------------------- */
.us-info {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15));
  z-index: 10;
}

.us-slideshow.has-info .us-info {
  display: block;
}

.us-info-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  user-select: none;
}

.us-info-toggle:hover {
  background: rgba(0,0,0,0.75);
}

.us-info-panel {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.90);
}

.us-info-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.us-info-credit {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.us-info-description {
  font-size: 14px;
  line-height: 1.45;
}
/* Zachte fade-in / slide-up voor info overlay */
.us-info {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.us-slideshow.has-info .us-info {
  opacity: 1;
  transform: translateY(0);
}

/* Fullscreen: info als overlay onderaan */
.us-slideshow:fullscreen .us-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.80), rgba(0,0,0,0.15));
  border-top: none;
  z-index: 12;
}

.us-slideshow:fullscreen .us-info-panel {
  max-height: 35vh;
}

.us-slideshow:fullscreen .us-info-toggle {
  background: rgba(0,0,0,0.65);
}

/* Responsive */
@media (max-width: 900px) {
  .us-info-panel {
    max-height: 150px;
  }
}
