.hero-spain-desktop-offer {
  display: none;
}

@media (min-width: 701px) {
  #homeHero[data-unified][data-slide="7"]:after {
    background-image: url("/assets/sunshine-iberia-desktop-clean.jpg") !important;
    background-position: center top !important;
  }

  body[data-template-level="1"] #homeHero[data-unified][data-slide="7"] .hero-spain-promo {
    display: none !important;
  }

  #homeHero[data-unified][data-slide="7"] .hero-spain-desktop-offer {
    position: absolute;
    bottom: 11%;
    left: clamp(24px, 4.4vw, 96px);
    display: flex;
    flex-direction: column;
    gap: 0.24em;
    max-width: 43%;
    padding: clamp(8px, 0.9vw, 17px) clamp(11px, 1.15vw, 23px);
    border-left: 3px solid #f4cc7d;
    border-radius: 4px 14px 14px 4px;
    background: linear-gradient(105deg, #12232bed, #11252de0);
    box-shadow: 0 5px 20px #0a141a66;
    color: #fff;
    font-size: clamp(14px, 1.23vw, 23px);
    line-height: 1.36;
    text-align: left;
  }

  .hero-spain-desktop-offer .hero-spain-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.4em;
    font-size: clamp(24px, 2.35vw, 44px);
    line-height: 1.16;
  }

  .hero-spain-title span {
    font-size: 0.54em;
    font-weight: 650;
  }

  .hero-spain-desktop-offer b,
  .hero-spain-desktop-offer small {
    color: #ffdc95;
  }

  .hero-spain-desktop-offer small {
    font-size: clamp(10px, 0.8vw, 14px);
  }
}

@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  #homeHero[data-unified][data-slide="7"].photo-animate .hero-spain-desktop-offer {
    animation: pe-spain-offer-slide 550ms cubic-bezier(.2, .75, .2, 1) both;
  }
}

/* Keep the same carousel height on wide displays. Give the artwork its own
   responsive width so enlarging the viewport never crops the dancer's skirt. */
@media (min-width: 1740px) {
  body[data-template-level="1"] #homeHero[data-unified][data-slide="7"]:before {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0 auto auto 0 !important;
    height: var(--image-height);
    z-index: 0;
    width: calc(100% - var(--image-height) * 2.72);
    background: url("/assets/sunshine-iberia-west-extension.jpg") right 44% / cover no-repeat !important;
  }

  body[data-template-level="1"] #homeHero[data-unified][data-slide="7"]:after {
    inset: 0 0 auto auto !important;
    width: min(100%, calc(var(--image-height) * 3.05)) !important;
    z-index: 1;
    background-position: right 13% !important;
    mask-image: linear-gradient(to right, transparent, #000 9%);
  }

  /* Keep the carousel controls and photo link above the decorative panorama. */
  body[data-template-level="1"] #homeHero[data-unified][data-slide="7"] > .wrap {
    z-index: 2;
  }

  #homeHero[data-unified][data-slide="7"] .hero-spain-desktop-offer {
    bottom: 22%;
  }
}
