.cpg-card-gallery {
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
}

.cpg-card-gallery__image {
	transition: opacity 160ms ease, transform 160ms ease;
}

.cpg-card-gallery--loading .cpg-card-gallery__image {
	opacity: .82;
	transform: scale(1.008);
}

.cpg-card-gallery__arrow {
	align-items: center;
	background: rgba(20, 20, 20, .62);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: 700 28px/1 Arial, sans-serif;
	height: 36px;
	justify-content: center;
	margin: 0;
	opacity: 0;
	padding: 0 0 2px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity 120ms ease, background-color 120ms ease;
	width: 36px;
	z-index: 4;
}

.cpg-card-gallery__arrow--previous {
	left: 10px;
}

.cpg-card-gallery__arrow--next {
	right: 10px;
}

.cpg-card-gallery:hover .cpg-card-gallery__arrow,
.cpg-card-gallery:focus-within .cpg-card-gallery__arrow,
.cpg-card-gallery__arrow:focus-visible {
	opacity: 1;
}

.cpg-card-gallery__arrow:hover,
.cpg-card-gallery__arrow:focus-visible {
	background: rgba(20, 20, 20, .84);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (hover: none), (pointer: coarse) {
	.cpg-card-gallery__arrow {
		height: 34px;
		opacity: .92;
		width: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpg-card-gallery__image,
	.cpg-card-gallery__arrow {
		transition: none;
	}
}

/* Individual property: resilient placeholders for the visible desktop grid. */
.hs-gallery-v4-grid .cpg-property-gallery__broken {
	background: linear-gradient(145deg, #052b50, #0b3d68);
	min-height: 190px;
	overflow: hidden;
	position: relative;
}

.hs-gallery-v4-grid .cpg-property-gallery__broken > img {
	opacity: 0;
}

.cpg-property-gallery__placeholder {
	align-items: center;
	background: linear-gradient(145deg, #052b50, #0b3d68);
	color: rgba(255, 255, 255, .94);
	display: flex;
	flex-direction: column;
	gap: 9px;
	inset: 0;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
	position: absolute;
	text-align: center;
	z-index: 0;
}

.cpg-property-gallery__placeholder svg {
	height: 46px;
	width: 46px;
}

.cpg-property-gallery__placeholder-text {
	font: 600 14px/1.35 Arial, sans-serif;
	letter-spacing: .01em;
}

@media (max-width: 767.98px) {
	.property-banner.cpg-property-banner--enhanced {
		overflow: visible;
	}

	.cpg-property-gallery {
		background: #052b50;
		isolation: isolate;
		overflow: visible;
		position: relative;
		touch-action: pan-y;
	}

	.cpg-property-gallery__image {
		display: block;
		opacity: 1;
		position: relative;
		transition: opacity 180ms ease;
		z-index: 1;
	}

	.cpg-property-gallery--loading:not(.cpg-property-gallery--ready) .cpg-property-gallery__image,
	.cpg-property-gallery--unavailable .cpg-property-gallery__image {
		opacity: 0;
	}

	.cpg-property-gallery--ready .cpg-property-gallery__placeholder {
		opacity: 0;
		visibility: hidden;
	}

	.cpg-property-gallery--unavailable .cpg-property-gallery__placeholder {
		opacity: 1;
		visibility: visible;
	}

	.cpg-property-gallery .property-banner-trigger {
		z-index: 2;
	}

	.cpg-property-gallery--unavailable .property-banner-trigger[aria-disabled="true"] {
		pointer-events: none;
	}

	.cpg-property-gallery__arrow {
		align-items: center;
		appearance: none;
		background: rgba(0, 30, 58, .76);
		border: 1px solid rgba(255, 255, 255, .68);
		border-radius: 999px;
		box-shadow: 0 3px 14px rgba(0, 0, 0, .24);
		color: #fff;
		cursor: pointer;
		display: flex;
		height: 42px;
		justify-content: center;
		margin: 0;
		opacity: .96;
		padding: 0;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		transition: background-color 140ms ease, opacity 140ms ease, transform 140ms ease;
		width: 42px;
		z-index: 6;
	}

	.cpg-property-gallery__arrow svg {
		fill: none;
		height: 24px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 2.4;
		width: 24px;
	}

	.cpg-property-gallery__arrow--previous {
		left: 10px;
	}

	.cpg-property-gallery__arrow--next {
		right: 10px;
	}

	.cpg-property-gallery__arrow:active {
		background: rgba(0, 30, 58, .94);
		transform: translateY(-50%) scale(.94);
	}

	.cpg-property-gallery__arrow:focus-visible {
		outline: 3px solid #fff;
		outline-offset: 2px;
	}

	.cpg-property-gallery__arrow:disabled {
		cursor: wait;
		opacity: .48;
	}

	.cpg-property-gallery .property-image-count {
		z-index: 7;
	}

	.cpg-property-gallery__share {
		position: absolute;
		right: 11px;
		top: 11px;
		z-index: 8;
	}

	.cpg-property-gallery__share .property-item-tools {
		display: flex;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.cpg-property-gallery__share .houzez-share {
		margin: 0;
		position: relative;
	}

	.cpg-property-gallery__share .item-tool-share {
		align-items: center;
		background: rgba(0, 30, 58, .78);
		border: 1px solid rgba(255, 255, 255, .72);
		border-radius: 999px;
		box-shadow: 0 3px 14px rgba(0, 0, 0, .24);
		color: #fff;
		display: flex;
		height: 42px;
		justify-content: center;
		width: 42px;
	}

	.cpg-property-gallery__share .item-tool-share:focus-visible {
		outline: 3px solid #fff;
		outline-offset: 2px;
	}

	.cpg-property-gallery__share .dropdown-menu {
		left: auto !important;
		max-height: min(420px, 70vh);
		min-width: 210px;
		overflow-y: auto;
		right: 0 !important;
		top: calc(100% + 7px) !important;
		transform: none !important;
		z-index: 1090;
	}

	.cpg-property-gallery__legacy-tools--empty {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpg-property-gallery__image,
	.cpg-property-gallery__arrow {
		transition: none;
	}
}
