/* ================================
   VIDEO SECTION — gallery cards
   ================================ */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* keeps thumbnails in normal landscape ratio, not reel/portrait */
  object-fit: cover;
  display: block;
}

.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.expand-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Hide the native download control everywhere (extra safety net
   on top of the controlsList="nodownload" attribute) */
video::-webkit-media-controls-download-button {
  display: none !important;
}

video::-internal-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

/* ================================
   VIDEO MODAL — normal screen size,
   NOT full-height reel/portrait
   ================================ */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

#popupVideo {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  aspect-ratio: 16 / 9;   /* forces normal landscape framing instead of a tall reel box */
  object-fit: contain;    /* shows the whole frame, no cropping or stretching */
  border-radius: 8px;
  background: #000;
}

.close-video {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

@media (max-width: 600px) {
  #popupVideo {
    max-width: 95vw;
    max-height: 70vh;
  }

  .close-video {
    top: 14px;
    right: 18px;
    font-size: 2rem;
  }
}