/* PlayPal – listing images. Loaded on every theme. */

/* Two-photo layout on the single listing page */
.pp-gallery--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
}
.pp-gallery--two .pp-gallery__cell {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f4f4f2;
	aspect-ratio: 4 / 3;
}
.pp-gallery--two .pp-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 560px) {
	.pp-gallery--two { grid-template-columns: 1fr; }
}

/* Neutral placeholder wherever WooCommerce would show its grey box */
img[src$="assets/placeholder.svg"] {
	background: #f4f4f2;
	object-fit: contain;
}

/* Listing form – the two image fields */
.pp-imgfields { border: 0; padding: 0; margin: 0 0 1rem; }
.pp-imgfields > legend { padding: 0; }
.pp-imgfield {
	margin-top: .75rem;
	padding: .75rem;
	border: 1px solid #e4e4e0;
	border-radius: 8px;
	background: #fff;
}
.pp-imgfield > label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	margin-bottom: .35rem;
}
.pp-imgfield__current {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: .4rem;
}
.pp-imgfield__current img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e4e4e0;
}
.pp-imgfield__preview { margin-top: .5rem; }
.pp-imgfield__preview img {
	max-width: 140px;
	max-height: 140px;
	border-radius: 6px;
	border: 1px solid #e4e4e0;
}
.pp-imgfield__warn {
	display: block;
	margin-top: .35rem;
	color: #8a1c1c;
	font-size: .82rem;
}
