/* ==========================================================================
   Homepage photo tiles (Sabrina, 2026-10-17). Homepage only.
   The Rentals page "Pop-up obstacles inside" (Ultimate Houses) and
   "Bounce, slide, splash" (water) tiles, copied onto the homepage in place of
   the Finding Nemo and "Slide into the fun" sections, on PC and phone.
   One section per tile serves both devices; PC keeps the Rentals layout,
   phone rearranges it (square photo; photo with the arched card below it).
   Same photos, painted ivory button, script accent word and corner wipe
   (motion-kit.js, started by home-tiles.js) as the Rentals tiles.
   The Rentals page is not touched: every rule is scoped to #main > .home-tile.
   ========================================================================== */

html body #main > .home-tile {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4.2svh, 56px) clamp(16px, 3vw, 56px);
  isolation: isolate;
  overflow: hidden;
  background: #DCEBFF;
}
/* The ground (Sabrina, 2026-10-17): the homepage hero's painted pastel sky, softened under a light veil
   so it stays calm behind the busy tile photo. Never a plain cream ground. */
html body #main > .home-tile::before {
  content: ""; position: absolute; inset: -30px; z-index: -2; pointer-events: none;
  background: url('../bundled/home-hero/sky-pc.webp') 50% 22% / 135% auto no-repeat;
  filter: blur(10px) saturate(.92);
}
html body #main > .home-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .42);
}
@media (max-width: 767px) {
  html body #main > .home-tile::before { background-image: url('../bundled/home-hero/sky-mobile.webp'); background-size: cover; background-position: 50% 40%; }
}

/* Ultimate tile: the phone rental cards' inside-photo icons and arrows (card-slides.css styles them,
   home-tiles.js lays the overlay exactly over the drawn photo). */
html body #main > .home-tile--ultimate .home-tile__feat {
  position: absolute; z-index: 1; display: block; overflow: visible; pointer-events: none;
  background: none; translate: none;
}
html body #main > .home-tile--ultimate .home-tile__feat .cfs-chip { z-index: 2; }
@media (min-width: 768px) {
  html body #main:not(#h1):not(#h2):not(#h3):not(#h4):not(#h5) > .home-tile--ultimate .home-tile__feat .cfs-chip__ic { width: clamp(50px, 4.6cqw, 64px); height: clamp(50px, 4.6cqw, 64px); }
  html body #main:not(#h1):not(#h2):not(#h3):not(#h4):not(#h5) > .home-tile--ultimate .home-tile__feat .cfs-chip__ic svg { width: 76%; height: 76%; }
  html body #main:not(#h1):not(#h2):not(#h3):not(#h4):not(#h5) > .home-tile--ultimate .home-tile__feat .cfs-chip b { font-size: clamp(11px, 1cqw, 14px); padding: 4px 8px; }
}
html body #main > .home-tile .home-tile__frame { width: 100%; margin: 0 auto; }
html body #main > .home-tile .home-tile__box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  container-type: inline-size;
  background: #EDE5D0;
}
html body #main > .home-tile .home-tile__media,
html body #main > .home-tile .home-tile__img { display: block; width: 100%; height: 100%; }
html body #main > .home-tile .home-tile__img { object-fit: cover; }

/* Shared type: DM Serif Display, white with the gold Allura accent word. */
html body #main > .home-tile .home-tile__title {
  margin: 0;
  max-width: none;
  font-family: "DM Serif Display", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  color: #FFF9ED !important;
}
html body #main > .home-tile .home-tile__title .mbm-script {
  font-family: 'Allura', cursive !important;
  font-weight: 400 !important;
  line-height: .8 !important;
  color: #F3C45E !important;
  white-space: nowrap !important;
}
html body #main > .home-tile .home-tile__btn {
  white-space: nowrap !important;
  text-decoration: none !important;
  font-family: "DM Serif Display", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ---------------- PC and tablet (768px and up) ---------------- */
