body {
  font-family: Arial;
  margin: 0;
}

* {
  box-sizing: border-box;
}

img {
  vertical-align: middle;
}

/* Position the image container (needed to position the left and right arrows) */
.slideshow-container {
  position: relative;
  /* Set a fixed height for the container, or use a responsive unit like vh */
  /* height: 80vh;  */
  /* Ensures images outside the container's set height are hidden */
  /* overflow: hidden;  */
  /* Additional styling for the slideshow mechanism (positioning, etc.) */
}

.slideshow-container img {
  /* The image will take 100% of the container's width, maintaining its aspect ratio initially */
  width: 100%; 
  /* Set max-height to 100% of the container's height */
  max-height: 100%;
  /* Controls how the image fits within the container without distortion */
  object-fit: contain; /* Shrinks the image proportionally to fit inside the container, potentially leaving empty space (letterboxing). */
  /* OR */
  /* object-fit: cover; /* Crops the image horizontally or vertically to cover the entire container, with no empty space. */
}


/* Hide the images by default */
.mySlides {
  display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 10%;
  /* width: auto; */
  height: 80%;
  padding: 16px;
  margin-top: -50px;
  color: white;
  padding-top: 40%;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {

  /* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 400px;
  width: auto;
  height: initial;
  padding: 16px;
  margin-top: -50px;
  color: white;
  background-color: rgba(74, 74, 74, 0.587);
  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;
}

@media (min-width: 768px) {

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
}


/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.gallery-container {
  display: flex; /* Makes the container a flex container */
  gap: 5px; /* Adds space between slides (adjust as needed) */
  /* Optional styling for appearance */
  padding: 5px 0;
  background-color: #f0f0f0;
  width: 100%;
  box-sizing: border-box;
}

.gallery-container:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  /*width: 16.64%;*/
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
  border-right: white 2px solid;
}

.active,
.demo:hover {
  opacity: 1;
}
