/* Fallback grid so Pro gallery markup still lays out without Pro JS. */
.ug-efc-gallery.elementor-gallery__container {
	display: grid;
	grid-template-columns: repeat(var(--ug-gallery-cols, 3), minmax(0, 1fr));
	gap: 15px;
}

.ug-efc-gallery .elementor-gallery-item {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f3f3f3;
}

.ug-efc-gallery .elementor-gallery-item__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.ug-efc-gallery .ug-efc-gallery__img {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.ug-efc-gallery.elementor-gallery__container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ug-efc-gallery.elementor-gallery__container {
		grid-template-columns: 1fr;
	}
}
