/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
    .gallery-prev, .gallery-next,.text {
        font-size: 11px
    }
}

.gallery-fullscreen-slide img,
.gallery-slides img {
    max-width: 100%;
    vertical-align: middle;
    object-fit: contain;
    pointer-events: auto;
}

.gallery-fullscreen-slide img:hover,
.gallery-slides img:hover {
    cursor: pointer;
}
  
/* Position the image container (needed to position the left and right arrows) */
.gallery-container {
    max-height: 500px;
    position: relative;
    margin: auto;
}
  
/* Hide the images by default */
.gallery-slides {
  display: none;
  text-align: center;
}
  
/* Add a pointer when hovering over the thumbnail images */
.cursor {
    cursor: pointer;
}
  
/* Next & previous buttons */
.gallery-prev,
.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: black;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    transition: 0.6s ease;
}
  
/* Position the "next button" to the right */
.gallery-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
  
  /* On hover, add a black background color with a little bit see-through */
.gallery-prev:hover,
.gallery-next:hover {
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 15px;
    padding: 1rem 2.5rem;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
  }
  
/* Number text (1/3 etc) */
.numbertext {
    color: #020202;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  
  .activated, .dot:hover {
    background-color: #717171;
  }
  
/* Container for image text */
.gallery-caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
}
  
.gallery-row:after {
    content: "";
    display: table;
    clear: both;
}
  
  /* Six columns side by side */
.gallery-column {
    float: left;
    width: 16.66%;
}
  
/* Add a transparency effect for thumnbail images */
.demo {
    opacity: 0.6;
}
  
.activated,
.demo:hover {
    opacity: 1;
}

.gallery-fullscreen {
    z-index: 1300;
    position: absolute;
    top: 1.5rem;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.gallery-fullscreen-container {
    text-align: center;
}

.gallery-page-select {
    position: fixed;
    bottom: 0;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    height: 200px;
    width: 100%;
    pointer-events: auto;
    transform: translateY(100%);
    transition: 0.5s;
}

.gallery-page-select.active {
    transform: translateY(0);
}

.gallery-page-select img {
    height: 80%;
    object-fit: contain;
    opacity: 0.7;
    pointer-events: auto;
    margin-left: 0.5rem;
}

.gallery-page-select img:hover {
    opacity: 1;
    cursor: pointer;
}

/* Fading animation */
.gallery-fade {
    animation-name: gallery-fade;
    animation-duration: 1.2s;
  }
  
@keyframes gallery-fade {
    from {opacity: .4}
    to {opacity: 1}
}