.uxf-reveal-circle{
  position: relative;
  min-height: var(--uxf-minh, 0vh);
}
section.wp-block-uxf-reveal-circle{  border: 0 !important; }
.uxf-reveal-circle__pin{
  position: relative;
  height: var(--uxf-pin-h, 100vh);
  overflow: hidden;
}

.uxf-reveal-circle__content{
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--uxf-header-offset, 0px);
  box-sizing: border-box;
}

/* Inner content container: allows boxed vs full-width content */
.uxf-reveal-circle__inner{
  width: 100%;
}

.uxf-reveal-circle__inner.is-boxed{
  max-width: var(--uxf-content-max, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.uxf-reveal-circle__inner.is-full{
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.uxf-reveal-circle__overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: -webkit-mask-image, mask-image, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.uxf-reveal-circle__overlay--color{
  background: var(--uxf-overlay, #000);
}

.uxf-reveal-circle__overlay--image,
.uxf-reveal-circle__overlay--image-blur{
  background-image: var(--uxf-overlay-img, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--uxf-img-fit, cover);
  opacity: var(--uxf-img-op, 1);
  mix-blend-mode: var(--uxf-img-blend, normal);
}


.uxf-reveal-circle__overlay--video{
  background: transparent;
}
.uxf-reveal-circle__overlay--video video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--uxf-video-fit, cover);
  object-position: center;
  display: block;
}

/* Color + Video: ensure color sits on top as tint */
.uxf-reveal-circle[data-overlay-mode="colorVideo"] .uxf-reveal-circle__overlay--video{ z-index: 10; }
.uxf-reveal-circle[data-overlay-mode="colorVideo"] .uxf-reveal-circle__overlay--color{ z-index: 20; }

/* Video fit: auto (do not force cover/contain) */
.uxf-reveal-circle[data-overlay-mode="video"] .uxf-reveal-circle__overlay--video video[data-fit="auto"],
.uxf-reveal-circle[data-overlay-mode="colorVideo"] .uxf-reveal-circle__overlay--video video[data-fit="auto"]{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  object-fit: none;
}


/* If JS is missing, you can force reveal by setting --uxf-reveal to --uxf-end via inline style or theme CSS */


/* Overlay layout mode (tall content friendly) */
.uxf-reveal-circle[data-layout-mode="overlay"] .uxf-reveal-circle__pin{
  position: relative;
  height: auto;
  overflow: visible;
}
.uxf-reveal-circle[data-layout-mode="overlay"] .uxf-reveal-circle__content{
  height: auto;
  min-height: calc(100vh - var(--uxf-header-offset, 0px));
  justify-content: flex-start;
  padding-top: 0;
}

.uxf-reveal-circle[data-layout-mode="overlay"] .uxf-reveal-circle__overlay{
  /*
    Approach phase (before pin): overlay is part of the document flow and scrolls naturally
    with the section until it reaches the top. Pinning is handled by ScrollTrigger.
  */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: 30;
}

/* ------------------------------------------------------------
   Reveal presets (mask variants)
   Notes:
   - The mask hides the overlay where the gradient is transparent.
   - We drive presets via CSS variables set by JS:
       --uxf-progress: 0..1
       --uxf-turn:     0turn..1turn
   ------------------------------------------------------------ */

/* Curtain: split from center (hard edge) */




/* Pie / Conic reveal (hard edge, no feather) */


/* Overlay image as <img> (Hero/LCP mode) */
.uxf-reveal-circle__overlay--image .uxf-reveal-circle__overlay-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--uxf-img-fit, cover);
  object-position: center;
  opacity: var(--uxf-img-op, 1);
  mix-blend-mode: var(--uxf-img-blend, normal);
  display: block;
}

/* Video poster <img> (Hero/LCP mode) */
.uxf-reveal-circle__overlay--video .uxf-reveal-circle__video-poster{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--uxf-video-fit, cover);
  object-position: center;
  display: block;
  z-index: 0;
}
.uxf-reveal-circle__overlay--video video{ z-index: 1; }
