/* ===== VISIONNEUSE DE PHOTOS =====
   Placée directement dans le corps de la page, donc hors de #slk-app : ses
   règles ne peuvent pas s'appuyer sur ce conteneur. */
.slk-zoom { cursor: zoom-in; }

/* La feuille sert aussi dans l'administration, qui ne charge pas l'animation du site. */
@keyframes slk-lb-spin { to { transform: rotate(360deg); } }

html.slk-lb-open { overflow: hidden; }

.slk-lb {
	position: fixed; inset: 0; z-index: 99999; display: none;
	align-items: center; justify-content: center;
	background: rgba(26, 16, 8, .88);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.slk-lb.is-open { display: flex; }

.slk-lb__stage {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; padding: 56px 16px;
	box-sizing: border-box;
}
.slk-lb__img {
	display: block; max-width: min(1200px, 100%); max-height: 100%;
	width: auto; height: auto;
	border-radius: 6px; box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
	background: #fff;
}
.slk-lb__spin { position: absolute; display: block; color: #fff; }
.slk-lb__spin .slk-spinner {
	display: inline-block; width: 26px; height: 26px;
	border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
	border-radius: 50%; animation: slk-lb-spin .6s linear infinite;
}
.slk-lb__err {
	display: none; margin: 0; max-width: 340px;
	text-align: center; font-size: 14px; line-height: 1.5; color: #fff;
}

.slk-lb__close, .slk-lb__nav {
	position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
	border: 0; cursor: pointer; color: #fff;
	background: rgba(255, 255, 255, .14);
	-webkit-appearance: none; appearance: none;
	transition: background .2s;
}
.slk-lb__close:hover, .slk-lb__nav:hover { background: rgba(255, 255, 255, .3); }

/* Les commandes ne portent que des icônes dessinées : pas de chasse de police
   à compenser, le dessin est centré dans le bouton au pixel près. */
.slk-lb__close, .slk-lb__nav { padding: 0; line-height: 0; }
.slk-lb__close svg, .slk-lb__nav svg { display: block; }

.slk-lb__close {
	top: 14px; right: 14px; width: 40px; height: 40px;
	border-radius: 50%;
}
.slk-lb__nav {
	top: 50%; transform: translateY(-50%);
	width: 48px; height: 64px; border-radius: 8px;
}
.slk-lb__nav--prev { left: 16px; }
.slk-lb__nav--next { right: 16px; }

.slk-lb__count {
	position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
	font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .8);
}

@media (max-width: 600px) {
	.slk-lb__stage { padding: 52px 8px; }
	.slk-lb__nav { width: 40px; height: 56px; }
	.slk-lb__nav svg { width: 20px; height: 20px; }
	.slk-lb__nav--prev { left: 8px; }
	.slk-lb__nav--next { right: 8px; }
}
