
.modal {
    padding:1rem;
    display: none;
    flex-direction: column;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal-content{
    flex:1;
    min-height: 0;
    overflow: auto;
    justify-content: center;
    align-items: center;
    display: flex;
}
.modal-content-text {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 98%;
    height:calc(100% - 100px);
    min-height: 120px;
    font-size: clamp(16px, 2vw, 30px);
    max-height: calc(100% - 100px);
}
.modal-content-img,.modal-content-video {
    margin: auto;
    display: block;
    min-width:20%;
    max-width: 98%;
    max-height: calc(100% - 100px);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 20px;
}

.modal-content, #caption { 
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}
 
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.model-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}