/* ----------------------------------------------------------------
    Canvas: Media Agency demo styles
-----------------------------------------------------------------*/


:root {
	--cnvs-body-font: 'Montserrat', sans-serif;;
	--cnvs-primary-font: 'Montserrat', sans-serif;;
	--cnvs-secondary-font: 'Merriweather', serif;;
	--cnvs-themecolor: #1abc9c;
	--cnvs-themecolor-rgb: 26, 188, 156;
}

#header {
	--cnvs-header-border-color: transparent;
	--cnvs-primary-menu-tt: uppercase;
	--cnvs-primary-menu-color: var(--cnvs-contrast-600);
	--cnvs-primary-menu-ls: 1px;
	--cnvs-primary-menu-font-size: 13px;
	--cnvs-primary-menu-font-weight: 600;
}

@media (min-width: 1200px) {
	#wrapper {
		width: 75%;
	}
}

@media (min-width: 992px) {
	#wrapper {
		margin: 0;
		width: 80%;
		max-width: none !important;
		-webkit-box-shadow: none;
		box-shadow: none;
	}
}

.side-cover-wrapper {
	position: fixed;
	top: 0;
	left: auto;
	right: 0;
	width: 25%;
	height: 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center right;
	background-size: cover;
}

.device-lg .side-cover-wrapper { width: 20%; }

.device-sm .side-cover-wrapper,
.device-xs .side-cover-wrapper { width: 0; }

.container-fluid {
	padding-left: 120px;
	padding-right: 120px;
}

.device-lg .container-fluid {
	padding-left: 80px;
	padding-right: 80px;
}

.device-sm .container-fluid,
.device-xs .container-fluid {
	padding-left: 40px;
	padding-right: 40px;
}

/* Headings
---------------------------------------------------------------------------- */

.hero-headline h1 {
	font-size: 58px;
	line-height: 1.35;
	font-weight: 700;
	text-transform: none;
	color: #111;
	letter-spacing: -2px;
	word-spacing: 5px;
	margin-bottom: 0;
}

.hero-headline > span {
	display: block;
	font-family: 'Merriweather';
	font-weight: 400;
	font-size: 15px;
	line-height: 2;
	color: #999;
	margin-top: 40px;
	max-width: 80%;
}


.device-md .hero-headline h1 { font-size: 48px; }

@media (max-width: 767px) {

	.hero-headline h1 {
		font-size: 36px;
		letter-spacing: -1px;
		word-spacing: 3px;
	}

	.hero-headline > span {
		font-size: 14px;
		max-width: 100%;
	}

}


/* Border Form Design
---------------------------------------------------------------------------- */

.form-control.border-form-control {
	--cnvs-input-btn-padding-y : 		8px;
	--cnvs-input-btn-padding-x :		4px;
	--cnvs-input-btn-font-size :		1rem;
	--cnvs-input-font-family :		'Montserrat', sans-serif;
	--cnvs-input-btn-border-width:      1px;
	letter-spacing: 1px;
	border-bottom-width: 1px;
}


/* Footer: Copyrights
---------------------------------------------------------------------------- */

.dark #copyrights {
	background-color: rgba(0,0,0,0.6);
	color: rgba(255,255,255,0.4);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1px;
}


/* ----------------------------------------------------------------
	ADDITIVE SECTION (not part of the 1:1 port above)

	Demo-scoped "et-line" icon font: this design's service icons use
	the freely-redistributable et-line glyph set, which the theme's
	shipped icon fonts do not include. The font files live next to
	this stylesheet (shared/et-line/) so imported sites resolve
	them with no URL remapping. Only the four glyph classes this demo
	uses are declared. Values verbatim from the et-line set.
-----------------------------------------------------------------*/

