body.npm-wp-home .npm-home-events--compact .npm-home-event-card {
    display: block;
    min-height: 0;
    border-radius: 8px;
    box-shadow: none;
}

body.npm-wp-home .npm-home-events--compact .npm-home-event-card-link {
    display: grid;
    grid-template-columns: clamp(108px, 14vw, 168px) minmax(0, 1fr);
    align-items: center;
    height: 100%;
    color: #102d33;
}

body.npm-wp-home .npm-home-events--compact .npm-home-event-card-link:focus-visible {
    outline-offset: -4px !important;
}

body.npm-wp-home .npm-home-events--compact .npm-home-compact-cover {
    position: relative;
    display: block;
    align-self: start;
    aspect-ratio: 1;
    background: #edf1f2;
}

body.npm-wp-home .npm-home-events--compact .npm-home-compact-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.npm-wp-home .npm-home-events--compact .npm-home-compact-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 14px clamp(14px, 1.8vw, 24px);
}

body.npm-wp-home .npm-home-events--compact .npm-home-compact-copy h3 {
    margin: 0;
    color: #102d33;
    font: 400 clamp(17px, 2vw, 24px)/1.17 'NPM Archivo', 'Arial Black', sans-serif;
    overflow-wrap: anywhere;
}

body.npm-wp-home .npm-home-events--compact .npm-home-compact-copy p {
    margin: 0;
    color: #4b6369;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.npm-wp-home .npm-home-events--compact .npm-home-event-card-link:hover h3 {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.npm-wp-home .npm-home-events--compact .npm-home-events-rotation {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    margin: -16px 0 4px auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f5f5;
    color: #005568;
    font: 800 16px/1 system-ui, sans-serif;
    cursor: pointer;
}

body.npm-wp-home .npm-home-events--compact .npm-home-events-rotation:not(:focus-visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

body.npm-wp-home .npm-home-events--compact .npm-home-event-rail {
    padding-block-end: 3px;
    scrollbar-width: none;
}

body.npm-wp-home .npm-home-events--compact .npm-home-event-rail::-webkit-scrollbar {
    display: none;
}

body.npm-wp-home .npm-home-events--compact .npm-home-events-rotation:hover { background: #ffde59; }
body.npm-wp-home .npm-home-events--compact .npm-home-events-rotation[hidden] { display: none; }

@media (max-width: 820px) {
    body.npm-wp-home .npm-home-events--compact .npm-home-event-rail {
        grid-auto-columns: 100%;
    }
}

@media (max-width: 520px) {
    body.npm-wp-home .npm-home-events--compact .npm-home-event-card-link {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-items: start;
    }

    body.npm-wp-home .npm-home-events--compact .npm-home-compact-copy {
        padding: 13px 14px 15px;
    }
}
