.rwvch-hero {
  --rwvch-white: #f7f6ef;
  --rwvch-acid: #dfff64;
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: #090909;
  color: var(--rwvch-white);
}
.rwvch-video,
.rwvch-poster,
.rwvch-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.rwvch-hero > .rwvch-poster {
  display: block;
  height: 100% !important;
  max-height: none;
  max-width: none !important;
  width: 100% !important;
  z-index: -2;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.24s ease;
}
.rwvch-hero.has-playing-video .rwvch-poster {
  opacity: 0;
}
.rwvch-video {
  z-index: -3;
  object-fit: cover;
  filter: blur(var(--rwvch-blur, 0));
  opacity: var(--rwvch-opacity, 1);
  transform: scale(var(--rwvch-scale, 1.02));
  will-change: filter, transform, opacity;
  transition:
    opacity 0.28s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.08s linear;
}
.rwvch-hero.is-changing .rwvch-video {
  opacity: 0.15;
  transform: scale(1.055);
}
.rwvch-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 64%),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.8),
      transparent 52%,
      rgba(0, 0, 0, 0.28)
    );
}
.rwvch-availability {
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.28);
  font-size: 11px;
  line-height: 1.2;
}
.rwvch-availability i {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #ff9f43;
  box-shadow: 0 0 0 5px rgba(255, 159, 67, 0.13);
}
.rwvch-availability i:after {
  position: absolute;
  inset: -1px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
}
.rwvch-pulse--yes .rwvch-availability i:after {
  animation: rwvch-pulse var(--rwvch-pulse-speed, 1.8s)
    cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  background: inherit;
  border-color: inherit;
}
@keyframes rwvch-pulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}
.rwvch-title em {
  font-style: normal;
  color: var(--rwvch-acid);
}
.rwvch-intro-bottom {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.rwvch-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}
.rwvch-button {
  text-decoration: none;
  white-space: nowrap;
}
.rwvch-button--original .rwvch-button {
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
.rwvch-button--original .rwvch-button:hover {
  background: var(--rwvch-white);
  color: #111;
  transform: translateY(-2px);
}
.rwvch-button--original .rwvch-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.rwvch-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  padding: 0 clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  font-size: 9px;
}
.rwvch-footer > div {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
}
.rwvch-footer > div i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rwvch-acid);
}
.rwvch-footer > a {
  justify-self: end;
  color: inherit;
  text-decoration: none;
}
.rwvch-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rwvch-footer-link svg {
  width: 11px;
  height: 11px;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
}
.rwvch-footer-link--straight svg,
.rwvch-footer-link--feminine svg {
  width: 13px;
  stroke: none;
}
.rwvch-footer-link--chevron svg {
  fill: none;
  stroke-width: 1.8;
}
.rwvch-footer-link--feminine svg {
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: 3px;
  box-sizing: content-box;
}

.wp-block-richway-video-hero {
  margin: 0 !important;
  font-family: "Instrument Sans", sans-serif;
}
.rwvch-content-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  pointer-events: none;
  box-sizing: border-box;
}
.rwvch-intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 112px;
  width: auto;
  max-width: 100%;
  pointer-events: auto;
  margin-left: 20px;
  margin-right: 20px;
}
.rwvch-title {
  font-family: "Richway Font", sans-serif;
  margin: 20px 0 26px;
  font-size: clamp(58px, 6.6vw, 104px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.rwvch-button--original .rw-button-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Render the same PHP markup and shared styles in the editor. */
@media (max-width: 900px) {
  .rwvch-intro {
    left: 0;
    right: 0;
    bottom: 88px;
    width: auto;
  }
  .rwvch-title {
    margin: 18px 0 22px;
    font-size: clamp(50px, 15.5vw, 70px);
  }
  .rwvch-intro-bottom {
    display: block;
  }
  .rwvch-description {
    display: none;
  }
  .rwvch-button {
    width: max-content;
  }
  .rwvch-footer {
    height: 48px;
    padding: 0 14px;
    grid-template-columns: 1fr 1fr;
  }
  .rwvch-footer > div {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rwvch-video,
  .rwvch-button {
    transition: none;
  }
  .rwvch-availability i:after {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .rwvch-description {
    display: block;
  }
}
