/* ============================================================
   VB Slideshow — section wrapper
   ============================================================ */
.vb-slideshow-section {
  background: #0a0a0a;
  padding: 80px 0;
  overflow: hidden;
}
#vb-slideshow {
  position: relative;
  width: 100%;
  height: 600px;
  user-select: none;
}

/* ============================================================
   Inline coverflow (desktop, >= 768px)
   ============================================================ */
.vb-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.vb-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  max-width: 50vw;
  height: 500px;
  transform: translate(-50%, -50%);
  transition: transform 380ms ease-out, opacity 380ms ease-out;
  will-change: transform, opacity;
}
.vb-slot[data-pos="-2"] { transform: translate(calc(-50% - 480px), -50%) scale(0.7);  opacity: 0.4; z-index: 1; }
.vb-slot[data-pos="-1"] { transform: translate(calc(-50% - 280px), -50%) scale(0.85); opacity: 0.7; z-index: 2; }
.vb-slot[data-pos="0"]  { transform: translate(-50%, -50%) scale(1);                    opacity: 1;   z-index: 3; cursor: pointer; }
.vb-slot[data-pos="1"]  { transform: translate(calc(-50% + 280px), -50%) scale(0.85); opacity: 0.7; z-index: 2; }
.vb-slot[data-pos="2"]  { transform: translate(calc(-50% + 480px), -50%) scale(0.7);  opacity: 0.4; z-index: 1; }
.vb-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 380ms ease-out;
}
.vb-slot[data-pos="0"] img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.vb-slot img.vb-active   { opacity: 1; }
.vb-slot img.vb-inactive { opacity: 0; }

/* Inline arrow buttons */
.vb-inline-prev,
.vb-inline-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font: 28px/1 system-ui, sans-serif;
  cursor: pointer;
  z-index: 20;
  transition: background 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.vb-inline-prev:hover,
.vb-inline-next:hover { background: rgba(255, 255, 255, 0.3); }
.vb-inline-prev { left: 20px; }
.vb-inline-next { right: 20px; }
@media (max-width: 767px) {
  .vb-inline-prev { left: 8px; width: 40px; height: 40px; font-size: 24px; }
  .vb-inline-next { right: 8px; width: 40px; height: 40px; font-size: 24px; }
}

/* Inline button group (top-right of section): TV Mode + Shuffle */
.vb-inline-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 20;
}
.vb-inline-shuffle,
.vb-inline-tv {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font: 14px/1 system-ui, sans-serif;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 150ms;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.vb-inline-shuffle:hover,
.vb-inline-tv:hover { background: rgba(255, 255, 255, 0.3); }
@media (max-width: 767px) {
  .vb-inline-buttons { top: 10px; right: 10px; gap: 6px; }
  .vb-inline-shuffle,
  .vb-inline-tv { padding: 8px 12px; font-size: 12px; }
}

/* Counter pill */
.vb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: 12px/1 system-ui, sans-serif;
  padding: 6px 14px;
  border-radius: 14px;
  z-index: 10;
}

/* ============================================================
   Mobile (< 768px) — single full-width photo
   ============================================================ */
@media (max-width: 767px) {
  #vb-slideshow { height: 400px; }
  .vb-slot { display: none; width: 90vw; max-width: 90vw; height: 360px; }
  .vb-slot[data-pos="0"] { display: block; transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ============================================================
   Fullscreen overlay (interactive mode)
   ============================================================ */
.vb-fullscreen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vb-fullscreen img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  transition: opacity 380ms ease-out;
}
.vb-fullscreen img.vb-active   { opacity: 1; }
.vb-fullscreen img.vb-inactive { opacity: 0; position: absolute; }

.vb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 18px/1 system-ui, sans-serif;
  z-index: 10;
  transition: background 150ms;
}
.vb-btn:hover { background: rgba(255, 255, 255, 0.25); }

.vb-close { top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; }
.vb-prev,
.vb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 28px; }
.vb-prev { left: 20px; }
.vb-next { right: 20px; }

.vb-fullscreen .vb-counter { bottom: 30px; }
.vb-playpause {
  position: absolute;
  bottom: 28px;
  left: calc(50% - 80px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font: 12px/1 system-ui, sans-serif;
  cursor: pointer;
  z-index: 10;
}
.vb-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #fff;
  width: 0;
  transition: width linear;
  z-index: 10;
}

/* ============================================================
   TV / Kiosk mode — body.vb-tv-mode
   ============================================================ */
body.vb-tv-mode { cursor: none; overflow: hidden; }

body.vb-tv-mode #masthead,
body.vb-tv-mode #main-footer,
body.vb-tv-mode .et_pb_section:not(.vb-slideshow-section) { display: none !important; }

body.vb-tv-mode .vb-slideshow-section {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 0;
  background: #000;
}
body.vb-tv-mode #vb-slideshow { height: 100vh; }
body.vb-tv-mode .vb-slot,
body.vb-tv-mode .vb-counter,
body.vb-tv-mode .vb-progress,
body.vb-tv-mode .vb-playpause,
body.vb-tv-mode .vb-inline-prev,
body.vb-tv-mode .vb-inline-next,
body.vb-tv-mode .vb-inline-buttons { display: none; }

/* Reuse fullscreen overlay styles for TV; show only the photo */
body.vb-tv-mode .vb-fullscreen { z-index: 9999; }
body.vb-tv-mode .vb-close,
body.vb-tv-mode .vb-prev,
body.vb-tv-mode .vb-next { display: none; }

/* TV mode pause controls (Shuffle + Play) — visible only when paused */
.vb-tv-controls {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
}
body.vb-tv-mode .vb-fullscreen.vb-paused { cursor: auto; }
body.vb-tv-mode .vb-fullscreen.vb-paused .vb-tv-controls { display: flex; }
.vb-tv-controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #fff;
  color: #fff;
  padding: 20px 40px;
  font: 24px/1 system-ui, sans-serif;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 150ms;
}
.vb-tv-controls button:hover { background: rgba(255, 255, 255, 0.25); }

/* TV mode start gate */
.vb-start-gate {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  cursor: pointer;
}
.vb-start-gate button {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 24px 56px;
  font: 24px/1 system-ui, sans-serif;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.05em;
}

/* TV mode + ?counter=1 — re-enable the counter */
body.vb-tv-mode.vb-show-counter .vb-counter,
body.vb-tv-mode.vb-show-counter .vb-progress { display: block; }
