/* Gallery grid with captions (Nasi goście / Nasze miejsca) */

.morelo-gallery-captions {
	background: transparent;
	padding: clamp(5rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.morelo-gallery-captions-container {
	max-width: 1092px;
}

.morelo-gallery-captions-head {
	margin: 0 0 40px;
}

.morelo-gallery-captions-head .section-kicker {
	margin: 0 0 18px;
	font-size: 0.8125rem;
	letter-spacing: 0.22em;
	color: rgba(0, 0, 0, 0.72);
}

.morelo-gallery-captions-head .section-title {
	margin: 0;
}

.morelo-gallery-captions-intro {
	margin: 16px auto 0;
	max-width: 720px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: rgba(0, 0, 0, 0.78);
}

.morelo-gallery-captions-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 28px 16px;
}

.morelo-gallery-captions-item {
	grid-column: span 6;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.morelo-gallery-captions-link {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	border-radius: 2px;
	transition: opacity 0.2s ease;
}

.morelo-gallery-captions-link:hover,
.morelo-gallery-captions-link:focus-visible {
	opacity: 0.92;
}

.morelo-gallery-captions-img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.morelo-gallery-captions-caption {
	margin: 16px 0 0;
	padding: 0 12px;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.55;
	text-align: center;
	color: #000;
	letter-spacing: 0.01em;
}

/* GLightbox — podpisy i nawigacja między zdjęciami */
.glightbox-container .gslide-description {
	background: rgba(0, 0, 0, 0.82);
}

.glightbox-container .gslide-title,
.glightbox-container .gslide-desc {
	color: #fff;
	font-size: 1rem;
	line-height: 1.5;
}

.glightbox-container .gdesc-inner {
	padding: 14px 18px;
}

.glightbox-container .gnext,
.glightbox-container .gprev {
	width: 44px;
	height: 44px;
	background: rgba(0, 0, 0, 0.55);
}

.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
	background: rgba(0, 0, 0, 0.78);
}

@media (min-width: 980px) {
	.morelo-gallery-captions-item {
		grid-column: span 4;
	}
}

@media (max-width: 640px) {
	.morelo-gallery-captions {
		padding-top: 3.25rem;
	}

	.morelo-gallery-captions-item {
		grid-column: span 12;
	}

	.morelo-gallery-captions-caption {
		font-size: 1rem;
	}
}
