/* THE PEAKS ON 76 - MOBILE RESTORATION V2 */
/* Desktop and tablet are not changed. */

@media (max-width: 767.98px) {

  /* Restore full mobile hero presentation */
  body #home.page-hero {
    position: relative !important;
    height: 55dvh !important;
    min-height: 55dvh !important;
    max-height: none !important;
    overflow: hidden !important;
    background-image: url("/img/intro-vid.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }

  /* Preserve the dark image treatment */
  body #home .video-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  /* Return to full-width stacked image panels */
  body .hero-panels-mobile {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body .hero-panels-mobile .mobile-media-panels {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .hero-panels-mobile .mobile-media-panel {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #243531 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transform: none !important;
  }

  body .hero-panels-mobile .mobile-media-panel > img {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body .hero-panels-mobile .mobile-media-panel__overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,.42),
      rgba(0,0,0,.08)
    ) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  body .hero-panels-mobile .mobile-media-panel__content {
    display: flex !important;
    position: absolute !important;
    inset: auto 18px 20px 22px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 4px !important;
    background: transparent !important;
    color: #fff !important;
    text-align: left !important;
    transform: none !important;
    z-index: 2 !important;
  }

  body .hero-panels-mobile .mobile-media-panel__eyebrow {
    display: block !important;
    position: static !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .hero-panels-mobile .mobile-media-panel__title {
    display: block !important;
    position: static !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .hero-panels-mobile .mobile-media-panel:hover {
    transform: none !important;
  }
}


/* ==========================================
   PEAKS MOBILE PANEL DIVIDERS V1
   Match working demo homepage
========================================== */

@media (max-width: 767.98px) {

    body .hero-panels-mobile
    .mobile-media-panel:not(:last-child) {
        border-bottom: 3px solid #ffffff !important;
    }

    body .hero-panels-mobile
    .mobile-media-panel:first-child {
        border-top: 3px solid #ffffff !important;
    }

}


/* PEAKS STEP 9B MOBILE HERO STABILITY */
@media (max-width: 767.98px) {
  body #home.page-hero {
    height: 55svh !important;
    min-height: 55svh !important;
    max-height: none !important;
  }
}
