.repopup.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 500ms;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}
.repopup.overlay.active {
    visibility: visible;
    opacity: 1;
}
.repopup .popup {
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    width: auto;
    max-width: 100%;
    position: relative;
    transition: all 5s ease-in-out;
    margin: 0 20px;
}
.repopup .popup .popup-btn {
    position: absolute;
    top: -11px;
    right: -11px;
    background: grey;
    color: #fff;
    border: 2px solid grey;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    opacity: 1;
}
.repopup .popup .repopup-message{
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 10px;
    background-color: grey;
    padding: 0 5px;
    color: #fff;
}
.repopup .popup .img_link{
    display: block;
    width: 100%;
    height: 100%;
}
.repopup .popup .content {
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.repopup .popup .content img {
    max-width: 100%;
    height: auto;
}

.repopup .popup .content p:has(img) {
    margin: 0;
}

body.repopup-lock {
    overflow: hidden!important;
}