/* ========================================
   Video Hero + Lightbox Styles
   ----------------------------------------
   Safe to include globally via masterview.
   All styles are scoped to specific classes
   so they won't affect pages without videos.
   ======================================== */

/* ---------- Video thumbnail (clickable poster) ---------- */

  /* ---------- Video thumbnail (the clickable image) ---------- */
  .video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    /*aspect-ratio: 16 / 9;*/
    background: #000;

  }
  .video-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease;
  }
  .video-thumb:hover img { transform: scale(1.03); }
  .video-thumb .play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px; border-radius: 50%;
    background: rgb(41,169,240);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
  }
  .video-thumb:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
  .video-thumb .play-btn::after {
    content: ""; border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
  }
  .video-thumb .label {
    position: absolute; bottom: 1rem; left: 1rem;
    color: #fff; font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  }

  /* ---------- Lightbox modal ---------- */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 2rem;
  }
  .lightbox.active { display: flex; }
  .lightbox-content {
    position: relative;
    width: 100%; max-width: 960px;
    aspect-ratio: 16 / 9;
  }
  .lightbox-content iframe {
    width: 100%; height: 100%;
    border: 0; border-radius: 4px;
  }
  .lightbox-close {
    position: absolute; top: -40px; right: 0;
    background: transparent; border: 0; color: #fff;
    font-size: 2rem; cursor: pointer; line-height: 1;
    padding: 0.25rem 0.5rem;
  }
  .lightbox-close:hover { color: #c74634; }

.video-float {
    float: right;
    width: 40%; /* adjust based on design */
    margin-left: 50px;
    margin-bottom: 50px;
  
}

  @media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding: 2rem 1rem; }
    .hero h1 { font-size: 1.75rem; }
        .video-float {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
  }
