/* Fiche d'une tasse village : choix des 2 photos + impression.
   L'aperçu tasse réutilise les styles de submission-upload.css. */

.lmv-village-photos {
	margin: 0 0 1.2em;
}

.lmv-village-photos__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.7em;
	margin: 0.6em 0 0;
	padding: 0;
	list-style: none;
}

.lmv-village-photos__option {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--lmv-linen, #ece0c4);
	border: 3px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.lmv-village-photos__option img {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-size: 0;
	object-fit: cover;
	margin: 0 !important;
}

/* Case native gardée accessible (clavier, lecteur d'écran) mais invisible. */
.lmv-village-photos__option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.lmv-village-photos__option:hover,
.lmv-village-photos__option input:focus-visible + img {
	border-color: var(--lmv-line, #ddd0ac);
}

.lmv-village-photos__option input:focus-visible + img {
	outline: 2px solid var(--lmv-copper, #1e4a2c);
	outline-offset: -2px;
}

.lmv-village-photos__option.is-selected {
	border-color: var(--lmv-copper, #1e4a2c);
}

.lmv-village-photos__option.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.lmv-village-photos__num {
	position: absolute;
	top: 0.35em;
	left: 0.35em;
	min-width: 1.6em;
	padding: 0.1em 0.4em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--lmv-ink, #3d2c1e);
	font-size: 0.75em;
	font-weight: 700;
	text-align: center;
}

.lmv-village-photos__badge:empty {
	display: none;
}

.lmv-village-photos__badge {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.25em 0;
	background: var(--lmv-copper, #1e4a2c);
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
	text-align: center;
}

.lmv-village-photos__errors {
	margin-top: 0.5em;
	color: var(--lmv-terracotta, #b35839);
	font-weight: 600;
}

.lmv-village-photos__errors:empty {
	display: none;
}

.lmv-village-photos__send {
	margin: 0.8em 0 0;
	font-size: 0.9em;
	color: var(--lmv-ink-soft, #6b5843);
}
