.glux-public-gallery {
	margin: 42px 0;
}

.glux-public-gallery h2 {
	font-family: Cinzel, serif;
	color: #bf5388;
}

.glux-public-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.glux-public-gallery__grid a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid rgba(191, 83, 136, .35);
	border-radius: 14px;
	cursor: zoom-in;
}

.glux-public-gallery__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.glux-public-gallery__grid a:hover img,
.glux-public-gallery__grid a:focus-visible img {
	transform: scale(1.03);
}

.glux-public-gallery__grid a:focus-visible {
	outline: 3px solid #bf5388;
	outline-offset: 4px;
}

/* Evite l'apparition fugace du carrousel historique avant son retrait par JS. */
body.single-glw_place .glw-sheet > .glw-section:has(.glw-slider) {
	display: none;
}

.glux-lightbox[hidden] {
	display: none !important;
}

.glux-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: minmax(52px, 88px) minmax(0, 1fr) minmax(52px, 88px);
	align-items: center;
	background: rgba(7, 5, 8, .96);
	padding: 56px 18px 24px;
	overscroll-behavior: contain;
}

.glux-lightbox__figure {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	justify-items: center;
	gap: 14px;
	width: 100%;
	height: calc(100vh - 90px);
	margin: 0;
}

.glux-lightbox__figure img {
	max-width: 100%;
	max-height: calc(100vh - 130px);
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 18px 70px rgba(0, 0, 0, .65);
}

.glux-lightbox__figure figcaption {
	color: #fff;
	font: 700 14px/1.4 Inter, sans-serif;
}

.glux-lightbox button {
	border: 1px solid rgba(255, 255, 255, .45);
	background: rgba(18, 14, 20, .78);
	color: #fff;
	cursor: pointer;
}

.glux-lightbox button:hover,
.glux-lightbox button:focus-visible {
	background: #bf5388;
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.glux-lightbox__close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
}

.glux-lightbox__nav {
	width: 52px;
	height: 68px;
	justify-self: center;
	border-radius: 14px;
	font-size: 44px;
	line-height: 1;
}

body.glux-lightbox-open {
	overflow: hidden;
}

@media (max-width: 680px) {
	.glux-public-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.glux-lightbox {
		grid-template-columns: 50px minmax(0, 1fr) 50px;
		padding: 60px 4px 18px;
	}

	.glux-lightbox__nav {
		width: 44px;
		height: 58px;
		font-size: 38px;
	}
}