@media (min-width: 768px) {
  #main > .home-tile--water { order: 3; }
  #main > .home-tile--ultimate { order: 5; }
  /* The Rentals tile proportions (16:9), as large as fits one screen. */
  html body #main > .home-tile .home-tile__frame { max-width: min(1320px, calc((100svh - 2 * clamp(28px, 4.2svh, 56px)) * 16 / 9)); }
  html body #main > .home-tile .home-tile__box { aspect-ratio: 16 / 9; }
  html body #main > .home-tile .home-tile__media { position: absolute; inset: 0; }

  /* Ultimate: heading top left over a soft top shade, button centred at the bottom. */
  html body #main > .home-tile--ultimate .home-tile__img { object-position: 50% 50%; }
  html body #main > .home-tile--ultimate .home-tile__box::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 34%; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 21, 43, .5), rgba(8, 21, 43, 0));
  }
  html body #main > .home-tile--ultimate .home-tile__body { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  html body #main > .home-tile--ultimate .home-tile__title {
    position: absolute; left: 3.2cqw; top: 2.6cqw;
    font-size: clamp(30px, 5.2cqw, 64px) !important; line-height: 1.15 !important;
    text-shadow: 0 2px 8px rgba(8, 21, 43, .55);
  }
  html body #main > .home-tile--ultimate .home-tile__title .mbm-script { font-size: 1.95em !important; text-shadow: 0 1px 2px rgba(8, 21, 43, .7) !important; }
  html body #main > .home-tile--ultimate .home-tile__btn {
    position: absolute !important; left: 50%; bottom: 3.6cqw; margin: 0 !important;
    min-height: clamp(44px, 4.4cqw, 60px) !important; padding: 0 clamp(26px, 2.6cqw, 40px) !important;
    font-size: clamp(16px, 1.6cqw, 21px) !important; pointer-events: auto;
  }

  /* Water: everything on the navy arch card in the open sky on the left; the photo keeps the whole house. */
  html body #main > .home-tile--water .home-tile__img { object-position: 100% 50%; }
  html body #main > .home-tile--water .home-tile__card {
    position: absolute; left: 3.5%; top: 7%; bottom: 7%; z-index: 2;
    width: 42%; max-width: 500px; box-sizing: border-box;
    padding: 7% 3.4% 6%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    background: #173B68;
    border-radius: 50% 50% 24px 24px / 27% 27% 24px 24px;
    box-shadow: 0 18px 36px -16px rgba(8, 21, 43, .65);
    container-type: inline-size;
  }
  html body #main > .home-tile--water .home-tile__title { margin: 0 0 7cqw !important; font-size: 9.6cqw !important; line-height: 1.05 !important; text-shadow: none; }
  html body #main > .home-tile--water .home-tile__line {
    margin: 0 0 9cqw; max-width: none; width: 100%;
    color: #FFF9ED; font-family: 'Manrope', system-ui, sans-serif; font-weight: 600;
    font-size: clamp(14px, 4.6cqw, 21px); line-height: 1.45; text-align: center; text-shadow: none;
  }
  html body #main > .home-tile--water .home-tile__btn {
    margin: 0 !important; min-height: clamp(44px, 12cqw, 58px) !important; padding: 0 clamp(26px, 7cqw, 38px) !important;
    font-size: clamp(16px, 4.6cqw, 21px) !important;
  }
}

