.post-summary {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #E1E1DF;
    position: relative;
    min-height: 100%;
    transition: box-shadow 0.3s ease-out;
}
.post-summary:hover {
    transition: box-shadow 0.3s ease-out!important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.post-summary__cat {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    padding: 9px 8px;
    border-radius: 3px;
    background: var(--wp--preset--color--blue-500);
    color: #FFF;
}
.post-summary__cat--alt {
    background: #EBEEFF;
    color: var(--wp--preset--color--blue-500);
}
.post-summary__image {
    aspect-ratio: 410/204;
    background: #F1F3F7;
}
.post-summary__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-summary__content {
    padding: 24px 24px 32px;
    display: grid;
    grid-template-columns: 1fr repeat(2, 44px);
    grid-template-rows: 1fr 44px;
    grid-column-gap: 8px;
    grid-row-gap: 24px;
    align-items: center;
    flex: 1 1 auto;
}

.post-summary__title {
    position: relative;
    grid-column-start: span 3;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #F6F6F6;
    align-self: stretch;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 71px;
}
/* hide remaining text we can't hide due to the padding */
.post-summary__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 17px;
    background: #FFF;
}
.post-summary__date {
    grid-column-start: 1;
    grid-row-start: 2;
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--wp--preset--color--golden);
    flex: 1 1 auto;
}
.post-summary__download,
.post-summary__permalink {
    position: relative;
    z-index: 1;
    grid-column-start: 3;
    grid-row-start: 2;
    width: 44px;
    height: 44px;
    border: 1px solid #E1E1DF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-out;
}
.post-summary__download:has(+.post-summary__permalink) {
    grid-column-start: 2;
}
.post-summary__download:hover,
.post-summary__download:focus {
    background: var(--wp--preset--color--golden);
    border-color: var(--wp--preset--color--golden);
    color: #FFF;
}
.post-summary__permalink:hover,
.post-summary__permalink:focus {
    background: var(--wp--preset--color--blue-700);
    border-color: var(--wp--preset--color--blue-700);
    color: #FFF;
}
.post-summary__download {
    color: var(--wp--preset--color--golden);
}
.post-summary__permalink {
    color: var(--wp--preset--color--blue-600);
}
.post-summary__content > .post-summary__cat {
    display: none;
}
.post-summary__full-block-link {
    position: absolute;
    inset: 0;
    opacity: 0;
}
@media screen and (max-width: 991px) {
    .post-summary > .post-summary__cat {
        display: none;
    }
    .post-summary__content > .post-summary__cat {
        display: block;
        position: static;
        align-self: flex-end;
        padding: 8px;
        font-size: 0.75rem;
    }
    .post-summary__image {
        display: none;
    }


    .post-summary__content {
        grid-template-columns: fit-content(73px) repeat(3, 1fr) 44px;
        grid-template-rows: 64px 44px;
        row-gap: 0;
        column-gap: 24px;
        height: 159px;
    }
    .post-summary__title { grid-area: 1 / 1 / 2 / 5; }
    .post-summary__cat { grid-area: 2 / 1 / 3 / 2; }
    .post-summary__date { grid-area: 2 / 2 / 3 / 5; }
    .post-summary__download,
    .post-summary__permalink { grid-area: 2 / 5 / 3 / 6; align-self: flex-start; margin-top: 4px;}
    .post-summary__download:has(+.post-summary__permalink) { grid-area: 1 / 5 / 2 / 6; align-self: flex-end; margin-bottom: 4px; }

    .post-summary__title {
        align-self: stretch;
        padding-bottom: 0;
        height: auto;
    }
    .post-summary__title::after {
        height: 12px;
    }

    .post-summary__date {
        padding-bottom: 6px;
        align-self: flex-end;
        margin-left: -16px;
    }
}
@media screen and (max-width: 767px) {
    .post-summary__content {
        grid-template-rows: 59px 44px;
        height: 154px;
    }
}

@media screen and (max-width: 359px) {
    .post-summary__date {
        font-size: 0.75rem;
        padding-bottom: 8px;
    }
}

