.works {
    margin: 3rem 0;

    .work {
        position: relative;
        width: 100%;
        /* box-shadow: .1rem .2rem .5rem #bbbbbb; */
        display: flex;
        column-gap: 1.5rem;
        margin: 3rem 0;

        .thumbnail {
            position: relative;
            overflow: hidden;
            flex-basis: 12rem;
            width: 12rem;
            height: 9rem;
            flex-shrink: 0;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .thumbnail::after {
            content: "";
            position: absolute;
            inset: 0;
            background: white;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .thumbnail:hover {
            transform: scale(1.05);
        }

        .thumbnail:hover::after {
            opacity: 0.2;
        }

        .title {
            padding: 1rem 0 .3rem;
            font-size: 1.2em;
            width: max-content;
            font-family: var(--title-font);
        }

        .title::after {
            content: "";
            display: block;
            width: calc(100% + 1rem);
            height: .4rem;
            clip-path: polygon(0 0, 100% 0%, calc(100% - .5rem) 100%, 0% 100%);
            background-color: #bbbbbb;
            margin: .3rem 0;
        }

        .overview {
            color: #3f3f3f;
            padding: .5rem 0;
        }
    }

}

@media (max-width: 768px) {
    .works {
        .work {
            flex-direction: column;
            align-items: center;
            text-align: left;
            margin-bottom: 5rem;

            .thumbnail {
                width: 90%;
                height: auto;
            }

            .text {
                width: 90%;

                .title {
                    max-width: 100%;
                }
            }
        }
    }
}