/* ---------------- Phone (767px and down) ---------------- */
@media (max-width: 767px) {
  #main > .home-tile--water { order: 5; }
  #main > .home-tile--ultimate { order: 7; }
  html body #main > .home-tile { padding: 28px 16px; }

  /* Ultimate: the square phone photo, heading on top, button at the bottom. */
  html body #main > .home-tile--ultimate .home-tile__box { aspect-ratio: 1 / 1; }
  html body #main > .home-tile--ultimate .home-tile__media { position: absolute; inset: 0; }
  html body #main > .home-tile--ultimate .home-tile__box::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 30%; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 21, 43, .55), rgba(8, 21, 43, 0));
  }
  html body #main > .home-tile--ultimate .home-tile__body { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  html body #main > .home-tile--ultimate .home-tile__title {
    position: absolute; left: 0; right: 0; top: 5cqw; text-align: center;
    font-size: 7.2cqw !important; line-height: 1.15 !important;
    text-shadow: 0 2px 8px rgba(8, 21, 43, .6);
  }
  html body #main > .home-tile--ultimate .home-tile__title .mbm-script { font-size: 1.95em !important; text-shadow: 0 1px 2px rgba(8, 21, 43, .7) !important; }
  html body #main > .home-tile--ultimate .home-tile__btn {
    position: absolute !important; left: 50%; bottom: 5cqw; margin: 0 !important;
    min-height: 48px !important; padding: 0 28px !important; font-size: 17px !important; pointer-events: auto;
  }

  /* Water: the photo on top, the navy arch card centred below it and rising into the photo. */
  html body #main > .home-tile--water .home-tile__box { overflow: visible; background: none; border-radius: 0; }
  html body #main > .home-tile--water .home-tile__media { aspect-ratio: 1071 / 809; height: auto; border-radius: 18px; overflow: hidden; }
  html body #main > .home-tile--water .home-tile__img { height: 100%; object-position: 50% 50%; }
  html body #main > .home-tile--water .home-tile__card {
    position: relative; z-index: 2;
    width: 88%; box-sizing: border-box; margin: -56px auto 0;
    padding: 46px 20px 26px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #173B68;
    border-radius: 50% 50% 22px 22px / 64px 64px 22px 22px;
    box-shadow: 0 18px 36px -16px rgba(8, 21, 43, .65);
    container-type: inline-size;
  }
  html body #main > .home-tile--water .home-tile__title { margin: 0 0 12px !important; font-size: min(30px, 10cqw) !important; line-height: 1.1 !important; text-shadow: none; }
  html body #main > .home-tile--water .home-tile__title .mbm-script { font-size: 1.6em !important; }
  html body #main > .home-tile--water .home-tile__line {
    margin: 0 0 20px; max-width: 30ch;
    color: #FFF9ED; font-family: 'Manrope', system-ui, sans-serif; font-weight: 600;
    font-size: 15px; line-height: 1.45; text-shadow: none;
  }
  html body #main > .home-tile--water .home-tile__btn { margin: 0 !important; min-height: 48px !important; padding: 0 28px !important; font-size: 17px !important; }

  /* Homepage rentals rail (Sabrina, 2026-10-17): no category buttons on phone, and the
     arrows sit on the card row, centred on the card photos, one each side. */
  html body #main > .featured.has-rx .rx__pills,
  html body #main > .featured.has-rx .rx__all-wrap,
  html body #main > .featured.has-rx .rx__all { display: none !important; }
  html body #main > .featured.has-rx .rx__swash { margin-bottom: 22px !important; }
  html body #main > .featured.has-rx { --rxc: min(260px, calc(100vw - 112px)); padding-bottom: 0 !important; }
  html body #main > .featured.has-rx .rx__stage { padding: 0 44px 34px !important; }
  /* The slider runs to the screen edge, so the next card peeks in whole up to the edge rather than stopping short of it. */
  html body #main > .featured.has-rx .rx__track.is-row { padding: 0 44px 10px !important; margin-inline: -44px !important; scroll-padding-inline: 44px; }
  html body #main > .featured.has-rx .rx__track.is-row .rx-card { scroll-snap-align: start !important; }
  /* The arrows sit over the peeking card, so each gets a white circle to stay readable on any photo. */
  html body #main > .featured.has-rx .rx__stage .rx__arrow { z-index: 6 !important; border-radius: 50% !important; background: rgb(255 255 255 / .92) !important; box-shadow: 0 6px 16px -6px rgb(22 22 31 / .35) !important; }
  html body #main > .featured.has-rx .rx__track.is-row .rx-card { flex: 0 0 var(--rxc) !important; width: var(--rxc) !important; max-width: var(--rxc) !important; }
  html body #main > .featured.has-rx .rx__stage .rx__arrow {
    top: calc(var(--rxc) / 2 - 22px) !important; bottom: auto !important; transform: none !important;
    width: 44px !important; height: 44px !important;
  }
  html body #main > .featured.has-rx .rx__stage .rx__arrow--prev { left: 0 !important; right: auto !important; }
  html body #main > .featured.has-rx .rx__stage .rx__arrow--next { right: 0 !important; left: auto !important; }
  html body #main > .featured.has-rx .rx__dots { bottom: 8px !important; }
}

