/**
 * Festival featured strip carousel — structure only.
 * Color/token polish lives in the child theme io.css.
 */

.io-fest-carousel__shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}

.io-fest-carousel__btn {
  z-index: 2;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.io-fest-carousel__btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  pointer-events: none;
}

.io-fest-carousel__btn.is-disabled,
.io-fest-carousel__btn:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.io-fest-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /*
   * Internal edge gutter: keeps card border + active glow fully visible.
   * ~6–8px each side; do not collapse on mobile.
   */
  padding: 0.35rem 0.5rem 0.7rem;
  scroll-padding-inline: 0.5rem;
  outline: none;
  cursor: grab;
  /* Hide native scrollbar; keep scrollability */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.io-fest-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.io-fest-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.io-fest-strip.is-dragging a {
  pointer-events: none;
}

.io-fest-strip__card {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/*
 * Graphic / laurel / title / winner-badge stage.
 * Explicit modifier only (.io-fest-strip__frame--graphic). Photography unchanged.
 */
.io-fest-strip .io-fest-strip__frame--graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--io-void-deep, #010704);
  overflow: hidden;
}

.io-fest-strip .io-fest-strip__frame--graphic img,
.io-fest-strip .io-fest-strip__img--graphic {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

.io-fest-carousel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.35rem;
}

.io-fest-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.io-fest-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  opacity: 0.45;
  cursor: pointer;
}

.io-fest-carousel__dot.is-active {
  opacity: 1;
}

.io-fest-carousel__count {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.io-fest-carousel__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .io-fest-carousel__shell {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .io-fest-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-120%);
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(1, 7, 4, 0.55);
  }

  .io-fest-carousel__btn--prev {
    left: 0.15rem;
  }

  .io-fest-carousel__btn--next {
    right: 0.15rem;
  }

  .io-fest-strip {
    /* Keep edge gutter — do not collapse (clips active border). */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    scroll-padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .io-fest-strip {
    scroll-behavior: auto;
  }
}
