/* The Startseite TV uses MultiTV rows instead of the catalog list wrapper. */
@media (max-width: 767.98px) {
    body.id-577 #startseite-inhalt > .grid-el > .container-fluid:has(> .row > :is(.col-sm-4, .col-sm-6) a.img-link > img.img-responsive) {
        padding-inline: 16px;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> :is(.col-sm-4, .col-sm-6) a.img-link > img.img-responsive) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        margin-inline: 0;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> :is(.col-sm-4, .col-sm-6) a.img-link > img.img-responsive)::before,
    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> :is(.col-sm-4, .col-sm-6) a.img-link > img.img-responsive)::after {
        display: none;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> :is(.col-sm-4, .col-sm-6) a.img-link > img.img-responsive) > div {
        min-width: 0;
        margin-inline: 0;
        padding-inline: 0;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> .col-sm-offset-2 a.img-link > img.img-responsive):has(> .col-sm-4 + .col-sm-4 a.img-link > img.img-responsive) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> .col-sm-offset-2 a.img-link > img.img-responsive) > .col-sm-4 > .spacer-150px {
        height: 36px;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> .col-sm-6 a.img-link > img.img-responsive) > .col-sm-3:not(:has(*)),
    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:has(> .col-sm-offset-2 a.img-link > img.img-responsive) > .col-sm-4 + .col-sm-4:not(:has(a.img-link > img.img-responsive)) {
        display: none;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row > .col-sm-6:has(a.img-link > img.img-responsive) {
        width: 90%;
        justify-self: center;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row:not(:has(> .col-sm-4 + .col-sm-4 a.img-link > img.img-responsive)) > .col-sm-4:has(a.img-link > img.img-responsive) {
        width: 60%;
        justify-self: center;
    }

    body.id-577 #startseite-inhalt > .grid-el:has(> .container-fluid > .row a.img-link > img.img-responsive)
        + .grid-el:has(> .container-fluid > .row a.img-link > img.img-responsive) > .container-fluid > .spacer-200px {
        height: 36px;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row > div:has(a.img-link > img.img-responsive) .text-cell {
        margin-inline: 0;
    }

    /* The existing image captions contain two blank, centered paragraphs before the link. */
    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row > div:has(a.img-link > img.img-responsive)
        .text-cell:has(> p:first-child + p + p:last-child > a[href]) > p:not(:last-child):not(:has(*)) {
        display: none;
    }

    body.id-577 #startseite-inhalt > .grid-el > .container-fluid > .row > div:has(a.img-link > img.img-responsive) .text-cell > p:has(> a[href]) {
        margin: 0;
        padding-top: 7px;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: .025em;
        text-align: center;
    }
}
