.main-img-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* min-height: 55rem; */
}

.main-image {
  width: 80%;
  /* height: auto; */
  max-width: 1000px;
  height: 500px;
  object-fit: cover;
  margin-bottom: 20px;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.hidden {
  opacity: 0;
}

#thumbnail-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.thumbnails-wrapper {
  display: flex;
  overflow: hidden;
  width: calc(100% - 60px); /* accounting for control buttons */
  padding: 1rem;
}

.thumbnails {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.thumbnails img {
  width: 150px;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnails img:hover {
  border-color: #00adff;
  scale: 1.1;
}

.control {
  font-size: 30px;
  cursor: pointer;
  user-select: none;
}

.control:hover {
  color: #00adff;
}

.thumbnails img {
  width: 15vw;
  height: 12vw;
  max-width: 150px;
  max-height: 120px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .main-image {
    width: 90vw;
    height: 45vw;
  }

  .thumbnails img {
    width: 20vw;
    height: 16vw;
  }
  .section {
    min-height: auto;
  }
}
