.pgp-gallery {
	width: 100%;
}

.pgp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.pgp-tab {
	padding: 8px 18px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pgp-tab:hover {
	border-color: #111;
}

.pgp-tab.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}

/* Grille "patchwork" : le nombre de colonnes (.pgp-col) et la répartition des
   photos sont gérés en JS (frontend.js), pas en CSS column-count. Chaque
   colonne est un flux indépendant : ajouter une photo dans la colonne la
   plus courte ne déplace jamais les photos déjà placées ailleurs, ce que ne
   permettaient pas les colonnes CSS natives lors du scroll infini. */
.pgp-grid {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.pgp-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1 1 0;
	min-width: 0;
}

.pgp-item {
	margin: 0;
}

.pgp-item-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	background: #f0f0f0;
}

.pgp-status {
	text-align: center;
	color: #777;
	font-size: 14px;
	margin: 18px 0;
	min-height: 1.2em;
}

.pgp-sentinel {
	height: 1px;
}
