.ogallery-gallery {
	display: grid;
	grid-template-columns: repeat(var(--ogallery-gallery-columns, 3), minmax(0, 1fr));
	gap: var(--ogallery-gallery-gap, 10px);
	margin: 0;
	padding: 0;
}

.ogallery-gallery-item {
	display: block;
	min-width: 0;
	overflow: hidden;
}

.ogallery-gallery-item a,
.ogallery-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
}

.ogallery-gallery-item img {
	object-fit: var(--ogallery-gallery-fit, cover);
	transition: transform 0.35s ease;
}

.ogallery-gallery-item:hover img {
	transform: scale(1.03);
}

@media (max-width: 1024px) {
	.ogallery-gallery {
		grid-template-columns: repeat(var(--ogallery-gallery-columns-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ogallery-gallery {
		grid-template-columns: repeat(var(--ogallery-gallery-columns-mobile, 1), minmax(0, 1fr));
	}
}

.ogallery-gallery-placeholder {
	padding: 2rem;
	border: 1px dashed currentColor;
	text-align: center;
}

/* The lightbox popup itself is drawn by Elementor. This only guards against a
   theme hiding Elementor's own prev/next arrows. */
.elementor-lightbox .elementor-swiper-button {
	opacity: 1 !important;
	visibility: visible !important;
	display: flex !important;
}
