@charset "UTF-8";

.article-img {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.article-img__caption {
    margin-top: 1rem;
    display: table-caption;
    caption-side: bottom;
    font-size: 1.4rem;
    text-align: center;
}

.c-img--s2 img {
    max-width: 170px;
    max-height: 260px;
    width: 100%;
}

.c-img--s3 img {
    max-width: 110px;
    max-height: 260px;
    width: 100%;
}

.c-img--m2 img {
    max-width: 320px;
    max-height: 205px;
    width: 100%;
}

.c-img--l2 img {
    max-width: 548px;
    max-height: 250px;
    width: 100%;
}

.article-grid-img {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    justify-content: center;
}

.article-grid-img__img {
    display: grid;
    justify-items: center;
    align-items: center;
    grid-auto-rows: 270px 50px;
    margin: 0;
}

@media screen and (max-width : 767px) {
    .c-img--m2 img {
        max-width: 100%;
        width: 350px;
    }

    .c-img--l2 img {
        max-width: 100%;
    }

    .c-img--s2 img {
        width: 200px;
    }

    .c-img--s3 img {
        width: 100px;
        max-height: 270px;
    }

    .article-grid-img {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (max-width: 419px) {
    .c-img--s2 img {
    max-height: 150px;
    width: 100px;
}

.c-img--s3 img {
    max-width: 67px;
    width: 100%;
    max-height: 150px;
}

.article-grid-img__img {
    grid-auto-rows: 170px 50px;
}
}

.l-img{
    flex-wrap: wrap;
}

figure{
    margin: 0;
}