.autex-hotspots {
    width: 100%;
    display: flex;
}

.autex-hotspots__image-wrap {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
    line-height: 0;
    isolation: isolate;
    z-index: 100;
}

.autex-hotspots__triggers,
.autex-hotspots__popups {
    position: absolute;
    inset: 0;
}

.autex-hotspots__triggers {
    z-index: 2;
}

.autex-hotspots__backdrop {
    position: fixed;
    inset: 0;
    z-index: 3;
    margin: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.autex-hotspots.has-open-popup .autex-hotspots__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.autex-hotspots__popups {
    z-index: 4;
    pointer-events: none;
    overflow: visible;
}

.autex-hotspots__image {
    display: block;
    width: 100%;
    height: auto;
}

button.autex-hotspots__trigger {
    aspect-ratio: 1/1;

    border-radius: 50% !important;
    font-size: 0;
    color: transparent !important;


    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: all 300ms ease;
}

.autex-hotspots__trigger:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
}

.autex-hotspots__trigger:focus-visible,
.autex-hotspots__popup-close:focus-visible {
    outline: 2px solid #121212;
    outline-offset: 2px;
}

.autex-hotspots__popup {
    position: absolute;
    inset: auto;
    top: 0;
    bottom: 0;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0 50px 50px;
    border: 0;

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.autex-hotspots__popup::backdrop {
    display: none;
}

.autex-hotspots--popup-right .autex-hotspots__popup {
    left: auto;
    right: 0;
}

.autex-hotspots--popup-left .autex-hotspots__popup {
    left: 0;
    right: auto;
}

.autex-hotspots__popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.autex-hotspots__popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    border: 0;
    padding: 0 !important;
    background: transparent;
    font-size: 28px !important;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    width: 20px;
    height: 20px;
}

.autex-hotspots__popup-close svg {
    width: 100%;
    height: auto;
    color: currentColor;
    fill: currentColor;
}

.autex-hotspots__popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.autex-hotspots__popup-title {
    margin: 0;
}

.autex-hotspots__popup-link {
    display: flex;
}

@media (max-width: 1299px) {
    .autex-hotspots__backdrop {
        background: rgba(0, 0, 0, 0.45);
    }

    .autex-hotspots__image-wrap {
        overflow: visible;

    }

    .autex-hotspots__popups {
        overflow: visible;
    }

    .autex-hotspots__popup {
        bottom: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        width: 80%;
    }

}