/*
 * Final responsive composition for the three principal landing heroes.
 * Per-slide focal points are supplied as --hero-mobile-x/y from the admin.
 */
@media (max-width: 768px) {
  .smd-home .home-hero,
  .smd-home .home-hero-slide,
  .smd-home .home-hero-bg,
  .smd-home .home-hero-overlay,
  .smd-home .home-hero-content {
    height: clamp(460px, 123vw, 520px);
    min-height: clamp(460px, 123vw, 520px);
  }

  .smd-home .home-hero-bg {
    background-position: var(--hero-mobile-x, 50%) var(--hero-mobile-y, 50%) !important;
  }

  .smd-home .home-hero-card {
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .dentistry-slider-wrap,
  .dentistry-slide,
  .dentistry-slide-bg,
  .dentistry-slide-overlay,
  .dentistry-slide-content,
  .certificates-hero {
    height: clamp(430px, 113vw, 480px);
    min-height: clamp(430px, 113vw, 480px);
  }

  .dentistry-slide-bg {
    background-position: var(--hero-mobile-x, 50%) var(--hero-mobile-y, 50%);
  }

  .certificates-hero__image {
    object-position: var(--hero-mobile-x, 50%) var(--hero-mobile-y, 50%);
  }

  .dentistry-slide-content {
    padding: 185px 16px max(18px, env(safe-area-inset-bottom));
  }

  .certificates-hero__copy {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 340px) {
  .smd-home .home-hero-card,
  .dentistry-slide-card,
  .certificates-hero__copy {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }

  .certificates-hero__copy {
    right: 16px;
    left: 16px;
  }

  .smd-home .home-hero-title,
  .dentistry-slide-card h2 {
    font-size: 15px;
  }

  .certificates-hero h1 {
    font-size: 17px;
  }

  .home-hero-arrow,
  .dentistry-slider-arrow,
  .certificates-hero__arrow {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 932px) and (orientation: landscape) and (max-height: 520px) {
  .smd-home .home-hero,
  .smd-home .home-hero-slide,
  .smd-home .home-hero-bg,
  .smd-home .home-hero-overlay,
  .smd-home .home-hero-content,
  .dentistry-slider-wrap,
  .dentistry-slide,
  .dentistry-slide-bg,
  .dentistry-slide-overlay,
  .dentistry-slide-content,
  .certificates-hero {
    height: max(360px, 92svh);
    min-height: max(360px, 92svh);
  }

  .smd-home .home-hero-card,
  .dentistry-slide-card,
  .certificates-hero__copy {
    max-height: calc(100% - 24px);
    overflow: auto;
  }
}
