.gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      padding: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .video-card {
      position: relative;
      background: #F0D0B2;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.2s;
    }

    .video-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .thumbnail-container {
      position: relative;
      width: 100%;
      padding-top: 56.25%; /* 16:9 Aspect Ratio */
      background: #f0f0f0;
      cursor: pointer;
    }

    .thumbnail {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 60px;
      height: 60px;
      background: rgba(0,0,0,0.7);
      border-radius: 50%;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .video-card:hover .play-button {
      background: rgba(0,0,0,0.9);
    }

    .play-button::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 55%;
      transform: translate(-50%, -50%);
      border-left: 20px solid #fff;
      border-top: 12px solid transparent;
      border-bottom: 12px solid transparent;
    }

    .video-info {
      padding: 15px;
    }

    .video-title {
      font-size: 16px;
      font-weight: bold;
      margin: 0 0 8px 0;
      color: #242F1F;
    }

    .video-meta {
      display: flex;
      justify-content: space-between;
      color: #242F1F;
      font-size: 14px;
    }

    .views {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .duration {
      background: rgba(0,0,0,0.8);
      color: white;
      padding: 3px 6px;
      border-radius: 4px;
      position: absolute;
      bottom: 8px;
      right: 8px;
      font-size: 12px;
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.9);
      z-index: 1000;
    }

    .modal-content {
      position: relative;
      width: 90%;
      max-width: 1000px;
      margin: 40px auto;
      padding-top: 56.25%;
    }

    .modal iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    .close-modal {
      position: absolute;
      top: -30px;
      right: 0;
      color: white;
      font-size: 24px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 5px;
    }

    /* Loading state */
    .thumbnail.loading {
      filter: blur(2px);
    }