* { margin:0; padding:0; box-sizing:border-box; }
body { margin:0; font-family: 'Poppins', sans-serif;} /* Remove body margins */


/* .grid {
    position: relative;
	clear: both;
	margin: 0 auto;
	padding: 1em 0 4em;
	max-width: 1000px;
	list-style: none;
	text-align: center;
} */

/* Common style */
.grid figure {
	position: relative;
	/* float: left; */
	overflow: hidden;
	margin: 0;
	min-width: 320px;
	max-width: 100%;
	max-height: 100vh;
	width: 100%;
	height: 100vh;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
    margin: 0 !important;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;
    object-fit: cover;
}
.grid figure .my-img {
    position:static;
   width: 100px;
   height: 100px;
   min-height: inherit !important;
   margin: auto;
   margin-top: 30%;

}


.grid figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	word-spacing: -0.15em;
	font-weight: 300;
}

.grid figure h2 span {
	font-weight: 800;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
}

/* Individual effects */



/*-----------------*/
/***** Apollo *****/
/*-----------------*/

figure.effect-apollo {
	background: red;
}

figure.effect-apollo img {
	opacity: 0.95;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.05,1.05,1);
	transform: scale3d(1.05,1.05,1);
}

figure.effect-apollo figcaption::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.5);
	content: '';
	-webkit-transition: -webkit-transform 0.6s;
	transition: transform 0.6s;
	-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
	transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
}

