/**
*
*  c40
*  2, 3, or 4  images
*
**/

/*======= 320  padding l,r  15  = 290 ===*/

.c40 {
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 1.5em;

}

.c40.bottomLine::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 82.959%;
    /*10 grid elements*/
    height: 1px;
    border-bottom: solid 1px var(--colored-line);
}

.c40.ltr.bottomLine::after {
    left: 0;
}

.c40.rtl.bottomLine::after {
    right: 0;
}

.c40 h2 {
    margin-bottom: 1.5em;
}

.c40 img {
    width: 100%;
    height: auto;
}

.c40 figure {
    margin-bottom: 1.5em;
}



/*======= 576 ========= MEDIA QUERIES ======= border 15 = 546 ===*/

@media only screen and (min-width: 576px) {

    .c40 .imageRow {
        padding: 0 20%;
    }

}

/*======= 768 ========= MEDIA QUERIES ======= border 15 = 738 ===*/

@media only screen and (min-width: 768px) {
    .c40 {
        margin-bottom: 3em;
    }

    .c40 .imageRow {
        padding: 0;
    }

    .c40 .layout1 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 30px;
    }

    .c40 .layout2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
    }

    .c40 .layout2 figure:nth-child(n+3) {
        display: none;
    }

    .c40 .layout3 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 30px;
    }

    .c40 .layout3 figure:first-child {
        grid-column: span 2;
    }

    .c40 .layout3 figure:nth-child(n+2) {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .c40 .layout3 figure:nth-child(n+2) img {
        flex: 1 1 0;
        min-height: 0;
        object-fit: cover;
    }

    .c40 .layout3 figure:nth-child(n+4) {
        display: none;
    }

    .c40 .layout4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 30px;
    }

    .c40 .layout4 figure:nth-child(3) {
        grid-column: span 2;
    }

    .c40 .layout4 figure:nth-child(-n+2) {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .c40 .layout4 figure:nth-child(-n+2) img {
        flex: 1 1 0;
        min-height: 0;
        object-fit: cover;
    }

    .c40 .layout4 figure:nth-child(n+4) {
        display: none;
    }

    .c40 h2 {
        font-size: 40px;
        margin-top: 1em;
        margin-bottom: 1em;
    }

}

/*======= 990 ======== MEDIA QUERIES ======== border 15 = 960 ===*/

@media only screen and (min-width: 990px) {}

/*======= 1398 ======= MEDIA QUERIES ======== border 30 = 1338 ==*/

@media only screen and (min-width: 1398px) {
    .c40.bottomLine::after {
        width: calc(((100vw - 1338px) / 2) + 1110px);
        /*10 grid elements*/
    }

}

/*======= 2512 ======= MEDIA QUERIES ==== border 151-45 = 2396 ==*/

@media only screen and (min-width: 2512px) {}

/*END-c40*/