:root {
    --gap: 20px;
    --items-visible: 3;
}

.v-carousel {
    display: flex;
    align-items: center;
    position: relative;
    width:95%;
    margin: 0 auto;
}

.v-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.v-track {
    display: flex;
    gap: var(--gap);
    transition: transform 0.5s ease-out;
    padding: 10px 0;
}

.v-item {
    flex: 0 0 calc((100% - (var(--gap) * (var(--items-visible) - 1))) / var(--items-visible));
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #000;
}

.v-item img
{width: 100%;
height: 100%;}


.v-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

.v-item iframe {
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.v-nav-btn {
    background: white; border: none; width: 45px; height: 45px; border-radius: 50%;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 18px;
    position: absolute; z-index: 10; transition: 0.3s;
}

.v-nav-btn:hover { background: #007bff; color: white; }
.v-nav-btn.prev { left: -20px; }
.v-nav-btn.next { right: -20px; }
.v-nav-btn:disabled { opacity: 0; pointer-events: none; }


.v-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;    
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.v-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 80, 220, 0.75); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.75); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    z-index: 2;
}


.v-icon {
    color: white;
    font-size: 40px;
}



.v-item:hover .v-overlay {    
    opacity: 1;
    transform: scale(1);
}

.v-item:hover .v-img {    
    transform: scale(1.1);
}

.v-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; 
    justify-content: center; align-items: center;
    z-index: 10000;
}

.v-video-stage {
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    position: relative;
}

#v-main-video {
    width: 100%;
    height: 100%;
}

.v-close-btn {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; z-index: 101;
}

.v-prev { left: 5%; }
.v-next { right: 5%; }

.v-info { color: white; text-align: center; margin-top: 10px; font-family: sans-serif; }

@media (max-width: 768px) {
    :root { --items-visible: 1; }
    .v-nav-btn.prev { left: 5px; }
    .v-nav-btn.next { right: 5px; }
}