/* Carousel Container */
.carousel-container {
  position: relative;
  max-width: 70%; /* Set the carousel width to 70% of the available width */
  height: 400px; /* Set a fixed height for the carousel */
  margin: auto;
  overflow: hidden; /* Ensures that no overflow content is visible */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Carousel Slides */
.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures that images cover the entire slide area without stretching */
}

/* Carousel Controls */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Full-screen Image Viewer */
.image-viewer {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.image-viewer img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* Ensures the image fits within the viewer without distortion */
}

.close-viewer {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.close-viewer:hover {
  color: #ccc;
}
