* {
    margin: 0;
    padding:0 ;
}
.team {
    background:rgb(54, 43, 43);
    padding-top: 7rem;
    padding-bottom: 7rem;
    padding-left: 8rem;
    padding-right: 8rem;
    color: white;
    font-family: 'DM Mono', monospace;
}
.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(18rem,1fr));
    column-gap: 1rem;
    color: black;
}
.team-member {
    height: 60vh;
    color: white;
    position: relative;
    font-family: 'DM Mono', monospace;
}

 .team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    transition: 0.5s;
    opacity: 0; 
} 
.team-member > img {
    width: 100%;
    height: 100%;
    /* position: absolute; */
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
}
 .team-member:hover .team-text {
    transition: 0.8s ease-in;
    opacity: 1;
} 
 .team-member:hover::before {
    opacity: 1;
    transition: 0.8s ease-in;
} 
.team-member:hover .skill {
    opacity: 1;
    transition: 0.8s ease-in;
} 
.team-member .team-text {
    position: absolute;
    z-index: 2;
    color: #fff;
    margin-top: 1rem;
    line-height: 1.5rem;
    opacity: 0;
     transition: 0.8s ease-in; 
    top: 0;
    left: 0;
}
.team-member .skill {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    position: absolute;
    bottom: 0rem;
    left: 0;
    margin-bottom: 0;
    z-index: 2;
    opacity: 0;
}

.skill> p {
    margin: 0;
}
.team-member .skill >p:nth-child(1) {
    background: #DCDCDC
}
.team-member .skill >p:nth-child(2) {
    background: #696969
}
.team-member .skill >p:nth-child(3) {
    background: #708090;
}
.team-text > p,h2,small {
    margin: 2rem 1rem;
}
.team-text > h2 {
    font-size: 1rem;
    color:  #FFA500;
}
.team-text h2::before {
    content: '';
    width: 2.5rem;
    height: 0.1rem;
    background-color: gray;
    position: absolute;
    top: 20%;
}
.team-text small {
    font-size: 0.8rem;
}
.team-text .text {
    font-size: 0.8rem;
}
.team-text .icon {
    font-size: 1rem;
}
.team-text .icon a {
    color: white;
    margin: 0 1rem;
    padding: 0.3rem 0.45em;
    border: 0.7px solid transparent;
    border-radius: 50%;
    outline: none;
    transition: 300ms;
}
.team-text .icon a:hover {
    background:#FFA500 ;
}

.team > .p1 {
    color: #FFA500;
    margin-bottom: 1rem;
}

.team > h1 {
    margin-bottom: 1rem;
    position: relative;
}
.team > h1::before {
    content: '';
    width: 2.5rem;
    height: 0.1rem;
    background: gray;
    z-index: 5;
    position: absolute;
    top: 2rem;
}

.team >.p2 {
    margin-top: 2rem;
    margin-bottom: 6rem;
    color: rgb(179, 145, 145);
}

@media (max-width: 420px) {
    .team{
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
@media (max-width: 321px) {
    .team{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .team-text small {
        font-size: 0.7rem;
    }
    .team-text .text {
        font-size: 0.7rem;
    }
    .team-text .icon {
        font-size: 0.8rem;
    }

}