.modal-carousel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.modal-carousel.active {
  display: flex;
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: transparent;
}

.carousel-slide {
  display: none;
  text-align: center;
}

.carousel-slide.active-slide {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.slide-caption {
  color: #f0e2d4;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}

.slide-caption .slide-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.slide-caption .slide-medium {
  font-size: 0.85rem;
  opacity: 0.8;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 1002;
  font-family: monospace;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.prev-btn {
  left: -60px;
}

.next-btn {
  right: -60px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 1002;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.slide-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #d4c5b8;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  white-space: nowrap;
}