.wdt-gl-parallax-hero {
  --wdt-gl-parallax-height: 100vh;
  --wdt-gl-parallax-bg: #000000;
  --wdt-gl-parallax-overlay: 0.18;
  --wdt-gl-parallax-text: #d7ff00;
  --wdt-gl-parallax-eyebrow: #ffffff;
  --wdt-gl-parallax-subtitle: #ffffff;
  --wdt-gl-parallax-accent: #d7ff00;
  --wdt-gl-parallax-button-color: #d7ff00;
  --wdt-gl-parallax-button-border: #d7ff00;
  --wdt-gl-parallax-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --wdt-gl-parallax-content-max: 1320px;
  --wdt-gl-parallax-content-y: 0px;
  --wdt-gl-parallax-padding-top: 120px;
  --wdt-gl-parallax-padding-bottom: 120px;
  --wdt-gl-parallax-title-min: 64px;
  --wdt-gl-parallax-title-max: 168px;
  --wdt-gl-parallax-title-size: 168px;
  --wdt-gl-parallax-title-size-mobile: 64px;
  --wdt-gl-parallax-title-render-size: var(--wdt-gl-parallax-title-size);
  --wdt-gl-parallax-title-weight: 900;
  --wdt-gl-parallax-title-line: 0.88;
  --wdt-gl-parallax-title-spacing: -0.055em;
  --wdt-gl-parallax-title-max-width: 14ch;
  --wdt-gl-parallax-eyebrow-size: 18px;
  --wdt-gl-parallax-eyebrow-weight: 800;
  --wdt-gl-parallax-eyebrow-spacing: 0.04em;
  --wdt-gl-parallax-subtitle-size: 22px;
  --wdt-gl-parallax-subtitle-line: 1.45;
  --wdt-gl-parallax-button-size: 16px;
  --wdt-gl-parallax-button-weight: 800;
  --wdt-gl-parallax-eyebrow-gap: 20px;
  --wdt-gl-parallax-subtitle-gap: 36px;
  --wdt-gl-parallax-button-gap: 42px;
  --wdt-gl-parallax-scroll-bottom: 70px;
  --wdt-gl-parallax-bg-x: 50%;
  --wdt-gl-parallax-bg-y: 50%;
  --wdt-gl-parallax-bg-scale: 1.08;
  --wdt-gl-parallax-y: 0px;
  --wdt-gl-parallax-overlap: 0px;
  --wdt-gl-parallax-top-offset: 56px;
  position: relative;
  display: grid;
  min-height: var(--wdt-gl-parallax-height);
  margin-block-start: 0 !important;
  margin-block-end: calc(-1 * var(--wdt-gl-parallax-overlap)) !important;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: var(--wdt-gl-parallax-text);
  font-family: var(--wdt-gl-parallax-font);
  container-type: inline-size;
}

.wdt-gl-parallax-hero.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Match the full-bleed first-section behavior of WDT Hero Video. */
.wp-block-wdt-gl-parallax-hero,
.wdt-gl-parallax-hero {
  display: block;
}

.wp-block-wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header),
.wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header),
.wp-site-blocks .wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header),
.entry-content .wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header) {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

body:not(.block-editor-page) .wp-site-blocks > .wp-block-wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header):first-child,
body:not(.block-editor-page) .wp-site-blocks > .wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header):first-child,
body:not(.block-editor-page) .entry-content > .wp-block-wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header):first-child,
body:not(.block-editor-page) .entry-content > .wdt-gl-parallax-hero.alignfull:not(.wdt-gl-parallax-hero--overlap-header):first-child {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

body:not(.block-editor-page) .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull,
body:not(.block-editor-page) .wp-site-blocks > .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child,
body:not(.block-editor-page) .entry-content > .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child,
body:not(.block-editor-page) .wp-site-blocks > .wp-block-wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child,
body:not(.block-editor-page) .entry-content > .wp-block-wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child {
  margin-top: calc(-1 * var(--wdt-gl-parallax-top-offset, 56px)) !important;
  margin-block-start: calc(-1 * var(--wdt-gl-parallax-top-offset, 56px)) !important;
}

.wdt-gl-parallax-hero--overlap-header .wdt-gl-parallax-hero__content {
  padding-top: calc(var(--wdt-gl-parallax-padding-top, 120px) + var(--wdt-gl-parallax-top-offset, 56px)) !important;
}

body:not(.block-editor-page) .wp-site-blocks > .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child,
body:not(.block-editor-page) .entry-content > .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child,
body:not(.block-editor-page) main > .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child,
body:not(.block-editor-page) .is-layout-constrained > .wdt-gl-parallax-hero.wdt-gl-parallax-hero--overlap-header.alignfull:first-child {
  margin-top: calc(-1 * var(--wdt-gl-parallax-top-offset, 56px)) !important;
  margin-block-start: calc(-1 * var(--wdt-gl-parallax-top-offset, 56px)) !important;
}

.wdt-gl-parallax-hero__media-viewport,
.wdt-gl-parallax-hero__overlay {
  position: absolute;
  inset: 0;
}

.wdt-gl-parallax-hero__media-viewport {
  z-index: 0;
  overflow: hidden;
  background: #050505;
}

.wdt-gl-parallax-hero__media {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: max(100%, 100vh);
  height: max(100%, 100svh);
  overflow: hidden;
  background-color: #050505;
  background-repeat: no-repeat;
  background-size: cover !important;
  background-position: var(--wdt-gl-parallax-bg-x) var(--wdt-gl-parallax-bg-y);
  background-attachment: scroll;
  transform: translate3d(0, calc(-50% + var(--wdt-gl-parallax-y)), 0) scale(var(--wdt-gl-parallax-bg-scale));
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
}

/*
 * Stable frontend parallax.
 * The image is painted as a viewport-fixed background on the clipping layer.
 * This removes main-thread scroll synchronization and prevents springing or
 * snap-back during wheel and touchpad scrolling.
 */
body:not(.block-editor-page) .wdt-gl-parallax-hero--parallax .wdt-gl-parallax-hero__media-viewport--has-image {
  background-color: #050505;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: var(--wdt-gl-parallax-bg-x) var(--wdt-gl-parallax-bg-y) !important;
  background-attachment: fixed !important;
}

body:not(.block-editor-page) .wdt-gl-parallax-hero--parallax .wdt-gl-parallax-hero__media-viewport--has-image .wdt-gl-parallax-hero__media {
  visibility: hidden;
  transform: none !important;
  will-change: auto;
}

.wdt-gl-parallax-hero--static .wdt-gl-parallax-hero__media {
  top: 0;
  height: 100%;
  transform: scale(var(--wdt-gl-parallax-bg-scale));
  will-change: auto;
}

/* The selected image is rendered as the media layer background in both editor and frontend. */
.wdt-gl-parallax-hero__image {
  display: none !important;
}

.wdt-gl-parallax-hero__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #191919, #050505);
  font-size: 16px;
}

