.image-gallery {
     position: fixed;
     background-color: rgba(0, 0, 0, 0.5);
     inset: 0;
     z-index: 100;
     display: flex;
     align-items: center;
     justify-content: center;
     display: none;
}

.image-gallery.active {
     display: flex;
}

#cancel-gallery {
     position: fixed;
     top: 2rem;
     color: white;
     right: 2rem;
     font-size: 5rem;
     cursor: pointer;
}

/* Position the image container (needed to position the left and right arrows) */
.image-gallery .container {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
}

/* Hide the images by default */
.image-gallery .mySlides {
     display: none;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     width: 90vw;
     max-width: 40rem;
}

.image-gallery .mySlides img {
     width: max-content;
     width: 100%;
}

/* Add a pointer when hovering over the thumbnail images */
.image-gallery .cursor {
     cursor: pointer;
}

/* Next & previous buttons */
.image-gallery .prev,
.image-gallery .next {
     cursor: pointer;
     position: fixed;
     top: 50%;
     width: auto;
     padding: 1.4rem;
     /* margin-top: -50px; */
     color: white;
     font-weight: bold;
     font-size: 2rem;
     border-radius: 0 3px 3px 0;
     user-select: none;
     -webkit-user-select: none;
}


.image-gallery .prev {
     left: 0;
}

.image-gallery .next {
     right: 0;
}

/* Position the "next button" to the right */
.image-gallery .next {
     right: 0;
     border-radius: 3px 0 0 3px;
}

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

/* Number text (1/3 etc) */
.image-gallery .numbertext {
     color: #f2f2f2;
     /* font-size: 12px; */
     padding: 8px 12px;
     /* position: absolute; */
     top: 0;
}

/* Container for image text */
.image-gallery .caption-container {
     text-align: center;
     background-color: #222;
     padding: 2px 16px;
     color: white;
}

.image-gallery .row:after {
     content: "";
     display: table;
     clear: both;
}

/* Six columns side by side */
.image-gallery .column {
     float: left;
     width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.image-gallery .demo {
     opacity: 0.6;
}

.image-gallery .active,
.image-gallery .demo:hover {
     opacity: 1;
}

@media only screen and (max-width: 600px) {
     .image-gallery .mySlides {
          max-width: 80%;
     }
}