.team-photo-card {}

.team-photo-card .container {
    max-width: 940px;
}

.team-photo-card__upper {
    text-align: center;
}

.team-photo-card__row {
    margin: 30px -10px -40px;
}

.team-photo-card__item {
    padding: 0 10px;
    margin-bottom: 40px;
}

.team-photo-card__title {
    font-size: 40px;
}

.team-photo-card__upper .line-separator {
    margin: 0 auto 20px;
    max-width: 500px;
}

.team-photo-card__image {
    position: relative;
    overflow: hidden;
}

.team-photo-card__image img {
    width: 100%;
    height: auto;
}

@media( min-width : 768px ) {
    .team-photo-card__image {
        position: relative;
        overflow: hidden;
        min-height: 420px;
        object-fit: cover;
    }

    .team-photo-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
}

@media( min-width : 1200px ) {
    .team-photo-card__image {
        min-height: 380px;
    }
}

.team-photo-card__box:hover .team-photo-card__floating {
    transform: translateZ(0);
    opacity: 1;
}

.team-photo-card__floating {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    transform: translateY(100%);
    transform-origin: bottom;
    opacity: 0;
    transition: transform 0.3s ease-in-out,
                opacity 0.3s ease-in-out;
}

.team-photo-card__floating p {
    font-size: 15px;
}

.team-photo-card__floating strong {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
}

.team-photo-card__content {
    margin-top: 15px;
}

.team-photo-card__content p {
    margin-bottom: 12px;
}

.team-photo-card__content p span {
    font-size: 17px;
}

.team-photo-card__socials {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.team-photo-card__socials li {
    display: inline-block;
    vertical-align: middle;
}

.team-photo-card__socials li:not(:last-child) {
    margin-right: 15px;
}

.team-photo-card__socials li a {
    width: 24px;
    display: block;
    position: relative;
}

@media (min-width: 1025px) {
    .team-photo-card__socials li a:before {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background-color: var(--color-blue);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: transform 0.3s ease-in-out;
    }

    .team-photo-card__socials li a:hover img {
        filter: brightness(0) invert(1);
    }

    .team-photo-card__socials li a:hover:before {
        transform: translate(-50%, -50%) scale(1);
    }
}

.team-photo-card__socials li a img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: brightness(1) invert(0);
    transition: filter 0.3s ease-in-out;
}