/* Promo Banner — reusable full-bleed media banner (1 = static, N = slider) */

.promo-media,
.promo-media.skeidar-block--contained,
.promo-media.skeidar-block--full {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important; /* flush to adjacent sections (live PromoMedia) */
  box-sizing: border-box;
  overflow: hidden;
}

.promo-media__viewport {
  position: relative;
  width: 100%;
}

.promo-media__track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
}

.promo-media[data-is-carousel="true"] .promo-media__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.promo-media[data-is-carousel="true"] .promo-media__track::-webkit-scrollbar {
  display: none;
}

.promo-media__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.promo-media__track.is-dragging a {
  pointer-events: none;
}

.promo-media__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

.promo-media[data-is-carousel="true"] .promo-media__slide {
  scroll-snap-align: start;
}

.promo-media__hit {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.promo-media__hit--static {
  cursor: default;
}

.promo-media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 200;
  overflow: hidden;
  background: #1a1a1a;
}

@media (min-width: 900px) {
  .promo-media__frame {
    aspect-ratio: 1440 / 470;
  }
}

.promo-media__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.promo-media__image,
.promo-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.promo-media--overlay .promo-media__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.41);
  pointer-events: none;
}

.promo-media__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 50px 24px 56px;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .promo-media__content {
    gap: 8px;
    padding: 50px 40px 56px;
  }
}

/*
 * Live PromoMedia typography (Mui):
 * Title = titleXL → 40px desktop / 20px mobile, weight 500
 * Description (e.g. 70%) = displayMedium → 180px desktop / 40px mobile, weight 500
 * No CMS font-size/weight fields on live — fixed design tokens.
 */
.promo-media__title {
  margin: 0;
  font-size: 1.25rem; /* 20px mobile */
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.promo-media__description {
  margin: 0;
  font-size: 2.5rem; /* 40px mobile */
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.promo-media__description p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

@media (min-width: 600px) {
  .promo-media__title {
    font-size: 2.5rem; /* 40px = titleXL */
  }

  .promo-media__description {
    font-size: 11.25rem; /* 180px = displayMedium */
  }
}

.promo-media__cta {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-block;
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent !important;
  border: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .promo-media__cta {
    bottom: 20px;
  }
}

.promo-media__arrow.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 21px;
  height: 23px;
  min-width: 21px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(248, 248, 248, 0.66);
  color: #000;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.promo-media__arrow--prev {
  left: 10px;
}

.promo-media__arrow--next {
  right: 10px;
}

@media (min-width: 900px) {
  .promo-media__arrow--prev {
    left: 40px;
  }

  .promo-media__arrow--next {
    right: 40px;
  }
}

.promo-media__viewport:hover .promo-media__arrow.carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.promo-media__arrow.carousel-arrow > svg {
  width: 18px;
  height: 18px;
  display: block;
}

.promo-media__arrow.carousel-arrow:disabled,
.promo-media__arrow.carousel-arrow.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (hover: none) {
  .promo-media__arrow.carousel-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 599.95px) {
  .promo-media__arrow.carousel-arrow {
    display: none !important;
  }
}

.promo-media__dots {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-media__dot {
  width: 18px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.promo-media__dot.is-active {
  background: #fff;
}
