/*
Theme Name:  Charmed Pro Child (mikefiore.ca)
Description: Child theme for Charmed Pro. Moves the portfolio page title and body copy into the main content area.
Template:    charmed-pro
Version:     1.0.0
Text Domain: charmed-pro-child
*/

/* ---------- Portfolio (client) pages: title + body in the main area ---------- */

.client-page {
	box-sizing: border-box;
	max-width: 860px;
	padding: 7% 6% 4% 4%;
	text-align: left;
}

.client-page__title {
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 24px;
}

.client-page__body > * {
	margin-top: 0;
	margin-bottom: 1.4em;
}

.client-page__body img,
.client-page__body video,
.client-page__body iframe {
	max-width: 100%;
}

.client-page__body img {
	height: auto;
}

/* Keep video embeds at 16:9 at any width. */
.client-page__body iframe[src*="youtube"],
.client-page__body iframe[src*="youtu.be"],
.client-page__body iframe[src*="vimeo"],
.client-page__body iframe[src*="drive.google"] {
	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;
}

.client-page__body figure {
	margin-left: 0;
	margin-right: 0;
}

@media only screen and (max-width: 768px) {
	.client-page {
		padding: 0 6% 8%;
	}

	.client-page__title {
		font-size: 26px;
	}
}

/* ---------- Header padding on tablet and phone ---------- */
/* Theme defaults: 22% top/bottom at <=768px, 15% all round at <=414px. */

@media only screen and (max-width: 768px) {
	.brick.header .inner {
		padding-top: 8%;
		padding-bottom: 6%;
	}
}

@media only screen and (max-width: 414px) {
	.brick.header .inner {
		padding: 10% 6% 8%;
	}
}
