/**
 * videos.css — Video gallery page (videos.php)
 */

.content-wide {
  padding: 0;
  max-width: 80rem;
  margin: 0 auto;
}

.videos-page .content-section {
  width: 100%;
}

.videos-page .w-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 -10px;
}

.divider {
  height: 1px;
  margin: 8px 0 16px;
  background-color: #334155;
}

.video-card {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px 0 rgba(88, 88, 88, 0.2) !important;
}

.basic-column {
  margin-bottom: 20px;
  width: 33.33333333% !important;
  min-width: 0;
  box-sizing: border-box;
}

.video-card__stack {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.product-card {
  width: 100% !important;
  min-width: 0;
  flex-shrink: 0;
}

.product-card-1.video-embed-wrapper {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-bottom: 56.25% !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
  background-image: none !important;
  flex-shrink: 0;
}

.video-thumbnail-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-thumbnail-container.loading {
  opacity: 0.7;
}

.video-thumbnail-container.hidden {
  display: none;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.video-thumbnail-container:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  z-index: 10;
}

.video-iframe.loaded {
  display: block !important;
}

.video-title-div {
  padding: 12px 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.video-title-text {
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #cbd5e1;
  font-weight: 400;
  word-wrap: break-word;
  width: 100%;
}

.video-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #1e293b;
  border-radius: 8px;
  color: #94a3b8;
}

@media screen and (max-width: 991px) {
  .basic-column {
    margin-bottom: 15px;
  }

  .video-title-div {
    padding: 10px 12px;
    min-height: 50px;
  }

  .video-title-text {
    font-size: 13px;
  }

  .video-play-button {
    width: 56px;
    height: 40px;
  }
}

@media screen and (max-width: 767px) {
  .basic-column {
    margin-bottom: 12px;
  }

  .video-title-div {
    min-height: 45px;
    padding: 8px 10px;
  }

  .video-title-text {
    font-size: 12px;
  }
}

.w-col.w-col-4 {
  width: 33.33333333% !important;
  float: left;
  box-sizing: border-box;
}

.w-row {
  display: block;
  width: 100%;
}

.w-row::before,
.w-row::after {
  content: "";
  display: table;
  clear: both;
}
