section {
    width: var(--all-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    height: 56vh;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
}

.ban-box {
    position: relative;
    overflow: hidden;
}

.ban-box:hover img {
    transform: scale(1.2);
}

.ban-box>img {
    z-index: 0;
    transition: .8s;
}

.ban-box>.ban-txt {
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2% 5%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.ban-title {
    width: 100%;
    font-size: var(--banner-title-size);
    font-weight: 700;
}

.ban-type {
    display: inline;
    font-size: var(--banner-type-size);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-ban {
    font-size: calc(var(--banner-title-size) * .6);
}

.ban-box:first-child {
    grid-column: 1 / 4;
    grid-row: 1 / end;
}

.ban-box:nth-child(2) {
    grid-column: 4 / end;
    grid-row: 1 / 6;
}

.ban-box:nth-child(3) {
    grid-column: 4 / 6;
    grid-row: 6 / end;
}

.ban-box:last-child {
    grid-column: 6 / end;
    grid-row: 6 / end;
}

@media (max-width:799px) {
    section {
        width: 98%;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .ban-box {
        width: 100%;
        position: relative;
        margin: 10px 0;
    }

    .ban-box::before {
        content: '';
        padding-top: 60%;
        display: block;
    }
}