.paragraph--type--bp-view:has(.library-highlights),
.paragraph--type--bp-view:has(.library-highlights) > .paragraph__column {
    margin-block: 0;
    padding-block: 0;
}

.library-highlights {
    position: relative;
    isolation: isolate;
    width: 100cqw;
    margin-inline: calc((100% - 100cqw) / 2);
    padding: var(--section-space) var(--page-gutter-width);
    background: var(--tertiary);
    color: #000;
}

.library-highlights::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/background-texture-grid.jpg') center / cover no-repeat;
    mix-blend-mode: soft-light;
    opacity: .5;
    pointer-events: none;
}

.library-highlights > * {
    position: relative;
    z-index: 1;
}

.library-highlights .view-header {
    max-width: clamp(320px, 46.3vw, 800px);
    margin: 0 auto clamp(48px, 8.33vw, 144px);
    text-align: center;
}

.library-highlights .view-header p {
    max-width: none;
}

.library-highlights .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 2.31vw, 40px);
}

.library-highlights .views-row {
    display: flex;
    min-width: 0;
}

.event-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    font-family: var(--font-heading);
    font-size: var(--text-body);
    line-height: 1.2;
    letter-spacing: .02em;
}

.event-card .event-card__title {
    display: grid;
    place-items: center;
    min-height: clamp(80px, 6.25vw, 108px);
    margin: 0;
    padding: 20px 16px;
    background: color-mix(in srgb, var(--tertiary) 40%, #fff);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.event-card__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 174 / 127;
    object-fit: cover;
}

.event-card__image .field {
    margin: 0;
}

.event-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px clamp(20px, 2.08vw, 36px) 28px;
}

.event-card__description p {
    margin: 0 0 24px;
    font: inherit;
    letter-spacing: inherit;
}

.event-card__link {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--primary);
}

.event-card__link a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.event-card__link a::after {
    content: '';
    flex: 0 0 auto;
    border-block: 9px solid transparent;
    border-left: 16px solid #6596bf;
}

.event-card__link a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .library-highlights .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .library-highlights .view-content {
        grid-template-columns: minmax(0, 1fr);
    }
}
