/* Motortuning Fotogalerie overview card */
.vrt-gallery-overview-row .wpb_text_column,
.vrt-gallery-album-card {
	margin-bottom: 0;
}

.vrt-gallery-album-card {
	max-width: 360px;
}

.vrt-gallery-album-card br,
.vrt-gallery-album-card p {
	display: none;
}

.vrt-gallery-album-card__link {
	background: #111;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.vrt-gallery-album-card__image {
	aspect-ratio: 36 / 25;
	background: #fff;
	display: block;
	overflow: hidden;
}

.vrt-gallery-album-card__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.35s ease;
	width: 100%;
}

.vrt-gallery-album-card__overlay {
	align-items: center;
	background: rgba(0, 0, 0, 0.55);
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 1.2em;
	justify-content: center;
	left: 0;
	opacity: 0;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	transition: opacity 0.35s ease;
}

.vrt-gallery-album-card__title {
	color: #fff;
	display: block;
	font-size: 1.45em;
	font-weight: 500;
	line-height: 1.2;
	padding: 0 1em;
	text-transform: uppercase;
}

.vrt-gallery-album-card__button {
	background: #d92d27;
	color: #fff;
	display: inline-block;
	font-size: 0.9em;
	line-height: 1;
	padding: 0.8em 1.1em;
}

.vrt-gallery-album-card__link:hover .vrt-gallery-album-card__overlay,
.vrt-gallery-album-card__link:focus .vrt-gallery-album-card__overlay {
	opacity: 1;
}

.vrt-gallery-album-card__link:hover .vrt-gallery-album-card__image img,
.vrt-gallery-album-card__link:focus .vrt-gallery-album-card__image img {
	transform: scale(1.06);
}

/* Motortuning Fotogalerie detail gallery */
.vrt-powerbox-detail-row .wpb_text_column {
	margin-bottom: 0;
}

.vrt-detail-gallery {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 -15px;
	padding: 0;
}

.vrt-detail-gallery br,
.vrt-detail-gallery p {
	display: none;
}

.vrt-detail-gallery__item {
	box-sizing: border-box;
	margin: 0;
	padding: 0 15px 30px;
	width: 33.333333%;
}

.vrt-detail-gallery__link {
	background: #fff;
	color: #fff;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.vrt-detail-gallery__link:hover,
.vrt-detail-gallery__link:focus {
	color: #fff;
	text-decoration: none;
}

.vrt-detail-gallery__image {
	background: #fff;
	display: block;
	overflow: hidden;
}

.vrt-detail-gallery__image img {
	background: #fff;
	display: block;
	height: auto;
	transform-origin: center center;
	transition: transform 0.35s ease;
	width: 100%;
}

.vrt-detail-gallery__overlay {
	align-items: center;
	background: rgba(0, 0, 0, 0.55);
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 1em;
	justify-content: center;
	left: 0;
	opacity: 0;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	transition: opacity 0.35s ease;
}

.vrt-detail-gallery__title {
	color: #fff;
	display: block;
	font-size: 1.35em;
	font-weight: 400;
	line-height: 1.2;
	padding: 0 1em;
}

.vrt-detail-gallery__button {
	background: #d92d27;
	color: #fff;
	display: inline-block;
	font-size: 0.85em;
	line-height: 1;
	padding: 0.75em 1em;
}

.vrt-detail-gallery__link:hover .vrt-detail-gallery__overlay,
.vrt-detail-gallery__link:focus .vrt-detail-gallery__overlay {
	opacity: 1;
}

.vrt-detail-gallery__link:hover .vrt-detail-gallery__image img,
.vrt-detail-gallery__link:focus .vrt-detail-gallery__image img {
	-webkit-transform: scale(1.06) !important;
	transform: scale(1.06) !important;
}

@media (max-width: 767px) {
	.vrt-detail-gallery__item {
		width: 100%;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.vrt-detail-gallery__item {
		width: 50%;
	}
}
