/* The original hero photo and previous video remain available for reverting. */
.hero .herovisual--video {
  width: min(100%, 448px);
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: center;
  justify-self: center;
  overflow: visible;
  background: transparent;
}
.herovisual--video::after { display: none; background: none; }
.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 180 / 217;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
}
.hero-video-frame > img, .hero-video-frame > .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video-frame > .hero-video { opacity: 0; transition: opacity .5s ease-in-out; }
.herovisual--video.has-video .hero-video { opacity: 1; }
/* Keep the poster opaque beneath the fade so the dark background never flashes through. */
.herovisual--video > .imagecaption {
  position: static;
  margin-top: 16px;
  padding: 0 2px;
}
.herovisual--video > .imagecaption strong { font-size: 22px; margin-top: 6px; }
.hero-video-toggle {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(210,177,123,.12);
  background: rgba(23,26,25,.15);
  color: #f4f3ee;
  font-size: 11px;
}
.hero-video-toggle:hover {
  border-color: rgba(210,177,123,.4);
  background: rgba(23,26,25,.25);
}
.hero-video-toggle .video-toggle-icon {
  width: 9px;
  height: 11px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}
.hero-video-toggle[data-paused="true"] .video-toggle-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--gold);
  border-right: 0;
}
@media (max-width: 780px) {
  .hero:has(.herovisual--video) { row-gap: 20px; }
  .hero .herovisual--video { width: min(100%, 400px); }
  .hero-video-frame { border-radius: 20px; }
  .hero-video-toggle { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-frame > img, .hero-video-frame > .hero-video { transition: none; }
}