/* Full sections (Sabrina, 2026-10-17): each tile is the whole section, edge to edge, not a rounded card on a sky. */
html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile { padding: 0 !important; background: none !important; }
html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile::before,
html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile::after { content: none !important; }
html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile .home-tile__frame { max-width: none !important; width: 100% !important; }
html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile .home-tile__box { border-radius: 0 !important; }
@media (min-width: 768px) {
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile .home-tile__box { aspect-ratio: auto !important; height: 100svh !important; min-height: 640px; }
}
@media (max-width: 767px) {
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--ultimate .home-tile__box { aspect-ratio: 1 / 1 !important; }
  /* Water on phones: the photo fills the whole section and the arch card sits over its lower part. */
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--water .home-tile__box { position: relative !important; min-height: 100svh; overflow: hidden !important; }
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--water .home-tile__media { position: absolute !important; inset: 0 !important; aspect-ratio: auto !important; height: auto !important; border-radius: 0 !important; }
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--water .home-tile__img { object-fit: cover !important; object-position: 50% 10% !important; }
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--water .home-tile__card { position: absolute !important; left: 6% !important; right: 6% !important; width: auto !important; bottom: 7svh !important; margin: 0 !important; }
}
@media (max-width: 767px) {
  /* Full-bleed on phones: the heading sits below the menu and Book Now, never under them. */
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--ultimate .home-tile__title { top: 62px !important; margin-top: 0 !important; font-size: min(26px, 6.8vw) !important; }
}
@media (max-width: 767px) {
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--ultimate .home-tile__box { aspect-ratio: auto !important; height: 100svh !important; min-height: 600px; }
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--ultimate .home-tile__img { object-position: 50% 50% !important; }
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--ultimate .home-tile__title { top: 76px !important; }
}
@media (max-width: 767px) {
  html body #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5) > .home-tile--ultimate .home-tile__btn { bottom: 9svh !important; top: auto !important; }
}
/* Homepage rentals rail on computers too (Sabrina, 2026-10-19): no category buttons (Ultimate Houses, Deluxe Houses,
   Obstacle Courses, Slides, See all rentals). */
@media (min-width:768px){
  html body #main > .featured.has-rx .rx__pills,
  html body #main > .featured.has-rx .rx__all-wrap,
  html body #main > .featured.has-rx .rx__all { display: none !important; }
}

