/* =========================================================
   FMA Full Thumbnails Gallery v1.1
   Czysta, systematyczna justified gallery
   ========================================================= */

.fma-justified-gallery {
	margin: 32px 0 40px;
	clear: both;
	width: 100%;
}

/* Ukrywamy oryginalne galerie PO konwersji */
.fma-gallery-converted {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Pojedynczy element */
.fma-justified-gallery .jg-entry {
	overflow: hidden;
	border-radius: 6px;
	background: #e8e8e8;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fma-justified-gallery .jg-entry:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	z-index: 5;
}

/* Obrazek wypełnia całą komórkę (cover) – wygląda solidnie */
.fma-justified-gallery .jg-entry a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.fma-justified-gallery .jg-entry img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center;
	transition: transform 0.4s ease;
	display: block;
}

.fma-justified-gallery .jg-entry:hover img {
	transform: scale(1.06);
}

/* Spinner */
.fma-justified-gallery .jg-spinner {
	border-color: rgba(0, 0, 0, 0.12);
	border-top-color: #7a00df;
}

/* Mobile */
@media (max-width: 767px) {
	.fma-justified-gallery {
		margin: 20px 0 28px;
	}
	.fma-justified-gallery .jg-entry {
		border-radius: 4px;
	}
}
