@import url("https://fonts.bunny.net/css?family=just-me-again-down-here:400");

.elementor-widget-cs_circular_gallery,
.elementor-widget-cs_circular_gallery > .elementor-widget-container,
.elementor-element:has(.cs-circular-gallery),
.e-con:has(.cs-circular-gallery),
.e-con-inner:has(.cs-circular-gallery),
.elementor-widget-html:has(#cs-circular-gallery) {
    overflow: visible !important;
}

#cs-circular-gallery,
.cs-circular-gallery {
    --cs-bg: #f8f4ee;
    --cs-txt: #0a0a0a;
    --mouse-color: var(--cs-txt);
    --card-border-radius: 14px;
    color-scheme: light dark;
    background-color: var(--cs-bg);
    color: var(--cs-txt);
    position: relative;
    width: 100%;
    height: var(--cs-box-height, 100vh);
    min-height: 70vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    isolation: isolate;
    /* Large circular orbit: keeps the visible arc wide and fan-like. */
    --cs-orbit-scale: 2.5;
    --cs-orbit-y-scale: 1;
    --cs-fan-spread: 100;
    --cs-fan-curve: 100;
    --cs-fan-angle: 32;
}

#cs-circular-gallery::-webkit-scrollbar,
.cs-circular-gallery::-webkit-scrollbar {
    display: none;
}

#cs-circular-gallery *,
.cs-circular-gallery * {
    box-sizing: border-box;
}

#cs-circular-gallery .cs-scroll-track,
.cs-circular-gallery .cs-scroll-track {
    position: relative;
    width: 100%;
    height: var(--cs-scroll-length, 600vh);
    min-height: 400vh;
}

#cs-circular-gallery .cs-stage,
.cs-circular-gallery .cs-stage {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--cs-box-height, 100vh);
    min-height: 70vh;
    overflow: hidden;
}

#cs-circular-gallery .wrapper,
.cs-circular-gallery .wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--cs-box-height, 100vh);
    min-height: 70vh;
    margin: 0 !important;
    transform-origin: center center;
    font-family: "Just Me Again Down Here", cursive;
}

#cs-circular-gallery .cs-stage .wrapper,
.cs-circular-gallery .cs-stage .wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
}

#cs-circular-gallery .wrapper > div,
.cs-circular-gallery .wrapper > div {
    position: absolute;
    width: max(var(--cs-card-width, 150px), 18vw);
    aspect-ratio: 4 / 6;
    border-radius: var(--card-border-radius);
    overflow: visible;
    left: 50%;
    top: 50%;
}

#cs-circular-gallery .wrapper > div::after,
.cs-circular-gallery .wrapper > div::after {
    content: attr(data-title);
    position: absolute;
    top: 100%;
    left: 1rem;
    opacity: var(--caption-opacity, 0);
    translate: 0 var(--caption-y, -150px);
    font-size: clamp(1rem, 2vw + 0.045rem, 1.6rem);
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

#cs-circular-gallery .wrapper > div > img,
.cs-circular-gallery .wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

#cs-circular-gallery .cs-center-text,
.cs-circular-gallery .cs-center-text {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80%, 520px);
    text-align: center;
    font-family: "Just Me Again Down Here", cursive;
    font-size: 38px;
    line-height: 1.2;
    color: var(--cs-txt);
    z-index: 5;
    pointer-events: none;
    white-space: pre-line;
}

#cs-circular-gallery .icon,
.cs-circular-gallery .icon {
    position: sticky;
    bottom: 1rem;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 6;
}

#cs-circular-gallery .cs-stage .icon,
.cs-circular-gallery .cs-stage .icon {
    position: absolute;
    bottom: 1rem;
    left: 50%;
}

#cs-circular-gallery .mouse,
.cs-circular-gallery .mouse {
    display: block;
    width: 50px;
    height: 50px;
    color: var(--mouse-color);
}

#cs-circular-gallery.is-complete .mouse,
.cs-circular-gallery.is-complete .mouse {
    opacity: 0;
}
