/* Homepage "Shop by space" section */

.thsc-home-spaces {
	--thsc-spaces-bg: #fcf7f3;
	--thsc-spaces-ink: #1c1a18;
	--thsc-spaces-accent: #8a4b2d;
	--thsc-spaces-rule: #d9b8a6;
	--thsc-spaces-muted: #cdb4a6;
	--thsc-spaces-serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--thsc-spaces-bg);
	color: var(--thsc-spaces-ink);
	font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.thsc-home-spaces__inner {
	width: min(1212px, 100%);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 88px) 21px clamp(56px, 8vw, 80px);
	box-sizing: border-box;
}

.thsc-home-spaces__head {
	text-align: center;
}

.thsc-home-spaces__eyebrow {
	margin: 0 0 14px;
	color: var(--thsc-spaces-accent);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.24em;
	line-height: 1.2;
	text-transform: uppercase;
}

.thsc-home-spaces__title {
	margin: 0;
	color: var(--thsc-spaces-ink);
	font-family: var(--thsc-spaces-serif);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.15;
	text-transform: uppercase;
}

.thsc-home-spaces__rule {
	display: block;
	width: 48px;
	height: 1px;
	margin: 22px auto 0;
	background: var(--thsc-spaces-rule);
}

.thsc-home-spaces__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
	margin: clamp(32px, 5vw, 48px) 0 0;
	padding: 0;
	list-style: none;
}

.thsc-home-spaces__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.thsc-home-spaces__link {
	display: block;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.thsc-home-spaces__media {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #efe6db;
}

.thsc-home-spaces__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.thsc-home-spaces__link:hover .thsc-home-spaces__media img,
.thsc-home-spaces__link:focus-visible .thsc-home-spaces__media img {
	transform: scale(1.05);
}

.thsc-home-spaces__link:focus-visible {
	outline: 2px solid var(--thsc-spaces-accent);
	outline-offset: 4px;
}

.thsc-home-spaces__name {
	display: block;
	margin-top: 14px;
	color: var(--thsc-spaces-ink);
	font-family: "Montserrat", "Source Sans Pro", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.thsc-home-spaces__count {
	display: block;
	margin-top: 4px;
	color: var(--thsc-spaces-muted);
	font-size: 13px;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.thsc-home-spaces__actions {
	margin-top: clamp(36px, 5vw, 52px);
	text-align: center;
}

.thsc-home-spaces__btn {
	display: inline-block;
	padding: 14px 32px;
	border: 1px solid var(--thsc-spaces-ink);
	color: var(--thsc-spaces-ink);
	font-family: "Montserrat", "Source Sans Pro", sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 200ms ease, color 200ms ease;
}

.thsc-home-spaces__btn:hover,
.thsc-home-spaces__btn:focus-visible {
	background: var(--thsc-spaces-ink);
	color: #fff;
}

/* "The Cabo Edit" editorial banner */

.thsc-cabo-edit {
	--thsc-edit-bg: #f6f1ed;
	--thsc-edit-ink: #1c1a18;
	--thsc-edit-accent: #8a4b2d;
	--thsc-edit-line: #ebe3dc;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--thsc-edit-bg);
	border-top: 1px solid var(--thsc-edit-line);
	border-bottom: 1px solid var(--thsc-edit-line);
	color: var(--thsc-edit-ink);
	font-family: "Montserrat", "Source Sans Pro", "Segoe UI", sans-serif;
}

.thsc-cabo-edit__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: clamp(32px, 6vw, 58px);
	align-items: center;
	width: min(1212px, 100%);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 64px) 21px;
	box-sizing: border-box;
}

.thsc-cabo-edit__eyebrow {
	margin: 0 0 22px;
	color: var(--thsc-edit-accent);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
}

.thsc-cabo-edit__title {
	max-width: 11em;
	margin: 0 0 22px;
	color: var(--thsc-edit-ink);
	font-family: "Noto Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}

.thsc-cabo-edit__text {
	max-width: 30em;
	margin: 0 0 32px;
	color: #3b3733;
	font-size: 15px;
	line-height: 1.65;
}

.thsc-cabo-edit__btn {
	display: inline-block;
	padding: 15px 32px;
	border: 1px solid var(--thsc-edit-ink);
	background: var(--thsc-edit-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 200ms ease, color 200ms ease;
}

.thsc-cabo-edit__btn:hover,
.thsc-cabo-edit__btn:focus-visible {
	background: transparent;
	color: var(--thsc-edit-ink);
}

.thsc-cabo-edit__figure {
	position: relative;
	margin: 0;
}

.thsc-cabo-edit__figure img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.thsc-cabo-edit__caption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	background: rgba(246, 241, 237, 0.94);
	color: #3b3733;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

@media (max-width: 800px) {
	.thsc-cabo-edit__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.thsc-cabo-edit__figure {
		order: -1;
	}
}

body.thsc-home-hero-page .block-content .vc_row:has(.thsc-home-spaces),
body.thsc-home-hero-page .block-content .wpb_row:has(.thsc-home-spaces) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

@media (max-width: 1024px) {
	.thsc-home-spaces__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 20px;
	}
}

@media (max-width: 560px) {
	.thsc-home-spaces__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thsc-home-spaces__media img {
		transition: none;
	}

	.thsc-home-spaces__link:hover .thsc-home-spaces__media img {
		transform: none;
	}
}
