/* The Modal */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: var(--z-index-first-priority); /* 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.6); /* Black w/ opacity */
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
}


/* Modal Content */
.modal-content {
    width: 100%;
}

.modal-content, .create-modal {
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    position: relative;
    background-color: unset;
    margin: auto;
    padding: 0;
    height: 100%;
    max-height: 100%;
    border: none;
    box-shadow: none;
    justify-content: center;
    align-items: center;
}

.modal-image {
    height: -webkit-fill-available;
    width: auto;
    max-width: fit-content;
    height: auto;
    max-height: 100%;
    margin: auto;
}

/* The Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: var(--z-index-first-priority);
    color: #aaaaaa;
    text-align: right;
    text-align: -moz-right;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
    text-align: center;
    text-align: -webkit-center;
    justify-content: center;
    height: 100%;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 40px 50px 40px 50px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.prev { left: 0; }
.next { right: 0; }

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.3);
}


/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}
