main {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.top-image {
    width: 100%;
    aspect-ratio: 1920/1010;
    background-position: center;
    background-size: cover;
}
.work-caption {
    display: grid;
    grid-template: '. title . categories' auto /
        120px 770px 1fr 175px;
    width: 1200px;
    margin-top: 6rem;
}
.work-caption>div {
    display: grid;
    align-items: center;
    border-bottom: 1px #e5e5e5 solid;
    padding-bottom: 0.6rem;
}
.work-caption>div:first-of-type {
    grid-area: title;
}
.work-caption>div:first-of-type>h1 {
    font-size: 1.3rem;
}
.work-caption>div:last-of-type {
    grid-area: categories;
}
.work-caption>div:last-of-type>div {
    display: grid;
    place-items: center right;
    grid-template-columns: 5rem 5rem;
    font-size: small;
    color: #a6a6a6;
    justify-content: space-between;
}
.work-caption>div:last-of-type>div>div {
    text-align: left;
    width: 5rem;
}

.work-section {
    width: 1200px;
}
.work-section>.text {
    display: grid;
    grid-template: '. text .' auto /
        120px 770px 1fr;
    margin-top: 3.5rem;
    line-height: 2rem;
    letter-spacing: 0.1rem;
}
.work-section>.text>div {
    grid-area: text;
    text-align: justify;
    text-justify: distribute;
}
.work-section>.image {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
}
.work-section>.image>img {
    aspect-ratio: 580/400;
    width: 580px;
}
@media screen and (max-width: 1250px) {
    .work-caption {
        grid-template:
            'title' auto
            'categories' auto /
            auto;
        max-width: 770px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 5vw 0 5vw;
    }
    .work-caption>div:first-of-type {
        border: none;
        padding-bottom: 0;
    }
    .work-caption>div:last-of-type>div {
        display: flex;
        justify-content: left;
        column-gap: 0.6rem;
    }
    .work-caption>div:last-of-type>div>div {
        width: auto;
    }

    .work-section {
        max-width: 770px;
        width: 100%;
    }
    .work-section>.text {
        grid-template: 'text' auto /
            auto;
        max-width: 770px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 5vw 0 5vw;
    }
    .work-section>.image {
        flex-direction: column;
        align-items: center;
        row-gap: 2rem;
    }
    .work-section>.image>img {
        aspect-ratio: 580/400;
        max-width: 600px;
        padding: 0 10px 0 10px;
        width: 100%;
        box-sizing: border-box;
    }
}

.view-all {
    margin: 8rem 0 8rem 0;
    border: #2a2a2a solid 1px;
    width: 15rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 1rem 2.5rem;
    font-size: small;
    font-weight: 500;
    color: #2a2a2a;
    text-decoration-line: none;
    transition: 0.3s;
}
.view-all:hover {
    background-color: #9b9b9b;
    border-color: #9b9b9b;
    color: white;
}
.view-all-eng {
    font-size: 1rem;
    letter-spacing: 0.1rem;
}
.view-all-chevron {
    position: relative;
    width: 4.2rem;
    height: 2.8rem;
}
.view-all-chevron svg {
    position: absolute;
    height: 100%;
    width: auto;
    transition: padding-left 0.3s;
}
.view-all:hover .view-all-chevron svg {
    padding-left: 1.4rem;
}
