/* React Bits FlexCarousel. License and local adaptation: THIRD_PARTY_NOTICES.md. */
.flex-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: auto;
  outline: none;
}

/* Keep the original carousel proportions on the Studio exhibition surface. */
.screening-stage{height:clamp(380px,52vw,720px);aspect-ratio:auto;background:transparent;border-radius:0;box-shadow:none;margin-top:28px}
.screening-stage .flex-carousel{--flex-carousel-half:25%;color:#f5f5f5}
.screening-stage .flex-carousel__subtitle{font-size:11px;margin-top:5px;letter-spacing:.02em}
.screening-stage .flex-carousel__count{margin-top:3px}
.screening-controls{padding-top:8px;gap:24px}
.screening-controls .screening-transport{margin-left:0}
.screening-hint{font-size:11px;color:#aaa;line-height:1.7}
@media(max-width:700px){
  .screening-stage{height:calc((100vw - 40px)*.82);min-height:230px;max-height:490px;margin-top:24px}
  .screening-stage .flex-carousel__caption{top:calc(50% + var(--flex-carousel-half)*var(--flex-carousel-lift,1) + 12px);gap:4px}
  .screening-stage .flex-carousel__title{font-size:13px}
  .screening-stage .flex-carousel__subtitle{display:none}
  .screening-stage .flex-carousel__count{font-size:10px}
  .screening-controls{padding-top:18px;row-gap:12px}
  .screening-hint{font-size:10px;max-width:130px}
}

.flex-carousel[data-hover='open'] {
  cursor: zoom-in;
}

.flex-carousel[data-hover='close'] {
  cursor: zoom-out;
}

.flex-carousel[data-dragging] {
  cursor: grabbing;
}

.flex-carousel:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(128, 128, 140, 0.55);
}

.flex-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + var(--flex-carousel-half) * var(--flex-carousel-lift, 1) + 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  pointer-events: none;
  text-align: center;
  animation: flex-carousel-reveal 900ms ease both;
}

.flex-carousel__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  animation: flex-carousel-title 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flex-carousel__subtitle {
  font-weight: 400;
  opacity: 0.6;
}

.flex-carousel__count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
  transition: opacity 400ms ease;
}

.flex-carousel__count[data-hidden] {
  opacity: 0;
}

.flex-carousel__digits {
  display: inline-flex;
}

.flex-carousel__digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.flex-carousel__reel {
  display: flex;
  flex-direction: column;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flex-carousel__reel span {
  height: 1em;
}

.flex-carousel__slash {
  opacity: 0.6;
}

.flex-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;
}

@keyframes flex-carousel-title {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flex-carousel-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flex-carousel__caption,
  .flex-carousel__title {
    animation: none;
  }

  .flex-carousel__reel {
    transition: none;
  }
}
