.preview-widget-img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.preview-widget-img:hover {
    opacity: 0.7;
}

/* The Modal (background) */
.preview-widget-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.preview-widget-modal-img {
    margin: auto;
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
.preview-widget-modal-caption {
    margin: auto;
    display: block;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.preview-widget-modal-caption:link {
    color: #f3f3f3;
}

.preview-widget-modal-caption:visited {
    color: #f3f3f3;
}

.preview-widget-modal-caption:hover {
    color: #c2c2c2;
}

/* Add Animation - Zoom in the Modal */
.preview-widget-modal-img, .preview-widget-modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

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