.mri-reveal-image-widget {
    display: flex;
    width: 100%;
}

.mri-reveal-link {
    display: block;
    width: 100%;
}

.mri-reveal-frame {
    position: relative;
    display: block;
    max-width: 100%;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
}

.mri-reveal-mask {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: clip-path;
    -webkit-transition: -webkit-clip-path var(--mri-duration, 1.2s) var(--mri-easing, ease) var(--mri-delay, 0ms);
    transition: clip-path var(--mri-duration, 1.2s) var(--mri-easing, ease) var(--mri-delay, 0ms);
}

.mri-reveal-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Crop style: the visible image area expands in the selected direction. */
.mri-style-crop.mri-direction-left .mri-reveal-mask {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
}

.mri-style-crop.mri-direction-right .mri-reveal-mask {
    -webkit-clip-path: inset(0 0 0 100%);
    clip-path: inset(0 0 0 100%);
}

.mri-style-crop.mri-is-visible .mri-reveal-mask {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
}

/* Curtain style: a solid overlay moves off the image. */
.mri-style-curtain .mri-reveal-overlay {
    --mri-edge-width: 0px;
    --mri-edge-color: #222;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform var(--mri-duration, 1.2s) var(--mri-easing, ease) var(--mri-delay, 0ms);
    transition: transform var(--mri-duration, 1.2s) var(--mri-easing, ease) var(--mri-delay, 0ms);
}

