/* Homepage specific modules and elements
   ========================================================================== */

/* Hero block
   ========================================================================== */

   .header--hero {
    display: grid;
    width: 100%;
    min-height: 380px;
    max-height: 450px;
    position: relative;
    grid-template-columns: 16px repeat(14, 1fr) 16px;
    grid-template-rows: 100px 1fr 30px;
    gap: var(--space-2xs);
}

.header--hero.has-video {
    max-height: none;
}

@media screen and (min-width: 768px) {
    .header--hero {
        grid-template-columns: 48px repeat(14, 1fr) 48px;
    }
}

.header--hero figure {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    position: relative;
    z-index: 0;
    background-color: var(--color-bg-light);
}

.video--container iframe {
    width: 100%;
    inset: 0;
    aspect-ratio: 16 / 9;
    /* margin-top: -60px; */
}

.video--container {
    grid-column: 1 / -1;
    grid-row: 1 / 4;
    position: relative;
    /* aspect-ratio: 16 / 7.5; */
    overflow: hidden;
    /* background-color: var(--color-bg-light); */
}

.header--hero img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.header--hero h1 {
    grid-column: 2 / -1;
    grid-row: 2;
    place-self: start;
    z-index: 2;
    font-size: var(--step-5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.header--hero .info {
    grid-column: 2 / 16;
    grid-row: 4;
    z-index: 2;

    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    justify-content: space-between;
}

.header--hero .hero-button {
    grid-column: 2 / 16;
    grid-row: 2;
    z-index: 10;

    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    justify-content: space-between;
    padding-block: var(--space-m);
}

@media screen and (min-width: 600px) {
    .header--hero .info {
        grid-column: 2 / 16;
        grid-row: 3;
    }

    .header--hero .hero-button {
        place-self: baseline self-end;
    }
}

.openingstijden {
    display: flex;
    flex-direction: column;
}

.openingstijden :is(p, span) {
    display: block;
}

span.vis--big {
    display: none;
}

@media screen and (min-width: 600px) {
    .openingstijden {
        flex-direction: row;
        gap: var(--space-3xs);
        color: black;
        font-size: var(--step-0);
        margin: 0 auto;
    }

    .openingstijden :is(p, span) {
        display: inline-flex;
    }

    span.vis--big {
        display: inline;
    }

}

.openingstijden span {
    font-family: var(--body);
    font-weight: 700;
    line-height: unset;
    margin-inline-end: var(--space-3xs);
}

.info .btn {
    align-self: self-start;
    color: white;
    padding-block: var(--space-s);
    padding-inline-start: var(--space-m);
    padding-inline-end: var(--space-l);
    font-size: var(--step-0);
    font-family: var(--header);
    background: url(../icons/chevron.svg) 92% center no-repeat, url(../vlakken/btn_vlak_1.svg) center center no-repeat;
    background-size: auto, cover;
    min-width: 19ch;
    /*max-height: 74px; /* Anders Flext 'ie all over the place */
    transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -webkit-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -moz-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -ms-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -o-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
}

.info .btn:hover {
    background: url(../icons/chevron.svg) 96% center no-repeat, url(../vlakken/btn_vlak_1.svg) center center no-repeat;
    background-size: auto, cover;
}

.hero-button .btn {
    /* color: black; */
    color: white;
    padding-block: var(--space-s);
    padding-inline-start: var(--space-xs);
    padding-inline-end: var(--space-l);
    font-size: var(--step-0);
    font-family: var(--body);
    font-weight: bold;
    /* background: url(../icons/chevron_zwart.svg) 92% center no-repeat, url(../vlakken/bg_lichtgroen.svg) center center no-repeat; */
    background: url(../icons/chevron.svg) 92% center no-repeat, url(../vlakken/bg_donkergroen.svg) center center no-repeat;
    background-size: auto, cover;
    min-width: 19ch;
    max-height: 74px; /* Anders Flext 'ie all over the place */
    transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -webkit-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -moz-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -ms-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -o-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
}

.hero-button .btn:hover {
    background: url(../icons/chevron.svg) 96% center no-repeat, url(../vlakken/bg_donkergroen.svg) center center no-repeat;
    background-size: auto, cover;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    color: white;
}

/* Subheader
   ========================================================================== */

.sub--header {
    display: grid;
    margin-block-start: var(--space-2xs);
    margin-block-end: var(--space-m);
    gap: var(--space-2xs);
    grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
}

.sub--header div:is(.educatie, .zakelijk) {
    display: grid;
    position: relative;
    background-color: var(--color-bg-light);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 200px;
    z-index: 0;
}

.sub--header span {
    place-self: center;
    color: white;
    font-family: var(--header);
    text-align: center;
    z-index: 2;
}

.sub--header h2 {
    font-size: var(--step-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sub--header a {
    font-size: var(--step-0);
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sub--header a:after {
    content: "";
    display: block;
    height: 5px;
    margin-block-start: 2px;
    background-image: url(../img/link_underline_1.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
}

.sub--header a:hover:after {
    background-image: url(../img/link_underline_1_wit.svg);
}

.sub--header .educatie {
    background-image: url(../img/educatie.webp);
}

.sub--header .zakelijk {
    background-image: url(../img/zakelijk.webp);
}

/* One Planet block
   ========================================================================== */

.one-planet--block {
    display: grid;
    grid-template-columns: 16px repeat(14, 1fr) 16px;
    grid-template-rows: 100px repeat(4, fit-content(40%)) 32px;
}

.one-planet--block .introduction {
    grid-column: 1 / 16;
    grid-row: 1 / 4;
    padding: 2rem;
    z-index: 2;
    background-image: url(../vlakken/bg_OP.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.one-planet--block h2 {
    font-size: var(--step-1);
    margin-block-end: 1rem;
}

.one-planet--block.introduction :is(h2, p, a) {
    color: black;
}

.one-planet--block .introduction p:where(:not(p:last-of-type)) {
    margin-bottom: 1rem;
}

.one-planet--block figure {
    display: none;
}

.one-planet--block a {
    color: white;
    text-decoration-color: currentColor;
    -moz-text-decoration-color: currentColor;
}

.one-planet--block a:is(:hover, :focus) {
    color: black;
}

.one-planet--block .btn {
    display: block;
    margin-block-start: var(--space-m);
    background-image: url(../vlakken/btn_vlak_wit.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: black;
    padding-block: var(--space-xs);
    margin-block-end: var(--space-s);
    text-align: center;
    font-family: var(--header);
    font-size: var(--step--1);
    transition: color 0.2s ease-in-out;
}

@media screen and (min-width: 620px) {
    .one-planet--block .introduction {
        grid-column: 2 / 7;
        grid-row: 1 / 7;
        padding: 2rem;
        z-index: 2;
        background-image: url(../vlakken/bg_OP.svg);
    }

    .one-planet--block figure {
        display: unset;
        grid-column: 6 / 16;
        grid-row: 2 / 6;
        z-index: 1;
    }

    .one-planet--block figure img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }
}

@media screen and (min-width: 1200px) {
    .one-planet--block figure img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
        max-height: 500px;
    }
}




/* Film overzicht
   ========================================================================== */

.films a {
    text-decoration: underline;
}

@media screen and (max-width: 420px) {

    .films tr {
        display: flex;
        flex-wrap: wrap;
    }

    .films td:is(.dagdeel, .link, .leeftijd, .beschikbaarheid) {
        display: none;
    }

    .films td.titel {
        order: 1;
        width: 100%;
    }

    .films td:not(.titel) {
        order: 2;
    }
}

.filmoverzicht--homepage h2 {
    font-size: var(--step-1);
}

.filmoverzicht--homepage .films {
    width: 100%;
    margin-block-start: var(--space-m);
    font-size: var(--step--1);
}

.filmoverzicht--homepage .films tr:not(.tussenkop):nth-child(odd) {
    background-image: url(../vlakken/bg_grey.svg);
    background-size: cover;
}

.filmoverzicht--homepage .films td {
    padding: var(--space-2xs);
}

.films td:is(.tijd) {
    width: 80px;
}

.films td:is(.titel) {
    font-weight: bold;
}

.films tr:is(.tussenkop) {
    font-weight: bold;
    font-size: var(--step-0);

}

@media screen and (max-width: 420px) {

    .films tr:is(.tussenkop) {
        font-size: var(--step-1);
    }
}

.status-beschikbaar {
    color: var(--donker-groen);
}

.status-beperkt {
    color: var(--oranje);
}

.status-vol {
    color: var(--color-primary);
}

.films a:is(:hover, :focus) {
    text-decoration: underline;
}

.films td.button-ticket {
    text-align: right;
    padding-block: var(--space-l);
    padding-inline-end: var(--space-3xl);
}

tr:has(.button-ticket) {
    background: none;
}

td.button-ticket .btn {
    align-self: flex-start;
    color: white;
    padding-block: var(--space-2xs);
    padding-inline-start: var(--space-xs);
    padding-inline-end: var(--space-l);
    font-size: var(--step-0);
    font-family: var(--body);
    background: url(../icons/chevron.svg) 92% center no-repeat, url(../vlakken/bg_donkergroen.svg) center center no-repeat;
    background-size: auto, cover;
    min-width: 19ch;
    max-height: 58px;
    margin-block: var(--space-s);
    transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -webkit-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -moz-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -ms-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
    -o-transition: all 0.2s cubic-bezier(0.15, 0.93, 0.57, 1.58);
}

/* Vandaag te zien block
   ========================================================================== */

.vandaag--block {
    display: grid;
    grid-template-columns: 16px repeat(14, 1fr) 16px;
    grid-template-rows: fit-content(40%);
    gap: var(--space-2xs);

    background-image: url(../vlakken/bg_grey.svg);
    background-size: 100% 100%;
}

@media screen and (min-width: 768px) {
    .vandaag--block {
        grid-template-columns: 48px repeat(14, 1fr) 48px;
    }
}

.card {
    grid-column: 2 / 16;

    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: 32px auto 32px;
}

.tab {
    grid-column: 8 / 16;
    grid-row: 2;
    z-index: 2;

    display: flex;
    flex-direction: column;
}

.tab h2 {
    margin-inline-start: var(--space-3xl);
    margin-block-end: var(--space-m);
    font-size: var(--step-1);
}

.tab button {
    position: unset;
    /*display: block;*/
    background-color: inherit;
    color: black;
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    z-index: 100;
    transition: 0.2s;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    -o-transition: 0.2s;
}

.tab button.active {
    background-image: url(../vlakken/bg_lichtgroen.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: unset;
}

.tab button:not(.active) {
    padding-inline-start: var(--space-3xl);
    background-image: url(../icons/chevron_left_rood.svg);
    background-repeat: no-repeat;
    background-position: 110px center;
}

.tab button:not(.active):hover {
    background-position: 105px center;
}

button.tablinks:not(.active) a {
    display: none;
}

button.tablinks:is(.active) a {
    display: inline-block;
    font-size: var(--step--1);
    margin-block-start: var(--space-2xs);
}

.tablinks a:after {
    content: "";
    display: block;
    height: 5px;
    margin-block-start: 2px;
    background-image: url(../img/link_underline_1.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
}

.tabcontent {
    display: block;
    grid-column: 1 / 9;
    grid-row: 2;
    z-index: 1;
}

.tabcontent figure {
    width: 100%;
    min-height: 100%;
    aspect-ratio: 4 / 2.5;
    overflow: hidden;
}

.tabcontent figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab button h3 {
    font-size: var(--step--1);
}

.tab button.active h3 {
    font-size: var(--step-0);
}

.tab button:not(.active) p {
    font-size: var(--step--3);
}

@media screen and (max-width: 768px) {

    .card {
        grid-column: 2 / 16;

        display: grid;
        grid-template-columns: repeat(14, 1fr);
        grid-template-rows: 32px auto 32px;
        position: relative;
    }

    .tab {
        grid-column: 1 / 16;
    }

    .tab h2 {
        margin-inline-start: 0;
    }

    .tab button.active {
        order: 1;
    }

    .tab button:not(.active) {
        order: 2;
        padding-inline-start: 0;
        background-image: none;
    }

    .tabcontent {
        grid-column: 1 / -1;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        z-index: 2;
        -webkit-transform: rotate(10deg);
        -moz-transform: rotate(10deg);
        -ms-transform: rotate(10deg);
        -o-transform: rotate(10deg);
        transform: rotate(10deg);

        -webkit-box-shadow: 10px 10px 17px -4px rgba(0,0,0,0.21);
        -moz-box-shadow: 10px 10px 17px -4px rgba(0,0,0,0.21);
        box-shadow: 10px 10px 17px -4px rgba(0,0,0,0.21);
}

    .tabcontent figure img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }

}

/* Collectie online block
   ========================================================================== */

.collectie-online--block {
    display: grid;
    grid-template-columns: 16px repeat(14, 1fr) 16px;
    grid-template-rows: fit-content(40%) fit-content(40%);
    gap: var(--space-2xs);
}

@media screen and (min-width: 768px) {
    .collectie-online--block {
        grid-template-columns: 48px repeat(14, 1fr) 48px;
    }
}

.voorwerp--block {
    grid-column: 2 / 16;
    grid-row: 3;
    margin-block: var(--space-m);
    padding: var(--space-m);
    background-color: var(--color-bg-light);
}

.collectie-online--block .text {
    margin-block-start: var(--space-l);
    grid-column: 2 / 15;
    grid-row: 2;
}

.collectie-online--block figure {
    grid-column: 1 / -1;
    grid-row: 2 / 4;
}

@media screen and (min-width: 715px) {
    .voorwerp--block {
        grid-column: 2 / 8;
    }
}

@media screen and (min-width: 920px) {
    .collectie-online--block {
        grid-template-rows: fit-content(40%);
    }

    .voorwerp--block {
        grid-column: 11 / 16;
        grid-row: 2;
    }

    .collectie-online--block .text {
        margin-block-start: var(--space-l);
        grid-column: 2 / 6;
        grid-row: 2;
    }

    .collectie-online--block figure {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.collectie-online--block > *:not(figure) {
    z-index: 2;
}

.block--header {
    grid-column: 2 / 15;
    grid-row: 1;

    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    justify-content: space-between;
    align-items: center;
    font-family: var(--header);
}

.block--footer {
    grid-column: 1 / 15;
    grid-row: 2;

    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    justify-content: space-between;
    align-items: center;
    font-family: var(--header);
}

.block--footer a {
    margin-inline-start: 1rem;
}

.collectie-online--block .text p {
    font-family: var(--header);
    font-size: var(--step-1);
    color: white;
}

.collectie-online--block .text a {
    display: inline-block;
    font-family: var(--header);
    font-size: var(--step-0);
    color: white;
    margin-block-start: var(--space-m);
}

.collectie-online--block .text a:after {
    content: "";
    display: block;
    height: 5px;
    margin-block-start: 2px;
    background-image: url(../img/link_underline_1.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
}

.collectie-online--block img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.voorwerp--block h3 {
    font-size: var(--step-0);
}

.voorwerp--block p {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.voorwerp--block .header {
    font-size: var(--step--1);
    margin-block-end: 0;
}

.voorwerp--block :is(h3, p, img) {
    margin-block-end: var(--space-s);
}

.voorwerp--block img {
    /* width: 100%; */
    width: auto;
    height: auto;
    max-height: 280px;
}

.voorwerp--block a {
    padding-block: var(--space-xs);
    padding-inline: var(--space-s);
    background-image: url(../vlakken/btn_vlak_1.svg);
    color: white;
    font-family: var(--header);
    font-size: var(--step--1);
}

/* MuseOnline block
   ========================================================================== */

.museonline--block {
    display: grid;
    grid-template-columns: 16px repeat(14, 1fr) 16px;
    grid-template-rows: fit-content(40%) 1fr 450px 1fr 32px;
    gap: var(--space-2xs);
}

@media screen and (min-width: 768px) {
    .museonline--block {
        grid-template-columns: 48px repeat(14, 1fr) 48px;
    }
}

.link--block {
    grid-column: 2 / 16;
    grid-row: 3 / 4;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 145px 145px 145px;
    gap: var(--space-3xs);
    grid-auto-flow: row;
    margin-block-start: var(--space-m);
}

.museonline--block > *:not(.bg) {
    z-index: 1;
}

.museonline--block .bg {
    grid-column: 1 / -1;
    grid-row: 2 / 5;
    background-color: var(--color-bg-light);
    z-index: 0;
}

.museonline--block .text {
    margin-block-start: var(--space-l);
    grid-column: 2 / 16;
    grid-row: 2;
}

.museonline--block .text p {
    font-family: var(--header);
    font-size: var(--step-1);
}

.museonline--block .text a {
    padding-inline: var(--space-s);
    padding-block: var(--space-xs);
    background-image: url(../vlakken/btn_vlak_2.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    align-self: center;
    color: white;
    font-family: var(--header);
    font-size: var(--step--1);
}

.museonline--block .text p:nth-child(2) {
    font-size: var(--step--1);
    font-family: var(--body);
    margin-block-start: var(--space-2xs);
    margin-block-end: var(--space-m);
}

.museonline--block .mini-text {
    grid-column: 2 / span 6;
    grid-row: 4;
    align-self: end;
    margin-block-end: var(--space-l);
}

.mini-text p {
    display: block;
    color: var(--color-primary);
    font-family: var(--header);
    font-size: var(--step--1);
}

.mini-text p + a {
    display: inline-block;
    font-size: var(--step-0);
}

.mini-text a:after {
    content: "";
    display: block;
    height: 5px;
    margin-block-start: 2px;
    background-image: url(../img/link_underline_2.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
}

.museonline--block .decoratie {
    grid-column: 7 / span 3;
    grid-row: 4 / 6;
    align-self: end;
}

.link--block div {
    position: relative;
}

.link--block div img {
    position: absolute;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
}

@media screen and (min-width: 830px) {
    .museonline--block {
        display: grid;
        grid-template-columns: 48px repeat(14, 1fr) 48px;
        grid-template-rows: fit-content(40%) 1fr 1fr 32px;
        gap: var(--space-2xs);
    }

    .museonline--block .text {
        margin-block-start: var(--space-l);
        grid-column: 2 / span 6;
        grid-row: 2;
    }

    .link--block {
        grid-column: 9 / 16;
        grid-row: 2 / 4;
        padding-block: var(--space-s);

        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 145px 145px 145px;
        gap: var(--space-3xs);
        grid-auto-flow: row;
        margin-block-start: unset;
    }

    .museonline--block .bg {
        grid-column: 1 / -1;
        grid-row: 2 / 4;
        background-color: var(--color-bg-light);
        z-index: 0;
    }

    .link--block div img {
        position: absolute;
        height: unset;
        width: 100%;
        object-fit: cover;
    }

    .museonline--block .mini-text {
        grid-column: 2 / span 3;
        grid-row: 3;
        align-self: end;
        margin-block-end: var(--space-l);
    }

    .museonline--block .decoratie {
        grid-column: 5 / span 2;
        grid-row: 3 / 5;
        align-self: end;
    }

    .link--block div img {
        position: absolute;
        height: unset;
        min-width: 100%;
        object-fit: cover;
    }
}

.link--block div:not(.titel--link) {
    display: grid;
    position: relative;
    overflow: hidden;
}

@media screen and (min-width: 1020px) {
    .link--block div:not(.titel--link) {
        display: grid;
        position: relative;
    }

    .link--block {
        grid-template-columns: minmax(200px, 270px) minmax(200px, 1fr);
        grid-template-rows: 1fr 1fr;
    }

    .link--block div:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .link--block div:not(:nth-child(1)) img {
        height: 100%;
        grid-row: 1 / 3;
        grid-column: 1 / -1;
    }

    .link--block div:nth-child(1) img {
        width: auto;
        min-height: 100%;
        object-fit: cover;
        grid-row: 1 / 3;
        grid-column: 1 / -1;
    }

    .museonline--block .decoratie {
        grid-column: 4 / span 2;
        grid-row: 3 / 6;
        align-self: end;
    }
}

.titel--link {
    display: grid;
    align-items: center;

    width: auto;
    max-width: 80%;
    padding: var(--space-xs);
    text-align: center;
    background-image: url(../vlakken/vlak_klein.svg);
    background-size: 100% 100%;
    place-self: center;
    z-index: 3;
}

.titel--link a {
    color: white;
    font-size: var(--step-0);
    font-family: var(--header);
}

/* Nieuws block
   ========================================================================== */

.nieuws--block {
    display: grid;
    grid-template-columns: 16px repeat(12, 1fr) 16px;
    grid-template-rows: fit-content(40%) 1fr fit-content(40%);
    gap: var(--space-2xs);
}

@media screen and (min-width: 768px) {
    .nieuws--block {
        grid-template-columns: 48px repeat(14, 1fr) 48px;
    }
}

.nieuws--block .container {
    grid-column: 1 / 17;
    grid-row: 1;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xs);
}

.bericht {
    display: flex;
    flex-direction: column;
    position: relative;
}

.bericht img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3.5 / 2;
    object-fit: cover;
    order: 1;
}

.bericht .text {
    order: 2;
    margin-inline: var(--space-2xs);
    padding: var(--space-xs);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-block-start: -2.4rem;
    font-family: var(--header);
}

.bericht p {
    font-size: var(--step-0);
    color: black;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.2s ease-in-out;
    -webkit-transition: color 0.2s ease-in-out;
    -moz-transition: color 0.2s ease-in-out;
    -ms-transition: color 0.2s ease-in-out;
    -o-transition: color 0.2s ease-in-out;
}

.bericht a:is(:hover, :focus) > p {
    color: black;
    text-decoration: underline;
}

.bericht .date {
    color: var(--donker-groen);
    font-family: var(--body);
    font-size: var(--step--1);
    font-weight: 700;
}

.bericht:nth-child(1) .text {
    background-image: url(../vlakken/bg_grey.svg);
}

.bericht:nth-child(2) .text {
    background-image: url(../vlakken/bg_grijs_1.svg);
}

.bericht:nth-child(3) .text {
    background-image: url(../vlakken/bg_grijs_2.svg);
}

.bericht:nth-child(4) .text {
    background-image: url(../vlakken/bg_grijs_3.svg);
}

.bericht .text:hover {
    cursor: pointer;
}

.bericht span:not(.date) {
    position: absolute;
    top: var(--space-3xs);
    left: var(--space-3xs);
    width: fit-content;
    padding: var(--space-3xs);
    background-image: url(../vlakken/bg_geel.svg);
    background-size: 100% 100%;
    color: black;
    font-family: var(--header);
}

/* Aankondiging
   ========================================================================== */

.aankondiging {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 320px);
    gap: var(--space-2xs);
    align-items: center;
    justify-items: center;
}

@media screen and (min-width: 768px) {
    .aankondiging {
        grid-template-rows: minmax(280px, 400px);
    }
}

.aankondiging figure {
    grid-column: 1 / 2;
    z-index: 1;
    grid-row: 1;
    background-color: var(--color-bg-light);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 21 / 6;
    overflow: hidden;
}

.aankondiging img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale();
    -webkit-filter: grayscale();
    mix-blend-mode: overlay;
}

.aankondiging .tekst {
    grid-column: 1 / -1;
    place-self: center;
    grid-row: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aankondiging .tekst p {
    text-transform: uppercase;
    font-family: var(--header);
    font-size: var(--step--1);
    color: var(--color-primary);
}

.aankondiging .tekst h4 {
    margin-block-end: var(--space-m);
    font-size: var(--step-3);
}

.aankondiging .tekst a.button {
    width: fit-content;
    max-width: unset;
}

/* Collectie en museeOnline block */

.collectie-musee--block {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(
        auto-fit,
        minmax(clamp((50% - var(--space-s)), (40rem - 100%) * 999, 100%), 1fr)
    );
    gap: var(--space-s);
}

.collectie-musee--block > div {
    display: flex;
    flex-direction: column;
}

.collectie-musee--block img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 2;
    object-fit: cover;
    z-index: 1;
    order: 1;
}

.collectie-musee--block .text {
    max-width: 80%;
    margin-inline: var(--space-2xs);
    padding: var(--space-xs);
    background-image: url(../vlakken/bg_grijs_1.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-block-start: -2.4rem;
    font-family: var(--header);
    order: 2;
    z-index: 2;
}

.collectie--block .text {
    background-image: url(../vlakken/bg_grey.svg);
}

.collectie-musee--block .text a {
    display: inline-block;
    margin-block-start: var(--space-xs);
    font-size: var(--step--1);
    transition: color 0.2s ease-in-out;
}

.collectie-musee--block .text a:is(:hover, :focus) {
    color: var(--color-primary);
}

.collectie-musee--block .text a:after {
    content: "";
    display: block;
    height: 5px;
    margin-block-start: 2px;
    background-image: url(../img/link_underline_1.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
}

.collectie-musee--block p:first-of-type {
    font-family: var(--header);
    font-size: var(--step-1);
}

.collectie-musee--block p {
    font-family: var(--body);
    font-size: var(--step--1);
}
