#page-publications {
	margin: 0;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
	color: rgba(92, 28, 28, 0.9);

	.publications-container {
		max-width: 900px;
		margin: 0 auto 2.5rem auto;
		padding: 1.25rem 0.75rem 0.75rem 0.75rem;
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	.publications-grid {
		display: flex;
		flex-direction: column;
		gap: 5.25rem;
		align-items: center;
	}

	.pub {
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100%;
		max-width: 740px;
	}

	.pub-center {
		max-width: 560px;
	}

	.pub a {
		display: block;
		background: white;
		border-radius: 8px;
		overflow: hidden;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
		transition: transform 0.2s ease, box-shadow 0.2s ease;
		width: 100%;
	}

	.pub a:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
	}

	.pub img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
	}
}

/* Modal plein écran (réutilise le comportement existant) */
.fullscreen-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	box-sizing: border-box;
	padding: 3rem 0.75rem;

	&.active {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#fullscreenImage {
		width: 100%;
		max-width: 1150px;
		height: auto;
		max-height: 90vh;
		object-fit: contain;
	}

	.close-modal {
		position: absolute;
		top: 20px;
		right: 20px;
		font-size: 1.5rem;
		color: white;
		cursor: pointer;
		background: rgba(255, 255, 255, 0.2);
		border: none;
		padding: 10px 15px;
		border-radius: 50%;
		transition: background 0.3s ease;

		&:hover {
			background: rgba(255, 255, 255, 0.5);
		}
	}
}

@media screen and (max-width: 750px) {
	.fullscreen-modal {
		padding: 0.5rem;
	}
}

@media screen and (max-width: 900px) {
	#page-publications {
		.publications-container {
			padding-top: 1rem;
			padding-left: 2rem;
			padding-right: 2rem;
			margin-bottom: 1.5rem;
		}

		.publications-grid {
			gap: 3.75rem;
		}

		.pub-center {
			max-width: 520px;
		}
	}
}

