/*
 * Agent page (templates/agent-layout.txt): the photo column.
 *
 * The row centres its columns vertically and makes them equal height, so with a
 * long bio the photo would float mid-column. Instead the photo sits at the top,
 * in one consistent 2:3 shape, and on desktop stays in view while the bio scrolls.
 */
.elite-agent-photo-col .vc_column-inner {
	justify-content: flex-start !important;
}

.elite-agent-portrait {
	border-bottom: 8px solid #004c45; /* brand teal accent under the photo */
}

.elite-agent-portrait__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: center top;
}

@media (min-width: 1000px) {
	/* Give the photo the full column height to travel in. */
	.elite-agent-photo-col .vc_column-inner > .wpb_wrapper {
		height: 100%;
		flex-grow: 1;
	}

	.elite-agent-photo-block {
		position: sticky;
		top: 100px;
	}

	/*
	 * The theme sets overflow: hidden on both <html> and <body>, which makes the
	 * body a scroll container that never scrolls, and sticky never engages.
	 * `clip` clips the same way without creating a scroll container.
	 */
	body.elite-agent-page {
		overflow: clip;
	}
}
