.overlay, .overlayimg {
    background-color: rgba(0, 0, 0, 0.8);
    cursor: default;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 5;
}
.overlay:target, .overlayimg:target {
    visibility: visible;
    opacity: 1;
}
.overlayimg { cursor: pointer; }
.popup, .popupimg {
    background-color: #fff;
    left: 50%;
    top: 40%;
    opacity: 0;
    padding: 10px;
    padding-top: 5px;
    position: fixed;
    text-align: justify;
    visibility: hidden;
    z-index: 10;
    font-size: 14px;

    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.popupimg {
    padding: 0px;
    font-size: 16px;
    font-family: 'Dosis';
    font-weight: bold;
    top: 50%;
    color: white;
    background: transparent;
}
.popupimg img {
    max-height: 600px;
    max-width: 900px;
}
.overlay:target+.popup, .overlayimg:target+.popupimg {
    top: 50%;
    opacity: 1;
    visibility: visible;
}
.close {
    background-color: #222;
    color: #FFF;
    height: 20px;
    width: 20px;
    line-height: 20px;
    right: -10px;
    top: -10px;
    text-align: center;
    position: absolute;
    font-size: 14px;

    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
}
.close:hover { background-color: #F75D59; }