.avc-carousel-container {
    width: 100%;
    margin: 0;
    padding: 20px;
}

.avc-carousel {
    display: flex;
    overflow-x: auto;
    --avc-gap: 20px;
    gap: var(--avc-gap);
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
}

.avc-carousel::-webkit-scrollbar {
    height: 8px;
}
.avc-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.avc-video-slide {
    cursor: pointer;
}

.avc-carousel .avc-video-slide {
    scroll-snap-align: start;
}

.avc-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.avc-thumbnail-wrapper img, .avc-no-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.avc-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.avc-play-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s;
}

.avc-video-slide:hover .avc-play-overlay {
    background: rgba(0,0,0,0.1);
}

.avc-play-icon {
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.avc-video-slide:hover .avc-play-icon {
    transform: scale(1.1);
}

.avc-custom-play {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.2s;
}
.avc-video-slide:hover .avc-custom-play {
    transform: scale(1.1);
}

.avc-video-slide h4 {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.3;
}

/* Modal Embed */
.avc-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.avc-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.avc-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#avc-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.avc-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.avc-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Grid Layout */
.avc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    --avc-gap: 20px;
    gap: var(--avc-gap);
}
.avc-pagination {
    margin-top: 20px;
    text-align: center;
}
.avc-pagination .page-numbers {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 4px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.avc-pagination .page-numbers.current {
    background: #333;
    color: #fff;
}
