/*
Theme Name: Baskerville Child – VV Serooskerke
Template: baskerville
Version: 1.0.0
*/

/* Desktop: clublogo links, sponsorlogo's en ledenshop rechts. */
.header .header-inner:has(> .vv-header-logos) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.header .vv-header-logos + .blog-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

.header .vv-header-logos {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 14px;
    width: 100%;
    max-width: 640px;
}

.header .vv-header-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.header .vv-header-logos img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 90px;
}

/* Mobiel: clublogo bovenaan, vier logo's in twee rijen. */
@media (max-width: 800px) {
    .header .header-inner:has(> .vv-header-logos) {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 16px;
    }

    .header .vv-header-logos + .blog-title {
        text-align: center;
    }

    .header .vv-header-logos {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
        max-width: 340px;
    }

    .header .vv-header-logos img {
        max-height: 64px;
    }
}

.header div.header-inner.section-inner:has(> .vv-header-logos) {
    height: auto;
}

@media (max-width: 800px) {
    .header.section:has(.vv-header-logos) {
        padding: 24px 12px;
    }

    .header .vv-header-logos + .blog-title .logo {
        float: none !important;
    }
}

@media (max-width: 800px) {
    .header .vv-header-logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 320px;
    }

    .header .vv-header-logos img {
        max-height: 42px;
        max-width: 100%;
    }
}