/* =========================================
   1. ESTRUTURA BASE (Comum a todos)
   ========================================= */
.mySwiper {
    width: 100%;
    position: relative;
    padding-bottom: 50px;
}

.mySwiper .swiper-wrapper {
    align-items: center;
    z-index: 1;
}

.mySwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.mySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   2. VARIAÇÃO: HERO (Destaque Central)
   ========================================= */
.mySwiper--hero {
    height: 500px;
    /* padding-top: 20px; */
}

.mySwiper--hero .swiper-slide {
    transition: transform 450ms cubic-bezier(.2, .9, .2, 1), opacity 450ms ease;
    transform: scale(0.85);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.mySwiper--hero .swiper-slide img {
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.mySwiper--hero .swiper-slide.swiper-slide-active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.mySwiper--hero .swiper-slide.swiper-slide-active img {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.mySwiper--hero .swiper-slide.swiper-slide-active:hover img {
    transform: scale(1.02);
}

/* =========================================
   3. VARIAÇÃO: MULTI (Carrossel de Cards)
   ========================================= */
.mySwiper--multi {
    padding: 20px 40px 50px 40px;
    height: auto;
}

.mySwiper--multi .swiper-slide {
    height: 280px;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto !important;
    cursor: pointer;
}

.mySwiper--multi .swiper-slide img {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    pointer-events: auto;
    cursor: pointer;
}

.mySwiper--multi .swiper-slide:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mySwiper--multi .swiper-slide:active img {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.mySwiper--multi .slide-link {
    height: 80%;
}

/* =========================================
   4. VARIAÇÃO: FULL (Banner Tela Cheia)
   ========================================= */
.mySwiper--full {
    height: 600px;
    padding: 0;
}

.mySwiper--full .swiper-slide img {
    border-radius: 0;
    height: 100%;
}

/* =========================================
   5. NAVEGAÇÃO & PAGINAÇÃO (Estilo Glass)
   ========================================= */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.mySwiper--full .swiper-button-next,
.mySwiper--full .swiper-button-prev {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mySwiper--full .swiper-button-next:hover,
.mySwiper--full .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #aaa;
    opacity: 0.6;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #222;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.mySwiper--full .swiper-pagination-bullet-active {
    background-color: #fff;
}

/* =========================================
   6. MODAL / LIGHTBOX
   ========================================= */
.lightboxModal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.myLightbox {
    width: 100%;
    max-width: 1200px;
    height: 100%;
}

.myLightbox .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.myLightbox .swiper-slide img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

/* =========================================
   7. VARIAÇÃO: COVERFLOW (Efeito 3D)
   ========================================= */
.mySwiper--coverflow {
    height: 100%;
    /* padding-top: 40px; */
    padding-bottom: 60px;
}

.mySwiper--coverflow .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
    filter: none;
    opacity: 1;
}

.mySwiper--coverflow .swiper-slide img {
    border-radius: 12px;
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0006);
}


/* =========================================
   7. VARIAÇÃO: COVERFLOW (Efeito 3D)
   ========================================= */
.mySwiper--coverflow {
    height: 100%;
    padding-bottom: 60px;
    /* Adiciona perspectiva para melhorar o 3D */
    perspective: 1200px;
}

.mySwiper--coverflow .swiper-slide {
    background-position: center;
    background-size: cover;
    /* Mantemos a largura fixa, essencial para slidesPerView: auto funcionar bem aqui */
    width: 300px;
    /* Altura um pouco menor que a imagem interna para dar respiro */
    height: 300px;

    /* ESTADO INATIVO (Laterais) */
    opacity: 0.4;
    /* Mais transparente nas laterais */
    filter: blur(1px);
    /* Opcional: leve desfoque nas laterais ajuda no foco */

    /* IMPORTANTE: Removemos o margin-right que estava aqui */
    /* margin-right: 20px; <--- REMOVIDO */

    /* A transição deve ser igual ou maior que o 'speed' do JS (600ms) */
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ESTADO ATIVO (Centro) */
/* Usamos uma combinação de seletores para garantir que pegue o central */
.mySwiper--coverflow .swiper-slide.swiper-slide-active,
.mySwiper--coverflow .swiper-slide.swiper-slide-duplicate-active {
    opacity: 1;
    z-index: 10;
    filter: none;
    /* O coverflow nativo já aplica transform 3D. 
       Não precisamos de scale() extra aqui se o depth/rotate estiverem bons. */
}

.mySwiper--coverflow .swiper-slide img {
    border-radius: 12px;
    display: block;
    width: 100%;
    /* A altura da imagem deve preencher o slide */
    height: 340px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Reflexo (opcional, pode pesar em mobile) */
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0006);
    user-select: none;
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .mySwiper--coverflow {
        height: 380px;
    }

    /* Reduzimos um pouco o tamanho do card em telas menores */
    .mySwiper--coverflow .swiper-slide {
        width: 220px;
        height: 220px;
    }
}

/* =========================================
   8. VARIAÇÃO: CARDS (Estilo Baralho)
   ========================================= */
.mySwiper--cards {
    height: 420px;
    padding: 30px 0;
    overflow: visible;
}

.mySwiper--cards .swiper-slide {
    width: 280px;
    height: 360px;
    background-color: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.mySwiper--cards .swiper-slide img {
    border-radius: 16px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mySwiper--cards .swiper-slide-active {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* =========================================
   9. VARIAÇÃO: CINEMATIC (Creative Effect)
   ========================================= */
.mySwiper--cinematic {
    height: 750px;
    padding: 50px 0;
    perspective: 1200px;
    overflow: hidden;
}

.mySwiper--cinematic .swiper-slide {
    width: 60%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mySwiper--cinematic .swiper-slide img {
    max-height: 85%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: none;
    border-style: none;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   10. RESPONSIVIDADE GERAL
   ========================================= */
@media (min-width: 1921px) {
    .mySwiper--coverflow .swiper-slide img {
        height: 420px;
    }
}

@media (min-width: 1680px) and (max-width: 1920px) {
    .mySwiper--coverflow .swiper-slide img {
        height: 360px;
    }
}

@media (max-width: 1399px) {
    .mySwiper--coverflow .swiper-slide img {
        height: 320px;
    }
}

@media (max-width: 991px) {
    .mySwiper--coverflow .swiper-slide img {
        height: 100%;
    }
}

@media (max-width: 768px) {

    /* Hero */
    .mySwiper--hero {
        height: 350px;
    }

    .mySwiper--hero .swiper-slide {
        transform: scale(0.9);
        opacity: 1;
        filter: none;
    }

    .mySwiper--hero .swiper-slide.swiper-slide-active {
        transform: scale(1);
    }

    /* Multi */
    .mySwiper--multi {
        padding: 10px 0 40px 0;
    }

    /* Coverflow */
    .mySwiper--coverflow {
        height: 380px;
    }

    .mySwiper--coverflow .swiper-slide {
        width: 200px;
        height: 200px;
    }

    /* Cinematic */
    .mySwiper--cinematic {
        height: 350px;
        padding: 30px 0;
    }

    .mySwiper--cinematic .swiper-slide {
        width: 85%;
    }

    /* Geral */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {

    /* Cards */
    .mySwiper--cards .swiper-slide {
        width: 240px;
        height: 320px;
    }
}