/* Separate small-screen artboard so the desktop composition stays untouched. */
.project-banner__responsive { display: none; }
.project-banner__subtitle-mobile { display: none; }

@media (max-width: 1199px) {
  html body section.project-banner.project-banner.project-banner {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1800 / 1054 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 0 !important;
    background: #080d20 !important;
  }
  html body section.project-banner > :not(.project-banner__responsive) {
    display: none !important;
  }
  html body section.project-banner > .project-banner__responsive {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
  }
  html body section.project-banner .project-banner__picture,
  html body section.project-banner .project-banner__image {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center bottom !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  html body section.project-banner .project-banner__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.3vw, 16px);
    width: 100%;
    padding: clamp(28px, 4vw, 48px) 4.2vw 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.18) 78%, transparent);
  }
  html body section.project-banner .project-banner__label {
    font: 700 clamp(13px, 1.65vw, 18px)/1.25 'Manrope', sans-serif !important;
    color: #fff !important;
    letter-spacing: .06em !important;
    margin: 0 !important;
  }
  /* Both the longest wording and widest rendered title fit at 768px. */
  html body section.project-banner .project-banner__title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 5.8vw !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
    white-space: nowrap !important;
    color: #fff !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body section.project-banner .project-banner__subtitle {
    font-family: 'Manrope', sans-serif !important;
    font-size: clamp(15px, 1.95vw, 23.4px) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 1199px) {
  html body section.project-banner:has(.project-banner__image[src*="product-"]) .project-banner__copy {
    background: none;
  }
}

@media (max-width: 359px) {
  /* Keep the existing tall mobile artwork readable on very narrow screens. */
  html body section.project-banner .project-banner__picture:has(img[src*="product-"])::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--banner-art) center bottom / cover;
    filter: blur(28px);
  }
  html body section.project-banner .project-banner__picture:has(img[src*="product-"]) .project-banner__image {
    object-fit: contain !important;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  }
}

@media (max-width: 767px) {
  html body section.project-banner.project-banner.project-banner { aspect-ratio: 4 / 5 !important; }
  html body section.project-banner .project-banner__copy {
    padding: 24px 6vw 12px;
    gap: 10px;
  }
  html body section.project-banner .project-banner__label { font-size: 12px !important; }
  html body section.project-banner .project-banner__title {
    font-size: 5.6vw !important;
    white-space: nowrap !important;
    text-wrap: nowrap;
  }
  html body section.project-banner .project-banner__subtitle {
    font-size: clamp(12px, 3.59vw, 16px) !important;
  }
  html body section.project-banner .project-banner__subtitle-full { display: none; }
  html body section.project-banner .project-banner__subtitle-mobile { display: inline; }
}

@media (max-width: 359px) {
  html body section.project-banner .project-banner__copy { padding-top: 16px; gap: 8px; }
  .project-banner__picture:has(img[src*="product-pointer-"]) { --banner-art: url('uploads/product-pointer-mobile.jpg'); }
  .project-banner__picture:has(img[src*="product-soundpath-"]) { --banner-art: url('uploads/product-soundpath-mobile.jpg'); }
  .project-banner__picture:has(img[src*="product-truemix-"]) { --banner-art: url('uploads/product-truemix-mobile.jpg'); }
  .project-banner__picture:has(img[src*="product-control-"]) { --banner-art: url('uploads/product-control-mobile-20261015.jpg'); }
}

/* Crop the empty upper artwork area on marketing project banners on mobile.
   Bottom anchoring keeps the full object in view at its existing scale. */
@media (max-width: 767px) {
  html.site-typography.marketing-case body section.project-banner.project-banner.project-banner {
    aspect-ratio: 16 / 17 !important;
  }
}

/* Mobile project banners: add 20% above the existing bottom-anchored artwork. */
@media (max-width: 767px) {
  html body section.project-banner.project-banner.project-banner {
    aspect-ratio: 2 / 3 !important;
  }
  html.site-typography.marketing-case body section.project-banner.project-banner.project-banner {
    aspect-ratio: 40 / 51 !important;
  }
  html body section.project-banner > .project-banner__responsive {
    background: var(--banner-fill, #080d20);
  }
  html body section.project-banner .project-banner__picture {
    top: auto !important;
    bottom: 0 !important;
    height: 83.333333% !important;
  }
  html body section.project-banner .project-banner__responsive::after {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 38%;
    background: linear-gradient(180deg, var(--banner-fill, #080d20) 0%, var(--banner-fill, #080d20) 44%, transparent 100%);
    pointer-events: none;
  }
  html body section.project-banner .project-banner__copy {
    z-index: 2;
    background: none;
  }
  html body section.project-banner .project-banner__title {
    font-size: clamp(28px, 9vw, 42px) !important;
    white-space: normal !important;
    text-wrap: wrap;
    line-height: 1.12 !important;
  }
  html body section.project-banner .project-banner__subtitle {
    font-size: clamp(16px, 4.3vw, 20px) !important;
    line-height: 1.4 !important;
  }
}

/* Carousel gestures work at every breakpoint, while vertical page scrolling stays native. */
[data-carousel-swipe], [data-r="camp-media"], .wh-gallery-wrap, .etoro-gallery-wrap {
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
[data-carousel-swipe] img {
  cursor: grab !important;
  user-select: none;
  -webkit-user-drag: none;
}
[data-carousel-swipe][data-carousel-dragging],
[data-carousel-swipe][data-carousel-dragging] * {
  cursor: grabbing !important;
  user-select: none;
}

/* Let gallery frames follow the complete media instead of adding a white mat. */
html body .etoro-gallery-preview,
html body .etoro-gallery-preview.square-preview,
html body .etoro-gallery-preview.fluid-preview,
html body .wh-gallery-preview {
  aspect-ratio: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body .etoro-gallery-preview-img,
html body .etoro-gallery-preview-video,
html body .wh-gallery-preview-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
}
html body .etoro-thumb,
html body .wh-thumb {
  aspect-ratio: auto !important;
  height: auto !important;
  align-self: center;
  padding: 0 !important;
  background: transparent !important;
  border-color: transparent;
}
html body .etoro-thumb.active,
html body .wh-thumb.active { border-color: #17345C; }
html body .etoro-thumb img,
html body .etoro-thumb video,
html body .wh-thumb img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

/* Control Center supplied artwork: preserve the clear copy area above the screens. */
@media (min-width:768px) and (max-width:1199px) {
  html body section.control-banner.project-banner.project-banner.project-banner { aspect-ratio:1600 / 1100 !important; }
}
@media (max-width:767px) {
  html body section.control-banner.project-banner.project-banner.project-banner { aspect-ratio:3 / 5 !important; }
  html body section.control-banner.project-banner .project-banner__picture { height:100% !important; }
}
