/* Hero Expand: all selectors are scoped to the shortcode. */
.hxe-hero {
  --hxe-bg: #f7f6f3;
  --hxe-color: #20201f;
  --hxe-initial-width: 46%;
  --hxe-initial-height: 40%;
  --hxe-margin: 32px;
  --hxe-header-space: 80px;
  --hxe-mobile-width: 78%;
  --hxe-mobile-height: 38%;
  --hxe-mobile-margin: 16px;
  --hxe-mobile-header-space: 72px;
  --hxe-radius: 0px;
  --hxe-cue-size: 15px;
  --hxe-cue-bottom: 24px;
  --hxe-focal-x: 50%;
  --hxe-focal-y: 50%;
  --hxe-mobile-focal-x: 50%;
  --hxe-mobile-focal-y: 50%;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--hxe-viewport-width, 100%);
  max-width: none;
  height: var(--hxe-stage-height, 100vh);
  height: var(--hxe-stage-height, 100svh);
  margin: 0;
  padding: 0;
  overflow: clip;
  background: var(--hxe-bg);
  color: var(--hxe-color);
}
.hxe-hero.hxe-full-width {
  margin-inline: calc((100% - var(--hxe-viewport-width, 100%)) / 2);
}
.hxe-hero .hxe-frame {
  position: absolute;
  box-sizing: border-box;
  left: calc((100% - var(--hxe-initial-width)) / 2);
  top: calc((100% - var(--hxe-initial-height)) / 2);
  width: var(--hxe-initial-width);
  height: var(--hxe-initial-height);
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--hxe-radius);
  contain: layout paint;
  background: transparent;
}
.hxe-hero .hxe-picture,
.hxe-hero .hxe-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.hxe-hero .hxe-video,
.hxe-hero .hxe-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}
.hxe-hero .hxe-video {
  object-fit: cover;
  object-position: var(--hxe-focal-x) var(--hxe-focal-y);
  opacity: 0;
  transition: opacity 180ms ease;
}
.hxe-hero.hxe-media-ready .hxe-video { opacity: 1; }
.hxe-hero.hxe-media-ready .hxe-picture { opacity: 0; }
.hxe-hero .hxe-youtube { display: none; background: #000; }
.hxe-hero.hxe-youtube-active .hxe-youtube { display: block; }
.hxe-hero.hxe-youtube-active .hxe-picture { display: none; }
.hxe-hero .hxe-youtube iframe { display: block; width: 100%; height: 100%; max-width: none; border: 0; }
/* Also hide a control left in HTML cached by an earlier plugin version. */
.hxe-hero .hxe-media-toggle { display: none !important; }
.hxe-hero .hxe-photo {
  object-fit: cover;
  object-position: var(--hxe-focal-x) var(--hxe-focal-y);
}
.hxe-hero .hxe-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: max(var(--hxe-cue-bottom), env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: calc(100% - 32px);
  min-height: 44px;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hxe-color);
  font: inherit;
  font-size: var(--hxe-cue-size);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  visibility: hidden;
  opacity: 0;
}
.hxe-hero.hxe-ready[data-hxe-state="compact"] .hxe-cue {
  visibility: visible;
  opacity: 1;
  transition: opacity 320ms ease;
}
.hxe-hero .hxe-cue:hover,
.hxe-hero .hxe-cue:active {
  background: transparent;
  color: var(--hxe-color);
  box-shadow: none;
}
.hxe-hero .hxe-cue:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.hxe-hero .hxe-cue-line {
  display: block;
  width: 1px;
  height: 22px;
  background: currentColor;
  transform-origin: center top;
  animation: hxe-cue-breathe 2.6s ease-in-out infinite;
}
.hxe-hero[data-hxe-state="animating"] .hxe-cue {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.hxe-hero[data-hxe-state="expanded"] .hxe-cue,
.hxe-hero[data-hxe-state="collapsing"] .hxe-cue,
.hxe-hero.hxe-editor .hxe-cue {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
@keyframes hxe-cue-breathe {
  0%, 100% { transform: scaleY(.7); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 767px) {
  .hxe-hero {
    height: var(--hxe-stage-height, var(--hxe-mobile-hero-height, 80vh));
  }
  .hxe-hero.hxe-ready:not(.hxe-editor)[data-hxe-state="compact"],
  .hxe-hero[data-hxe-state="animating"],
  .hxe-hero[data-hxe-state="collapsing"] {
    touch-action: pan-x pinch-zoom;
  }
  .hxe-hero .hxe-frame {
    width: var(--hxe-mobile-width);
    height: var(--hxe-mobile-height);
    left: calc((100% - var(--hxe-mobile-width)) / 2);
    top: calc((100% - var(--hxe-mobile-height)) / 2);
  }
  .hxe-hero .hxe-photo,
  .hxe-hero .hxe-video {
    object-position: var(--hxe-mobile-focal-x) var(--hxe-mobile-focal-y);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hxe-hero .hxe-cue-line { animation: none; }
  .hxe-hero .hxe-cue { transition: none !important; }
  .hxe-hero .hxe-video { transition: none; }
}
