.points {
    --point-size: 79px;
    --text-margin: 27px;

    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%);
}

.points .marker {
    display: block;
    position: relative;
    width: var(--point-size);
    height: var(--point-size);
    background-image: url("../../../img/point.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.75));
    z-index: 3;
    opacity: 1;
    transition-duration: 0.3s;
}

.points .active .marker {
    opacity: 1;
    z-index: 3;
}

.points .text {
    position: absolute;
    transform: translate(0, 0);
    display: block;
    width: 530px;
    box-sizing: border-box;
    color: #ffffff;
    text-align: left;
    opacity: 0;
    transition-duration: 0.3s;
    transition-delay: 0.1s;
    z-index: 5;
    cursor: pointer;
    pointer-events: none;
    margin: calc(-1 * var(--text-margin)) 0 0 calc(-1 * var(--text-margin));
}

.points .text-inner {
    position: relative;
    padding: 20px;
    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.8;
    transform-origin: center center;
}

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

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

.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 {}

.points h3, .points p {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.6em;
    margin: 0;
    padding: 0;
}


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

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

    .points h3, .points p { font-size: 1rem; }

    .points .text { width: 250px; }

    .points .point h3, .points .point p { font-size: 12px; }
}

@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; }
}
