.points {
    --point-size: 64px;
    --text-margin: 29px;
    --border-width: 5px;

    position: relative;
    overflow: hidden;
}

.points a {
    text-decoration: none;
    z-index: 1;
}

.points img {
    width: 100%;
}

.points .point {
    position: absolute;
    width: var(--point-size);
    height: var(--point-size);
    transform: translateX(-50%) translateY(-50%);
    z-index: 4;
}

.points .point.active {
    z-index: 6;
}

.points .marker {
    display: block;
    position: relative;
    width: var(--point-size);
    height: var(--point-size);
    box-sizing: border-box;
    background-color: var(--color-light-brown);
    border-radius: 1000px;
    border: var(--border-width) solid #ffffff;
    /*filter: drop-shadow(0 0 10px rgba(0,0,0,0.75));*/
    opacity: 1;
    transition-duration: 0.3s;
}

.points .text {
    position: absolute;
    transform: translate(0, 0);
    display: block;
    width: 290px;
    box-sizing: border-box;
    border: var(--border-width) solid #ffffff;
    text-align: left;
    color: var(--color-light-brown);
    font-size: var(--font-size-xs);
    line-height: 1.8em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    cursor: pointer;
    pointer-events: none;
    /* margin: calc(-1 * var(--text-margin)) 0 0 calc(-1 * var(--text-margin)); */
}

.points .text.active {
    opacity: 1;
    z-index: 5;
}

.points .text-inner {
    position: relative;
    padding: 25px;
    z-index: 1;
}

.points .text-inner:before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000000;
    opacity: 0.75;
    transform-origin: center center;
}

.points h3, .points p {
    margin: 0;
    padding: 0;
}

.points .active {
    overflow: visible;
    pointer-events: auto;
}

.points .text.top {
    transform: translate(0, -100%);
    /* margin: var(--text-margin) 0 0 calc(-1 * var(--text-margin)); */
}
.points .text.top .text-inner:before { transform: scaleY(-1); }

.points .text.left {
    transform: translate(-100%, 0);
    /* margin: calc(-1 * var(--text-margin)) 0 0 var(--text-margin); */
}
.points .text.left .text-inner:before { transform: scaleX(-1); }

.points .text.right {}

.points .text.top.left {
    transform: translate(-100%, -100%);
    /* margin: var(--text-margin) 0 0 var(--text-margin); */
}
.points .text.top.left .text-inner:before { transform: rotate(180deg); }


.points .text.top.right {}

@media screen and (max-width: 1140px) {
    .points {
        --point-size: 42px;
        --text-margin: 14px;
        --border-width: 3px;
    }

    .points .text-inner { padding: 15px; }

    .points .text {
        font-size: var(--font-size-xs);
    }

    .points .text { width: 250px; }
}

@media screen and (max-width: 520px)
{
    .points {
        --text-margin: 0;
    }

    .points .point {
        width: 30px;
        height: 30px;
    }

    .points .marker {
        width: 30px;
        height: 30px;
    }

    .points .text, .points .text.top, .points .text.right, .points .text.top.right, .points .text.left, .points .text.top.left {
        width: calc(100% - 30px);
        max-width: 370px;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .points .text.active { z-index: 6; }
}
