/* Load last. Scoped to the existing capabilities carousel; the GSAP shell,
   desktop scene dimensions and other sections remain owned by the main files. */
#resources .sr-creative-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

#resources .sr-creative-slider {
  width: min(640px, 100%);
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
}

#resources .sr-creative-mask {
  height: auto;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

#resources [data-kw-carousel="ready"] .kw-carousel-track {
  display: flex;
  align-items: stretch;
  touch-action: pan-y pinch-zoom;
}

/* Inactive slides retain their geometry. ARIA/inert, not display:none, hides
   their interactions. Do not override transform: Embla owns loop positioning. */
#resources .sr-creative-panel {
  display: flex !important;
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  min-width: 0;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
  will-change: auto;
}

#resources .sr-creative-slide {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: auto;
}

#resources .sr-creative-slide > .home-creative_slide-wrapper {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

/* The old fixed-height card let flex shrink a nominal 58px CTA to ~20px. */
#resources .sr-creative-slide .button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 58px;
  height: auto;
  max-width: 100%;
}

#resources .kw-carousel-controls {
  display: none;
}

#resources [data-kw-carousel="ready"] .kw-carousel-controls {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#resources .sr-creative-arrow {
  display: none !important;
}

/* Retain the original desktop 64px side arrows and their original images.
   Only visibility is overridden for legacy static/reduced-motion rules. */
#resources [data-kw-carousel="ready"] .sr-creative-arrow {
  position: absolute;
  top: 50%;
  display: grid !important;
  width: 64px;
  min-width: 44px;
  height: 64px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

#resources .kw-carousel-button-label,
#resources .kw-carousel-count {
  display: none;
}

#resources .sr-creative-arrow:disabled {
  opacity: .5;
  cursor: default;
}

#resources .sr-creative-mask:focus-visible {
  outline: 3px solid var(--sr-yellow, #f5ef52);
  outline-offset: -5px;
}

#resources :is(.sr-creative-arrow, .sr-creative-slide .button):focus-visible {
  outline: 3px solid var(--sr-yellow, #f5ef52);
  outline-offset: 3px;
}

#resources .w-slider-aria-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* No fixed 100dvh box around an intrinsically tall static/mobile card. */
.sr-static #resources .sr-creative-sticky {
  height: auto;
}

@media (max-width: 1180px) {
  #resources .sr-creative-sticky { height: auto; }

  #resources [data-kw-carousel="ready"] .kw-carousel-controls {
    position: static;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    pointer-events: auto;
  }

  #resources [data-kw-carousel="ready"] .sr-creative-arrow {
    position: static;
    inset: auto;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #ffffff80;
    border-radius: 999px;
    background: #271342;
    color: #fff;
    font: 600 14px/1.4 Inter, Arial, sans-serif;
    transform: none;
  }

  #resources .sr-creative-arrow img { display: none; }
  #resources .kw-carousel-button-label { display: inline; }
  #resources .kw-carousel-count {
    display: inline-block;
    min-width: 42px;
    color: #fff;
    font: 500 13px/1.4 Inter, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #resources [data-kw-carousel="ready"] .sr-creative-arrow { padding-inline: 12px; }
  #resources [data-kw-carousel="ready"] .kw-carousel-controls { gap: 8px; }
}

@media (max-width: 1180px) and (hover: hover) and (pointer: fine) {
  #resources [data-kw-carousel="ready"] .sr-creative-arrow:not(:disabled):hover {
    background: #422361;
    border-color: var(--sr-yellow, #f5ef52);
  }
}
