main {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.main-left {
    width: 800px;
    display: flex;
    flex-direction: column;
}

.main-right {
    width: calc((var(--all-width) - 800px) - 40px);
    flex: 1;
    position: sticky;
    top: 80px;
    margin-bottom: auto;
}

main h2 {
    color: #333;
    font-size: 38px;
    /* text-align: center; */
    margin-bottom: 20px;
}

.list {
    margin-bottom: 20px;
}

.big-box {
    display: flex;
    flex-wrap: wrap;
}

.waterfall {
    column-count: 3;
    gap: 20px;
}

.two-box {
    display: inline-block;
    break-inside: avoid;
}

.two-box .img {
    border-radius: 10px;
    overflow: hidden;
    transition: transform .7s cubic-bezier(.2, 1, .22, 1), box-shadow .7s cubic-bezier(.2, 1, .22, 1), opacity .55s ease .25s;
}

.two-box:hover .img {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .17);
}

.two-box .two-text {
    margin-top: 20px;
    color: #333;
}

.two-text h3 {
    font-size: 27px;
    font-weight: 400;
    margin-bottom: 14px;
}

.two-text p {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 350;
}

.three-box {
    display: flex;
}

.three-box .img-box {
    width: 30%;
    height: fit-content;
    max-width: 30%;
    min-width: 30%;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .7s cubic-bezier(.2, 1, .22, 1), box-shadow .7s cubic-bezier(.2, 1, .22, 1), opacity .55s ease .25s;
    margin-right: 10px;
}

.three-box:hover .img-box {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .17);
}

.three-box .img-box::before {
    padding-top: 100%;
}

.three-text {
    flex: 1;
    width: calc(100% - 30% - 10px);
    display: flex;
    flex-direction: column;
    color: #333;
    font-size: 14px;
    justify-content: space-around;
    color: #999;
    font-weight: 550;
}

.three-text h3,
.four-text h3 {
    font-weight: 450;
    color: #333;
}

.main-right .big-box {
    padding: 0 10px;
}

.four-box {
    width: 100%;
    margin-bottom: 25px;
}

.four-box .img-box {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.four-box .img-box::before {
    padding-top: 60%;
}

.four-text {
    display: flex;
    flex-direction: column;
    color: #999;
    gap: 8px;
    text-align: center;
}

@media screen and (min-width: 770px) {
    .two-box {
        width: 100%;
        margin-bottom: 40px;
    }

    .two-box:nth-of-type(3n) {
        margin-right: 0;
    }

    .three-box {
        width: calc((100% - 20px) / 2);
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .three-box:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 769px) {
    main {
        flex-direction: column;
        padding: 0 5px;
    }

    main h2 {
        font-size: 28px;
    }

    .main-left,
    .main-right {
        width: 100%;
    }

    .waterfall {
        column-count: 2;
        gap: 15px;
    }

    .two-box {
        margin-bottom: 20px;
    }

    .three-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .main-right .big-box {
        padding: 0;
    }

    .two-text h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .two-text p {
        font-size: 14px;
    }
}