body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

img {
    width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    padding: 0;
    outline: 0;
    background-size: 100% auto;
    background-position: center center;
    background-color: transparent;
    background-repeat: no-repeat;
    position: absolute;
}

.infografik {
    width: 100%;
    padding-bottom: 58.333333333%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top left;
    position: relative;
    margin-top: 0;
}

.img {
    display: none;
    position: absolute;
}

.img[data-active="true"] {
    display: block;
}

.infografik--button {
    cursor: pointer;
    box-sizing: border-box;
    width: 1.5em;
    height: 1.5em;
    background-color: #000091;
    border: 0.05em solid white;
    color: white;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-style: italic;
    font-size: 20px;
    position: absolute;
    text-align: left;
    padding-left: 0.4em;
    box-shadow: 0 0 0.05em white;
    line-height: 1.2;
}


#infografik-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#infografik-overlay .img {
    display: none;
    width: 36.875%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
}

.img img {
    width: 100%;
    height: auto;
}

#infografik-overlay .img:before {
    content: attr(data-img);
    width: 1.5em;
    height: 1.5em;
    background-color: #000091;
    border: 0.0625em solid white;
    color: white;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-style: italic;
    font-size: 16px;
    position: absolute;
    text-align: left;
    padding-left: 0.375em;
    top: 1.7em;
    right: -1.6em;
    box-sizing: border-box;
}

.infografik-standalone #infografik-overlay .img:before {
    display: none;
}

#infografik-overlay .img:after {
    content: '×';
    width: 0.96em;
    height: 0.96em;
    background-color: #000091;
    border: 0.04em solid white;
    color: white;
    font-weight: normal;
    font-family: Verdana, sans-serif;
    font-style: italic;
    font-size: 25px;
    line-height: 0.74;
    position: absolute;
    padding-left: 0;
    top: 0;
    right: -1.04em;
    cursor: pointer;
    pointer-events: none;
    text-align: center;
}

#infografik-overlay.active {
    display: block;
}


@media screen and (max-width: 640px) {
    .infografik button {
        width: 24px;
        height: 24px;
        font-size: 16px;
        padding-left: 6px;
    }

    #infografik-overlay .img:before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        padding-left: 3px;
        top: 17px;
        right: -17px;
    }

    .infografik-standalone #infografik-overlay .img:before {
        display: none;
    }

    #infografik-overlay .img:after {
        width: 16px;
        height: 16px;
        top: 0;
        right: -17px;
        font-size: 18px;
        line-height: 9px;
    }
}