/* .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
} */

.grid {
	column-count: 4;
	column-gap: 20px;
}

.grid figure {
	width: 100%;
	display: inline-block;
	margin: 0 0 20px;
	break-inside: avoid;
}

.grid figure {
	position: relative;
	overflow: hidden;
	/* width: calc(25% - 15px); */
	width: 100%;
	min-width: 180px;
	/* adjust if needed */
	max-width: 480px;
	height: auto;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 1;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;

}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	-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%;
}

/* 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 p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 0px;
}

/* Individual effects */


/*-----------------*/
/***** Goliath *****/
/*-----------------*/

figure.effect-goliath {}

figure.effect-goliath img {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
}




figure.effect-goliath p {
	position: absolute;
	bottom: 10px;
	left: 0;
	padding: 20px;
	text-transform: none;
	font-size: 85%;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0, 10px, 0);
	transform: translate3d(0, 10px, 0);
	width: 100%;
	display: table;
}

figure.effect-goliath p span.gallery-text {
	width: 80%;
	display: table-cell;
	text-align: left;
	line-height: 130%;
}

figure.effect-goliath p span.icon-right {
	right: 0;
	width: 20%;
	display: table-cell;
	text-align: right;
}



figure.effect-goliath:hover img {
	-webkit-transform: translate3d(0, -10px, 0);
	transform: translate3d(0, -10px, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;

}



figure.effect-goliath:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}







.grid2 {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.grid2 figure {
	position: relative;
	overflow: hidden;
	/* width: calc(25% - 15px); */
	min-width: 180px;
	/* adjust if needed */
	max-width: 480px;
	height: auto;
	text-align: center;
	cursor: pointer;
}

.grid2 figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 1;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
}

.grid2 figure figcaption {
	padding: 2em;
	color: #fff;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

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

.grid2 figure figcaption,
.grid2 figure figcaption>a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

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

.grid2 figure p {
	margin: 0;
}

.grid2 figure p {
	letter-spacing: 0px;
}

/* Individual effects */
/*-----------------*/
/***** Goliath *****/
/*-----------------*/
figure.effect-goliath {}

figure.effect-goliath img {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
}

figure.effect-goliath p {
	position: absolute;
	bottom: 10px;
	left: 0;
	padding: 20px;
	text-transform: none;
	font-size: 85%;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0, 10px, 0);
	transform: translate3d(0, 10px, 0);
	width: 100%;
	display: table;
}

figure.effect-goliath p span.gallery-text {
	width: 80%;
	display: table-cell;
	text-align: left;
	line-height: 130%;
}

figure.effect-goliath p span.icon-right {
	right: 0;
	width: 20%;
	display: table-cell;
	text-align: right;
}

figure.effect-goliath:hover img {
	-webkit-transform: translate3d(0, -10px, 0);
	transform: translate3d(0, -10px, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
}

figure.effect-goliath:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}









.icon-like {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 11;
}

@media screen and (max-width: 75em) {
	.grid figure {
		width: calc(33.333% - 13.33px);
		/* 3 columns */
	}
}

@media screen and (max-width: 50em) {
	.grid figure {
		width: 100%;
		/* 1 column */
	}
}

@media screen and (max-width: 30em) {
	.grid figure {
		width: 100%;
		/* 1 column */
	}
}


@media(max-width:1200px) {
	.grid {
		column-count: 3;
	}
}

@media(max-width:768px) {
	.grid {
		column-count: 2;
	}
}

@media(max-width:500px) {
	.grid {
		column-count: 1;
	}
}

.fas {
	color: red;
}

.heart {
	cursor: pointer;
}

.pulse {
	animation: pulse .5s;
}

@keyframes .pulse {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(1);
	}

	100% {
		transform: scale(1);
	}
}