
/* ── Parent ── */
.parent {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

/* ── Main Viewer ── */
.main-viewer {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 12px;
  background: #000;
}

/* ── Slide Track ── */
#track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Individual Slide ── */
.slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Arrow Buttons ── */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.arrow-prev { left: 14px; }
.arrow-next { right: 14px; }

/* ── Caption Overlay ── */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 48px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.caption-headline {
  font-family: 'SABERSfont';
  font-size: 32px;
  font-weight: 500;
  color: #FB6003;
  /*background: linear-gradient(to bottom, #FB6003 0%, #FB6003 50%, #D65002 50%, #D65002 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;*/
  text-shadow: -1px -1px 0 #000, 1px 1px 0 #000, 3px 3px 0 #000, 2px 1px 0 #000;
  margin-bottom: 4px;
  text-align: left;
}

.caption-byline {
  font-family: 'Teko';
  font-size: 24px;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  text-align: left;
}

/* ── Counter Badge ── */
.counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  z-index: 4;
}

/* ── Thumbnails Viewport (shows max 5) ── */
.thumbs-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ── Thumbnails Track ── */
.thumbs {
  position: relative;
  display: flex;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Thumbnail Button ── */
/* Width is set via JS: calc((100% - 4*8px) / 5) per slot */
.thumb {
  flex: 0 0 calc((100% - 32px) / 5);
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  border: none;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
  padding: 0;
  background: #000;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.thumb.active {
  opacity: 1;
  transform: translateY(-2px);
}
