/* video-base.css - video section and lightbox base styles */

#video {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: auto;
  }
  
  #video h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 2rem;
  }
  
  .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
  }

  .video-item {
    width: 100%;
    max-width: 340px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
  }
  
  .video-item:hover {
    transform: scale(1.02);
  }
  
  .video-title {
    margin-top: 0.6rem;
    font-weight: bold;
    color: var(--light-accent);
    font-size: 1rem;
  }
  
  /* Lightbox base */
  
  #video_lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  
  #video_lightbox.show {
    display: flex;
  }
  
  .lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
  }
  
  .lightbox-video-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: black;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
  }
  
  #video_frame {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 2;
  }