/* The supplied film shares one crop and one warm grade with its fallback.
   The still remains underneath, including when JavaScript or playback fails. */
/* Contain the poster, playing video and shade below the copy at all widths. */
.hero .home-hero-film {
  background: #56534c;
  isolation: isolate;
  z-index: 0;
}
.hero:has(.home-hero-film) > .hero-content,
.hero:has(.home-hero-film) > .hero-bottom {
  z-index: 3;
}
.hero .home-hero-film > .hero-image {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% center;
  pointer-events: none;
}
.hero .home-hero-film > .home-hero-film-poster {
  z-index: 0;
}
.hero .home-hero-film > .home-hero-film-video {
  z-index: 1;
  opacity: 0;
  transition: opacity .35s ease;
}
.hero .home-hero-film > .home-hero-film-video.has-played {
  opacity: 1;
}
.hero .home-hero-film-video::-webkit-media-controls {
  display: none !important;
}
@media (min-width: 801px) {
  .hero:has(.home-hero-film) {
    color: #fffaf2;
  }
  .hero .home-hero-film::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(26 30 25 / .29), rgb(26 30 25 / .08) 53%, transparent 78%);
  }
  .hero:has(.home-hero-film) h1 em,
  .hero:has(.home-hero-film) .eyebrow,
  .hero:has(.home-hero-film) .hero-bottom {
    color: #f4e8da;
  }
}
@media (max-width: 800px) {
  .hero:has(.home-hero-film) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    padding-top: 84px;
    color: #344b3d;
  }
  .hero .home-hero-film {
    grid-area: 1 / 1;
    height: clamp(620px, calc(100svh - 84px), 900px);
    min-height: 620px;
    margin: 0;
  }
  .hero:has(.home-hero-film) > .hero-content {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 38px 6% max(30px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero:has(.home-hero-film) h1 {
    margin: 0 auto;
    font-size: clamp(38px, 7.5vw, 52px);
    line-height: 1.18;
    max-width: 560px;
  }
  .hero:has(.home-hero-film) h1 em {
    font-size: clamp(24px, 4.5vw, 30px);
    margin-top: 17px;
  }
  .hero:has(.home-hero-film) .visitor-hero-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 220px;
    gap: 18px;
  }
  .hero:has(.home-hero-film) .visitor-hero-actions .button {
    min-height: 54px;
    max-width: 340px;
    font-size: 13px;
    padding: 16px 18px;
    box-shadow: 0 3px 18px rgb(20 29 22 / .12);
  }
  .hero:has(.home-hero-film) .visitor-hero-actions .hero-apothecary-link {
    color: #fffaf2;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgb(20 29 22 / .65);
  }
  .hero .home-hero-film > .hero-image {
    inset: 0;
    height: 100%;
    object-position: 38% center;
  }
  .hero .home-hero-film::after {
    z-index: 2;
    background:
      linear-gradient(180deg, #f2eee5 0%, #f2eee5f5 18%, #f2eee5a6 33%, transparent 54%),
      linear-gradient(0deg, rgb(20 29 22 / .78), rgb(20 29 22 / .4) 24%, transparent 49%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .home-hero-film > .home-hero-film-video {
    opacity: 0 !important;
    transition: none;
  }
}
