/* =========================================================
   ZUM CASE CAROUSEL
========================================================= */

.zum-case-carousel {
    --zum-slides: 3;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 32px 0 42px;
    box-sizing: border-box;
}

.zum-carousel-stage {
    position: relative;
    width: 100%;
}

.zum-carousel-viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zum-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.zum-carousel-track {
    display: flex;
    width: 100%;
    min-width: 100%;
    gap: 0;
}

.zum-carousel-slide {
    flex: 0 0 calc(100% / var(--zum-slides));
    min-width: 0;
    margin: 0;
    padding: 0;
    /* Mais altura para valorizar as fotos dos Cases */
    aspect-ratio: 1 / 1;
    min-height: 340px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #220936;
}

.zum-carousel-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.zum-carousel-slide:hover .zum-carousel-image {
    transform: scale(1.04);
}

/* =========================================================
   SETAS DO CARROSSEL
========================================================= */

.zum-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid #00FFFF;
    border-radius: 50%;
    background: rgba(34, 9, 54, 0.82);
    color: #00FFFF;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.zum-carousel-arrow span {
    display: block;
    margin-top: -2px;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
}

.zum-carousel-prev { left: 14px; }
.zum-carousel-next { right: 14px; }

.zum-carousel-arrow:hover {
    background: #00FFFF;
    color: #220936;
}

.zum-carousel-prev:hover { transform: translateY(-50%) translateX(-2px); }
.zum-carousel-next:hover { transform: translateY(-50%) translateX(2px); }

.zum-carousel-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* =========================================================
   PAGINAÇÃO
========================================================= */

.zum-carousel-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    margin-top: 10px;
}

.zum-carousel-bullet {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #86659F;
    opacity: 0.25;
    cursor: pointer;
    transition: width 0.25s ease, opacity 0.25s ease, border-radius 0.25s ease;
}

.zum-carousel-bullet.is-active {
    width: 26px;
    border-radius: 20px;
    opacity: 1;
}

/* =========================================================
   VÍDEO DOS CASES
   Mantém a proporção completa do player sem recorte
========================================================= */

.zum-case-video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 32px 0 38px;
    box-sizing: border-box;
    clear: both;
}

/* Wrapper do embed (YouTube / Vimeo) */
.zum-case-video__frame {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #0C0314;
    box-sizing: border-box;
}

/* O iframe passa a participar do fluxo normal.
   Isso evita cortes causados por altura herdada/forçada
   pelo Elementor ou pelo conteúdo da postagem. */
.zum-case-video__frame iframe,
.zum-case-video__frame embed,
.zum-case-video__frame object {
    display: block !important;
    position: static !important;
    inset: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: 16 / 9 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    box-sizing: border-box !important;
}

/* Vídeos MP4 / biblioteca */
.zum-case-video--file {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #0C0314;
    box-sizing: border-box;
}

.zum-case-video__native {
    display: block !important;
    position: static !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #0C0314;
    border: 0 !important;
    box-sizing: border-box !important;
}

.zum-case-video-fallback {
    margin: 24px 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .zum-case-carousel { --zum-slides: 2; }

    .zum-carousel-slide {
        aspect-ratio: 1 / 1;
        min-height: 320px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .zum-case-carousel {
        --zum-slides: 1;
        margin: 24px 0 34px;
    }

    .zum-carousel-slide {
        aspect-ratio: 4 / 3;
        min-height: 280px;
    }

    .zum-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .zum-carousel-prev { left: 8px; }
    .zum-carousel-next { right: 8px; }
    .zum-carousel-arrow span { font-size: 22px; }

    .zum-case-video {
        margin: 24px 0 30px;
    }
}

/* =========================================================
   LOOP INFINITO
   As setas permanecem ativas enquanto houver imagens
   suficientes para formar um loop na resolução atual.
========================================================= */
.zum-case-carousel.is-looping .zum-carousel-arrow:disabled {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}
