.gallery-element-8 {
	position: relative;
   	text-align: center;
   	display: block;
   	perspective: 100rem;
   	overflow: visible!important;
	z-index: 90;
	height: 100%;
    transition: all 0.4s ease;
}

.gallery-element-8.onhover {
	z-index: 201;
}

.gallery-element-8:hover {
	z-index: 201;
	backface-visibility: hidden;
    transition: all 0.4s ease 0.2s;
}

.gallery-element-8 img {
	transform: translate3d(0,0,0);
	position: relative;
    transition: all 0.4s ease;
}

.gallery-element-8:hover img {
	transform: translate3d(0,-6rem,0);
}

.gallery-element-8.no-subtitle:hover img {
	transform: translate3d(0,-3.7rem,0);
}

.owl-carousel .gallery-element-8:hover img {
	transform: translate3d(0,0,0);
}

.gallery-element-8 .caption {
	width: 100%;
   	position: absolute;
   	bottom: 0;
   	left: 0;
   	height: 0;
	transform: translate3d(0,0,0);
    transition: all 0.4s ease;
	z-index: 220;
	overflow: visible!important;
}

.owl-carousel .gallery-element-8 .caption {
	height: 100%;
	transform: translate3d(0,100%,0);
}

.gallery-element-8:hover .caption {
   	height: 12rem;
   	z-index: 230;
	transform: translate3d(0,6rem,0);
	backface-visibility: hidden;
}

.gallery-element-8.no-subtitle:hover .caption {
   	height: 7.4rem;
	transform: translate3d(0,3.7rem,0);
}

.owl-carousel .gallery-element-8:hover .caption {
	height: 100%;
	transform: translate3d(0,0,0);
}

.gallery-element-8 .caption .overlay-text {
	padding-top: 2.5rem;
	position: relative;
	transform: translate3d(0,-12rem,0);
	visibility: hidden;
  	opacity: 0;
	transition: transform 0.4s ease, visibility 0.4s ease, opacity 0.2s ease;
}

.gallery-element-8.no-subtitle .caption .overlay-text {
	transform: translate3d(0,-7.4rem,0);
}

.owl-carousel .gallery-element-8 .caption .overlay-text {
	padding: 0.5rem;
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translate3d(0,-50%,0);
    transition: all 0.4s ease;
}

.gallery-element-8:hover .caption .overlay-text {
	transform: translate3d(0,0,0);
	visibility: visible;
	opacity: 1;
	transition: transform 0.4s ease, visibility 0.4s ease, opacity 0.2s ease 0.2s;
}

.owl-carousel .gallery-element-8:hover .caption .overlay-text {
	transform: translate3d(0,-50%,0);
}

.gallery-element-8 .caption .overlay-text .title {
	font-size: 1.8rem;
	line-height: 2.4rem;
	display: inline-block;
	position: relative;
	padding-bottom: 1.3rem;
}

.gallery-element-8.no-subtitle .caption .overlay-text .title {
	padding-bottom: 1px;
}

.gallery-element-8 .caption .overlay-text .title::after {
	position: absolute;
	content: '';
	width: 6.5rem;
	height: 2px;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
}

.gallery-element-8.no-subtitle .caption .overlay-text .title::after {
	display: none;
}

.gallery-element-8 .caption .overlay-text .subtitle {
	font-size: 1.4rem;
	padding-top: 1.1rem;
	padding-left: 0;
}

.gallery-element-8 .caption .overlay-text ul.subtitle {
	margin-left: 0;
}

.gallery-element-8 .caption .overlay-text .subtitle li {
	padding-left: 0;
	padding-right: 0;
}

.gallery-element-8 .caption .overlay-text .subtitle li::after {
	content: ', ';
}

.gallery-element-8 .caption .overlay-text .subtitle li:last-child::after {
	content: '';
}