.grid {
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

.grid li {
	display: inline-block;
	margin: 0;
	padding: 20px;
	text-align: left;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
}

.grid figure img {
	width: 100%;
	max-width: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 42px 22px;
	background: #304352;
	color: #ed4e6e;
}

.grid figcaption h1 {
	font-size: 1.6rem;
	line-height: 2.2rem;
	margin: 0;
	padding-bottom: 12px;
	color: #fff;
}

.grid figcaption small {
	font-size: 16px;
	letter-spacing: 1px;
}

.grid figcaption a {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
	background: #e44c65;
	color: #fff;
}

/* Caption Style 4 */
.cs-style-4 li {
	-webkit-perspective: 1700px;
	-moz-perspective: 1700px;
	perspective: 1700px;
	-webkit-perspective-origin: 0 50%;
	-moz-perspective-origin: 0 50%;
	perspective-origin: 0 50%;
}

.cs-style-4 figure {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.cs-style-4 figure>div {
	overflow: hidden;
}

.cs-style-4 figure img {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

/* .no-touch .cs-style-4 figure:hover img,
.cs-style-4 figure.cs-hover img {
	-webkit-transform: translateX(25%);
	-moz-transform: translateX(25%);
	-ms-transform: translateX(25%);
	transform: translateX(25%);
} */

.cs-style-4 figcaption {
	height: 100%;
	width: 50%;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: rotateY(-90deg);
	-moz-transform: rotateY(-90deg);
	transform: rotateY(-90deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .cs-style-4 figure:hover figcaption,
.cs-style-4 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
	transform: rotateY(0deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.cs-style-4 figcaption a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

@media (max-width: 980px) {
	.grid figcaption h1 {
		font-size: 1rem;
		line-height: 1.6rem;
	}

	.grid figcaption {
		padding: 22px 18px;
	}
}

@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 10px 100px 10px;
	}

	.grid li {
		width: 100%;
		min-width: 300px;
	}
}

#brand .item-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	align-items: flex-start;
}

#brand .item {
	width: 100%;
}

#brand .other .box {
	padding: 20px 0;
}
#brand .other h3{
	text-align: center;
	margin-bottom: 20px;
}


#brand .name{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
/* #brand a.btn {
	display: inline-block;
	border: 1px solid #88C172;
	text-align: center;
	border-radius: 50vh;
	color: white;
	font-size: 16px;
	width: 200px;
	line-height: 40px;
	background-color: #88C172;
	
} */
#brand h2{
	margin: 20px 0;
}

#brand .item h3 {
	text-align: center;
	line-height: 1.5;
}
#brand a.btn {
	display: inline-block;
	color: #88C172;
	font-size: 16px;
	line-height: 32px;
	
}
#brand a.btn:focus{
	background-color: transparent;
}
#brand a.btn i{
	color: #88C172;
	margin-left: 12px;
	margin-right: 0;
	transition: all 0.3s;
}

@media screen and (min-width: 768px) {
	#brand .item {
		width: 30%;
		margin: calc(10% / 6);
	}

}

@media screen and (min-width: 992px) {
	#brand .item {
		width: 22%;
		margin: calc(12% / 8);
	}

	#brand .item a {
		overflow: hidden;
		display: inline-block;
	}

	#brand .item a img {
		transition: all 0.3s;
	}

	#brand .item a:hover img {
		transform: scale(1.1);
	}

	#brand .container,
	#gallery .container {
		max-width: unset;
		width: 90%;
	}
	#brand a.btn:hover i{
		margin-right: -8px;
	}
}

@media screen and (min-width: 1400px) {
	#brand .item {
		width: 18%;
		margin: calc(10% / 10);
	}

}