.pbl-gallery {
	width: 100%;
}

.pbl-gallery__title {
	margin: 0 0 2.5rem;
	font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	color: #002042;
	text-align: center;
}

.pbl-gallery__empty {
	margin: 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid #d2e6fe;
	border-radius: 12px;
	background: #e6f2ff;
	color: #3d4f66;
	font-size: 0.9375rem;
	text-align: center;
}

.pbl-gallery__grid {
	--pbl-gallery-cols: 4;
	--pbl-gallery-gap: 1.25rem;
	display: flex;
	gap: var(--pbl-gallery-gap);
	margin: 0;
	padding: 0 0 0.25rem;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	touch-action: pan-y;
	scrollbar-width: none;
}

.pbl-gallery__grid::-webkit-scrollbar {
	display: none;
}

.pbl-gallery__grid.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.pbl-gallery__item {
	/* Reserve a small peek so the strip stays swipeable even when image count ≈ columns. */
	flex: 0 0 calc((100% - 2rem - (var(--pbl-gallery-cols) - 1) * var(--pbl-gallery-gap)) / var(--pbl-gallery-cols));
	overflow: hidden;
	margin: 0;
	border-radius: 8px;
	background: #e6ebf2;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.pbl-gallery__figure {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	aspect-ratio: 313 / 200;
	touch-action: pan-y;
}

.pbl-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
}

.pbl-gallery__cta {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
}

.pbl-gallery__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0a57cd;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.pbl-gallery__view-all:hover,
.pbl-gallery__view-all:focus-visible {
	color: #002042;
}

.pbl-gallery__view-all:focus-visible {
	outline: 2px solid #0a57cd;
	outline-offset: 4px;
}

.pbl-gallery__view-all-icon {
	display: inline-flex;
	font-size: 0.875em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.pbl-gallery__view-all:hover .pbl-gallery__view-all-icon,
.pbl-gallery__view-all:focus-visible .pbl-gallery__view-all-icon {
	transform: translateX(3px);
}

@media (max-width: 767px) {
	.pbl-gallery__grid {
		--pbl-gallery-cols: 1 !important;
	}

	.pbl-gallery__title {
		margin-bottom: 1.5rem;
	}

	.pbl-gallery__cta {
		margin-top: 1.75rem;
	}
}
