/* v8.38: one shared image area, horizontal slides and bottom pagination. */
#banner-carousel.crew-banner {
  display: block;
  position: relative;
  height: var(--banner-height);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
}

#banner-carousel .banner-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

#banner-carousel .banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: none;
  will-change: transform;
}

#banner-carousel.is-single .banner-track { transform: translateX(0); }
#banner-carousel .banner-track.is-moving {
  transition: transform 400ms cubic-bezier(.22,.61,.36,1);
}

#banner-carousel .banner-panel {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

#banner-carousel .banner-panel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#banner-carousel .banner-pagination {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  padding: 0 4px;
  border-radius: 999px;
  background: rgb(17 14 25 / 48%);
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}

#banner-carousel .banner-dot {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

#banner-carousel .banner-dot span {
  width: 9px;
  height: 9px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  background: rgb(255 255 255 / 40%);
  transition: transform .2s, background .2s;
}

#banner-carousel .banner-dot.is-active span {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

#banner-carousel .banner-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}

#banner-carousel .banner-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(29 25 48 / 12%);
  border-radius: 50%;
  color: #1d1930;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 3px 14px rgb(0 0 0 / 14%);
  transform: translateY(-50%);
  cursor: pointer;
}

#banner-carousel .banner-arrow span { font-size: 32px; line-height: 1; }
#banner-carousel .banner-arrow-prev { left: 16px; }
#banner-carousel .banner-arrow-next { right: 16px; }
#banner-carousel .banner-arrow:hover { background: #fff; color: var(--accent); }
#banner-carousel .banner-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 820px) {
  #banner-carousel.crew-banner { height: auto; aspect-ratio: 16 / 9; }
  #banner-carousel .banner-pagination { bottom: 8px; }
  #banner-carousel .banner-arrow { display: none; }
}

@media (hover: none), (pointer: coarse) {
  #banner-carousel .banner-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #banner-carousel .banner-track.is-moving,
  #banner-carousel .banner-dot span { transition: none; }
}

/* v8.39: each banner has an optional destination. */
#banner-carousel .banner-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
}
#banner-carousel .banner-link[href] { cursor: pointer; }
#banner-carousel .banner-link:not([href]) { cursor: default; }
#banner-carousel .banner-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -5px;
}
.banner-link-controls { display: flex; gap: 10px; align-items: stretch; }
.banner-link-controls select { flex: 0 1 190px; min-width: 130px; }
.banner-link-controls input { flex: 1 1 240px; min-width: 0; }
@media(max-width:600px) {
  .banner-link-controls { flex-direction: column; }
  .banner-link-controls select,.banner-link-controls input { flex: auto; width: 100%; }
}
