      
/* Team images */
        .card {
    position: relative;
            /*display: flex;
            flex-direction: row;*/
            /*display: inline-block;*/
             max-width: 340px;
    max-height: 340px;
            /*max-height: 380px;
    max-width: 380px;*/
            height: auto;
            margin-left: 6vw; margin-left: 3rem;
            /*align-self: flex-end;*/
            /*background-color: aqua;*/
}

@media screen and (min-width: 1600px) {
  
                   
              .card {
   
    max-width: 400px; /*width: 340px;*/
            height: auto;
                  margin-left: 6vw; margin-left: 120px; margin-left: 4rem;
            /*align-self: flex-end;*/
           
       
}
        
}

@media only screen and (max-width: 414px) {
      
    .card {
          margin-left: 6vw;
          margin-left: 0;
    }
              
     h4.content-h4 {
    align-self: flex-end;  /*align-self: flex-start; */
    padding-right: 3vw;padding-right: 0;
    /*background-color: pink;*/
}
   
  }
        
          @media only screen and (max-width: 767px) and (orientation:landscape) {
              .card figure img {
    display: none!important;
        }
              
              /* .content-wrapper2 {
             background-color: hotpink;
    
        }  */
        }

.cardMax {
    max-width: 340px;
    max-height: 340px;
}

.flex-grid.flex-wrap-onmobile .card {
    margin-bottom: 30px;
}
@media screen and (min-width: 768px) {
    .flex-grid.flex-wrap-onmobile .card {
        margin-bottom: 0;
    }
}

.card figure {
    margin: 0;
    float: left;
}

.card figure a {
    text-decoration: none;
}

.card figure.intrinsic {
    position: relative;
    width: 100%; /*max-width: 300px;*/
    height: 0;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card figure.intrinsic.square-to-round {
    padding-bottom: 100%;
    -webkit-transition: border-radius 250ms ease;
    transition: border-radius 250ms ease;
}

/*.card:hover figure.intrinsic.square-to-round {
    -webkit-border-radius: 50%;
    border-radius: 50%;
}*/

.card figure img {
    width: 100%; width: 30vw;
    /*max-width: 50vw;*/
    height: auto;
    display: block;
}

        @media screen and (min-width: 768px) {
   .card figure img {
       width: 100%;width: 70vw;
    height: auto;
    display: block;
        }
}

.card figure.intrinsic.square-to-round img {
    position: absolute;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: opacity 500ms ease;
    transition: opacity 500ms ease;
}

.card figure.intrinsic.round-to-square {
    padding-bottom: 100%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-transition: border-radius 250ms ease;
    transition: border-radius 250ms ease;
}

/*.card:hover figure.intrinsic.round-to-square {
    -webkit-border-radius: 0%;
    border-radius: 0%;
}*/

.card figure.intrinsic.round-to-square img {
    position: absolute;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: opacity 500ms ease;
    transition: opacity 500ms ease;
}

.card figure.intrinsic.round, .card figure.intrinsic.round-to-square {
    padding-bottom: 100%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-transition: border-radius 250ms ease;
    transition: border-radius 250ms ease;
}

/*.card:hover figure.intrinsic.round-to-square {
    -webkit-border-radius: 0%;
    border-radius: 0%;
}*/

.card figure.intrinsic.round img {
    position: absolute;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: opacity 500ms ease;
    transition: opacity 500ms ease;
}

.card figure.intrinsic.round .foreground {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
}

/*.card .text {
    position: relative;
}

.card .figcaption {
    position: relative;
    margin-top: 20px;
}*/

.card .figcaption h5 {
    margin: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.card .figcaption h4 {
    margin: 0;
}

.card .figcaption h3 {
    margin: 0;
}

.card .figcaption a,
.card .text a,
.text a {
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(to right, rgb(0,0,0), rgb(0,0,0) );
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 1px;
    -webkit-transition: background-size 500ms cubic-bezier(.54,.57,0,.96), color 500ms ease;
    transition: background-size 500ms cubic-bezier(.54,.57,0,.96), color 500ms ease;
}
/*.card:hover .figcaption h3 a,
.card:hover .figcaption h4 a,
.card:hover .text a,
.text:hover a {
    background-size: 100% 1px;
    color: rgb(0,0,0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}*/

.card .text h4:first-child {
    margin-top: 0px;
    margin-bottom: 0;
    float: right;
}
.card .text h4 + h4 {
    margin-top: 5px;
}
.card .text h5:first-child {
    margin-top: 20px;
    margin-bottom: 0;
}
.card .text h5 + h5,
.card .text h5 + h4 {
    margin-top: 5px;
}
