/* ===================================================
   Layout: Video Work
   File:   template-parts/flexible/video_work/video_work.css
=================================================== */



    .ym_gallery_grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .ym_gallery_card {
      position: relative;
      display: block;
      aspect-ratio: 1 / 0.92;
      border-radius: 14px;
      overflow: hidden;
      text-decoration: none;
      background-color: #1a1a1a;
      cursor: pointer;
    }

    .ym_gallery_thumb {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .ym_gallery_card:hover .ym_gallery_thumb {
      transform: scale(1.05);
    }

    /* Bottom Gradient Overlay */
    .ym_gallery_overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.1) 55%,
        rgba(0, 0, 0, 0.78) 100%
      );
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 18px 20px;
      z-index: 2;
    }

    /* Top-Left Video Type Badge */
    .ym_gallery_badge {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 50px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: #ffffff;
      line-height: 1;
    }

    .ym_gallery_badge_mp4 {
      background-color: rgba(38, 43, 54, 0.92);
      backdrop-filter: blur(4px);
    }

    .ym_gallery_badge_mp4 .ym_gallery_dot {
      background-color: #f59e0b;
    }

    .ym_gallery_badge_youtube {
      background-color: #e12d39;
    }

    .ym_gallery_badge_youtube .ym_gallery_dot {
      background-color: #ffffff;
    }

    .ym_gallery_dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      display: inline-block;
    }

    /* Center Play Icon Button */
    .ym_gallery_play_btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      width: 68px;
      height: 68px;
      background-color: #ffffff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
      opacity: 0;
      transition: all 0.3s ease;
      z-index: 3;
    }

    .ym_gallery_play_btn svg {
      width: 24px;
      height: 24px;
      fill: #111111;
      margin-left: 3px;
    }

    .ym_gallery_card:hover .ym_gallery_play_btn {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    /* Bottom Title */
    .ym_gallery_title {
      color: #ffffff;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.35;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    }

    /* Responsive Breakpoints */
    @media (max-width: 991px) {
      .ym_gallery_grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .ym_gallery_grid {
        grid-template-columns: 1fr;
      }
      .ym_gallery_play_btn {
        opacity: 1;
        width: 56px;
        height: 56px;
      }
    }
