.bb-logos {
   
    ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        margin: 0;
    }

    figure  {
        height: 63px;
        max-width: 165px;
    }

    img {
        height: 100%;
        object-fit: contain;
    }

    input {
        display: none;

        &:checked {
            + label {
                &:before {
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: rgba(216, 214, 214, .9);
                    content: '';
                    display: inline-block;
                    z-index: 99;
                }
            }
            ~ .bb-logos-modal {
                display: block;
            }
        }
    }

    label {
        margin: 0;
    }

    a,
    a:link,
    a:visited {
        color: #fff;
        text-decoration: none;
    }

    a:hover {
        color: #424967;
    }
}

.bb-logos-modal {
    display: none;
    position: absolute;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: 736px;
    background-color: #EFF8FD;
    max-height: 100%;
    overflow: auto;
    z-index: 99;
    padding: 20px;
    box-shadow: 5px 3px 6px rgba(0,0,0,.30);
}

.bb-logos-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;

    svg {
        width: 16px;
        height: 16px;
        color: #424967;
    }
}

.bb-logos-modal__title {
    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
    margin-block: 15px;
}

.bb-logos-modal__action {
    margin-top: 30px;
    text-align: center;
}

.bb-logos-modal__link {
    text-align: center;
    font-family: 'Liebling';
    background-color: #424967;
    display: inline-block;
    font-size: 18px;
    line-height: 18px;
    padding: 13px 36px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #424967;
    border-radius: 10px;

    &:hover {
        background-color: #fff;
    }
}
 
.bb-logos__title {
    font-size: 16px;
    font-family: 'Liebling';
    font-weight: 700;
    text-transform: uppercase;
    color: #424967;
    margin-bottom: 0;
    line-height: 22px;
}
    
.bb-logos--type2 .bb-logos__title {
    position: relative;

    &:before {
        content: '';
        display: inline-block;
        position: absolute;
        bottom: 0;
        left: -24px;
        right: -24px;
        height: 1px;
        background-color: #000;
    }
}

.bb-logos--type2 ul {
    margin: 32px 0 0;
    gap: 62px;
}


.bb-logos--type1 {
    display: flex;
    align-items: center;
    padding: 40px 20px;
    gap: 24px;
    background-color: #fff;
    box-shadow: 5px 3px 6px rgba(0,0,0, .3);
    max-width: 884px;
    margin-inline: -24px;
    flex-direction: column;
    
    @media (width >= 768px) {
        padding-block: 12px;
        margin-inline: auto;
        flex-direction: row;
    }
    
    @media (width < 768px) {
        justify-content: center;
    }
    
    ul {
        gap: 20px;
        justify-content: center;
        
        @media (width < 768px) {
            flex-direction: column;
        }

    }
    
    .bb-logos__title {

        @media (width >= 768px) {
            width: 25%;
        }
    }
}

.bb-logos--type3 ul {
    margin: 0;
    justify-content: center;
}
