/* carousel.css */

.carousel {
  width: inherit;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.carousel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.carousel li {
  width: inherit;
  flex: 0 0 auto;
}

.carousel img {
  width: 100%; /* Ensure the image fills its container */
  height: 100%; /* Ensure the image fills its container */
  object-fit: contain; /* Maintain aspect ratio and fit the image within the container */
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
}

.carousel .next-btn {
  right: 0;
}

.carousel .prev-btn {
  left: 0;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 80vw;
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh; /* Adjust as needed */
  display: block;
  margin: 0 auto; /* Center the image horizontally */
}

.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
}

.lightbox .prev-btn {
  left: 0;
}

.lightbox .next-btn {
  right: 0;
}

.lightbox .close {
  color: white;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
}
