/* WORK */
.work {}

.work__inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 77%;
    margin: 7em auto 4em auto;
}

.work__top-image {
    width: 100%;
    aspect-ratio: 2/1;
}

.work__top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work__wrapper {
    margin: 1em auto 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.work__information{
    width: 64%;
}

.work__detail-nav-text-box {
    margin-top: 0.3em;
    margin-bottom: 0.5em;
    line-height: 1;
    padding: 0.1em 0.3em 0 0.3em;
    width: fit-content;
    height: fit-content;
    color: var(--text-color);
    background-color:var(--background-base);
    border: 2px solid var(--text-color);
    font-weight: 300;
}

.work__slice{
    top: 0%;
    right: 0%;
    transform: translate(-50%,-50%);
    z-index: -1;
}

.work__detail-text {
    color: var(--background-base);
    background-color: var(--text-color);
    display: inline;
    letter-spacing: 0.1em;
    line-height: 1.3;
    padding: 0 0.1em;
}

.work__sub-title{
    margin-top: 1.5em;
    line-height: 1.7;
}

.work__text {
    margin-top: 0.5em;
    line-height: 1.7;
}

.work__detail-image-wrap{
    width: 24%;
    display: flex;
    flex-direction: column;
    row-gap: 1.5em;
}

.work__detail-image {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 2px solid var(--text-color);
}

.work__detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work__btn {
    margin: 5em auto 0 auto;
}

@media (max-width: 767px) {
    .work__inner {
        width: 90%;
        margin: 7em auto 5em auto;
        flex-direction: column;
    }

    .work__slice{
        width: 30%;
        top: 0%;
        right: 0%;
        transform: translate(0%,-50%);
        z-index: -1;
    }

    .work__wrapper {
        margin: 1em auto 0 0;
        display: flex;
        flex-direction: column;
        justify-content: left;
        align-items: flex-start;
        row-gap: 3em;
    }

    .work__information{
        width: 100%;
    }

    .work__detail-image-wrap{
        width: 100%;
    }

}