.w3media-experts-wrapper .experts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    font-size: 16px;
}

.w3media-experts-wrapper .experts-grid .expert-card {
    flex: 0 0 100%;
    max-width: calc(50% - 10px);
}

.w3media-experts-wrapper .experts-grid .expert-card .expert-card__name {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 700;
}

.w3media-experts-wrapper .experts-grid .expert-card .expert-card__media {
    position: relative;
    overflow: hidden;
}

.w3media-experts-wrapper .experts-grid .expert-card .expert-card__contacts {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
    gap: 5px;

    position: absolute;
    inset: auto 0 -100%;
    background-image: linear-gradient(transparent, var(--w3-secondary-color));
    padding: 1.5rem 10px;

    transition: var(--w3-transition);
}

.w3media-experts-wrapper .experts-grid .expert-card:hover .expert-card__contacts {
    inset: auto 0 0;
}

.w3media-experts-wrapper .experts-grid .expert-card .expert-card__contacts .expert-card__contact {
    width: 26px;
    aspect-ratio: 1;
    background-color: var(--w3-primary-color);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--w3-transition);
}

.w3media-experts-wrapper .experts-grid .expert-card .expert-card__contacts .expert-card__contact:hover {
    background-color: var(--w3-secondary-color);
}

.w3media-experts-wrapper .experts-grid .expert-card a {
    padding: 0 !important;
    display: block;
    width: 100%;
    color: var(--w3-white) !important;
}

@media (min-width: 578px) {
    .w3media-experts-wrapper .experts-grid .expert-card {
        max-width: 172px;
    }
}