/* Carousel Styles */

.carousel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.carousel-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 0;
}

.carousel-modal-dialog {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  margin: var(--spacing-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-modal-title {
  margin-bottom: var(--spacing-sm);
  padding-right: var(--spacing-xl);
  font-size: 1.5rem;
}

.carousel-modal-meta {
  color: var(--muted-text);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.carousel-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--lighter-bg);
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
  max-height: 450px;
}

.carousel-image {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity var(--transition-fast);
}

.carousel-image.loading {
  opacity: 0.5;
}

.carousel-btn {
  background: var(--primary-orange);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--secondary-orange);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  background: var(--border-color);
  cursor: not-allowed;
  opacity: 0.5;
}

.carousel-btn:disabled:hover {
  transform: scale(1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--spacing-sm) 0;
}

.carousel-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-indicator-dot.active {
  background: var(--primary-orange);
  width: 24px;
  border-radius: 4px;
}

.carousel-indicator-dot:hover {
  background: var(--accent-orange);
}

.carousel-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .carousel-modal-dialog {
    padding: var(--spacing-md);
    margin: var(--spacing-sm);
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-image-container {
    min-height: 300px;
    max-height: 400px;
  }

  .carousel-image {
    max-height: 400px;
  }
}
