.team-widget-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.team-widget-item {
    width: calc((100% - 45px) / 4);
    box-sizing: border-box;
    text-align: center;
    position: relative;
    border: solid 1px #e6e6e6;
    padding: 15px;
}

.team-widget-images {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 550;
    overflow: hidden;
}

.team-widget-images img {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400 / 550;
}


.team-widget-image-1 {
    opacity: 1;
    z-index: 1;
}


.team-widget-image-2 {
    opacity: 0;
    z-index: 2;
}


.team-widget-item:hover .team-widget-image-1 {
    opacity: 0;
}

.team-widget-item:hover .team-widget-image-2 {
    opacity: 1;
}

.team-widget-description {
    margin-top: 1rem;
}

.team-widget-info {
    display: block;
    transition: opacity 0.8s ease;
}

.team-widget-info .team-widget-name{
    color:var(--the7-accent-color);
    font-weight:bold;

}

.team-widget-contact {
    display: none;
}

.team-widget-item:hover .team-widget-info {
    display: none;
}

.team-widget-item:hover .team-widget-contact {
    display: block;
}

.team-phone-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content:center;
    margin-top: 5px;
}

.team-phone-numbers > div {
    line-height: 1.4;
}

/* Responsive adjustments */


@media (max-width: 1024px) {
    .team-widget-item {
        width: calc((100% - 30px) / 3);
    }
}


@media (max-width: 880px) {
    .team-widget-item {
        width: calc((100% - 15px) / 2);
    }
}


@media (max-width: 767px) {
    .team-widget-item {
        width: 100%;
    }
}
