#page-gallery-preview {
	padding: 60px 0;
}

/* Egyedi Masonry rács elrendezés */
.pg-masonry-grid {
	column-count: 1;
	column-gap: 20px;
	width: 100%;
	display: block !important;
	margin-top:50px;
}

@media (min-width: 500px) {
	.pg-masonry-grid {
		column-count: 2;
		column-gap: 15px;
		display: block !important;
	}
}
@media (min-width: 900px) {
	.pg-masonry-grid {
		column-count: 3;
		column-gap: 20px;
		display: block !important;
	}
}

/* Egyedi Galéria kártya */
.pg-gallery-card {
	break-inside: avoid;
	display: inline-block;
	width: 100%;
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.06);
	background: #ffffff;
	border: 1px solid #eee;
	box-sizing: border-box;
}

/* Egyedi Kép stílusok */
.pg-gallery-img {
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	display: block !important;
	cursor: zoom-in;
	transition: transform 0.3s ease;
	border-radius: 0px !important;
}
.pg-gallery-img:hover {
	transform: scale(1.03);
}

/* Finom betöltési animáció */
@keyframes pgRevealImage {
	from {
		opacity: 0;
		transform: translateY(25px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.pg-reveal-anim {
	animation: pgRevealImage 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Egyedi Töltésjelző */
.pg-gallery-loader-wrapper {
	width: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 30px 0;
}
.pg-gallery-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(140, 98, 57, 0.15);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: pg-spin 0.8s linear infinite;
}
@keyframes pg-spin {
	to { transform: rotate(360deg); }
}

/* LIGHTBOX (Kép nagyító modal) */
.lightbox-overlay {
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 85vh;
	text-align: center;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 75vh;
	border-radius: 4px;
	box-shadow: 0 4px 25px rgba(0,0,0,0.5);
	object-fit: contain;
}

.lightbox-caption {
	color: #fff;
	margin-top: 15px;
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.lightbox-close-btn {
	position: absolute;
	top: -45px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

.lightbox-close-btn:hover {
	color: var(--primary);
}
