.avg-video-gallery {
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.avg-video-item {
    width:30%;
      height:220px;
}

.avg-video-wrapper {
    position:relative;
}

.avg-overlay img {
    width:100%;
    height:220px!important;
    background-size: cover;
    border-radius:12px!important;
    cursor:pointer;
}

.avg-play-icon {
    position:absolute;
    top:50%;
    left:50%;
    width:60px;
    height:60px;
    background:#FF9C00;
    opacity:0.8;
    border-radius:50%;
    transform:translate(-50%, -50%);
    cursor:pointer;
}
.avg-play-icon::before {
 position: relative;
    content: '';
    display: block;
    margin-left: 5px;
    width: 0;
    height: 0;
    top: 15px;
    left: 15px;
  
  border-left: 22px solid white; /* triangle */
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.avg-video-modal {
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    z-index:999999;
    justify-content:center;
    align-items:center;
}

.avg-video-content {
    position:relative;
    width:80%;
    max-width:900px;
}

#avg-youtube-frame,
#avg-local-video {
    width:100%;
    height:500px;
    border-radius:10px;
    display:none;
    background:#000;
}

.avg-close {
    position:absolute;
    top:-20px;
    right:-12px;
    background:white;
    color:black;
    font-size:24px;
    padding:2px 12px;
    border-radius:50%;
    cursor:pointer;
    z-index:100;
}
/* ============================
   RESPONSIVE DESIGN
============================ */

/* Tablet — 2 videos per row */
@media (max-width: 992px) {
    .avg-video-item {
        width: 45% !important;
    }

    .avg-video-content {
        width: 90%;
    }

    #avg-youtube-frame,
    #avg-local-video {
        height: 380px;
    }
}

/* Mobile — 1 video per row */
@media (max-width: 768px) {
    .avg-video-gallery {
        gap: 15px;
    }

    .avg-video-item {
        width: 100% !important;
    }

    .avg-video-wrapper {
        border-radius: 10px;
        overflow: hidden;
    }

    .avg-play-icon {
        width: 55px;
        height: 55px;
    }

    .avg-play-icon::before {
        margin-left: 3px;
        border-left: 18px solid white;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
    }

    .avg-video-content {
        width: 95%;
    }

    #avg-youtube-frame,
    #avg-local-video {
        height: 300px;
    }

    .avg-close {
        top: -15px;
        right: -10px;
        font-size: 24px;
        padding: 0px 10px 4px 10px;
    }
}

/* Small Mobile — very small screens */
@media (max-width: 480px) {
    .avg-video-content {
        width: 90%;
    }

    #avg-youtube-frame,
    #avg-local-video {
        height: 240px;
       
    }

    .avg-play-icon {
        width: 50px;
        height: 50px;
    }

    .avg-play-icon::before {
        margin-left: 2px;
        border-left: 16px solid white;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
}
