.project-group {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    padding: 50px 0 30px;
}

.proj-item {
  background-size:cover;
  position:relative;
    height:240px;
  cursor:pointer;
}
.proj-link {
  text-decoration:none;
}


.bgOverlay {
  background-color:rgb(30, 26, 25, 0.5);
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
color: #FFF;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.bgOverlay h3 {
text-transform: uppercase;
    font-family: 'Figtree';
    font-weight: 700;
}

.mask-pink {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  background: rgb(82,28,64);
background: linear-gradient(0deg, rgba(82,28,64,1) 0%, rgba(162,30,117,1) 100%);
  z-index:9;
  color: #FFF;
  font-size: 15px;
    line-height: 19px;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    padding: 35px 45px 25px;
  cursor:pointer;
}

.flip-container {
	perspective: 1000px;
}
	/* flip the pane when hovered */
	.flip-container:hover .flipper, .flip-container.hover .flipper {
		transform: rotateY(180deg);
    -webkit-transform:rotateY(180deg);
    -moz-transform:rotateY(180deg);
    -o-transform:rotateY(180deg);
    -ms-transform:rotateY(180deg);
	}

.flip-container, .front, .back {
	width: 340px;
	height: 240px;
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;
	position: relative;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
	transform: rotateY(0deg);
  -webkit-transform:rotateY(0deg);
    -moz-transform:rotateY(0deg);
    -o-transform:rotateY(0deg);
    -ms-transform:rotateY(0deg);
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
  -webkit-transform:rotateY(180deg);
    -moz-transform:rotateY(180deg);
    -o-transform:rotateY(180deg);
    -ms-transform:rotateY(180deg);
}
  
.project-group-mobile {
  display: none;
}


@media only screen and (max-width:767px) {
 
  .project-group {
    display:none !important;
 
}  


/*---------------------------------------*/
/*---------------------------------------*/
/*---------------------------------------*/

.project-group-mobile {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    row-gap: 30px;
    padding: 50px 0 30px;
    flex-direction: column;
}


.bgOverlay-mobile {
  background-color:rgb(30, 26, 25, 0.5);
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
color: #FFF;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.bgOverlay-mobile h3 {
text-transform: uppercase;
    font-family: 'Figtree';
    font-weight: 700;
}


.hover-container, .front-mobile, .back-mobile {
	width: 340px;
	height: 240px;
}

.front-mobile {
  background-size:cover;
  position:relative;
  cursor:pointer;
    -webkit-transition: .4s;
    transition: .4s;
}

.hover-container {
position:relative;
}

.hover-container:hover .front-mobile {
    opacity:0;
}
.hover-container:hover .back-mobile {
  opacity:1;
}


.back-mobile {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  background: rgb(82,28,64);
background: linear-gradient(0deg, rgba(82,28,64,1) 0%, rgba(162,30,117,1) 100%);
  z-index:9;
  color: #FFF;
  font-size: 12px;
    line-height: 19px;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    padding: 35px 45px 25px;
  cursor:pointer;
  opacity:0;
}

div {
    transition: opacity 1s;
}