/* RPK24 MOBILE HERO FIX V1.5.13 - display entire banner without cropping.
   Add AFTER rpk24-mobile-hero-v1512.css. Uses existing slideshow and DB.
   Small-screen-only changes; desktop remains untouched. */
@media screen and (max-width: 600px) {
  /* Override the older mobile container's width:calc(100% - 24px).
     This was the source of the right-side navy strip in the screenshot. */
  body.rpk-homepage .rpk24-hero-region > .rpk24-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Taller frame, but NEVER zoom/crop the foreground school artwork. */
  body.rpk-homepage .rpk24-hero-region .rpk24-hero {
    width: 100% !important;
    min-height: 170px !important;
    height: clamp(170px, 47vw, 220px) !important;
    max-height: 220px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #123c86 !important;
    isolation: isolate;
  }
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-track,
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  /* Soft backdrop fills the otherwise empty letterboxing space. */
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-slide img.rpk24-hero-backdrop {
    display: block !important;
    position: absolute !important;
    top: -14px !important;
    left: -14px !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100% + 28px) !important;
    height: calc(100% + 28px) !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: blur(11px) brightness(.60) saturate(1.2) !important;
    transform: none !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }
  /* This is the original unmodified image, contained with no side cropping. */
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-slide img.rpk24-hero-foreground {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
    z-index: 1 !important;
  }
  /* Keep carousel controls small and within the image. */
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-arrow {
    width: 29px !important;
    height: 29px !important;
    top: 50% !important;
    font-size: 12px !important;
    z-index: 8 !important;
    background: rgba(6, 36, 89, .75) !important;
  }
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-prev { left: 4px !important; }
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-next { right: 4px !important; }
  body.rpk-homepage .rpk24-hero-region .rpk24-hero-meta { z-index: 9 !important; }
  body.rpk-homepage .rpk24-shortcuts-section { margin-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.rpk-homepage .rpk24-hero-slide { transition: none !important; }
}