@font-face {
	font-family: 'et-line';
	src: url('shared/et-line/et-line.woff2') format('woff2'),
		url('shared/et-line/et-line.woff') format('woff'),
		url('shared/et-line/et-line.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.icon-et-desktop, .icon-et-global, .icon-et-megaphone, .icon-et-tools {
	font-family: 'et-line';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display:inline-block;
}

.icon-et-desktop:before {
	content: "\e002";
}
.icon-et-global:before {
	content: "\e052";
}
.icon-et-megaphone:before {
	content: "\e021";
}
.icon-et-tools:before {
	content: "\e033";
}


/* ----------------------------------------------------------------
	ADDITIVE SECTION: Media Agency PORTFOLIO SINGLE (designed detail page)

	The demo's portfolio works link to real canvas_portfolio singles rendered
	through the demo-scoped `single-portfolio-media-agency` template. This
	styles that template into a designed media-agency project page: the same
	editorial language as the front page: Montserrat / Merriweather, the
	`.container-fluid` 120px gutters, `.hero-headline` title type, `.line`
	hairlines, the muted #999/#111 palette and themecolor accents. Scoped to a
	stamped portfolio single (the `.media-agency` body class + the custom
	template's `.ma-portfolio-single` wrapper), so it never touches the site's
	other portfolio singles.
-----------------------------------------------------------------*/

.media-agency .ma-portfolio-single {
	padding-top: 90px;
	padding-bottom: 100px;
}

.device-sm .media-agency .ma-portfolio-single,
.device-xs .media-agency .ma-portfolio-single {
	padding-top: 50px;
	padding-bottom: 60px;
}

/* Head: category eyebrow + big hero title */
.media-agency .ma-ps-head {
	max-width: 920px;
	margin-bottom: 55px;
}

.media-agency .ma-ps-eyebrow {
	font-family: var(--cnvs-primary-font);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--cnvs-themecolor);
	margin-bottom: 20px;
}

.media-agency .ma-ps-eyebrow a { color: var(--cnvs-themecolor); }
.media-agency .ma-ps-eyebrow a:hover { color: #111; }

/* Title = the demo hero type (.hero-headline h1) and the .line dividers use
   the theme defaults (not overridden). The feature image is made full-bleed to
   the wide .container-fluid: the base .portfolio-image img keeps its natural
   size, which sits small in this layout, so this single genuine override gives
   the container-fluid design its prominent hero image. */
.media-agency .ma-ps-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Body copy: editorial measure; Merriweather serif lead */
.media-agency .ma-ps-body .portfolio-content > p {
	font-family: var(--cnvs-body-font);
	font-size: 16px;
	line-height: 1.95;
	color: #666;
	margin-bottom: 26px;
}

.media-agency .ma-ps-body .portfolio-content > p:first-of-type {
	font-family: var(--cnvs-secondary-font);
	font-size: 19px;
	line-height: 1.75;
	color: #444;
	margin-bottom: 34px;
}

.media-agency .ma-ps-body .portfolio-content h3 {
	font-family: var(--cnvs-primary-font);
	font-size: 20px;
	font-weight: 700;
	color: #111;
	letter-spacing: -0.5px;
	margin: 42px 0 14px;
}

/* Aside: project details */
.media-agency .ma-ps-aside-title {
	font-family: var(--cnvs-primary-font);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 12px;
	font-weight: 600;
	color: #111;
	margin-bottom: 24px;
}

.media-agency .ma-ps-aside .portfolio-meta__list { margin: 0; }

.media-agency .ma-ps-aside .portfolio-meta__list dt {
	font-family: var(--cnvs-primary-font);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 11px;
	font-weight: 600;
	color: #999;
	margin-top: 22px;
}

.media-agency .ma-ps-aside .portfolio-meta__list dt:first-child { margin-top: 0; }

.media-agency .ma-ps-aside .portfolio-meta__list dd {
	font-family: var(--cnvs-body-font);
	font-size: 15px;
	color: #111;
	margin: 5px 0 0;
}

/* More Work: 3-up related grid (the related block ships no layout CSS) */
.media-agency .ma-ps-more .portfolio-related__heading {
	font-family: var(--cnvs-primary-font);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	color: #111;
	margin-bottom: 36px;
}

.media-agency .ma-ps-more .portfolio-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.device-sm .media-agency .ma-ps-more .portfolio-related__grid,
.device-xs .media-agency .ma-ps-more .portfolio-related__grid {
	grid-template-columns: 1fr;
}

.media-agency .ma-ps-more .portfolio-related__card { margin: 0; }

.media-agency .ma-ps-more .portfolio-related__card-link {
	display: block;
	color: inherit;
}

.media-agency .ma-ps-more .portfolio-related__thumb {
	overflow: hidden;
}

.media-agency .ma-ps-more .portfolio-related__thumb img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.5s ease, opacity 0.3s ease;
}

