section {
    display: grid;
    gap: 16px;
    width: var(--all-width);
    margin: 0 auto;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(6, var(--grid-height));
    grid-template-areas:
        'c1 c1 c2 c2'
        'c1 c1 c2 c2'
        'c1 c1 c3 c3'
        'c1 c1 c3 c3'
        'c4 c4 c5 c5'
        'c4 c4 c5 c5'
    ;
}

section img {
    position: absolute;
    top: 0;
    height: 100%;
    transition: .3s;
}

.ban-box {
    position: relative;
    background-color: #000;
}

.ban-one {
    grid-area: c1;
}

.ban-two {
    grid-area: c2;
}

.ban-three {
    grid-area: c3;
}

.ban-four {
    grid-area: c4;
}

.ban-five {
    grid-area: c5;
}

.ban-box:hover img {
    opacity: .8;
}

.ban-text {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, .9) 100%);
    position: absolute;
    width: 100%;
    gap: 20px;
    bottom: 0;
    padding: 40px 20px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.ban-text * {
    font-family: "";
    color: #fff;
}

.ban-text .type {
    color: #0be6af;
    font-size: 14px;
    font-weight: 700;
}

.name {
    font-size: var(--ban-big-size);
    font-weight: 700;
    width: 70%;
    line-height: 1.1;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ban-one-text .text {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.ban-smal-text .name {
    font-size: var(--ban-sm-size);
    width: 100%;
    line-height: 1.2;
}

@media (max-width:799px) {
    section {
        grid-template-areas:
            'c1 c1'
            'c1 c1'
            'c2 c3'
            'c4 c5'
        ;
        gap: 10px;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(4, var(--grid-height));
    }

    .name {
        width: 100%;
        line-height: 1.2;
    }

    .ban-one-text .text {
        display: none;
    }

    .ban-smal-text {
        padding: 0 10px 10px;
    }

    .ban-text {
        gap: 8px !important;
    }

    .ban-text .type {
        font-size: 12px;
    }
}