/* CTRL-Z Cartes stéréo — paires SBS aléatoires et style « Cadre carte » */

.ctrlz-paires {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}
.ctrlz-paire {
	display: block;
	background: #fff;
	padding: 8px;
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(39, 36, 29, 0.18);
	text-decoration: none;
	transition: transform 0.2s ease;
}
.ctrlz-paire img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}
a.ctrlz-paire:hover,
a.ctrlz-paire:focus-visible {
	transform: translateY(-3px);
}
/* Style « empilé » : deux cartes légèrement inclinées, la seconde chevauche la première
   (laisse de la place à gauche pour le pack Cartoscope posé par-dessus) */
.ctrlz-paires-empile .ctrlz-paire:nth-child(1) {
	width: 78%;
	margin-left: auto;
	transform: rotate(-2deg);
}
.ctrlz-paires-empile .ctrlz-paire:nth-child(2) {
	width: 70%;
	margin: -30px 0 0 auto;
	transform: rotate(1.5deg);
}
@media (max-width: 1024px) {
	.ctrlz-paires-empile .ctrlz-paire:nth-child(1) { width: 84%; }
	.ctrlz-paires-empile .ctrlz-paire:nth-child(2) { width: 74%; }
}
.ctrlz-paires-empile a.ctrlz-paire:nth-child(1):hover { transform: rotate(-2deg) translateY(-3px); }
.ctrlz-paires-empile a.ctrlz-paire:nth-child(2):hover { transform: rotate(1.5deg) translateY(-3px); }
.ctrlz-paires-legende {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: right;
	color: #d9c4a0;
	margin-top: 4px;
}
@media (max-width: 767px) {
	.ctrlz-paires-empile .ctrlz-paire:nth-child(2) { margin-top: -18px; }
	.ctrlz-paire { padding: 6px; }
}

/* Style de bloc « Cadre carte » : même habillage pour une image simple (non stéréo) ou une paire */
.wp-block-image.is-style-ctrlz-cadre,
.wp-block-kadence-image.is-style-ctrlz-cadre,
.wp-block-gallery.is-style-ctrlz-cadre,
.wp-block-kadence-advancedgallery.is-style-ctrlz-cadre {
	background: #fff;
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(39, 36, 29, 0.14);
	box-sizing: border-box;
}
.wp-block-image.is-style-ctrlz-cadre img,
.wp-block-kadence-image.is-style-ctrlz-cadre img {
	border-radius: 3px;
}
.wp-block-image.is-style-ctrlz-cadre figcaption,
.wp-block-kadence-image.is-style-ctrlz-cadre figcaption {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #625d52;
	text-align: center;
}
/* La visionneuse Suto 3D reçoit le même cadre */
.s3d-embed {
	background: #fff;
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(39, 36, 29, 0.14);
	box-sizing: border-box;
}
