#carousel-section {
  margin-top: 2rem;
}

.carousel {
  position: relative;
  width: 60%; 
  outline: none;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 100%;
  list-style: none;
}

.carousel-slide img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 10px;
}


.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 1rem;
  cursor: pointer;
  z-index: 1;
}

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

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

:fullscreen .carousel {
  width: 100% !important;
  height: 100vh;
}

:fullscreen .carousel-track {
  height: 100%;
}

:fullscreen .carousel-slide img {
  height: 100vh;
  width: auto;
  object-fit: contain;
}

.fullscreen-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}
