#popup-box {
    position: fixed;
    max-height: 80vh;
    background-color: white;
    width: 500px;
    border-radius: 25px;
    z-index: 10000;
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.2);
    /*overflow: hidden;*/
    padding-bottom: 70px;
    box-sizing: border-box;
}
#popup-box-text-cont {
    padding: 40px 0px 20px 0px;
    box-sizing: border-box;
}
#popup-box-title-sup {
    font-family:"forma-djr-display";
    padding: 0px 40px;
    box-sizing: border-box;
    color: #7b2936;
    font-size: 15px;
    line-height: 18px;
}
#popup-box-title {
    padding: 0px 40px 10px 40px;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 24px;
    color: #002a47;
    font-weight: bold;
}
#popup-box-text {
    padding: 0px 40px 20px 40px;
    overflow: auto;
    box-sizing: border-box;

}
#popup-box-img {
    height: 300px;
    position: relative;
    z-index: 5;
    background-color: black;
}
.popup-box-with-img {
    overflow: hidden;
}
.popup-box-with-img #popup-box-text-cont {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-top-left-radius: 50px;
    background-color: white;
}
.popup-box-with-img #popup-box-text {
    max-height: calc(50vh - 250px);
}
.popup-box-no-img #popup-box-text {
    max-height: 50vh;
}
#popup-box-text-int {
    font-size: 14px;
    line-height: 20px;
}
#popup-box-date {
    position: absolute;
    font-size: 12px;
    display: block;
    float: left;
    background-color: #af9965;
    color: white;
    min-width: 100px;
}
.popup-box-with-img #popup-box-date {
    right: 20px;
    bottom: 75px;
}
.popup-box-no-img #popup-box-date {
    left: 0px;
    top: -25px;
}
#popup-box-round-top-dx {
    bottom: 50px;
    right: 0px;
}

#popup-btn-cont {
    position: absolute;
    bottom: -50px;
}
.popup-box-no-img #popup-btn-cont {
    bottom: 20px;
}
.pos-top-left {
    top: 110px;
    left: 10px;
}
.pos-top-right {
    top: 110px;
    right: 10px;
}
.pos-center-left {
    top: 0px;
    left: 10px;
}
.pos-center-right {
    top: 0px;
    right: 10px;
}
.pos-bottom-left {
    bottom: 10px;
    left: 10px;
}
.pos-bottom-right {
    bottom: 10px;
    right: 10px;
}
#popup-btn-close {
    position: absolute;
    z-index: 11;
    top: 12.5px;
    right: 12.5px;
    font-size: 25px;
    height: 25px;
    color: white;
    text-shadow: 0px 0px 10px rgba(0,0,0,0.25);
}
@media only screen and (min-width:220px) and (max-width:520px) {
    #popup-box-text-cont {
        padding: 40px 0px 20px 0px;
        box-sizing: border-box;
    }
    #popup-box {
        max-width: calc(100% - 20px);
    }
    #popup-box-img {
        height: 250px;
    }
    #popup-box-title-sup {
        padding: 0px 20px;
    }
    #popup-box-title {
        padding: 0px 20px 10px 20px;
        font-size: 15px;
        line-height: 18px;
    }
    #popup-box-text {
        padding: 0px 20px 20px 20px;
    }
}
