.card-showcase-collapse {
  position: relative;
  background: $color-white;
  box-shadow: 0 0 0 1px $color-gray-10;
  padding: 32px;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  cursor: pointer;

  .card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    &:hover .card-body:before {
      bottom: 4px;
      transition: bottom 0.45s ease, opacity 0.45s ease .25s;
      opacity: 1;
    }

    .aws-member-image {
      margin: 0 auto; //center the rounded image
    }

    .aws-member-image {
      width: 96px; //following 8px grid
      height: 96px;
      overflow: hidden;
      border-radius: 100%; //to create a rounded image

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .card-body {
      padding:32px 0 0;

      &::before { //the arrow that shows on hover
        content: "";
        width: 22px;
        height: 22px;
        position: absolute;
        display: block;
        left: calc(50% - 10px);
        bottom: -20px;
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMjkgMTI5IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjkgMTI5IiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiI+PGc+PGc+CiAgICA8cGF0aCBkPSJtMTIxLjMsMzQuNmMtMS42LTEuNi00LjItMS42LTUuOCwwbC01MSw1MS4xLTUxLjEtNTEuMWMtMS42LTEuNi00LjItMS42LTUuOCwwLTEuNiwxLjYtMS42LDQuMiAwLDUuOGw1My45LDUzLjljMC44LDAuOCAxLjgsMS4yIDIuOSwxLjIgMSwwIDIuMS0wLjQgMi45LTEuMmw1My45LTUzLjljMS43LTEuNiAxLjctNC4yIDAuMS01Ljh6IiBkYXRhLW9yaWdpbmFsPSIjMDAwMDAwIiBjbGFzcz0iYWN0aXZlLXBhdGgiIHN0eWxlPSJmaWxsOiNGRkZGRkYiIGRhdGEtb2xkX2NvbG9yPSIjZmZmZmZmIj48L3BhdGg+CiAgPC9nPjwvZz4gPC9zdmc+) no-repeat;
        background-size: contain;
        filter: brightness(0.6);
        opacity: 0;
        transition: opacity 0.45s ease, bottom 0.45s ease .25s;
      }
    }
  }
}

.team-showcase-member.active { //style changes when card is opened

  .card-showcase-collapse {
    z-index:1; //to show the arrow over the panel

    &:after { //show the white down arrow for the active card
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 16px 16px 0 16px;
      border-color: #fff transparent transparent transparent;
    }
  }
}