.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    .team-member {
        cursor: pointer;

        @media (max-width: 768px) {
            grid-column: span 3;
        }

        .name {
            font-size: var(--wp--preset--font-size--large);
            font-weight: 600;
            margin-bottom: 0;
        }

        .title {
            font-size: var(--wp--preset--font-size--medium);
            margin-top: 0;
        }

        .profile {
            width: 100%;
            aspect-ratio: 1/1;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
            border-radius: 20px;

            .plus {
                position: absolute;
                top: 1.5rem;
                right: 1.5rem;

                img {
                    width: 33px;
                    height: 33px;
                }
            }

            .overlay {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: #dbe200;
                padding: 2rem;
                transition: top 0.3s ease-in-out;
                cursor: default;
                z-index: 3;

                &.active {
                    top: 0;
                    transition: top 0.3s ease-in-out;
                }

                .title {
                    margin-bottom: 2rem;
                }

                .linkedin {
                    position: absolute;
                    bottom: 2rem;
                    left: 2rem;

                    img {
                        width: 25px;
                        height: 25px;
                    }
                }

                .close {
                    position: absolute;
                    top: 2rem;
                    right: 2rem;
                    cursor: pointer;

                    img {
                        width: 40px;
                        height: 40px;
                    }
                }
            }
        }
    }
}