/* PUBLIKACJE – strona wpisu należącego do publikacji (Etap 2)
   Ładowane tylko na takich stronach (library/functions/collections.php). */

/* Wiersz „Publikacja” w metadanych */
.zc .zc-meta-box--publication .zc-meta-box-value { font-weight: 700; }
.zc .zc-meta-box-sub { display: block; margin-top: .25em; font-weight: 400; font-size: .8em; color: #555; }

/* Nawigacja poprzednia / następna */
.zc .zc-pager {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 2px solid #000;
	font-size: 1.5rem;
}
.zc .zc-pager-link { color: #000; text-decoration: none; white-space: nowrap; }
.zc a.zc-pager-link:hover { color: #E88873; }
.zc .zc-pager-link.is-disabled { opacity: .3; }
.zc .zc-pager-count { font-weight: 700; white-space: nowrap; }

/* Pasek miniatur wszystkich stron */
.zc .zc-pub { margin: 0 0 4rem; padding: 2rem; background-color: #fff; }
.zc .zc-pub-head { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 1.5rem; }
.zc .zc-pub-title { margin: 0; font-size: 2rem; font-weight: 400; text-transform: uppercase; }
.zc .zc-pub-count { font-size: 1.5rem; color: #555; }

.zc .zc-pub-strip {
	position: relative; /* offsetParent dla przewijania do bieżącej strony */
	display: flex; gap: 1rem;
	overflow-x: auto; overflow-y: hidden;
	padding: 0 0 1rem;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.zc .zc-pub-item {
	flex: 0 0 auto;
	display: flex; flex-direction: column; align-items: center; gap: .5rem;
	scroll-snap-align: center;
}

.zc .zc-pub-thumb {
	display: flex; align-items: center; justify-content: center;
	height: 160px; min-width: 80px;
	background: #f3f4f6; border: 2px solid transparent;
	transition: border-color .15s;
}
.zc .zc-pub-thumb img { display: block; height: 100%; width: auto; max-width: 260px; object-fit: contain; }
.zc a.zc-pub-thumb:hover,
.zc a.zc-pub-thumb:focus-visible { border-color: #E88873; }
.zc .zc-pub-item.is-current .zc-pub-thumb { border-color: #000; }
.zc .zc-pub-thumb.is-empty { opacity: .5; }

.zc .zc-pub-goto { font-size: 1.25rem; color: #000; text-decoration: none; }
.zc a.zc-pub-goto:hover { color: #E88873; text-decoration: underline; }
.zc .zc-pub-item.is-current .zc-pub-goto { font-weight: 700; }

/* Lightbox (PhotoSwipe 5) – przycisk „Zobacz kartę” w górnym pasku */
.pswp__zc-card {
	align-self: center;
	margin: 0 12px 0 0; /* na prawo spycha go już preloader PhotoSwipe (margin-right: auto) */
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .7);
	color: #fff;
	font-size: 14px; line-height: 1.4;
	text-decoration: none; white-space: nowrap;
	pointer-events: auto; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.pswp__zc-card:hover,
.pswp__zc-card:focus-visible { background-color: #fff; color: #000; text-decoration: none; }

@media (max-width: 768px) {
	.zc .zc-pager { padding: 1rem 15px 0; font-size: 1.25rem; }
	.zc .zc-pager-count { display: none; }
	.zc .zc-pub { padding: 2rem 15px; }
	.zc .zc-pub-thumb { height: 120px; min-width: 60px; }
	.zc .zc-pub-thumb img { max-width: 200px; }
}
