/* FTF Range Card (blocks/range-card)
   Type follows the site's existing scale (measured on live pages):
   body copy 15px/25px Lato light; section headings 30px light. */

.ftf-range {
	container-type: inline-size;
	margin: 0 0 20px; /* outer edges flush with other page content */
	font-family: Lato, sans-serif;
}
/* Site columns have no gutter. Cards in neighbouring columns share a 20px gap,
   split so every card stays the same width and the outer edges stay flush. */
.wpb_column:first-child:nth-last-child(2) .ftf-range { margin-right: 10px; }
.wpb_column:last-child:nth-child(2) .ftf-range { margin-left: 10px; }
.wpb_column:first-child:nth-last-child(3) .ftf-range { margin-right: 13.333px; }
.wpb_column:nth-child(2):nth-last-child(2) .ftf-range { margin-left: 6.667px; margin-right: 6.667px; }
.wpb_column:last-child:nth-child(3) .ftf-range { margin-left: 13.333px; }
.wpb_column:first-child:nth-last-child(4) .ftf-range { margin-right: 15px; }
.wpb_column:nth-child(2):nth-last-child(3) .ftf-range { margin-left: 5px; margin-right: 10px; }
.wpb_column:nth-child(3):nth-last-child(2) .ftf-range { margin-left: 10px; margin-right: 5px; }
.wpb_column:last-child:nth-child(4) .ftf-range { margin-left: 15px; }
@media (max-width: 767px) { /* columns stack on phones */
	.wpb_column .ftf-range { margin-left: 0 !important; margin-right: 0 !important; }
}

.ftf-range .ftf-range__card {
	display: flex;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid #E6D3C5;
	background: #fff;
	overflow: hidden;
}
.ftf-range .ftf-range__media {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 0;
	min-width: 0;
	padding: 16px;
	background: #fff;
	border: 0;
	text-decoration: none;
	overflow: hidden;
}
.ftf-range .ftf-range__media img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
}
/* Lifestyle photos fill the image panel edge to edge, with no white margin (cropped from the centre). */
.ftf-range--photo .ftf-range__media { padding: 0; }
.ftf-range--photo .ftf-range__media img { object-fit: cover; }

.ftf-range .ftf-range__body {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: #F3E7DF;
}
.ftf-range--white .ftf-range__body { background: #fff; }

.ftf-range h3.ftf-range__title {
	margin: 0 0 14px;
	padding: 0;
	font-family: Lato, sans-serif;
	font-size: 30px;
	line-height: 1.1 !important;
	font-weight: 300 !important;
	color: #8A5614 !important; /* site CSS forces gold on h3, which is too faint on the tinted background */
}
.ftf-range p.ftf-range__tagline {
	margin: 0 0 2px; /* sits close to the body copy so it reads as part of it */
	padding: 0;
	font-family: Lato, sans-serif;
	font-size: 15px;
	line-height: 25px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #333;
}
.ftf-range p.ftf-range__text {
	margin: 0 0 14px;
	padding: 0;
	max-width: 40em;
	font-family: Lato, sans-serif;
	font-size: 15px;
	line-height: 25px;
	font-weight: 300;
	color: #333;
}
.ftf-range a.ftf-range__link,
.ftf-range a.ftf-range__link:visited,
.ftf-range a.ftf-range__link:hover,
.ftf-range a.ftf-range__link:focus {
	align-self: flex-start;
	margin-top: auto;
	font-family: Lato, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 700;
	color: #8A5614;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.ftf-range a.ftf-range__link:hover,
.ftf-range a.ftf-range__link:focus { border-bottom-color: #8A5614; }
.ftf-range .ftf-range__arrow { display: inline-block; margin-left: .5em; transition: transform .2s ease; }
.ftf-range a.ftf-range__link:hover .ftf-range__arrow { transform: translateX(4px); }

/* Wide: image one third, text two thirds. Fixed heights (longest text, Jogya, plus 28px
   top and bottom), stepping up as the card narrows. Measured on the live site. */
.ftf-range--wide .ftf-range__card { flex-direction: row; height: 244px; }
.ftf-range--wide.ftf-range--image-right .ftf-range__card { flex-direction: row-reverse; }
.ftf-range--wide .ftf-range__media { flex: 0 0 calc((100% - 40px) / 3); } /* same width as a tall card in a row of three */
.ftf-range--wide .ftf-range__body { flex: 1 1 auto; padding: 28px 36px; justify-content: center; }
.ftf-range--wide a.ftf-range__link { margin-top: 0; }
@container (max-width: 999px) { .ftf-range--wide .ftf-range__card { height: 270px; } }
@container (max-width: 799px) { .ftf-range--wide .ftf-range__card { height: 294px; } }
@container (max-width: 699px) { .ftf-range--wide .ftf-range__card { height: 316px; } }

/* Tall: image above text. Below 600px wide cards take the same shape. */
.ftf-range--tall .ftf-range__card { flex-direction: column; }
.ftf-range--tall .ftf-range__media { flex: none; height: 260px; }
.ftf-range--tall .ftf-range__body { flex: 0 0 308px; padding: 22px 26px 24px; }
.ftf-range--tall a.ftf-range__link { margin-top: auto; }
@container (max-width: 599px) {
	.ftf-range--wide .ftf-range__card,
	.ftf-range--wide.ftf-range--image-right .ftf-range__card { flex-direction: column; height: auto; }
	.ftf-range--wide .ftf-range__media { flex: none; height: 260px; }
	.ftf-range--wide .ftf-range__body { flex: 0 0 308px; padding: 22px 26px 24px; justify-content: flex-start; }
	.ftf-range--wide a.ftf-range__link { margin-top: auto; }
}
@container (max-width: 359px) { .ftf-range .ftf-range__body { flex-basis: 332px; } }
@container (max-width: 329px) { .ftf-range .ftf-range__body { flex-basis: 376px; } }
@container (max-width: 269px) { .ftf-range .ftf-range__body { flex-basis: 426px; } }
@container (max-width: 239px) { .ftf-range .ftf-range__body { flex-basis: 472px; } .ftf-range .ftf-range__media { height: 200px; } }
