/**
 * AiProp Listing Gallery - small round thumbnails.
 *
 * Mirrors the look the theme used (60px circles, 4-ish per row) so the sidebar
 * is unchanged visually, but survives a theme update. Scoped under
 * .aiprop-lg-* only - no theme rule can collide, and no `!important` is needed.
 *
 * Reference (theme's own inline style, as served on LIVE):
 *   .gallery-preview-image { border-radius:50%; width:60px; height:60px;
 *                            margin:0 6px 12px; display:inline-block; }
 */

.aiprop-lg-widget .aiprop-lg-count {
	opacity: 0.65;
	font-size: 0.85em;
	font-weight: inherit;
}

/* Wrapping row of round thumbnails. */
ul.aiprop-lg-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.aiprop-lg-grid li.aiprop-lg-item {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	list-style: none;
}

/* The circle itself. The image is rounded on its own, so no clipping is
   applied here - which also lets the :hover scale read cleanly. */
a.aiprop-lg-trigger {
	position: relative;
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #eef1f0;
	line-height: 0;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(13, 27, 42, 0.08);
}

a.aiprop-lg-trigger img.aiprop-lg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.aiprop-lg-trigger:hover img.aiprop-lg-img,
a.aiprop-lg-trigger:focus img.aiprop-lg-img {
	transform: scale(1.08);
	box-shadow: 0 2px 8px rgba(13, 27, 42, 0.28);
}

a.aiprop-lg-trigger:focus-visible {
	outline: 2px solid #12694e;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	a.aiprop-lg-trigger img.aiprop-lg-img {
		transition: none;
	}
	a.aiprop-lg-trigger:hover img.aiprop-lg-img,
	a.aiprop-lg-trigger:focus img.aiprop-lg-img {
		transform: none;
	}
}
