.oerv-cards-heading{
    padding-bottom: 20px;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--global-palette3);
}

.oerv-cards-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(max(160px, calc((100% - 3*20px)/4)), calc((100% - 20px)/2)), 1fr));
    /* grid-template-columns: repeat(auto-fill, minmax(min(max(160px, 18%), 45%), 1fr)); */
    gap:20px;
    width: 100%;
    padding-bottom: 30px;
}
@media (width <= 767px) {
    .oerv-cards-container {
        --oerv-cards-note-height: 200px;
    }
}
@media (width > 767px) {
    .oerv-cards-container {
        --oerv-cards-note-height: 300px;
    }
}

.oerv-cards-note{
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    background-position: center top;
    background-size: cover;
    height: var(--oerv-cards-note-height);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* Mobile default */
.oerv-cards-note.active{
    transform: scale(1.1);
    .oerv-cards-text{
        max-height: 100%;
        transition: max-height 0.2s;
    }
}

/* Desktop only */
@media (hover: hover) and (pointer: fine) {
    .oerv-cards-note:hover{
        transform: scale(1.1);
        .oerv-cards-text{
            max-height: 100%;
            transition: max-height 0.2s;
        }
    }
}

.oerv-cards-name {
    text-align: center;
    padding: 2px 4px;
    background: var(--global-palette9);
    font-size: calc(1.1 * var(--global-font-size-small));
}

.oerv-cards-text{
    background: var(--global-palette9);
    transition: max-height 0.2s;
    max-height: 0px;
}

.oerv-cards-text p{
    font-size: calc(0.9 * var(--global-font-size-small));
    padding: 10px 10px;
    line-height: normal;
    border-top-width: 1px;
    border-top-color: var(--global-palette6);
    border-top-style: solid;
}