/* Grille d'albums */
.pae-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0 0 24px;
}

.pae-cols-1 { grid-template-columns: repeat(1, 1fr); }
.pae-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pae-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pae-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pae-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
	.pae-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.pae-grid { grid-template-columns: 1fr; }
}

.pae-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pae-card-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}

.pae-card-thumb-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.pae-sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.pae-card-title {
	transition: color 0.3s ease;
}

.pae-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	font-size: 32px;
}

.pae-card-body {
	padding: 14px 16px;
}

.pae-card-title {
	margin: 0 0 4px;
	font-size: 1.05em;
}

.pae-card-excerpt {
	font-size: 0.9em;
	color: #666;
	margin: 0;
}

.pae-grid-button {
	text-align: center;
	margin-top: 8px;
}

.pae-button {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pae-empty {
	color: #888;
	font-style: italic;
}

/* Page album individuelle */
.pae-single-album {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

.pae-album-title {
	margin-bottom: 8px;
}

.pae-album-desc {
	margin-bottom: 24px;
	color: #444;
}

.pae-gallery-wrap {
	background: transparent;
	padding: 0;
}

.pae-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

@media (max-width: 1024px) {
	.pae-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.pae-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.pae-gallery {
		grid-template-columns: repeat(1, 1fr);
	}
}

.pae-gallery a,
.pae-gallery-item {
	display: block;
	border-radius: 6px;
	overflow: hidden;
}

.pae-gallery img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease, filter 0.3s ease;
}

/* Lightbox */
.pae-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.pae-lightbox-overlay img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 4px;
}

.pae-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	background: none;
	border: none;
}

.pae-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.pae-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.pae-lightbox-prev {
	left: 20px;
}

.pae-lightbox-next {
	right: 20px;
}

@media (max-width: 600px) {
	.pae-lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 22px;
	}
	.pae-lightbox-prev { left: 8px; }
	.pae-lightbox-next { right: 8px; }
}
