.logbanner-logos-wrapper {
    width: 100%;
    margin: 20px 0;
}

.logbanner-logos-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.logbanner-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    border-radius: 8px;
    transition: opacity 0.5s ease;
    min-height: 120px;
}

.logbanner-logo-slot img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

/* Banners Section */
.logbanner-banners-wrapper {
    width: 100%;
    max-width: 1087px !important;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.logbanner-banners-container {
    width: 100%;
    position: relative;
    /* Force exact aspect ratio (244/1087 = 22.447%) via padding-bottom hack */
    /* This is the most robust way to prevent height collapse on all browsers */
    padding-bottom: 22.447% !important;
    height: 0 !important;
    min-height: 0 !important;
    background-color: transparent;
    overflow: hidden !important;
}

/* Removed complex @supports rules to ensure consistent behavior everywhere */

.logbanner-banner-slot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logbanner-banner-slot.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.logbanner-banner-slot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Ensures the whole image is visible without cropping */
    display: block;
    max-width: none !important; /* Prevent theme overrides */
    max-height: none !important; /* Prevent theme overrides */
}

@media (max-width: 768px) {
    .logbanner-logos-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .logbanner-logo-slot {
        padding: 8px;
        min-height: 100px;
    }
    
    .logbanner-logo-slot img {
        max-height: 80px;
    }
    
    /* Banners remain proportional due to padding-bottom hack */
    .logbanner-banners-wrapper {
        max-width: 100%;
        padding: 0; /* Remove side padding to let it span full width if needed */
    }
}
