/**
 * Euroducting Gallery – front styles
 */

.eudgallery-row {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: flex-start !important;
	align-content: flex-start !important;
	gap: 1rem 1.25rem;
	width: 100% !important;
	max-width: 100% !important;
	margin: 1rem auto 1.5rem !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	clear: both !important;
	float: none !important;
	text-align: center;
}

.eudgallery-item {
	display: block !important;
	box-sizing: border-box !important;
	flex: 0 1 calc((100% - 2.5rem) / 3);
	width: calc((100% - 2.5rem) / 3);
	max-width: calc((100% - 2.5rem) / 3);
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	float: none !important;
	text-align: center;
}

.eudgallery-cover {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #111;
	line-height: 0;
	text-decoration: none !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	cursor: pointer;
}

.eudgallery-cover img,
.eudgallery-cover-img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 !important;
	float: none !important;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.eudgallery-cover:hover img,
.eudgallery-cover:focus img {
	opacity: 0.88;
	transform: scale(1.03);
}

.eudgallery-cover-caption {
	margin: 0.5rem 0 0 !important;
	padding: 0 !important;
	color: #fc9435 !important;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: center !important;
}

.eudgallery-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 991.98px) {
	.eudgallery-item {
		flex: 0 1 calc((100% - 1.25rem) / 2);
		width: calc((100% - 1.25rem) / 2);
		max-width: calc((100% - 1.25rem) / 2);
	}
}

@media (max-width: 575.98px) {
	.eudgallery-item {
		flex: 0 1 100%;
		width: 100%;
		max-width: 100%;
	}
}
