/* CSS styles for slideshow, image modal zoom, and responsiveness */
/* Modified from W3 Image Modal and slideshow */

.responsive {
    width: 100%;
    max-width: 600px;
    max-height: 480px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.slideshow-cont img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Position the image container (needed to position the left and right arrows) */
.slideshow-cont {
    position: relative;
}

/* Hide the images by default */
.imgSlides {
    display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: lightgrey;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(179, 152, 152, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #b5a9a9;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Six columns side by side */
.column {
    float: left;
    width: 16.66%;
    height: 70px;/* */
}

/* Six columns side by side */
.column img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.active.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

h1 {
    text-align: center;
    padding: 20px;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    /* z-index: 1000; */
    /* left: 0; */
    /* top: 0; */
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.8); */
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
    position: relative;
    /* width: 90%; */
    height: auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    overflow: hidden;
    animation: zoomIn 0.5s;
    object-fit: contain;
}

@keyframes zoomIn {
    from {transform: scale(0.6);}
    to {transform: scale(1);}
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Close button */
.close {
    position: absolute;
    color: #000000;
    cursor: pointer;
    animation: zoomOut 0.5s;
    opacity:0.0 !important;
    transition: opacity 0.75s ease;
    background-color: white;
}

@keyframes zoomOut {
    from {transform: scale(1);}
    to {transform: scale(0.6);}
}


