/*
 * Retreat House page (page-retreat-house.php). Loaded on that page only.
 * Everything is scoped under .kh-retreat. Divi sets global styles for headings,
 * paragraphs, lists and links (padding, line-height, list-style, colours), so those
 * are reset here.
 */

.kh-retreat {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #333333;
	background: #ffffff;
}

.kh-retreat h1,
.kh-retreat h2,
.kh-retreat h3,
.kh-retreat p,
.kh-retreat ul,
.kh-retreat figure {
	margin: 0;
	padding: 0;
}

.kh-retreat h1,
.kh-retreat h2,
.kh-retreat h3 {
	font-family: inherit;
	font-weight: 700;
	color: inherit;
}

.kh-retreat h2 {
	font-size: 32px;
	line-height: 1.25;
}

.kh-retreat h3 {
	font-size: 22px;
	line-height: 1.25;
}

.kh-retreat p {
	text-wrap: pretty;
}

.kh-retreat a {
	color: #380800;
}

.kh-retreat a:hover {
	color: #590000;
}

.kh-retreat img {
	display: block;
	width: 100%;
	max-width: none;
	object-fit: cover;
}

/* Layout */

.kh-retreat .kh-wrap {
	max-width: 1180px;
	margin: 0 auto;
}

.kh-retreat .kh-section {
	padding: 64px 24px;
}

.kh-retreat .kh-stack {
	display: grid;
	gap: 28px;
}

.kh-retreat .kh-dark {
	background: #380800;
	color: #ffffff;
}

.kh-retreat .kh-dark h2 {
	color: #f7cc05;
}

.kh-retreat .kh-yellow {
	background: #ffe500;
}

.kh-retreat .kh-heading {
	display: grid;
	gap: 6px;
	text-align: center;
}

.kh-retreat .kh-lead {
	max-width: 680px;
	justify-self: center;
}

.kh-retreat .kh-kicker,
.kh-retreat .kh-distance {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #f7cc05;
}

.kh-retreat .kh-distance {
	color: #590000;
}

/* Button */

.kh-retreat .kh-btn {
	justify-self: start;
	align-self: flex-start;
	background: #f7cc05;
	color: #380800;
	padding: 12px 16px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.7;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none;
}

.kh-retreat .kh-btn:hover {
	background: #ffe500;
	color: #380800;
}

.kh-retreat .kh-btn:focus-visible {
	outline: 2px solid #f7cc05;
	outline-offset: 2px;
}

/* 1. Hero */

.kh-retreat .kh-hero {
	position: relative;
	background: #380800;
}

.kh-retreat .kh-hero__img {
	height: min(72vh, 680px);
	min-height: 380px;
}

.kh-retreat .kh-hero__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 24px 32px;
}

.kh-retreat .kh-hero__box {
	background: #380800;
	color: #ffffff;
	padding: 24px 28px;
	max-width: 560px;
	display: grid;
	gap: 8px;
}

.kh-retreat .kh-hero h1 {
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.15;
	color: #ffffff;
}

.kh-retreat .kh-hero p {
	font-size: 17px;
}

/* 2. Welcome video */

.kh-retreat .kh-wrap--video {
	max-width: 1000px;
	display: grid;
	gap: 20px;
}

.kh-retreat .kh-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: #000000;
	border: 4px solid #f7cc05;
}

/* 3. The house */

.kh-retreat .kh-house {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 40px;
	align-items: start;
}

.kh-retreat .kh-house h2 {
	color: #333333;
}

.kh-retreat .kh-house__text {
	display: grid;
	gap: 16px;
}

.kh-retreat .kh-house__text ul {
	padding-left: 20px;
	display: grid;
	gap: 6px;
	list-style: disc outside;
}

.kh-retreat .kh-house__text li {
	list-style: inherit;
	padding: 0;
}

.kh-retreat .kh-house__photos {
	display: grid;
	gap: 12px;
}

.kh-retreat .kh-house__photos figure {
	display: grid;
	gap: 6px;
}

.kh-retreat .kh-house__photos img {
	height: auto;
	aspect-ratio: 16 / 9;
}

.kh-retreat .kh-house__photos figcaption {
	font-size: 14px;
}

.kh-retreat .kh-pos-veranda {
	object-position: 30% 50%;
}

/* 4. Around the house */

.kh-retreat .kh-places {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

/* Two columns (2×2) from the point where two 340px cards fit. */
@media (min-width: 752px) {
	.kh-retreat .kh-places {
		grid-template-columns: 1fr 1fr;
	}
}

.kh-retreat .kh-place {
	background: #fccf3e;
	display: flex;
	flex-direction: column;
}

.kh-retreat .kh-place__body {
	padding: 22px 24px;
	display: grid;
	gap: 6px;
}

.kh-retreat .kh-place p {
	font-size: 15px;
}

.kh-retreat .kh-ratio-4-3 {
	height: auto;
	aspect-ratio: 4 / 3;
}

.kh-retreat .kh-ratio-1-1 {
	height: auto;
	aspect-ratio: 1 / 1;
}

.kh-retreat .kh-fill {
	height: 100%;
}

.kh-retreat .kh-gallery {
	display: grid;
	gap: 4px;
}

.kh-retreat .kh-gallery--quad {
	grid-template-columns: 1fr 1fr;
}

.kh-retreat .kh-gallery--pair {
	grid-template-columns: 3fr 2fr;
}

/* The street photo is portrait: the square church photo sets the row height and the
   street photo fills it instead of stretching the row. */
.kh-retreat .kh-gallery--pair .kh-fill {
	contain: size;
}

/* 5. Getting here */

.kh-retreat .kh-directions {
	display: grid;
	/* 240px (not 300px) so that all four columns fit in the 1180px container. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 32px;
}

.kh-retreat .kh-directions__address {
	display: grid;
	gap: 10px;
	align-content: start;
}

.kh-retreat .kh-directions__item {
	display: grid;
	gap: 4px;
	align-content: start;
	border-top: 2px solid #f7cc05;
	padding-top: 16px;
}

/* 6. Trainings */

.kh-retreat .kh-trainings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}

.kh-retreat #trainings h2 {
	color: #333333;
}

.kh-retreat .kh-training {
	background: #380800;
	color: #ffffff;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kh-retreat .kh-training h3 {
	font-size: 24px;
	color: #ffffff;
}

.kh-retreat .kh-training p {
	font-size: 15px;
}

.kh-retreat .kh-training .kh-btn {
	margin-top: auto;
}

/* Divi's header is fixed from 981px up; keep anchor targets clear of it. */
@media (min-width: 981px) {
	.kh-retreat section[id] {
		scroll-margin-top: 90px;
	}
}
