.idub-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.idub-hero-image-backdrop {
  display: none;
}

@media (max-width: 767px) {
  .idub-gallery-hero {
    height: calc(100svh - 3rem);
    min-height: 620px;
    max-height: 820px;
    background: #050505;
    touch-action: pan-y;
  }

  .idub-hero-slide {
    background: #050505;
  }

  .idub-hero-slide::before {
    z-index: 2;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .08) 32%, rgba(0, 0, 0, .72) 67%, rgba(0, 0, 0, .96) 100%);
  }

  .idub-gallery-hero::after {
    z-index: 3;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%),
      linear-gradient(90deg, rgba(0, 158, 227, .12), transparent 42%);
    mix-blend-mode: screen;
    opacity: .52;
  }

  .idub-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 42%, rgba(0, 0, 0, .72) 100%);
    pointer-events: none;
  }

  .idub-hero-image-backdrop {
    position: absolute;
    inset: -28px;
    z-index: 0;
    display: block;
    background-position: center;
    background-size: cover;
    filter: blur(18px) saturate(.9);
    opacity: .48;
    transform: scale(1.08);
  }

  .idub-hero-image {
    position: absolute;
    top: 72px;
    right: 14px;
    bottom: auto;
    left: 14px;
    z-index: 1;
    width: calc(100% - 28px);
    height: clamp(230px, 42svh, 360px);
    max-width: none;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, .28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
    opacity: .98;
    transform: none;
  }

  .idub-hero-slide.is-active .idub-hero-image {
    transform: none;
  }

  .idub-hero-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    justify-content: flex-end;
    padding: 0 16px 92px;
    pointer-events: none;
  }

  .idub-hero-kicker {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .18em;
    line-height: 1.2;
  }

  .idub-hero-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(30px, 10vw, 46px);
    line-height: .94;
    letter-spacing: 0;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .idub-hero-chips {
    gap: 6px;
    margin-top: 14px;
  }

  .idub-hero-chip {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 8px;
    letter-spacing: .1em;
  }

  .idub-hero-chip:nth-child(n+4) {
    display: none;
  }

  .idub-hero-summary {
    width: 100%;
    margin-top: 14px;
    padding: 13px 14px;
    border-left-width: 4px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
  }

  .idub-hero-summary span {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(17px, 5.4vw, 23px);
    line-height: 1.06;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .idub-hero-cta {
    min-height: 42px;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding: 0 18px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .idub-hero-nav {
    top: clamp(184px, calc(72px + 21svh), 252px) !important;
    bottom: auto !important;
    z-index: 30;
    display: inline-flex !important;
    width: 42px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(0, 0, 0, .64);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
    backdrop-filter: blur(12px);
    transform: translateY(-50%) !important;
    touch-action: manipulation;
  }

  .idub-hero-nav--prev {
    left: max(18px, env(safe-area-inset-left)) !important;
    right: auto !important;
  }

  .idub-hero-nav--next {
    right: max(18px, env(safe-area-inset-right)) !important;
    left: auto !important;
  }

  .idub-hero-nav svg {
    width: 24px;
    height: 24px;
  }

  .idub-hero-dots {
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    width: auto;
    max-width: calc(100% - 32px);
    justify-content: center;
    gap: 8px;
    overflow: visible;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .idub-hero-dots .idub-slider-dot {
    flex: 0 1 18px;
    width: 18px;
    height: 4px;
    min-width: 12px;
  }

  .idub-hero-dots .idub-slider-dot.is-active {
    flex-basis: 30px;
    width: 30px;
  }

  .idub-featured-flag--hero {
    top: 84px;
    left: 22px;
    z-index: 5;
  }
}

@media (max-width: 380px) {
  .idub-gallery-hero {
    min-height: 590px;
  }

  .idub-hero-image {
    top: 66px;
    right: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: clamp(210px, 39svh, 320px);
  }

  .idub-hero-content {
    padding-right: 14px;
    padding-bottom: 84px;
    padding-left: 14px;
  }

  .idub-hero-title {
    font-size: clamp(28px, 9.6vw, 39px);
  }

  .idub-hero-summary span {
    font-size: clamp(16px, 5vw, 20px);
  }

  .idub-hero-cta {
    min-height: 40px;
  }

  .idub-hero-dots {
    bottom: max(22px, env(safe-area-inset-bottom));
    max-width: calc(100% - 28px);
    gap: 6px;
  }

  .idub-hero-nav {
    top: clamp(171px, calc(66px + 19.5svh), 226px) !important;
    width: 40px;
    height: 48px;
  }

  .idub-hero-nav--prev {
    left: max(14px, env(safe-area-inset-left)) !important;
  }

  .idub-hero-nav--next {
    right: max(14px, env(safe-area-inset-right)) !important;
  }

  .idub-hero-dots .idub-slider-dot {
    flex-basis: 16px;
    width: 16px;
  }

  .idub-hero-dots .idub-slider-dot.is-active {
    flex-basis: 26px;
    width: 26px;
  }

  .idub-featured-flag--hero {
    top: 78px;
    left: 20px;
  }
}
