/*
 * Sold-property cards use source images with several aspect ratios. A stable
 * responsive frame prevents uneven rows while preserving the original media.
 */
.page-id-5468 .rem-style-2 .img-container > a {
	display: block;
	position: relative;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: #f4f4f4;
}

.page-id-5468 .rem-style-2 .img-container .rem-f-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/*
 * Real Estate Manager Pro supplies a native Sold ribbon whenever
 * rem_property_status is Sold. On this sold-only archive, use that semantic
 * ribbon in the card's top-right badge position and suppress the redundant
 * generic property-type label (House).
 */
.page-id-5468 .rem-style-2 .property-type {
	display: none;
}

.page-id-5468 .rem-style-2 .purpose-badge.sold {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	left: auto;
	right: 15px;
	width: 60px;
	height: 28px;
	padding: 0;
	background-color: #d64045;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/*
 * Reserve a dedicated single-line lane for the address so it cannot collide
 * with the photo count on narrower cards. The complete address remains in the
 * document while the visual label truncates cleanly when space is limited.
 */
.page-id-5468 .rem-style-2 .address-text {
	display: block;
	right: 58px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/*
 * The production author account has an unrelated Gravatar. The author name is
 * the meaningful archive-card label, so omit that decorative avatar here.
 */
.page-id-5468 .rem-style-2 .agent-info img {
	display: none;
}

/* Portrait tablets are too narrow for two readable property columns. */
@media (min-width: 768px) and (max-width: 900px) {
	.page-id-5468 .rem-listings-wrap-ajax-enable > .row > .m-item {
		float: none;
		width: 100%;
		margin-right: auto;
		margin-left: auto;
	}
}

/*
 * 18396 Macassar's only verified image is a landscape elevation sheet inside
 * a portrait canvas. Crop the empty canvas and correct the slight camera skew
 * without changing the source file or any engineering details.
 */
.page-id-5468 .bh-property-18396-macassar .img-container .rem-f-image,
.bh-property-18396-macassar .imgs-grid-image .image-wrap img {
	object-position: center 50.8%;
	transform: rotate(-0.5deg) scale(1.02);
	transform-origin: center;
}

.bh-property-18396-macassar .imgs-grid-image .image-wrap {
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: #fff;
}

.bh-property-18396-macassar .imgs-grid-image .image-wrap img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
	.page-id-5468 .rem-style-2 .img-container .rem-f-image,
	.bh-property-18396-macassar .imgs-grid-image .image-wrap img {
		transition: none !important;
	}
}