.mri-style-curtain.mri-direction-left .mri-reveal-overlay {
    border-left: var(--mri-edge-width) solid var(--mri-edge-color);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.mri-style-curtain.mri-direction-right .mri-reveal-overlay {
    border-right: var(--mri-edge-width) solid var(--mri-edge-color);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.mri-style-curtain.mri-direction-left.mri-is-visible .mri-reveal-overlay {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.mri-style-curtain.mri-direction-right.mri-is-visible .mri-reveal-overlay {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .mri-reveal-mask,
    .mri-reveal-overlay {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* ---------------------------------------------------------
 * Hero Reveal Section widget
 * --------------------------------------------------------- */
.mri-hero-reveal-widget {
    position: relative;
    width: 100%;
    min-height: 85vh;
    overflow: hidden;
    isolation: isolate;
    background: #f5f0e6;
}

.mri-hero-media,
.mri-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mri-hero-media {
    z-index: 1;
    overflow: hidden;
}

.mri-hero-image {
    display: block;
    max-width: none;
    transform: scale(var(--mri-hero-image-zoom, 1.04));
    transition: transform 1.4s var(--mri-hero-easing, ease) 0ms;
    will-change: transform;
}

.mri-hero-panel {
    position: absolute;
    display: block;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.mri-hero-panel-left,
.mri-hero-panel-right {
    top: 0;
    bottom: 0;
    width: 18%;
}

.mri-hero-panel-left {
    left: 0;
    transform: translate3d(-101%, 0, 0);
    transition: transform var(--mri-hero-left-speed, 1s) var(--mri-hero-easing, ease) var(--mri-hero-left-delay, 0ms);
}

.mri-hero-panel-right {
    right: 0;
    transform: translate3d(101%, 0, 0);
    transition: transform var(--mri-hero-right-speed, 1s) var(--mri-hero-easing, ease) var(--mri-hero-right-delay, 0ms);
}

.mri-hero-panel-top,
.mri-hero-panel-bottom {
    left: 0;
    right: 0;
    height: 12%;
}

.mri-hero-panel-top {
    top: 0;
    transform: translate3d(0, -101%, 0);
    transition: transform var(--mri-hero-top-speed, .8s) var(--mri-hero-easing, ease) var(--mri-hero-top-delay, 250ms);
}

.mri-hero-panel-bottom {
    bottom: 0;
    transform: translate3d(0, 101%, 0);
    transition: transform var(--mri-hero-bottom-speed, .8s) var(--mri-hero-easing, ease) var(--mri-hero-bottom-delay, 250ms);
}

.mri-hero-layer-vertical-front .mri-hero-panel-left,
.mri-hero-layer-vertical-front .mri-hero-panel-right {
    z-index: 2;
}

.mri-hero-layer-vertical-front .mri-hero-panel-top,
.mri-hero-layer-vertical-front .mri-hero-panel-bottom {
    z-index: 3;
}

.mri-hero-layer-horizontal-front .mri-hero-panel-top,
.mri-hero-layer-horizontal-front .mri-hero-panel-bottom {
    z-index: 2;
}

.mri-hero-layer-horizontal-front .mri-hero-panel-left,
.mri-hero-layer-horizontal-front .mri-hero-panel-right {
    z-index: 3;
}

.mri-hero-reveal-widget.mri-is-visible .mri-hero-panel-left,
.mri-hero-reveal-widget.mri-is-visible .mri-hero-panel-right,
.mri-hero-reveal-widget.mri-is-visible .mri-hero-panel-top,
.mri-hero-reveal-widget.mri-is-visible .mri-hero-panel-bottom {
    transform: translate3d(0, 0, 0);
}

.mri-hero-reveal-widget.mri-is-visible .mri-hero-image {
    transform: scale(1);
}

.mri-hero-side-content {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity var(--mri-hero-content-speed, .7s) ease var(--mri-hero-content-delay, 650ms),
        transform var(--mri-hero-content-speed, .7s) ease var(--mri-hero-content-delay, 650ms),
        visibility 0s linear var(--mri-hero-content-delay, 650ms);
}

.mri-hero-left-content {
    left: 0;
    width: 18%;
}

.mri-hero-right-content {
    right: 0;
    width: 18%;
}

/* Keep content width synchronized with panel widths from Elementor. */
.elementor-widget-hero_reveal_section .mri-hero-left-content {
    width: var(--mri-hero-left-content-width, 18%);
}

.elementor-widget-hero_reveal_section .mri-hero-right-content {
    width: var(--mri-hero-right-content-width, 18%);
}

.mri-hero-reveal-widget.mri-is-visible .mri-hero-side-content {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.mri-hero-side-heading {
    margin: 0 0 18px;
    font-family: var(--willow-heading-font, inherit);
}

.mri-hero-side-description {
    font-family: var(--willow-text-font, inherit);
}

.mri-hero-side-description,
.mri-hero-side-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .mri-hero-side-content {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mri-hero-panel,
    .mri-hero-image,
    .mri-hero-side-content {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* Square 1:1 final image window --------------------------------------- */
.mri-hero-sizing-square {
    --mri-hero-box-size: min(540px, 92vw, 92vh);
}

.mri-hero-sizing-square .mri-hero-panel-left,
.mri-hero-sizing-square .mri-hero-panel-right,
.mri-hero-sizing-square .mri-hero-left-content,
.mri-hero-sizing-square .mri-hero-right-content {
    width: max(0px, calc((100% - var(--mri-hero-box-size)) / 2));
}

.mri-hero-sizing-square .mri-hero-panel-top,
.mri-hero-sizing-square .mri-hero-panel-bottom {
    height: max(0px, calc((100% - var(--mri-hero-box-size)) / 2));
}

@media (max-width: 767px) {
    .mri-hero-sizing-square {
        --mri-hero-box-size: min(78vw, 78vh);
    }
}

/* ---------------------------------------------------------
 * Willow Testimonials Slider widget
 * --------------------------------------------------------- */
.willow-testimonials {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 520px;
    box-sizing: border-box;
    overflow: hidden;
    background: #222d40;
    color: #d8d0c8;
    isolation: isolate;
}

.willow-testimonials *,
.willow-testimonials *::before,
.willow-testimonials *::after {
    box-sizing: border-box;
}

.willow-testimonials__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
}

.willow-testimonials__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.willow-testimonials__track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition-property: transform;
    transition-timing-function: cubic-bezier(.77, 0, .18, 1);
    will-change: transform;
}

.willow-testimonials__track.is-jumping {
    transition: none !important;
}

.willow-testimonials__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
}

.willow-testimonials__inner,
.willow-testimonials__controls {
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.willow-testimonials__inner {
    display: grid;
    grid-template-columns: minmax(36px, auto) minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
}

.willow-testimonials--without-quote .willow-testimonials__inner {
    display: block;
}

.willow-testimonials__quote-mark {
    color: #ccc2b8;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: .85;
    text-align: center;
    transform: translateY(-9px);
}

.willow-testimonials__content {
    min-width: 0;
    text-align: left;
}

.willow-testimonials__text {
    padding: 0;
    margin: 0 0 62px;
    border: 0;
    color: #d8d0c8;
    font-family: var(--willow-text-font, inherit);
    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.56;
}

.willow-testimonials__meta {
    display: block;
}

.willow-testimonials__name {
    margin: 0 0 10px;
    color: #d8d0c8;
    font-family: var(--willow-heading-font, inherit);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.willow-testimonials__position {
    color: #d8d0c8;
    font-family: var(--willow-text-font, inherit);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.willow-testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 64px;
}

.willow-testimonials__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #ccc2b8;
    cursor: pointer;
    appearance: none;
    transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

.willow-testimonials__arrow:hover,
.willow-testimonials__arrow:focus-visible {
    background: transparent;
    color: #fff;
}

.willow-testimonials__arrow:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

.willow-testimonials__arrow:disabled {
    opacity: .3;
    cursor: default;
}

.willow-testimonials__arrow:not(:disabled):hover {
    transform: translateX(4px);
}

.willow-testimonials__prev:not(:disabled):hover {
    transform: translateX(-4px);
}

.willow-testimonials__arrow svg {
    display: block;
    width: 66px;
    height: auto;
    overflow: visible;
}

.willow-testimonials__arrow-svg--left {
    transform: rotate(180deg);
}

.willow-testimonials__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.willow-testimonials__dot {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(204, 194, 184, .35);
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease;
}

.willow-testimonials__dot:hover,
.willow-testimonials__dot:focus-visible,
.willow-testimonials__dot.is-active {
    background-color: #ccc2b8;
    transform: scale(1.25);
}

.willow-testimonials__dot:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .willow-testimonials {
        min-height: 440px;
    }

    .willow-testimonials__inner {
        grid-template-columns: 28px minmax(0, 1fr);
        column-gap: 14px;
    }

    .willow-testimonials__quote-mark {
        font-size: 42px;
    }

    .willow-testimonials__text {
        margin-bottom: 38px;
        font-size: 17px;
        line-height: 1.55;
    }

    .willow-testimonials__controls {
        padding-left: 42px;
    }

    .willow-testimonials--without-quote .willow-testimonials__controls {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .willow-testimonials__track,
    .willow-testimonials__arrow,
    .willow-testimonials__dot {
        transition-duration: .01ms !important;
    }
}

.willow-testimonials .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
