/* Grid gallery with responsive columns */
.avg-video-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Tablet */
@media (max-width: 992px) {
    .avg-video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .avg-video-gallery {
        grid-template-columns: 1fr;
    }
}

/* Individual video item */
.avg-video-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    color: #fff;
    position: relative;
    background: transparent;
}

/* Hover overlay */
.avg-video-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}
.avg-video-item:hover::before {
    opacity: 1;
}

/* Image styling with hover effect */
.avg-video-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    background: #000;
    margin-bottom: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform, filter;
}

/* Image zoom & brighten on hover */
.avg-video-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
}

/* Video title */
.avg-video-item h3 {
    font-size: 1rem;
    margin-top: 10px;
    color: white;
}

/* Modal overlay */
.avg-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(50, 50, 50, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Modal content centered */
.avg-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: #121212;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: popupFadeIn 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    top: 4%;
}

/* Modal fade-in animation */
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Close button */
.avg-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: background 0.3s ease;
    user-select: none;
    z-index: 10000;
}
.avg-modal-close:hover {
    background: #ff4444;
    color: white;
}

/* Video container in modal */
.avg-modal iframe,
.avg-modal video {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 0 0 12px 12px;
    background: black;
}

/* Pagination wrapper */
.avg-gallery-wrap .pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    background: transparent !important;
    width: 100% !important;
}

/* Pagination items */

.avg-gallery-wrap .page-numbers {
/*     display: inline-block !important; */
	display: flex;
	justify-content: center;
    padding: 5px 5px;
    background: #333;
    color: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.avg-gallery-wrap .page-numbers:hover {
    background: #555;
    color: white;
}
.avg-gallery-wrap .page-numbers.current {
    background: #ff4444;
    color: white;
    cursor: default;
}
.page-numbers li{
	margin-left: 30px;
	list-style-type: none;
}

.avg-gallery-wrap ul{
	margin-top: 50px;
	margin-right: 40px;
	
}