﻿/* Main container */
.media-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
/* Thumbnail styling */
.media-thumb img, .media-thumb video {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
  transition: transform .2s ease-in-out;
  cursor: pointer;
}
/* Hover zoom */
.media-thumb img:hover, .media-thumb video:hover {
  transform: scale(1.1);
}
.product-media-cards-container .title {
  text-transform: uppercase;
  padding: 0 0 10px;
  font-size: 12px;
}
/* Responsive table */
@media(max-width: 768px) {
  table thead {
    display: none;
  }
  table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
  }
  table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    font-size: 14px;
  }
  table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #444;
  }
  .btn-sm {
    padding: 5px 8px;
    font-size: 12px;
  }
}
/* Modal preview overlay */
#mediaModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
#mediaModal img, #mediaModal video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
.product-media-cards-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}
.media-scroll-container {
  display: flex;
  gap: 10px;
}
.media-card {
  width: 25%;
  position: relative;
}
.media-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 8px;
  color: white;
}
.media-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-date {
  font-size: 10px;
  opacity: 0.8;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.product-media-cards-container::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.product-media-cards-container {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}