.pt-video-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pt-hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #1c1512;
  pointer-events: none;
}

.pt-hero-background :is(img, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pt-hero-position, 64% 54%);
}

.pt-hero-background video { opacity: 0; }
.pt-video-hero.has-hero-video .pt-hero-background video { opacity: 1; }

.pt-hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pt-hero-shade, linear-gradient(90deg, #1c1512e8, #1c151215));
}

.pt-hero-video-toggle:not([hidden]) {
  position: absolute;
  z-index: 3;
  inset-block-start: 12px;
  inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #fff5;
  border-radius: 50%;
  background: #1c1512ba;
  color: #fff7ef;
}

.pt-hero-video-toggle:hover { background: #1c1512; }
.pt-hero-video-toggle:focus-visible { outline: 3px solid #ffad90; outline-offset: 3px; }

.pt-hero-video-toggle::before {
  content: "";
  width: 12px;
  height: 14px;
  border-inline: 3px solid currentColor;
}

.pt-hero-video-toggle[data-paused="true"]::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (prefers-reduced-motion: reduce) {
  .pt-video-hero.has-hero-video .pt-hero-background video { opacity: 0; }
  .pt-hero-video-toggle:not([hidden]) { display: none; }
}
