@charset "utf-8";

.event-latest,
.event-latest * {
    box-sizing: border-box;
}

.event-latest {
    width: 100%;
}

.event-latest__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-latest__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.event-latest__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: #111;
    text-decoration: none;
}

.event-latest__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f2f3f5;
}

.event-latest__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.event-latest__link:hover .event-latest__thumb img {
    transform: scale(1.035);
}

.event-latest__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #a6abb3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.event-latest__departments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    min-height: 24px;
    margin-top: 10px;
}

.event-latest__department {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 24px;
    padding: 0 8px;
    color: #fff;
    background: #15529b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.event-latest__department--cancer {
    background: #6a4eb5;
}

.event-latest__department--eye {
    background: #15529b;
}

.event-latest__department--pain {
    background: #bd5d39;
}

.event-latest__department--internal {
    background: #2e7e65;
}

.event-latest__subject {
    display: -webkit-box;
    overflow: hidden;
    width: 100%;
    margin-top: 11px;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.event-latest__date {
    display: block;
    width: 100%;
    margin-top: 5px;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}

.event-latest__ended {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    padding: 0 12px;
    color: #fff;
    background: rgba(0, 0, 0, .72);
    font-size: 13px;
    font-weight: 700;
    transform: translate(-50%, -50%);
}

.event-latest__item.is-ended .event-latest__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .22);
}

.event-latest__empty {
    margin: 0;
    padding: 35px 10px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 380px) {
    .event-latest__list {
        gap: 20px 8px;
    }

    .event-latest__department {
        min-width: 34px;
        height: 23px;
        padding: 0 7px;
        font-size: 12px;
    }

    .event-latest__subject {
        font-size: 17px;
    }

    .event-latest__date {
        font-size: 12px;
    }
}
