.crs-widget[hidden] { display: none; }
.crs-widget { margin: 12px 0 20px; }
.crs-widget .crs-heading {
    border-inline-start: 4px solid #2a6f9e;
    padding-inline-start: 10px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}
.crs-widget .crs-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media not all and (max-width: 767px) {
    .crs-widget.crs-count-3 li:nth-child(n+4),
    .crs-widget.crs-count-4 li:nth-child(n+5),
    .crs-widget.crs-count-5 li:nth-child(n+6),
    .crs-widget.crs-count-6 li:nth-child(n+7),
    .crs-widget.crs-count-7 li:nth-child(n+8),
    .crs-widget.crs-count-8 li:nth-child(n+9),
    .crs-widget.crs-count-9 li:nth-child(n+10) { display: none; }
    .crs-widget .crs-thumbnail { max-height: 260px; }
}
.crs-widget .crs-cards li { margin: 0; min-width: 0; }
.crs-widget .crs-cards a {
    display: block;
    min-height: 100%;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}
.crs-widget .crs-cards a:hover .crs-title,
.crs-widget .crs-cards a:focus-visible .crs-title { text-decoration: underline; }
.crs-widget .crs-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f3f3f3;
}
.crs-widget .crs-thumbnail img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
}
.crs-widget .crs-title {
    display: block;
    padding: 7px 8px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
@media (max-width: 767px) {
    .crs-widget .crs-cards li:nth-child(n+9) { display: none; }
}
