﻿

.container_21 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
    grid-auto-rows: 200px;
    grid-auto-flow: row dense;
    grid-gap: 23px;
    justify-content: center;
    
}

.card-top_21, .card-right_21, .card-bottom_21, .card-left_21 {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
    border-radius: 95.2380952381px;
    box-shadow: 0px 6px 20px 8px rgba(0, 10, 20, 0.2);
    background-color: white;
}

.card-top_21 {
    flex-direction: column;
    grid-column: auto / span 1;
    grid-row: auto / span 2;
}

.card-right_21 {
    flex-direction: row-reverse;
    grid-column: auto / span 2;
    grid-row: auto / span 1;
}

.card-bottom_21 {
    flex-direction: column-reverse;
    grid-column: auto / span 1;
    grid-row: auto / span 2;
}

.card-left_21 {
    flex-direction: row;
    grid-column: auto / span 2;
    grid-row: auto / span 1;
}

.card-image_21 {
    display: flex;
}

.card-top_21 .card-image_21, .card-bottom_21 .card-image_21 {
    height: 50%;
    width: 100%;
}

.card-left_21 .card-image_21, .card-right_21 .card-image_21 {
    height: 100%;
    width: 50%;
}

.card-image_21 img {
    width: 100%;
    object-fit: cover;
}

.card-top_21 img {
    border-radius: 95.2380952381px 95.2380952381px 0 0;
}

.card-right_21 img {
    border-radius: 0 95.2380952381px 95.2380952381px 0;
}

.card-bottom_21 img {
    border-radius: 0 0 95.2380952381px 95.2380952381px;
}

.card-left_21 img {
    border-radius: 95.2380952381px 0 0 95.2380952381px;
}

.card-text_21 {
    align-self: center;
    padding: 23px;
}

.card-top_21 .card-text_21 {
    height: auto;
    width: 80%;
    padding-bottom: 36.8px;
}

.card-right_21 .card-text_21 {
    height: auto;
    width: 50%;
    padding-left: 36.8px;
}

.card-bottom_21 .card-text_21 {
    height: auto;
    width: 80%;
    padding-top: 36.8px;
}

.card-left_21 .card-text_21 {
    height: auto;
    width: 50%;
    padding-right: 36.8px;
}

.card-text_21 p {
    margin: 0;
    line-height: 1.35em;
    color: #345;
}

@media (max-width: 500px) {
    .card-top_21 {
        flex-direction: row;
        grid-column: auto / span 2;
        grid-row: auto / span 1;
    }

    .card-bottom_21 {
        flex-direction: row-reverse;
        grid-column: auto / span 2;
        grid-row: auto / span 1;
    }

        .card-top_21 .card-image_21, .card-bottom_21 .card-image_21 {
            height: 100%;
            width: 50%;
        }

    .card-top_21 img {
        border-radius: 95.2380952381px 0 0 95.2380952381px;
    }

    .card-bottom_21 img {
        border-radius: 0 95.2380952381px 95.2380952381px 0;
    }

    .card-top_21 .card-text {
        height: auto;
        width: 50%;
        padding-right: 36.8px;
    }

    .card-bottom_21 .card-text {
        height: auto;
        width: 50%;
        padding-left: 36.8px;
    }
}

@media (max-width: 400px) {
    .card-image_21 {
        width: 38% !important;
    }

    .card-text_21 {
        width: 62% !important;
    }
}
