/* LinkedIn-style media preview styles */

/* Image preview */
.media-image {
  max-height: 500px;
  width: auto;
  margin: 0 auto;
}

/* PDF Carousel */
.pdf-carousel {
  position: relative;
  overflow: hidden;
  background-color: theme('colors.gray.100');
}

.dark .pdf-carousel {
  background-color: theme('colors.gray.900');
}

.pdf-pages {
  display: flex;
  transition: transform 300ms ease-in-out;
}

.pdf-page {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Navigation buttons */
.pdf-prev:disabled,
.pdf-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Document preview */
.document-preview {
  border-radius: theme('borderRadius.lg');
  overflow: hidden;
  background-color: theme('colors.gray.50');
  border: 1px solid theme('colors.gray.200');
}

.dark .document-preview {
  background-color: theme('colors.gray.800');
  border-color: theme('colors.gray.700');
}

/* Video preview */
.video-preview {
  position: relative;
  max-height: 500px;
  width: 100%;
  background-color: black;
}

.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}