.wdt-gl-parallax-hero__overlay {
  z-index: 1;
  background: var(--wdt-gl-parallax-bg);
  opacity: var(--wdt-gl-parallax-overlay);
  pointer-events: none;
}

.wdt-gl-parallax-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(100% - 48px, var(--wdt-gl-parallax-content-max));
  margin-inline: auto;
  padding-top: var(--wdt-gl-parallax-padding-top);
  padding-bottom: var(--wdt-gl-parallax-padding-bottom);
  transform: translateY(var(--wdt-gl-parallax-content-y));
}

.wdt-gl-parallax-hero--vertical-center .wdt-gl-parallax-hero__content { justify-content: center; min-height: var(--wdt-gl-parallax-height); }
.wdt-gl-parallax-hero--vertical-top .wdt-gl-parallax-hero__content { justify-content: flex-start; min-height: var(--wdt-gl-parallax-height); }
.wdt-gl-parallax-hero--vertical-bottom .wdt-gl-parallax-hero__content { justify-content: flex-end; min-height: var(--wdt-gl-parallax-height); }

.wdt-gl-parallax-hero--align-left .wdt-gl-parallax-hero__content { align-items: flex-start; text-align: left; }
.wdt-gl-parallax-hero--align-center .wdt-gl-parallax-hero__content { align-items: center; text-align: center; }
.wdt-gl-parallax-hero--align-right .wdt-gl-parallax-hero__content { align-items: flex-end; text-align: right; }

.wdt-gl-parallax-hero__eyebrow,
.wdt-gl-parallax-hero__title,
.wdt-gl-parallax-hero__subtitle {
  margin: 0;
}

.wdt-gl-parallax-hero__eyebrow {
  max-width: 70ch;
  color: var(--wdt-gl-parallax-eyebrow) !important;
  font-size: var(--wdt-gl-parallax-eyebrow-size) !important;
  font-weight: var(--wdt-gl-parallax-eyebrow-weight) !important;
  line-height: 1.15 !important;
  letter-spacing: var(--wdt-gl-parallax-eyebrow-spacing) !important;
  text-transform: uppercase;
  margin-bottom: var(--wdt-gl-parallax-eyebrow-gap) !important;
}

.wdt-gl-parallax-hero__title {
  max-width: var(--wdt-gl-parallax-title-max-width);
  color: var(--wdt-gl-parallax-text) !important;
  font-family: var(--wdt-gl-parallax-font) !important;
  font-size: var(--wdt-gl-parallax-title-render-size) !important;
  font-weight: var(--wdt-gl-parallax-title-weight) !important;
  line-height: var(--wdt-gl-parallax-title-line) !important;
  letter-spacing: var(--wdt-gl-parallax-title-spacing) !important;
  text-transform: uppercase;
}


.wdt-gl-parallax-hero__subtitle {
  max-width: 780px;
  margin-top: var(--wdt-gl-parallax-subtitle-gap) !important;
  color: var(--wdt-gl-parallax-subtitle) !important;
  font-size: var(--wdt-gl-parallax-subtitle-size) !important;
  line-height: var(--wdt-gl-parallax-subtitle-line) !important;
  letter-spacing: -0.01em;
}

