
/* Style the Image Used to Trigger the Modal */
.image-modal-trigger img {
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-trigger img:hover {opacity: 0.7;}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(from var(--fsm-color-background-inverse) r g b / 90%)
}

/* Modal Content (Image) */
.image-modal-content {
    margin: auto;
    display: block;
    width: 90%;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#image-modal-text {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--fsm-color-typography-text-inverse-default);
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.image-modal-content, #image-modal-text {
    animation-name: zoom;
    animation-duration: 0.6s;
}

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

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--fsm-color-icon-inverse-default);
    font-size: 40px;
    font-weight: var(--fsm-text-font-weight-bold);
    transition: 0.3s;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--fsm-color-icon-interactive-hover);
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .image-modal-content {
        width: 100%;
    }
}