﻿/* 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);
}
/* 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 */
}
.video-container {
    position: relative;
    width: 120px;
}

.custom-video {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
}

.video-controls {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    gap: 6px;
}

    .video-controls span {
        width: 28px;
        height: 28px;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        border-radius: 50%;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
    }

        .video-controls span:hover {
            background: rgba(0, 0, 0, 0.75);
        }

.spotlight-video {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.video-cover {
    width: 100%;
    display: block;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    transition: opacity .2s ease;
}

    .play-overlay svg {
        width: 64px;
        height: 64px;
        fill: #fff;
    }

.spotlight-video video {
    width: 100%;
    border-radius: 6px;
}



/* Hide ALL iOS Safari forced controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}


