.abe-banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.abe-banner-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: none;
    margin: 0;
    padding: 0;
}

/* Efeito hover removido conforme solicitado */

.abe-banner-wrapper a {
    display: block;
    width: 100%;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

/* Responsividade - Desktop/Tablet por padrão */
.abe-banner-desktop {
    display: block;
}

.abe-banner-mobile {
    display: none;
}

/* Mobile apenas - breakpoint em 480px */
@media (max-width: 480px) {
    .abe-banner-desktop {
        display: none;
    }
    
    .abe-banner-mobile {
        display: block;
    }
}

/* Para quando só existe uma imagem - fallback */
.abe-banner-wrapper:not(:has(.abe-banner-mobile)) .abe-banner-desktop,
.abe-banner-wrapper:not(:has(.abe-banner-desktop)) .abe-banner-mobile {
    display: block !important;
}

/* CSS adicional para garantir comportamento correto */
body .abe-banner-wrapper img {
    transition: none !important;
    transform: none !important;
}

body .abe-banner-wrapper:hover img {
    transform: none !important;
    scale: none !important;
}

/* Garantir que links funcionem corretamente */
.abe-banner-wrapper a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

.abe-banner-wrapper img {
    pointer-events: none !important;
    cursor: pointer !important;
}

/* Prevenir interferência de plugins de lightbox */
.abe-banner-wrapper img[data-no-lightbox] {
    pointer-events: none !important;
}

.abe-banner-wrapper a[href]:not([href=""]):not([href="#"]) {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Variações para diferentes tamanhos */
.abe-banner-small {
    max-width: 400px;
}

.abe-banner-medium {
    max-width: 800px;
}

.abe-banner-large {
    max-width: 1200px;
}

.abe-banner-full {
    width: 100%;
}

/* Efeitos adicionais */
.abe-banner-wrapper.fade-effect {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.abe-banner-wrapper.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.abe-banner-wrapper.border {
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

/* Para uso no Elementor - Corrigido para evitar exibição dupla */
.elementor-widget-abe_simple_banner .abe-banner-wrapper,
.elementor-loop-item .abe-banner-wrapper,
.elementor-carousel .abe-banner-wrapper,
.swiper-slide .abe-banner-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
}

.elementor-widget-abe_simple_banner .abe-banner-wrapper img,
.elementor-loop-item .abe-banner-wrapper img,
.elementor-carousel .abe-banner-wrapper img,
.swiper-slide .abe-banner-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transition: none !important;
}

/* Força o comportamento responsivo no Elementor */
.elementor-widget-abe_simple_banner .abe-banner-desktop,
.elementor-loop-item .abe-banner-desktop,
.elementor-carousel .abe-banner-desktop,
.swiper-slide .abe-banner-desktop {
    display: block !important;
}

.elementor-widget-abe_simple_banner .abe-banner-mobile,
.elementor-loop-item .abe-banner-mobile,
.elementor-carousel .abe-banner-mobile,
.swiper-slide .abe-banner-mobile {
    display: none !important;
}

/* Mobile apenas para 480px- */
@media (max-width: 480px) {
    .elementor-widget-abe_simple_banner .abe-banner-desktop,
    .elementor-loop-item .abe-banner-desktop,
    .elementor-carousel .abe-banner-desktop,
    .swiper-slide .abe-banner-desktop {
        display: none !important;
    }
    
    .elementor-widget-abe_simple_banner .abe-banner-mobile,
    .elementor-loop-item .abe-banner-mobile,
    .elementor-carousel .abe-banner-mobile,
    .swiper-slide .abe-banner-mobile {
        display: block !important;
    }
}

/* Lazy loading */
.abe-banner-wrapper img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

.abe-banner-wrapper img[loading="lazy"].loaded {
    opacity: 1;
}

/* Acessibilidade */
.abe-banner-wrapper:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .abe-banner-wrapper {
        break-inside: avoid;
    }
    
    .abe-banner-wrapper img {
        max-height: 300px;
        object-fit: contain;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .abe-banner-wrapper.border {
        border-color: #333;
    }
    
    .abe-banner-wrapper.shadow {
        box-shadow: 0 4px 8px rgba(255,255,255,0.1);
    }
}