.wdt-gl-parallax-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--wdt-gl-parallax-button-gap) !important;
  padding: 0.9em 2.2em;
  border: 2px solid var(--wdt-gl-parallax-button-border);
  border-radius: 999px;
  color: var(--wdt-gl-parallax-button-color) !important;
  background: transparent;
  font-size: var(--wdt-gl-parallax-button-size) !important;
  font-weight: var(--wdt-gl-parallax-button-weight) !important;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wdt-gl-parallax-hero__button:hover,
.wdt-gl-parallax-hero__button:focus-visible {
  background: var(--wdt-gl-parallax-button-border);
  color: #050505 !important;
  transform: translateY(-2px);
}

.wdt-gl-parallax-hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--wdt-gl-parallax-scroll-bottom);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.wdt-gl-parallax-hero__scroll-arrow {
  color: var(--wdt-gl-parallax-accent);
  font-size: 34px;
  line-height: 0.8;
  animation: wdt-gl-parallax-scroll-pulse 1.3s ease-in-out infinite;
}

@keyframes wdt-gl-parallax-scroll-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 782px) {
  .wdt-gl-parallax-hero {
    --wdt-gl-parallax-title-render-size: var(--wdt-gl-parallax-title-size-mobile);
  }

  .wdt-gl-parallax-hero__content {
    width: min(100% - 32px, var(--wdt-gl-parallax-content-max));
  }

  .wdt-gl-parallax-hero__media {
    background-size: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.block-editor-page) .wdt-gl-parallax-hero--parallax .wdt-gl-parallax-hero__media-viewport--has-image {
    background-attachment: scroll !important;
  }

  .wdt-gl-parallax-hero__button,
  .wdt-gl-parallax-hero__scroll-arrow {
    transition: none !important;
    animation: none !important;
  }

}


/* Editor/frontend parity for Parallax Hero preview. */
.editor-styles-wrapper .wp-block-wdt-gl-parallax-hero.wdt-gl-parallax-hero,
.editor-styles-wrapper .wdt-gl-parallax-hero {
  font-family: var(--wdt-gl-parallax-font) !important;
  color: var(--wdt-gl-parallax-text) !important;
  container-type: inline-size;
}

.editor-styles-wrapper .wdt-gl-parallax-hero .wdt-gl-parallax-hero__media-viewport {
  overflow: hidden;
  background: #050505;
}

.editor-styles-wrapper .wdt-gl-parallax-hero .wdt-gl-parallax-hero__media {
  background-color: #050505;
  background-repeat: no-repeat;
  background-size: cover !important;
  top: 0;
  height: 100%;
  background-position: var(--wdt-gl-parallax-bg-x) var(--wdt-gl-parallax-bg-y) !important;
  background-attachment: scroll !important;
  transform: none;
  transform-origin: center center;
  will-change: auto;
}

.editor-styles-wrapper .wdt-gl-parallax-hero .wdt-gl-parallax-hero__title {
  max-width: var(--wdt-gl-parallax-title-max-width) !important;
  color: var(--wdt-gl-parallax-text) !important;
  font-family: var(--wdt-gl-parallax-font) !important;
  font-size: var(--wdt-gl-parallax-title-render-size) !important;
  font-weight: var(--wdt-gl-parallax-title-weight) !important;
  line-height: var(--wdt-gl-parallax-title-line) !important;
  letter-spacing: var(--wdt-gl-parallax-title-spacing) !important;
  text-transform: uppercase !important;
}


.editor-styles-wrapper .wdt-gl-parallax-hero .wdt-gl-parallax-hero__eyebrow {
  color: var(--wdt-gl-parallax-eyebrow) !important;
  font-family: var(--wdt-gl-parallax-font) !important;
  font-size: var(--wdt-gl-parallax-eyebrow-size) !important;
  font-weight: var(--wdt-gl-parallax-eyebrow-weight) !important;
  letter-spacing: var(--wdt-gl-parallax-eyebrow-spacing) !important;
}

.editor-styles-wrapper .wdt-gl-parallax-hero .wdt-gl-parallax-hero__subtitle {
  color: var(--wdt-gl-parallax-subtitle) !important;
  font-family: var(--wdt-gl-parallax-font) !important;
  font-size: var(--wdt-gl-parallax-subtitle-size) !important;
  line-height: var(--wdt-gl-parallax-subtitle-line) !important;
}


/* v1.0.33: Parallax Hero uses inline !important styles for exact editor/frontend typography parity. These rules are fallbacks only. */
body:not(.block-editor-page) .wdt-gl-parallax-hero .wdt-gl-parallax-hero__title {
  font-size: var(--wdt-gl-parallax-title-render-size) !important;
  font-family: var(--wdt-gl-parallax-font) !important;
  font-weight: var(--wdt-gl-parallax-title-weight) !important;
  line-height: var(--wdt-gl-parallax-title-line) !important;
  letter-spacing: var(--wdt-gl-parallax-title-spacing) !important;
}