.media-agency .ma-ps-more .portfolio-related__card:hover .portfolio-related__thumb img {
	transform: scale(1.04);
	opacity: 0.9;
}

.media-agency .ma-ps-more .portfolio-related__title {
	font-family: var(--cnvs-primary-font);
	font-size: 15px;
	font-weight: 600;
	color: #111;
	letter-spacing: 0;
	margin-top: 16px;
}

/* The prev / all-work / next bar (canvas-core/portfolio-navigation, "bar"
   style) is intentionally left to the THEME DEFAULT: it already renders the
   correct minimal prev/grid/next row on the native single, so the demo does
   not override it. */


/* ----------------------------------------------------------------
	ADDITIVE SECTION: Media Agency PORTFOLIO ARCHIVES (CPT + category term)

	The stock portfolio archive (/portfolio/ and /portfolio-category/<term>/)
	already emits the same .portfolio-item > .grid-inner > .portfolio-image (+
	.bg-overlay) + .portfolio-desc card markup as the homepage #portfolio grid,
	so these overrides only reconcile the two remaining differences with the
	homepage look: the boxed .container becomes the homepage's full-bleed
	.container-fluid gutters, the stock isotope filter bar (the homepage grid
	has none) is hidden, and the image gets the homepage's .imagescale-style
	zoom-on-hover. Scoped to the demo's portfolio archive body classes only, so
	the site's other portfolio archives are untouched.
-----------------------------------------------------------------*/

/* Full-bleed grid container: match the homepage .container-fluid 120px gutters */
.media-agency.tax-canvas_portfolio_category .content-wrap > .container,
.media-agency.post-type-archive-canvas_portfolio .content-wrap > .container {
	max-width: none;
	width: 100%;
	padding-left: 120px;
	padding-right: 120px;
}

.device-lg.media-agency.tax-canvas_portfolio_category .content-wrap > .container,
.device-lg.media-agency.post-type-archive-canvas_portfolio .content-wrap > .container {
	padding-left: 80px;
	padding-right: 80px;
}

.device-sm.media-agency.tax-canvas_portfolio_category .content-wrap > .container,
.device-sm.media-agency.post-type-archive-canvas_portfolio .content-wrap > .container,
.device-xs.media-agency.tax-canvas_portfolio_category .content-wrap > .container,
.device-xs.media-agency.post-type-archive-canvas_portfolio .content-wrap > .container {
	padding-left: 40px;
	padding-right: 40px;
}

/* The homepage grid has no filter: hide the stock isotope filter bar */
.media-agency.tax-canvas_portfolio_category .grid-filter-wrap,
.media-agency.post-type-archive-canvas_portfolio .grid-filter-wrap {
	display: none;
}

/* Image zoom-on-hover parity with the homepage .portfolio-image.imagescale */
.media-agency.tax-canvas_portfolio_category .portfolio-image,
.media-agency.post-type-archive-canvas_portfolio .portfolio-image {
	overflow: hidden;
}

.media-agency.tax-canvas_portfolio_category .portfolio-image img,
.media-agency.post-type-archive-canvas_portfolio .portfolio-image img {
	transition: transform 0.6s ease;
}

.media-agency.tax-canvas_portfolio_category .portfolio-item:hover .portfolio-image img,
.media-agency.post-type-archive-canvas_portfolio .portfolio-item:hover .portfolio-image img {
	transform: scale(1.06);
}

/* Default all demo images to object-fit:cover (avoid stretch/distortion in fixed-aspect boxes; inert on natural-aspect icons/logos). */
.media-agency img {
	object-fit: cover;
}
