/* Position the image container (needed to position the left and right arrows) */
.w3galleryContainer {
  position: relative;
  border: solid #000000 3px;
  border-radius: 5px;
  margin: 1em 0;
}

/* Hide the images by default */
.w3gallerySlides {
  display: none;
  width: 100%;
  background-color: rgb(63, 63, 63);
}

.w3galleryImage {
  display: block;
  border: none;
  margin-left: auto;
  margin-right: auto;
  max-height: 90vh;
  object-fit: contain;
}

/* Add a pointer when hovering over the thumbnail images */
.w3galleryCursor {
  cursor: pointer;
}

/* Next & previous buttons */
.w3galleryPrev,
.w3galleryNext {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  background-color: rgba(66, 66, 66, 0.644);
  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 */
.w3galleryNext {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.w3galleryPrev:hover,
.w3galleryNext:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Container for image text */
.w3galleryCaptionContainer {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.w3galleryRow {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
}

.w3galleryRow:after {
  content: "";
  clear: both;
}

/* Six columns side by side */
.w3galleryColumn {
  float: left;
  width: 16.66%;
  flex: 0 0 auto;
}

/* Add a transparency effect for thumnbail images */
.w3galleryDemo {
  display: block;
  opacity: 0.6;
  border: none;
}

.w3galleryActive,
.w3gallerydemo:hover {
  opacity: 1;
}