@import "variables.css";
.carouselwrap {
  position: relative;
}
.carousel {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel-image {
  flex: 0 0 260px;
  height: auto;
  scroll-snap-align: start;
  cursor: pointer;
  width: 250px;
  margin: 5px;
  border: 2px solid transparent;
}
.carousel-image:hover {
  border-color: var(--dark_sand);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}
.overlay.show {
  display: flex;
}
.overlay img {
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s ease;
  border: 4px solid var(--light_sea);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.overlay img.show {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.prev-button,
.next-button {
  position: absolute;
  top: 51%;
  transform: translateY(-50%);
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  width: 20px;
  height: 20px;
  text-align: center;
}
.prev-button {
  left: 10px;
}
.next-button {
  right: 10px;
}
