.modal-overlay {
    z-index: 250;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*for old Safari*/
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    
}

.modal-overlay (:target) {
    height: 100%\9
}

/* IE9,10 */
a.modal-open:hover {
    cursor: pointer
}

.modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin: auto;
    display: none;
    z-index: 999;
    padding: 6%;
    border-radius: 10px;
    background: #fff;
    width: 80%;
    max-height: calc(100vh - 30vh);
    height: 100%;
    max-width: 800px;
}
.modal-inner{
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 100px);
    height: 100%;
    width: 100%;
    padding-right: 7.5%;
    overscroll-behavior: contain;
    overflow-wrap: break-word;
}
.modal-inner::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: #F5F5F5;
}

.modal-inner::-webkit-scrollbar
{
	width: 12px;
	background-color: #F5F5F5;
}

.modal-inner::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #c7c7c7;
}

a.modal-close {
    position: absolute;
    top: -35px;
    right: -10px;
    color: #fff !important;
    font-size: 35px;
    line-height: 2;
    font-weight: bold;
    text-decoration: none;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

@media screen and (max-width: 767px) {
    .modal-content img {
        max-height: inherit;
        height: auto;
    }
}


@media screen and (min-width: 768px) {
    a.modal-close {
        top: -25px;
        right: -25px;
    }
    a.modal-close:hover {
        cursor: pointer;
    }
}





