/*
 * zivag/partners - a row of partner logos.
 *
 * The logos used to be one exported PNG, so they could not reflow, carry an
 * alt text or be swapped without the drawing file. Each logo is now its own
 * file, six of them vector. They come in very different proportions, so the
 * row caps height and width together: a tall mark is held by its height, a
 * long wordmark by its width, and none of them dominates the line.
 */

.section-partners {
    padding-top: 4vw;
    padding-bottom: 4vw;
}

.section-partners h2 {
    margin-bottom: 1rem;
}

/* The reading line stays short even when the logo row runs wide. */
.partners-intro {
    max-width: 46rem;
    margin: 0 auto 4rem;
    font-weight: 300;
    text-align: center;
}

.partners-intro p:last-child {
    margin-bottom: 0;
}

/* Quarter-width cells cap the line at four logos; a short last line still
   centres, because the cells are centred rather than stretched. */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 3.5rem;
}

.partners-logo {
    flex: 0 0 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.75rem;
}

.partners-logo a {
    display: block;
    transition: var(--trans, all .3s ease-in-out);
}

.partners-logo a:hover {
    opacity: .6;
}

.partners-logos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 136px;
    max-height: 38px;
}

@media screen and (max-width: 991.98px) {
    .partners-logos {
        row-gap: 2.75rem;
    }

    .partners-logo {
        padding: 0 1.25rem;
    }

    .partners-logos img {
        max-width: 120px;
        max-height: 35px;
    }
}

@media screen and (max-width: 575.9px) {
    .section-partners {
        padding-top: 15vw;
        padding-bottom: 15vw;
    }

    .section-partners.normal,
    .section-partners.bck-grey-set {
        padding-left: 15px;
        padding-right: 15px;
    }

    .partners-intro {
        margin-bottom: 3rem;
    }

    .partners-logos {
        row-gap: 2.25rem;
    }

    /* Four quarter-width cells leave too little room on a phone. */
    .partners-logo {
        flex-basis: 50%;
        padding: 0 1rem;
    }

    .partners-logos img {
        max-width: 96px;
        max-height: 29px;
    }
}
