.pc-language-item {
    display: inline-flex !important;
    align-items: center;
    margin-left: 5px !important;
    padding: 0 !important;
}

.et-menu > li:not(.pc-language-item) + li.pc-language-item {
    margin-left: 12px !important;
}

.pc-language-item a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1 !important;
}

.pc-language-item img {
    display: block;
    width: 32px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

@media (min-width: 981px) {
    /* De headercorrectie trok de vlaggen in het desktop-footermenu omhoog en
     * de footer gaf ieder vlagitem de volle menubreedte. */
    .et-l--footer .pc-language-item {
        flex: 0 0 auto;
        width: auto !important;
    }

    .et-l--footer .pc-language-item img {
        transform: none;
    }
}

@media (max-width: 980px) {
    .pc-language-item {
        width: auto !important;
        margin: 8px 0 0 5% !important;
    }

    .pc-language-item + .pc-language-item {
        margin-left: 5px !important;
    }

    /* Receptkaarten houden op tablet drie smalle kolommen. Reserveer daar
     * vier tekstregels, zodat langere NL-, EN- en ES-titels binnen de kaart
     * blijven en de gridhoogte vóór de positionering correct wordt gemeten. */
    .wpupg-grid.wpupg-responsive-tablet .wpupg-template-custom-simple .wpupg-meta-container {
        height: auto;
        min-height: 94px;
    }

    .wpupg-grid.wpupg-responsive-tablet .wpupg-template-custom-simple .title-wrapper,
    .wpupg-grid.wpupg-responsive-tablet .wpupg-template-custom-simple .wpupg-item-title {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: manual;
        text-wrap: balance;
    }

    .wpupg-grid.wpupg-responsive-mobile .wpupg-template-custom-simple .wpupg-meta-container {
        height: auto;
        min-height: 125px;
    }

    .wpupg-grid.wpupg-responsive-mobile .wpupg-template-custom-simple .title-wrapper,
    .wpupg-grid.wpupg-responsive-mobile .wpupg-template-custom-simple .wpupg-item-title {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: manual;
        text-wrap: balance;
    }

    .wpupg-grid.wpupg-responsive-mobile .wpupg-template-custom-simple .wpupg-item-title {
        --pcpli-title-size: 18px;
        font-size: var(--pcpli-title-fit, var(--pcpli-title-size)) !important;
        line-height: 1.25;
    }

    .home-grid .wpupg-grid.wpupg-responsive-mobile .wpupg-template-custom-simple .wpupg-item-title {
        --pcpli-title-size: 20px;
    }

    .wpupg-grid:is(.wpupg-responsive-tablet, .wpupg-responsive-mobile) .wpupg-template-custom-simple .wpupg-meta-container {
        padding: 10px 8px;
    }

    .wpupg-grid.wpupg-responsive-tablet .wpupg-template-custom-simple .wpupg-item-title {
        --pcpli-title-size: 16px;
        font-size: var(--pcpli-title-fit, var(--pcpli-title-size)) !important;
    }

    .home-grid .wpupg-grid.wpupg-responsive-tablet .wpupg-template-custom-simple .wpupg-item-title {
        --pcpli-title-size: 20px;
    }
}
