:root {
    --v-gap: 20px;
    --v-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-crsl-track-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.v-crsl-track {
    display: flex;
    gap: var(--v-gap);
    transition: transform var(--v-transition);
}


.v-crsl-item {
    min-height: 100px; /* Garante que o item apareça mesmo sem imagem */
    background: #333;  /* Cor de fundo para teste */
}

.v-crsl-item {
    min-width: calc(100% / 3 - (var(--v-gap) * 2 / 3));
    position: relative;
    cursor: pointer;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width:521px){

.v-crsl-container {
    position: relative;
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 20px;
}

.v-crsl-item img {
    width: 100%;
    height: 560px;
    display: block;
    aspect-ratio: 18 / 15;
    object-fit: cover;
    transition: transform 0.3s;
  }
}

@media (max-width:520px){

.v-crsl-container {
    position: relative;
    width: 100%;
    margin: 50px auto;
    padding: 0 20px;
}

.v-crsl-item img {
    width: 110%;
    height: 500px;
    display: block;
    aspect-ratio: 22 / 18;
    object-fit: cover;
    transition: transform 0.3s;
  }
}


.v-crsl-item:hover img { transform: scale(1.05); }

.v-crsl-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: #fff;
    font-weight: bold;
}
.v-crsl-item:hover .v-crsl-overlay { opacity: 1; }

/* Botões de Navegação */
.v-crsl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: black;
    background-color: rgba(0, 0, 0, 0.7);
    color:#fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.v-crsl-prev { left: -5px; }
.v-crsl-next { right: -5px; }

/* Modal e Iframe Responsivo */
.v-crsl-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.v-crsl-modal.v-active {
    display: flex;
    animation: vFade 0.3s ease;
}

@keyframes vFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.v-crsl-modal-content {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    position: relative;
}

.v-crsl-modal-content iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 10px;
}

.v-crsl-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 50px;
    cursor: pointer; z-index: 10001;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .v-crsl-item { min-width: calc(100% / 2 - (var(--v-gap) / 2)); }
}
@media (max-width: 600px) {
    .v-crsl-item { min-width: 100%; }
}
