/* Media Button Styles */
.media-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
  transition: all 0.3s ease;
}

.media-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Carousel Modal Styles */
.carousel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.carousel-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.carousel-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.carousel-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-content {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  flex: 1;
  min-height: 0;
}

.carousel-media-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: calc(95vh - 120px);
  padding: 20px;
  overflow: hidden;
}

.carousel-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
  z-index: 1001;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  padding: 15px;
  background: white;
  gap: 8px;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicator.active {
  background: #667eea;
}

.carousel-indicator:hover {
  background: #adb5bd;
}

.carousel-indicator.active:hover {
  background: #5a67d8;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .carousel-container {
    max-width: 98vw;
    max-height: 98vh;
  }

  .carousel-media-container {
    max-height: calc(98vh - 100px);
    padding: 15px;
    min-height: 250px;
  }

  .carousel-nav {
    padding: 12px 16px;
    font-size: 20px;
  }

  .carousel-close {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .carousel-indicators {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-media-container {
    max-height: calc(98vh - 90px);
    padding: 10px;
    min-height: 200px;
  }

  .carousel-nav {
    padding: 10px 12px;
    font-size: 18px;
  }

  .carousel-indicators {
    padding: 10px;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}
