/* --- Custom Video Gallery - Advanced Responsive Style v1.5 --- */
.cvg-slider-container {
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    font-family: Barlow;
}

.cvg-item {
    padding: 0 15px;
    text-align: center;
}

.cvg-thumbnail {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;      
    background-color: #000;
    padding-bottom: 56.25%;
    height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cvg-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cvg-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cvg-thumbnail:hover img { opacity: 0.6; }

.cvg-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); width: 35px; height: 35px; background-color: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.cvg-play-icon svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }
.cvg-thumbnail:hover .cvg-play-icon { transform: translate(-50%, -50%) scale(1.1); background-color: rgba(255, 255, 255, 0.3); }

.cvg-title { margin-top: 15px; font-weight: 600; }

.tns-controls button { position: absolute; top: 40%; transform: translateY(-50%); width: 44px; height: 44px; background-color: rgba(255, 255, 255, 0.9); border: 1px solid #eee; border-radius: 50%; z-index: 10; cursor: pointer; font-size: 0; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.tns-controls button:hover { background-color: #fff; transform: translateY(-50%) scale(1.1); }
.tns-controls button:disabled { opacity: 0; cursor: not-allowed; visibility: hidden; }
.tns-controls button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-top: 2px solid #555; border-left: 2px solid #555; }
.tns-controls button[data-controls="prev"]::before { transform: translate(-40%, -50%) rotate(-45deg); }
.tns-controls button[data-controls="next"]::before { transform: translate(-60%, -50%) rotate(135deg); }
.tns-controls button[data-controls="prev"] { left: -22px; }
.tns-controls button[data-controls="next"] { right: -22px; }
.tns-nav { display: none; }

.cvg-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.cvg-lightbox.active { opacity: 1; visibility: visible; }
.cvg-lightbox-content { position: relative; width: 90%; max-width: 960px; }
.cvg-video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.cvg-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cvg-lightbox-close { position: absolute; top: -40px; right: 0; font-size: 30px; color: white; background: none; border: none; cursor: pointer; }

@media (max-width: 768px) {
    .tns-controls button[data-controls="prev"] { left: -10px; }
    .tns-controls button[data-controls="next"] { right: -10px; }
}