/* Album galleria — griglia ampia + lightbox */
.gallery-album__intro {
	max-width: 52rem;
	margin: -0.5rem 0 1.5rem;
	color: #4a5c55;
	font-size: 1.02rem;
	line-height: 1.6;
}

.gallery-album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.gallery-album__item {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 0.35rem;
	border: 1px solid rgba(15, 61, 46, 0.12);
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 61, 46, 0.08);
	aspect-ratio: 4 / 3;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	cursor: zoom-in;
}

.gallery-album__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(15, 61, 46, 0.35) 100%);
	opacity: 0;
	transition: opacity 0.22s ease;
	pointer-events: none;
}

.gallery-album__item:hover,
.gallery-album__item:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(15, 61, 46, 0.16);
	outline: none;
}

.gallery-album__item:hover::after,
.gallery-album__item:focus-visible::after {
	opacity: 1;
}

.gallery-album__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.gallery-album__item:hover img {
	transform: scale(1.04);
}

.gallery-album__back {
	text-align: center;
}

@media (min-width: 768px) {
	.gallery-album-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 1.15rem;
	}
}

@media (min-width: 1200px) {
	.gallery-album-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 1.25rem;
	}
}

/* GLightbox — palette MG */
.glightbox-clean .gslide-description {
	background: rgba(15, 61, 46, 0.92);
}

.glightbox-clean .gslide-title {
	color: #faf6ee;
	font-family: 'Cormorant Garamond', Georgia, serif;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev,
.glightbox-clean .gclose {
	background: rgba(15, 61, 46, 0.75);
	border: 1px solid rgba(201, 168, 76, 0.45);
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover,
.glightbox-clean .gclose:hover {
	background: rgba(26, 92, 69, 0.95);
}

.glightbox-clean .gclose path,
.glightbox-clean .gnext path,
.glightbox-clean .gprev path {
	fill: #faf6ee;
}

/* Lightbox: usa quasi tutto lo schermo (non lasciare le foto “francobollo”) */
.glightbox-container .gslide-media {
	width: auto !important;
	max-width: 96vw !important;
	max-height: 92vh !important;
}

.glightbox-container .gslide-image img {
	max-width: 96vw !important;
	max-height: 92vh !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

/* Galleria foto dentro la notizia */
.news-gallery__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--mg-green, #0f3d2e);
	margin: 0 0 1rem;
}
