.study {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    column-gap: var(--spacing-16);
    padding: var(--spacing-16);
    max-width: 690px;
}

.study:hover {
    background-color: var(--color-bg-neutral-light);
}

.study[data-inverted='true'] {
    flex-direction: row-reverse;
}

.mobileDate {
    display: none;
}

.imagePart {
    display: flex;
    align-items: flex-start;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    width: 289px;
    height: 289px;
    background-size: cover;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-16);
}

.dataPart {
    display: flex;
    flex-direction: column;
}

.dataPartCompressed {
    padding: 4px 0;
}

.info {
    display: flex;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
}

.title {
    padding-right: var(--spacing-36);
}

.button {
    margin-top: auto;
}

.studyCompressed {
    padding: var(--spacing-8);
    max-width: 494px;
    width: 100%;
    min-width: 0;
    padding: 20px;
}

.imagePartCompressed {
    width: 120px;
    height: 120px;
    padding: var(--spacing-8);
}

.titleCompressed {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-lg);
    white-space: normal;
    padding-right: 0;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

.studyCompressed::before,
.studyCompressed::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1px;
    background-color: var(--border-color-light);
    z-index: 10;
}

.studyCompressed::before {
    top: 0;
}

.studyCompressed::after {
    bottom: 0;
}

.borderLeft,
.borderRight {
    width: 1px;
    position: absolute;
    top: 12px;
    bottom: 12px;
    background-color: var(--border-color-light);
    z-index: 10;
}

.borderLeft {
    left: 0;
}

.borderRight {
    right: 0;
}

@media (width <= 1380px) {
    .study {
        max-width: 600px;
    }

    .studyCompressed {
        max-width: 350px;
    }
}

@media (width <= 1200px) {
    .title {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .study {
        max-width: 500px;
    }

    .imagePart {
        width: 200px;
        height: 200px;
    }

    .imagePartCompressed {
        width: 100px;
        height: 100px;
    }

    .title {
        padding-right: 0;
    }

    .titleCompressed {
        padding-right: 0;
    }
}

@media (width <= 1000px) {
    .study {
        column-gap: var(--spacing-8);
        padding: var(--spacing-16) 0;
        flex-shrink: 1;
    }

    .imagePart {
        width: 164px;
        height: 164px;
    }

    .studyCompressed {
        padding: 12px 21px;
        max-width: 297px;
        width: 100%;
        min-width: 0;
    }

    .imagePartCompressed {
        width: 80px;
        height: 80px;
        padding: var(--spacing-8);
    }

    .titleCompressed {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-lg);
        white-space: normal;
        padding-right: 0;
        -webkit-line-clamp: 2;
    }
}

@media (width < 420px) {
    .studyCompressed {
        padding: 12px 8px;
    }

    .date {
        display: none;
    }
}
