/* Tocar una foto de una ficha la amplía (`Core\Ui\Zoom`). */

.poc-zoomable {
	cursor: zoom-in;
}

.poc-zoomable:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

html.poc-zoom-on {
	overflow: hidden;
}

.poc-zoom {
	box-sizing: border-box;
	inset: 0;
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 3.25rem 0.75rem 1rem;
	border: 0;
	background: rgba(8, 9, 12, 0.94);
	color: #f4f4f5;
	cursor: zoom-out;
}

.poc-zoom[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.poc-zoom::backdrop {
	background: rgba(8, 9, 12, 0.94);
}

.poc-zoom__img {
	display: block;
	min-width: 0;
	max-width: 100%;
	max-height: calc(100dvh - 7rem);
	object-fit: contain;
	border-radius: 6px;
	/* El pellizco amplía; el desplazamiento de la página está bloqueado. */
	touch-action: pinch-zoom;
}

.poc-zoom__cap {
	max-width: 40rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: center;
}

.poc-zoom__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.poc-zoom__close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.poc-zoom[open] {
		animation: poc-zoom-in 0.16s ease-out;
	}
}

@keyframes poc-zoom-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
