.wsm-egp-zoom-layers {
    position: relative;
    width: 100%;
}

.wsm-egp-zoom-layers__stage {
    position: relative;
    width: 100%;
    margin-inline: auto;
    overflow: hidden;
    transform-style: preserve-3d;
    isolation: isolate;
}

.wsm-text-list {
    position: absolute;
    z-index: 10000;
    top: 50%;
    left: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wsm-egp-zoom-layers__heading {
    position: relative;
    z-index: 1;
    width: max-content;
    margin: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

.wsm-text-list__items {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: auto;
}

.wsm-text-list__link {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
    transition: color .3s ease, opacity .3s ease;
}

.wsm-egp-zoom-layers__items {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.wsm-egp-zoom-layers__item {
    position: absolute;
    top: var(--wsm-layer-y, 50%);
    left: var(--wsm-layer-x, 50%);
    width: var(--wsm-layer-width, 320px);
    max-width: none;
    z-index: var(--wsm-layer-z-index, 1);
    overflow: hidden;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.wsm-egp-zoom-layers__item > a {
    display: block;
    width: 100%;
    height: 100%;
}

.wsm-egp-zoom-layers__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

@media (prefers-reduced-motion: reduce) {
    .wsm-egp-zoom-layers__item,
    .wsm-egp-zoom-layers__heading {
        transition: none !important;
    }
}


/* Responsive safeguards for Elementor breakpoints */
@media (max-width: 1024px) {
    .wsm-egp-zoom-layers__stage {
        min-height: 1px;
    }

    .wsm-text-list {
        max-width: min(90vw, 100%);
    }

    .wsm-egp-zoom-layers__heading {
        max-width: 100%;
        width: auto;
    }

    .wsm-egp-zoom-layers__item {
        max-width: 100vw;
    }
}

@media (max-width: 767px) {
    .wsm-egp-zoom-layers__heading {
        max-width: calc(100vw - 32px);
        white-space: normal;
    }

    .wsm-egp-zoom-layers__item {
        max-width: calc(100vw - 16px);
    }
}
