    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
      background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
      color: #1e293b;
      line-height: 1.5;
      padding: 2rem 1.5rem;
      min-height: 100vh;
    }

    /* Main container */
    .gallery-wrapper {
      max-width: 1400px;
      margin: 0 auto;
    }

    /* Header section */
    .gallery-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .gallery-header h1 {
      font-size: 2.5rem;
      font-weight: 700;
      background: linear-gradient(135deg, #0f172a, #2d4a6e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      letter-spacing: -0.02em;
    }

    .gallery-header p {
      color: #475569;
      margin-top: 0.75rem;
      font-size: 1.1rem;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Responsive grid */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 2rem;
    }

    /* Modern card design */
    .video-card {
      background: #ffffff;
      border-radius: 1.5rem;
      overflow: hidden;
      box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
      border: 1px solid rgba(203, 213, 225, 0.5);
    }

    .video-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.2);
      border-color: #94a3b8;
    }

    /* Thumbnail container - 16:9 aspect ratio */
    .thumb-wrapper {
      position: relative;
      background: #0a0a0a;
      aspect-ratio: 16 / 9;
      overflow: hidden;
    }

    .thumbnail {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
      display: block;
    }

    .video-card:hover .thumbnail {
      transform: scale(1.05);
    }

    /* Play button overlay */
    .play-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.25s ease;
      backdrop-filter: blur(3px);
    }

    .video-card:hover .play-overlay {
      opacity: 1;
    }

    .play-circle {
      background: white;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
      transition: transform 0.2s;
    }

    .play-circle svg {
      margin-left: 4px;
      width: 28px;
      height: 28px;
      fill: #1e293b;
    }

    /* Card content */
    .card-info {
      padding: 1.25rem 1rem 1.5rem;
      text-align: center;
    }

    .video-title {
      font-weight: 700;
      font-size: 1.2rem;
      color: #0f172a;
      margin-bottom: 0.3rem;
    }

    .video-description {
      font-size: 0.85rem;
      color: #5b6e8c;
      margin-top: 0.25rem;
    }

    /* ========= MODAL / POPUP STYLES ========= */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.94);
      backdrop-filter: blur(10px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      visibility: hidden;
      opacity: 0;
      transition: visibility 0.2s, opacity 0.3s ease;
    }

    .modal-overlay.active {
      visibility: visible;
      opacity: 1;
    }

    /* Modal container */
    .modal-container {
      position: relative;
      width: 90%;
      max-width: 1200px;
      background: #000;
      border-radius: 1.5rem;
      overflow: hidden;
      box-shadow: 0 40px 60px rgba(0, 0, 0, 0.5);
      animation: modalZoomIn 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

    @keyframes modalZoomIn {
      from {
        opacity: 0;
        transform: scale(0.96);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* Video wrapper with 16:9 aspect ratio */
    .video-container {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%; /* 16:9 */
      background: #000;
    }

    .video-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
    }

    /* Close button (X) */
    .modal-close {
      position: absolute;
      top: 16px;
      right: 20px;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(8px);
      color: white;
      font-size: 28px;
      font-weight: 400;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 2010;
      border: 1px solid rgba(255, 255, 255, 0.3);
      transition: all 0.2s ease;
      font-family: monospace;
      line-height: 1;
    }

    .modal-close:hover {
      background: #dc2626;
      transform: scale(1.05);
      border-color: white;
    }

    /* Optional: video title inside modal */
    .modal-video-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
      color: white;
      padding: 1.2rem 1.5rem 0.8rem;
      font-weight: 500;
      font-size: 1rem;
      pointer-events: none;
      z-index: 2009;
      text-align: left;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      body {
        padding: 1rem;
      }
      .video-grid {
        gap: 1.2rem;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      }
      .modal-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
        top: 10px;
        right: 12px;
      }
      .modal-container {
        width: 95%;
      }
      .gallery-header h1 {
        font-size: 1.8rem;
      }
    }

    /* Footer */
    .gallery-footer {
      text-align: center;
      margin-top: 3.5rem;
      font-size: 0.85rem;
      color: #5b6e8c;
      border-top: 1px solid #cbd5e1;
      padding-top: 2rem;
    }

    .info-badge {
      background: #e6f0ff;
      display: inline-block;
      padding: 0.25rem 0.8rem;
      border-radius: 20px;
      font-size: 0.75rem;
      margin-top: 0.5rem;
    }