figure.effect-apollo p {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 3em;
	padding: 0 1em;
	max-width: 150px;
	border-right: 4px solid #fff;
	text-align: right;
	opacity: 0;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-apollo h2 {
	text-align: left;
}

figure.effect-apollo:hover img {
	opacity: 0.6;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effect-apollo:hover figcaption::before {
	-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
	transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
}

figure.effect-apollo:hover p {
	opacity: 1;
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

.effect-apollo figcaption{

    align-items: start;
    justify-content: start;
    flex-direction: column;
}



/*---------------*/
/***** Jazz *****/
/*---------------*/

figure.effect-jazz {
	background: -webkit-linear-gradient(-45deg, #f5af19 0%,#f12711 100%);
	background: linear-gradient(-45deg, #f5af19 0%,#f12711 100%);

}

figure.effect-jazz img {
	opacity:1;
}

figure.effect-jazz figcaption::after,
figure.effect-jazz img,
figure.effect-jazz p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-jazz figcaption::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	content: '';
	opacity: 0;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

figure.effect-jazz h2,
figure.effect-jazz p {
	opacity: 1;
	-webkit-transform: scale3d(0.8,0.8,1);
	transform: scale3d(0.8,0.8,1);
}

figure.effect-jazz h2 {
	/* padding-top: 26%; */
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effect-jazz p {
	padding: 0.5em 2em;
	text-transform: none;
	/* font-size: 0.85em; */
	opacity: 0;
}

figure.effect-jazz:hover img {
	opacity: 0.1;
	-webkit-transform: scale3d(1.05,1.05,1);
	transform: scale3d(1.05,1.05,1);
}

.effect-jazz .my-img{
	transition: 0.4s;
}
.effect-jazz:hover .my-img{
    opacity: 1;
    z-index: 999999999999;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
	border-radius: 50%;
	transition: 0.3s;
}
.effect-jazz .effect-jazz-btn{
	background-color: white;
	border:1px solid white;
	padding: 6px 30px;
	font-family: 'Poppins', sans-serif;
	opacity: 0;
	transition: 0.4s;
	font-weight: 600 ;
	color:#333333;
	border-radius: 5px;
}
.effect-jazz:hover .effect-jazz-btn{
	opacity: 1;
	-webkit-transform: scale(1.1);
    transform: scale(1.1);
	transition: 0.4s;
}

figure.effect-jazz:hover figcaption::after {
	opacity: 1;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
}

figure.effect-jazz:hover h2,
figure.effect-jazz:hover p {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

/*---------------*/
/***** Ming *****/
/*---------------*/

figure.effect-ming {
	background: #030c17;
}

figure.effect-ming img {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-ming figcaption::before {
	position: absolute;
	top: 30px;
	right: 30px;
	bottom: 30px;
	left: 30px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 30px rgba(255,255,255,0.2);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.4,1.4,1);
	transform: scale3d(1.4,1.4,1);
}

figure.effect-ming h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
    font-family: 'Poppins', sans-serif;

}
figure.effect-ming h3{
    -webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	margin: 15px 0 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size:22px;
}
.mt-img-btn{
    background-color: transparent;
    font-weight: 500;
    color: #333333;
    font-family: 'Poppins', sans-serif;
    padding: 10px 30px;
    border: 1px solid white;
    color: white;
    opacity: 0;
    -webkit-transition: opacity 0.55s, -webkit-transform 0.35s;
    transition: opacity 0.55s, transform 0.35s;
    /* -webkit-transform: scale(1.5);
    transform: scale(1.5); */
}
.effect-ming:hover .mt-img-btn{
    opacity: 1;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.grid figure .my-img {
    position:static;
   width: 50%px;
   height: auto;
   min-height: inherit !important;
   margin: 15px 0;
   opacity: 0.5;
   -webkit-transition: opacity 0.55s, -webkit-transform 0.35s;
    transition: opacity 0.55s, transform 0.35s;
	transition: 0.3s;
	border-radius: 10px;

}
.effect-ming:hover .my-img{
    opacity: 1;
    z-index: 999999999999;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
	border-radius: 50%;
	transition: 0.3s;
}
figure.effect-ming p {
	text-transform: none;
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-ming:hover h2 {
	-webkit-transform: scale(0.9);
	transform: scale(0.9);
}

figure.effect-ming:hover figcaption::before,
figure.effect-ming:hover p {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effect-ming:hover figcaption {
	background-color: rgba(58,52,42,0);
}

figure.effect-ming:hover img {
	opacity: 0.4;
}



/*---------------*/
/***** Duke *****/
/*---------------*/

figure.effect-duke {
	background: -webkit-linear-gradient(-45deg, #f5af19 0%,#f12711 100%);
	background: linear-gradient(-45deg, #f5af19 0%,#f12711 100%);


}

figure.effect-duke img,
figure.effect-duke p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-duke:hover img {
	opacity: 0.1;
	-webkit-transform: scale3d(2,2,1);
	transform: scale3d(2,2,1);
}

figure.effect-duke h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: scale3d(0.8,0.8,1);
	transform: scale3d(0.8,0.8,1);
	-webkit-transform-origin: 50% 100%;
	transform-origin: 50% 100%;
}

figure.effect-duke p {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 20px;
	padding: 30px;
	border: 2px solid #fff;
	text-transform: none;
	font-size: 90%;
	opacity: 0;
	-webkit-transform: scale3d(0.8,0.8,1);
	transform: scale3d(0.8,0.8,1);
	-webkit-transform-origin: 50% -100%;
	transform-origin: 50% -100%;
}
.effect-duke:hover .my-img{
    opacity: 1;
    z-index: 999999999999;
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}
.effect-duke .my-img {
    position:static;
   width: 100px;
   height: 100px;
   min-height: inherit !important;
   margin: auto;
   border-radius: 50%;

}

figure.effect-duke:hover h2,
figure.effect-duke:hover p {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

/* Media queries */
/* @media screen and (max-width: 50em) {
	.content {
		padding: 0 10px;
		text-align: center;
	}
	.grid figure {
		display: inline-block;
		float: none;
		margin: 10px auto;
		width: 100%;
	}
} */


/* Button effects */

/* GENERAL BUTTON STYLING */
.effect-ming .div-btn a,
.effect-ming .div-btn a::after {
  -webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
  -o-transition: all 0.3s;
	transition: all 0.3s;
}

.effect-ming .div-btn a {
  background: none;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #fff;
  display: block;
  font-size: 18px;
  font-weight: 500;
  /* margin: 1em auto; */
  padding: 10px 30px;
  position: relative;
  text-transform: uppercase;
  z-index: 9999999999;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  opacity: 0;
}
.effect-ming:hover .div-btn a{
	opacity: 1;
	-webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.effect-ming .div-btn a::before,
.effect-ming .div-btn a::after {
  background: #fff;
  content: '';
  position: absolute;
  z-index: -1;
}

.effect-ming .div-btn a:hover {
  color: #333333;

}

/* button jazz */
.effect-jazz .div-btn a,
.effect-jazz .div-btn a::after {
  -webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
  -o-transition: all 0.3s;
	transition: all 0.3s;
}

.effect-jazz .div-btn a {
  background: none;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #fff;
  display: block;
  font-size: 18px;
  font-weight: 500;
  /* margin: 1em auto; */
  padding: 10px 30px;
  position: relative;
  text-transform: uppercase;
  z-index: 9999999999;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  opacity: 0;
}
.effect-jazz:hover .div-btn a{
	opacity: 1;
	-webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.effect-jazz .div-btn a::before,
.effect-jazz .div-btn a::after {
  background: #fff;
  content: '';
  position: absolute;
  z-index: -1;
}

.effect-jazz .div-btn a:hover {
  color: #333333;

}

/* btn appolo */
.effect-apollo .div-btn a,
.effect-apollo .div-btn a::after {
  -webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
  -o-transition: all 0.3s;
	transition: all 0.3s;
}

.effect-apollo .div-btn a {
  background: none;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #fff;
  display: block;
  font-size: 18px;
  font-weight: 500;
  /* margin: 1em auto; */
  margin-top: 20px;
  padding: 10px 30px;
  position: relative;
  text-transform: uppercase;
  z-index: 9999999999;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  opacity: 0;
  float: left;
}
.effect-apollo:hover .div-btn a{
	opacity: 1;
	-webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.effect-apollo .div-btn a::before,
.effect-apollo .div-btn a::after {
  background: #fff;
  content: '';
  position: absolute;
  z-index: -1;
}

.effect-apollo .div-btn a:hover {
  color: #333333;

}

/* BUTTON 1 */
.btn-1::after {
  height: 0;
  left: 0;
  top: 0;
  width: 100%;
}

.btn-1:hover:after {
  height: 100%;
}

/* BUTTON 2 */
.btn-2::after {
  height: 100%;
  left: 0;
  top: 0;
  width: 0;
}

.btn-2:hover:after {
  width: 100%;
}

/* BUTTON 3 */
.btn-3::after {
  height: 0;
  left: 50%;
  top: 50%;
  width: 0;
}

.btn-3:hover:after {
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}


@media screen and (max-width:560px){
    .grid figure{
        max-height:75vh
        }
	.grid figure .my-img{
		width: 35%;
		height: auto;
	}
	.grid figure h2{
		font-size: 32px;
	}
	.grid figure h3{
		font-size: 18px;
	}
	.grid figure .div-btn a{
		font-size: 17px;
		padding: 5px 10px;
	}
}

@media screen and (min-width:996px) and (max-width:1200px){
	.grid figure .my-img{
		width: 50%;
		height: auto;
	}
	.grid figure h2{
		font-size: 35px;
	}
	.grid figure h3{
		font-size: 24px;
	}
	.grid figure p{
		font-size: 14px;
	}
	.grid figure .div-btn a{
		font-size: 17px;
		padding: 5px 10px;
	}
}
