/*
 * CaryTamura Websites page (/websites/, Page 5677) — 2026 redesign.
 *
 * Loaded on this page only (functions.php), after page-hero.css and
 * sections.css. Below the split title band: a section head, then the twelve
 * property websites (each card an HTML `a` container opening the property's
 * own site in a new tab, an Image widget and an H3; The Sky Garage has no
 * destination and is a plain div) as a three-column index — screenshot
 * above, title and an outward arrow below — then the contact band.
 *
 * The original four-column tiles with captions over a dark shade are not
 * reproduced.
 */

.ct-page-body:has(.ct-ws-portfolio) {
	padding-block: 0;
}

.ct-ws-portfolio.e-con {
	--padding-top: var(--ct-space-section);
	--padding-bottom: var(--ct-space-section);
	--padding-left: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2));
	--padding-right: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2));
	--row-gap: 0px;
	--kit-widget-spacing: 0px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}

/* The section head spans the grid's full width. */
.ct-ws-portfolio.e-con > .ct-section-head {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.ct-ws-card.e-con {
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--gap: 0px;
	--row-gap: 0px;
	position: relative;
	width: auto;
	color: var(--ct-ink);
	text-decoration: none;
}

.ct-ws-card__img {
	width: 100%;
	overflow: hidden;
	background-color: var(--ct-surface);
}

.ct-ws-card__img img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: top center;
	transition: transform 600ms var(--ct-ease);
}

.ct-ws-card:hover .ct-ws-card__img img,
.ct-ws-card:focus-visible .ct-ws-card__img img {
	transform: scale(1.03);
}

.ct-ws-card__title {
	width: 100%;
}

.ct-ws-card__title .elementor-heading-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding-top: 18px;
	font-family: var(--ct-font-display);
	font-size: var(--ct-type-h3);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	color: var(--ct-ink);
}

a.ct-ws-card .ct-ws-card__title .elementor-heading-title::after {
	content: "\2197";
	font-family: var(--ct-font-body);
	font-size: 18px;
	transition: transform var(--ct-transition);
}

a.ct-ws-card:hover .ct-ws-card__title .elementor-heading-title::after {
	transform: translate(3px, -3px);
}

a.ct-ws-card:focus-visible {
	outline: 2px solid var(--ct-accent);
	outline-offset: 6px;
}

@media (max-width: 1024px) {
	.ct-ws-portfolio.e-con {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ct-ws-portfolio.e-con {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-ws-card__img img {
		transition: none;
	}
}
