/* Scoped, important-layer overrides for the public homepage's legacy styles. */
@layer cybertelResponsiveHome {
  @media (max-width: 1100px), (max-width: 1366px) and (pointer: coarse) {
    #page-home {
      --cyb-home-gutter: clamp(1rem, 4vw, 2.5rem);
      --cyb-department-heading-size: clamp(2rem, 4.8vw, 3rem);
    }
    #page-home .cyb-home-film-hero,
    #page-home .v20-hero-inner {
      min-height: 0 !important;
      height: auto !important;
    }
    #page-home .v20-hero-inner {
      width: auto !important;
      padding: clamp(1.75rem, 5vw, 3rem) var(--cyb-home-gutter) 1.5rem !important;
    }
    #page-home .v20-hero-copy {
      width: min(100%, 43rem) !important;
      max-width: 100% !important;
    }
    #page-home .v20-kicker {
      margin: 0 0 .85rem !important;
      gap: .55rem !important;
      font-size: .75rem !important;
      letter-spacing: .1em !important;
    }
    #page-home .v20-kicker-dot {
      width: .85rem !important;
      height: .85rem !important;
      flex-basis: .85rem !important;
    }
    #page-home .v20-hero h1 {
      font-size: clamp(2.15rem, 5.5vw, 3.8rem) !important;
      line-height: 1.04 !important;
      margin: 0 0 .85rem !important;
    }
    #page-home .v20-hero h1 span br { display: none !important; }
    #page-home .v20-hero-copy > p {
      font-size: 1rem !important;
      line-height: 1.45 !important;
      max-width: 52ch !important;
      text-wrap: pretty;
    }
    #page-home .v20-hero-actions {
      width: min(100%, 29rem) !important;
      max-width: 100% !important;
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)) !important;
      gap: .6rem !important;
      margin: 1.25rem 0 0 !important;
    }
    #page-home .v20-hero-actions .v20-btn {
      width: auto !important;
      min-width: 0 !important;
      min-height: 2.875rem !important;
      padding: .55rem .7rem !important;
      font-size: .9375rem !important;
      white-space: normal !important;
      text-align: center !important;
    }
    #page-home .cyb-open-hero-contact {
      flex-wrap: wrap !important;
      gap: 0 .85rem !important;
      margin: .65rem 0 0 !important;
    }
    #page-home .cyb-open-hero-contact a {
      min-height: 2.75rem !important;
      gap: .42rem !important;
      padding: 0 !important;
      border: 0 !important;
      font-size: .875rem !important;
    }
    #page-home .cyb-open-showroom {
      position: static !important;
      width: fit-content !important;
      max-width: 100% !important;
      min-height: 2.75rem !important;
      margin: .35rem 0 0 !important;
      gap: .55rem !important;
      text-shadow: none !important;
    }
    #page-home .cyb-open-showroom small {
      font-size: .8125rem !important;
    }
    #page-home .v20-departments .v20-wrap {
      width: auto !important;
      max-width: none !important;
      margin-inline: var(--cyb-home-gutter) !important;
      padding-inline: 0 !important;
    }
    #page-home .v20-departments .v20-heading-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: .85rem !important;
    }
    #page-home .v20-departments .v20-inline-link {
      justify-self: start !important;
      min-height: 2.75rem !important;
    }
    #page-home .v20-dept-grid {
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) !important;
      gap: .75rem !important;
    }
    #page-home .v20-dept-grid .v20-dept {
      display: grid !important;
      grid-template-columns: clamp(3.25rem, 8vw, 4.5rem) minmax(0, 1fr) !important;
      grid-template-rows: auto auto auto !important;
      align-content: center !important;
      align-items: start !important;
      gap: .3rem .8rem !important;
      min-height: 0 !important;
      height: auto !important;
      padding: .9rem !important;
    }
    #page-home .v20-dept-grid .v20-dept-thumb {
      grid-area: 1 / 1 / 4 / 2 !important;
      align-self: center !important;
      width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      aspect-ratio: 1;
      margin: 0 !important;
      padding: 0 !important;
    }
    #page-home .v20-dept-thumb > img {
      width: 100% !important;
      height: 100% !important;
      max-height: none !important;
      object-fit: contain !important;
    }
    #page-home .v20-dept > :is(h3, p, span:last-child) {
      grid-column: 2 !important;
      margin: 0 !important;
      min-height: 0 !important;
      text-align: left !important;
    }
    #page-home .v20-dept > h3 {
      font-size: 1.05rem !important;
      line-height: 1.2 !important;
    }
    #page-home .v20-dept > p {
      font-size: 1rem !important;
      line-height: 1.4 !important;
    }
    #page-home .v20-dept > span:last-child {
      justify-self: start !important;
      font-size: .875rem !important;
    }
    #page-home .v20-products-section .v20-product-head {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      justify-items: center !important;
      gap: .75rem !important;
      padding-inline: var(--cyb-home-gutter) !important;
    }
    #page-home .v20-product-head .cyb436-carousel-controls {
      position: static !important;
      inset: auto !important;
      justify-content: center !important;
      height: auto !important;
      width: auto !important;
      margin: 0 !important;
      transform: none !important;
    }
    #page-home .cyb436-carousel-controls .cyb436-carousel-arrow {
      position: static !important;
      width: 2.75rem !important;
      height: 2.75rem !important;
      transform: none !important;
    }
    #page-home .v20-products-section .v20-tabs {
      display: flex !important;
      width: fit-content !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      overflow: visible !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: .3rem !important;
      padding: .25rem !important;
      border-radius: 1rem !important;
    }
    #page-home .v20-tabs .home-feature-tab {
      min-width: 0 !important;
      width: auto !important;
      min-height: 2.75rem !important;
      padding-inline: .65rem !important;
      font-size: .875rem !important;
    }
    #page-home #cyb617Pillars .cyb764-side {
      padding-block: .75rem !important;
    }
    #page-home #cyb617Pillars .cyb764-dots,
    #page-home #cyb617Pillars .cyb764-rule-bottom {
      display: none !important;
    }
    #page-home #cyb617Pillars .cyb754-media {
      width: 100% !important;
      height: auto !important;
      aspect-ratio: 16 / 9 !important;
    }
  }

  /* The approved film is widescreen. Keep the entire frame visible above the
     copy in portrait, including when reduced motion presents its poster. */
  @media (max-width: 640px), (max-width: 1100px) and (orientation: portrait) {
    #page-home .cyb-home-film-hero {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: auto auto !important;
      background-color: #081e34 !important;
    }
    #page-home .cyb-home-film-hero > :is(.cyb-home-film-poster, .cyb-home-film-surface) {
      position: relative !important;
      inset: auto !important;
      grid-area: 1 / 1 !important;
      width: 100% !important;
      height: auto !important;
      aspect-ratio: 16 / 9;
    }
    #page-home .cyb-home-film-hero :is(.cyb-home-film-poster img, .cyb-home-film-surface video) {
      object-fit: contain !important;
    }
    #page-home .cyb-home-film-hero > .v20-hero-overlay {
      display: none !important;
    }
    #page-home .cyb-home-film-hero > .v20-hero-inner {
      grid-area: 2 / 1 !important;
      width: 100% !important;
      padding-block: clamp(1.35rem, 3.6vw, 2rem) 1.35rem !important;
    }
    #page-home .cyb-home-film-toggle {
      right: .75rem !important;
      top: -.75rem !important;
      bottom: auto !important;
      transform: translateY(-100%) !important;
    }
    #page-home .cyb-home-film-hero::after {
      content: "" !important;
      display: block !important;
      position: absolute !important;
      inset: min(-16rem, var(--cyb-photo-header-inset, 0px)) 0 100% !important;
      background: #081e34 !important;
      pointer-events: none !important;
    }
  }
  @media (min-width: 641px) and (max-width: 1100px) and (orientation: landscape) {
    #page-home .v20-hero-inner { margin-inline: 0 !important; }
    #page-home .cyb-home-film-hero {
      --cyb-home-photo-scrim: linear-gradient(90deg, #041425e6, #091d32bb 46%, #10202e2b 78%) !important;
    }
    #page-home .v20-hero-copy { max-width: 72% !important; }
  }
  @media (max-height: 540px) and (min-width: 641px) and (orientation: landscape) {
    #page-home .v20-hero-inner { padding-block: 1rem !important; }
    #page-home .v20-hero h1 { font-size: 2.1rem !important; }
    #page-home .v20-hero-actions { margin-top: .8rem !important; }
    #page-home .v20-kicker { margin-bottom: .45rem !important; }
  }
}
