.bd-team {
    --gap: 1.25rem;
}

.bd-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(3*var(--gap));
}

.bd-team__grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bd-team__grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bd-team__grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bd-team__grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bd-team__grid.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bd-team__item {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bd-team__figure {
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    overflow: hidden;
}

.bd-team__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-team__img--placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e9e9e9 10px, #e9e9e9 20px);
}

.bd-team__content {
    padding: 1em 0 0 0;
}

.bd-team__name {
    text-align: left;
    margin-left: 0;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
    color: #ccd6cc;
    position: relative;
    padding-bottom: 27px;
    margin-bottom: 13.5px;
}

.bd-team__name::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0px;
    border-bottom: 1px #515b58 solid;
    width: 27px;
}

.bd-team__role {
    margin: 0 0 .75rem;
    color: #555;
}

.bd-team__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .25rem;
}

.bd-team__link {
    color: var(--body);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
    word-wrap: normal !important;
}

@media (max-width: 1024px) {
    .bd-team__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bd-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
   .bd-team__grid.cols-2 {
        grid-template-columns: 1fr;
    }
}