/* Ultimate slideshow and Party Extras tile: full-width photos at their own shape, a shaded side for the words,
   kicker, headline and button together. The slideshow fades between four photos; its headline changes with
   each photo and the button stays. */
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) { padding: 0 !important; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__frame { max-width: none !important; width: 100% !important; padding: 0 !important; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box {
  position: relative !important; aspect-ratio: 16 / 9 !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  overflow: hidden !important; border-radius: 0 !important; container-type: inline-size;
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__media { position: absolute !important; inset: 0 !important; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50% !important; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box::before {
  content: ""; position: absolute !important; inset: 0 !important; height: auto !important; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 21, 43, .88) 0%, rgba(8, 21, 43, .72) 30%, rgba(8, 21, 43, .25) 50%, rgba(8, 21, 43, 0) 62%) !important;
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__body {
  position: absolute !important; inset: 0 !important; z-index: 2; pointer-events: none; box-sizing: border-box;
  display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: flex-start !important;
  gap: 2.6cqw !important; padding: 0 0 0 5cqw !important; margin: 0 !important;
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__kicker {
  margin: 0; font: 600 1.05cqw/1 Manrope, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #FFE5A0;
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__title {
  position: static !important; inset: auto !important; top: auto !important; margin: 0 !important; max-width: 48cqw; white-space: normal !important;
  color: #fff !important; text-align: left !important; font-size: 6.6cqw !important; line-height: 1 !important;
  text-shadow: 0 2px 18px rgba(8, 21, 43, .6) !important;
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__title .mbm-script {
  font-size: 1.45em !important; line-height: 1.05;
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--ultimate .home-tile__title .mbm-script { display: block; margin-top: .05em; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--extras .home-tile__title { font-size: 5.2cqw !important; max-width: 46cqw; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__btn {
  position: static !important; inset: auto !important; margin: 0 !important; pointer-events: auto;
  min-height: 4.6cqw !important; padding: 0 3cqw !important; font-size: 1.9cqw !important; white-space: nowrap;
}

html body #main > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__body > :not(.home-slides__titles),
html body #main > .home-tile--ultimate .home-slides__titles > .is-on { pointer-events: auto; }
html body #main > .home-tile--ultimate .home-slides__titles > :not(.is-on) { pointer-events: none; }
/* Slides: every photo and headline sits in the same place; the current one fades in. */
html body #main > .home-tile--ultimate .home-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms cubic-bezier(0.4, 0, 0.6, 1); }
html body #main > .home-tile--ultimate .home-slide.is-on { opacity: 1; }
html body #main > .home-tile--ultimate .home-slides__titles { display: grid; }
html body #main > .home-tile--ultimate .home-slides__titles > * { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
html body #main > .home-tile--ultimate .home-slides__titles > .is-on { opacity: 1; transform: none; transition-delay: 200ms; }

/* Arrows and dots: small and quiet on the photo, clearer on hover. */
html body #main > .home-tile--ultimate .home-slides__arrow {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%; display: grid; place-items: center;
  width: clamp(34px, 2.8cqw, 44px); height: clamp(34px, 2.8cqw, 44px); margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(8, 21, 43, .22); color: #fff; opacity: .5; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 200ms ease, background-color 200ms ease;
}
html body #main > .home-tile--ultimate .home-slides__arrow--prev { left: 1.4cqw; }
html body #main > .home-tile--ultimate .home-slides__arrow--next { right: 1.4cqw; }
html body #main > .home-tile--ultimate .home-slides__arrow svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html body #main > .home-tile--ultimate .home-slides__dots { position: absolute; left: 50%; bottom: 2.2cqw; z-index: 3; translate: -50% 0; display: flex; gap: 10px; }
html body #main > .home-tile--ultimate .home-slides__dot {
  width: 7px; height: 7px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: background-color 200ms ease, transform 200ms ease;
}
html body #main > .home-tile--ultimate .home-slides__dot.is-on { background: #fff; transform: scale(1.3); }
html body #main > .home-tile--ultimate .home-slides__dot::before { content: ""; position: absolute; inset: -9px; }
html body #main > .home-tile--ultimate .home-slides__dot { position: relative; }
@media (hover: hover) and (pointer: fine) {
  html body #main > .home-tile--ultimate .home-slides:hover .home-slides__arrow { opacity: .8; }
  html body #main > .home-tile--ultimate .home-slides__arrow:hover { opacity: 1; background: rgba(8, 21, 43, .4); }
}
html body #main > .home-tile--ultimate .home-slides__arrow:focus-visible,
html body #main > .home-tile--ultimate .home-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; opacity: 1; }

/* Phone: the tall photos; the words and button sit together over a shade at the bottom. */
@media (max-width: 767px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box { aspect-ratio: 9 / 16 !important; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box::before {
    background: linear-gradient(0deg, rgba(8, 21, 43, .9) 0%, rgba(8, 21, 43, .75) 28%, rgba(8, 21, 43, 0) 55%) !important;
  }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__body {
    justify-content: flex-end !important; align-items: center !important; gap: 14px !important; padding: 64px 20px calc(7cqw + 30px) !important;
  }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__kicker { font-size: 11px; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__title { max-width: 100% !important; text-align: center !important; font-size: 12vw !important; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__btn {
    min-height: 54px !important; padding: 0 30px !important; font-size: 19px !important; margin-top: 10px !important;
  }
  /* Events slideshow on phones: the Ultimate shade, from the top where its words sit. */
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--extras .home-tile__box::before {
    background: linear-gradient(180deg, rgba(8, 21, 43, .9) 0%, rgba(8, 21, 43, .75) 28%, rgba(8, 21, 43, 0) 55%) !important;
  }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--extras .home-tile__body { justify-content: flex-start !important; padding-top: 72px !important; padding-bottom: 7cqw !important; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--extras .home-tile__title { font-size: 9.6vw !important; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--extras .home-tile__btn { margin-top: auto !important; }
  html body #main > .home-tile--ultimate .home-slides__arrow { top: 42%; }
  html body #main > .home-tile--ultimate .home-slides__arrow--prev { left: 10px; }
  html body #main > .home-tile--ultimate .home-slides__arrow--next { right: 10px; }
  html body #main > .home-tile--ultimate .home-slides__dots { bottom: 7cqw; }
  /* The photo sections fill the phone screen top to bottom. */
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box { aspect-ratio: auto !important; height: 100svh !important; min-height: 560px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body #main > .home-tile--ultimate :is(.home-slide, .home-slides__titles > *) { transition: none; transform: none; }
}
/* Homepage section order, the same on PC and phone: hero, rentals, water slides, service areas,
   Ultimate slideshow, About, Party Extras, footer. */
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .portal-hero { order: 0 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .featured { order: 2 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .home-tile--water { order: 3 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .areas { order: 4 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .home-tile--ultimate { order: 5 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .preview-home-about { order: 6 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .home-tile--extras { order: 7 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .closing { order: 8 !important; }
/* Water slides: the slideshow layout; the line sits under the headline. */
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--water .home-tile__line {
  position: static !important; margin: 0 !important; max-width: 32cqw; color: #fff !important; text-align: left !important;
  font-size: clamp(15px, 1.35cqw, 22px) !important; line-height: 1.45 !important; text-shadow: 0 2px 12px rgba(8, 21, 43, .6);
}
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--water .home-tile__title { font-size: 5.6cqw !important; max-width: 44cqw; }
html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--water .home-tile__img { object-position: 50% 100% !important; }
@media (max-width: 767px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--water .home-tile__line { max-width: none; text-align: center !important; font-size: 16px !important; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6) > .home-tile--water .home-tile__title { font-size: 11vw !important; }
}
/* PC: each photo section is one screen tall at most; any crop comes off the top of the photo, never the bottom. */
@media (min-width: 768px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box { aspect-ratio: auto !important; height: min(100svh, 56.25vw) !important; }
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__img { object-fit: cover !important; object-position: 50% 100% !important; }
}
/* Where each photo gives way when the screen is wider than the photo: the empty part goes, never people or products.
   Party Extras and the slideshow keep the top (heads, hands, the ball) and lose lawn at the bottom; Water slides keeps the bottom. */
@media (min-width: 768px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8) > .home-tile--ultimate .home-tile__img { object-position: 50% 50% !important; }
}
@media (min-width: 768px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9) > .home-tile--extras .home-tile__img { object-position: 50% 62% !important; }
}
/* The slideshow photos are 2.3 x 1: the section is never taller than the photo, so no screen cuts its sides. */
@media (min-width: 768px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9):not(#f10) > .home-tile--ultimate .home-tile__box { height: min(100svh, calc(100vw / 2.3)) !important; }
}
/* Water slides: the section is the photo's own shape, so the whole photo shows and nothing is cut. */
@media (min-width: 768px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9):not(#f10) > .home-tile--water .home-tile__box { height: calc(100vw * 941 / 1672) !important; }
}

/* Ultimate slideshow: the section is the photos' own shape, so each whole photo shows and nothing is cut. */
@media (min-width: 768px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9):not(#f10) > .home-tile--ultimate .home-tile__box { height: calc(100vw * 827 / 1902) !important; min-height: 0 !important; aspect-ratio: auto !important; }
}

/* iPhone Safari only: its toolbars slide away while scrolling, so full-screen sections use the full height the page
   has then. Other phone browsers keep the size they already use. */
@media (max-width: 767px) {
  html.is-ios-safari body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9) > :is(.home-tile--ultimate, .home-tile--extras, .home-tile--water) .home-tile__box { height: 100lvh !important; }
  html.is-ios-safari body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9) > .home-tile--water .home-tile__box { min-height: 100lvh !important; }
  html.is-ios-safari body .portal-hero.is-phone:not(#x), html.is-ios-safari body .portal-hero.is-phone:not(#x) .ph-stage { height: 100lvh !important; }
}

/* Homepage rentals: "See all rentals" as an underlined text link under the rail. */
/* Computers: the link hangs just under the dots, in the section's existing bottom space, and takes no room of its own,
   so the section keeps its height. */
@media (min-width: 768px) {
  html body #main > .featured.has-rx .rx__stage { position: relative; }
  html body #main > .featured.has-rx .rx__textlink-wrap { position: absolute !important; left: 0 !important; right: 0 !important; top: calc(100% + 10px) !important; bottom: auto !important; display: flex !important; justify-content: center !important; margin: 0 !important; padding: 0 !important; z-index: 3; pointer-events: none; }
  html body #main > .featured.has-rx .rx__textlink-wrap > a { pointer-events: auto; }
}
@media (max-width: 767px) {
  html body #main > .featured.has-rx .rx__textlink-wrap { order: 99 !important; grid-row: auto !important; display: flex !important; justify-content: center !important; margin: 4px 0 0 !important; padding: 0 0 clamp(28px, 4vw, 48px) !important; position: relative; z-index: 3; }
}
html body #main > .featured.has-rx .rx__textlink { font-family: var(--font-display, 'DM Serif Display', serif) !important; font-size: clamp(18px, 1.5vw, 22px) !important; color: #16161F !important; text-decoration: underline !important; text-decoration-thickness: 1.5px !important; text-underline-offset: 5px !important; transition: text-decoration-thickness 160ms ease-out, text-underline-offset 160ms ease-out; }
@media (hover: hover) and (pointer: fine) { html body #main > .featured.has-rx .rx__textlink:hover { text-decoration-thickness: 2.5px !important; text-underline-offset: 7px !important; } }

/* Ultimate slideshow on phones: every slide photo fills its slide edge to edge, whatever placement or crop was saved
   for it, so no slide can show a gap or an off-centre crop. */
@media (max-width: 767px) {
  html body:not(#x) #main:not(#f1):not(#f2):not(#f3):not(#f4):not(#f5):not(#f6):not(#f7):not(#f8):not(#f9) > .home-tile--ultimate .home-tile__box img.home-tile__img[data-mbm-edit^="ult_slide"]:not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l):not(#mbm-l) {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important;
    margin: 0 !important; translate: none !important; scale: none !important; transform: none !important;
    object-fit: cover !important; object-position: 50% 50% !important;
  }
}

/* Homepage cards show each product's transparent image, whole, on the section's own ground. */
html body #main > .featured .rx-card--cutout .card__media { background: transparent !important; box-shadow: none !important; }
html body #main > .featured .rx-card--cutout .card__media > .square-pair--display { object-fit: contain !important; background: transparent !important; }

/* School events tile: the Party Extras tile's layout, plus the two district badges under the title,
   each on a white panel so the logos keep their own colours over the photo. */
html body #main > .home-tile--events .home-tile__badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.2cqw, 20px);
  margin: clamp(14px, 1.6cqw, 26px) 0 clamp(18px, 2cqw, 32px); padding: 0; list-style: none; pointer-events: auto;
}
html body #main > .home-tile--events .home-tile__badge {
  display: grid; grid-template: minmax(0, 1fr) / auto; place-items: center; box-sizing: border-box;
  height: clamp(74px, 7.4cqw, 132px); padding: clamp(8px, .8cqw, 14px) clamp(12px, 1.2cqw, 20px);
  border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgb(8 21 43 / .28);
}
html body #main > .home-tile--events .home-tile__badge img { display: block; width: auto; height: 100%; max-height: 100%; max-width: clamp(140px, 14cqw, 260px); object-fit: contain; }
html body #main > .home-tile--events .home-tile__badge picture { display: contents; }
/* Both badges share one size; each logo fits inside it. */
html body #main > .home-tile--events .home-tile__badge { width: calc(clamp(140px, 14cqw, 260px) + 2 * clamp(12px, 1.2cqw, 20px)); }
html body #main > .home-tile--events .home-tile__badge img { max-width: 100%; }
@media (max-width: 767px) {
  html body #main > .home-tile--events .home-tile__badges { justify-content: center; flex-wrap: nowrap; margin: 14px 0 0; gap: 8px; }
  html body #main > .home-tile--events .home-tile__badge { height: 60px; padding: 6px 10px; border-radius: 10px; }
  html body #main > .home-tile--events .home-tile__badge img { max-width: calc(50vw - 40px); }
  html body #main > .home-tile--events .home-tile__badge { width: min(175px, calc(50vw - 24px)); }
}

/* Events slideshow (school events, party extras, block parties, school gym): the Ultimate slideshow's
   behaviour, plus a label, badges and button that change with each slide. */
html body #main > .home-tile--events .home-slides__titles > .is-on { pointer-events: auto; }
html body #main > .home-tile--events .home-slides__titles > :not(.is-on) { pointer-events: none; }
html body #main > .home-tile--events .home-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms cubic-bezier(0.4, 0, 0.6, 1); }
html body #main > .home-tile--events .home-slide.is-on { opacity: 1; }
html body #main > .home-tile--events .home-slides__titles { display: grid; }
html body #main > .home-tile--events .home-slides__titles > * { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
html body #main > .home-tile--events .home-slides__titles > .is-on { opacity: 1; transform: none; transition-delay: 200ms; }
html body #main > .home-tile--events .home-slides__arrow--prev { left: 1.4cqw; }
html body #main > .home-tile--events .home-slides__arrow--next { right: 1.4cqw; }
html body #main > .home-tile--events .home-slides__arrow svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html body #main > .home-tile--events .home-slides__dots { position: absolute; left: 50%; bottom: 2.2cqw; z-index: 3; translate: -50% 0; display: flex; gap: 10px; }
html body #main > .home-tile--events .home-slides__dot.is-on { background: #fff; transform: scale(1.3); }
html body #main > .home-tile--events .home-slides__dot::before { content: ""; position: absolute; inset: -9px; }
html body #main > .home-tile--events .home-slides__dot { position: relative; }
@media (hover: hover) and (pointer: fine) { html body #main > .home-tile--events .home-slides:hover .home-slides__arrow { opacity: .8; } }
@media (hover: hover) and (pointer: fine) { html body #main > .home-tile--events .home-slides__arrow:hover { opacity: 1; background: rgba(8, 21, 43, .4); } }
html body #main > .home-tile--events .home-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; opacity: 1; }
@media (max-width: 767px) { html body #main > .home-tile--events .home-slides__arrow { top: 42%; } }
@media (max-width: 767px) { html body #main > .home-tile--events .home-slides__arrow--prev { left: 10px; } }
@media (max-width: 767px) { html body #main > .home-tile--events .home-slides__arrow--next { right: 10px; } }
@media (max-width: 767px) { html body #main > .home-tile--events .home-slides__dots { bottom: 7cqw; } }
@media (prefers-reduced-motion: reduce) { html body #main > .home-tile--events :is(.home-slide, .home-slides__titles > *) { transition: none; transform: none; } }
html body #main > .home-tile--events :is(.home-slides__kickers, .home-slides__extras, .home-slides__btns) { display: grid; }
html body #main > .home-tile--events :is(.home-slides__kickers, .home-slides__extras, .home-slides__btns) > * { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
html body #main > .home-tile--events :is(.home-slides__kickers, .home-slides__extras, .home-slides__btns) > .is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 200ms; }
html body #main > .home-tile--events .home-slides__btns { justify-items: start; }
@media (max-width: 767px) { html body #main > .home-tile--events .home-slides__btns { justify-items: center; margin-top: auto; } html body #main > .home-tile--events .home-slides__extras { justify-items: center; } }
@media (prefers-reduced-motion: reduce) { html body #main > .home-tile--events :is(.home-slides__kickers, .home-slides__extras, .home-slides__btns) > * { transition: none; transform: none; } }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .home-tile--events { order: 3 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .home-tile--water { order: 6 !important; }
html body:not(#x) #main:not(#o1):not(#o2):not(#o3):not(#o4):not(#o5):not(#o6) > .preview-home-about { order: 7 !important; }
html body #main > .home-tile--events .home-slides__arrow {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%; display: grid; place-items: center;
  width: clamp(34px, 2.8cqw, 44px); height: clamp(34px, 2.8cqw, 44px); margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(8, 21, 43, .22); color: #fff; opacity: .5; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 200ms ease, background-color 200ms ease;
}
html body #main > .home-tile--events .home-slides__dot {
  width: 7px; height: 7px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: background-color 200ms ease, transform 200ms ease;
}
