/*
Theme Name: MEG: The Theme
Theme URI: https://meggroup.com.au/
Author: the MEG team
Author URI: https://meggroup.com.au/
Description: Fast-paced MEG theme.
Version: 0.9.5
Text Domain: meg
*/

:root {
	--desktop-content-width: 1280px;
}

html {
	font-size: 16px;
}

a {
	color: #2c9bd6;
	text-decoration: none;
}

strong {
	font-weight: 500;
}

/* Utilities. */

.screen-reader-text,
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Search input clear overrides. */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance:none;
}

[x-cloak] {
	display: none;
}

.action {
	border: 2px solid transparent;
	/* border-radius: 15px; */
	display: inline-block;
	font-weight: 500;
	padding: 4px 18px;
}

.case-study-entry .post-meta {
	display: block;
	margin-top: auto;
}

.case-study-entry .post-date {
	color: #aaa;
	font-size: 13px;
	margin-bottom: 18px;
}

.case-study-entry .post-date,
.case-study-entry .post-tags {
	display: block;
}

.case-study-entry .tag {
	font-size: 0.8rem;
	font-weight: 500;
	margin-right: 5px;
}

/* Common. */
.menu,
.menu li,
.menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

h2 {
	font-size: 1.2rem;
}

h3 {
	font-size: 17px;
}

h2, h2 a {
	color: #000;
}

.filters h3 {
	color: #777;
	font-weight: 400;
}

/* Common fonts */
body, button, input, textarea {
	font: 1rem/1.6rem 'Roboto', sans-serif;
}

body {
	background: #fff;
	margin: 0;
	padding: 0;
}

.header {
	background-color: #fff;
	box-shadow: 1px 0 12px rgba(0, 0, 0, 0.15);
	padding: 6px 12px;
	position: relative;
	z-index: 1000;
}
.header .container {
	display: flex;
	margin: 0 auto;
	max-width: 1250px;
}

.content-container {
	margin: 0 auto;
	max-width: 1250px;
}

.header .logo {
  width: 140px;
  height: 70px;
}

.logo-link {
	margin-right: auto;
}


.logo-link:active,
.logo-link:focus,
.action:active,
.action:focus {
	transform: translate(1px, 1px);
}

.main-menu {
	display: none;
	flex-basis: 60%;
	justify-content: space-around;
	margin: auto 10px auto auto;
	transform: translate(0, 8px); /* offset for ::after */
}
.main-menu .menu-item {
	display: inline-block;
}
.main-menu a {
	border-bottom: 4px solid transparent;
	color: #000;
	display: block;
	font-size: 17px;
	font-weight: 500;
	padding-bottom: 3px;
	text-decoration: none;
}
.main-menu a::after {
	content: "";
	display: block;
	margin-top: 3px;
	height: 4px;
}
.main-menu a:hover::after,
.current-menu-item a::after,
.current-page-parent a::after {
	background: linear-gradient(90deg, rgba(237,67,61,1) 0%, rgba(237,67,61,1) 25%, rgba(5,53,109,1) 25%, rgba(5,53,109,1) 50%, rgba(22,154,145,1) 50%, rgba(22,154,145,1) 75%, rgba(238,91,51,1) 75%, rgba(238,91,51,1) 100%);
	background-size: 50% 100%;
}
.main-menu a:active {
	color: #333;
}
.main-menu a:focus::after {
	background-color: rgba(237, 67, 61, 1);
	filter: none;
}
.main-menu a:hover::after,
.main-menu a:focus::after,
.current-menu-item a:hover::after {
	animation: background-stretch 2s ease-in-out infinite;
}

@keyframes background-stretch {
	0% { background-position: 0% 100% }
	40% { background-position: 100% 100% }
	100% { background-position: 0% 100% }
}

.breakout-panel {
	background-color: #fff;
	box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
	padding: 10px;
}

.career-entry .post-footer {
	margin: 20px 0
}

.career-entry .post-footer .action {
	margin-right: 10px
}

.footer,
.footer a {
	color: #fff;
}

.error-details {
	font-family: monospace;
}

.footer {
	background-color: #564e62;
	padding: 10px;
	text-align: center;
}

#search-panel {
	background-color: #f1f1f1;
	border-bottom: 1px solid #d1d1d1;
	box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);
	padding: 15px;
}

.responsive {
	height: auto;
	max-width: 100%;
	width: 100%;
}

#search-panel h1 {
	margin: 0;
}

.toggle-buttons {
	display: flex;
}

.toggle-button {
	background-size: 100% 100%;
	background-repeat: no-repeat;
	margin: auto 0;
	height: 28px;
	width: 28px
}

.search-toggle {
	background-image: url(images/search.svg);
}

.hamburger-menu-toggle {
	background-image: url(images/bars.svg);
}

.header .toggle-button {
	margin-left: 18px;
}

.largetype {
	color: #000;
	font-size: 1.3rem;
	line-height: 1.25
}
.largetype strong {
	color: #be1e2c;
	padding: 0 5px;
}
.largetype strong:nth-of-type(2) {
  color: #0141aa;
}

.hamburger-menu {
	background-color: rgba(255, 255, 255, 0.97);
	border-radius: 0 0 5px 5px;
	box-shadow: 0 0 15px 4px rgba(0,0,0,0.15);
	box-sizing: border-box;
	left: 0;
	margin: 0 10px;
	padding: 10px;
	position: absolute;
	right: 0;
	z-index: 100;
}
.hamburger-menu .menu-item:last-child a {
	border-bottom: none;
}
.hamburger-menu a {
	border-bottom: 1px solid rgb(230, 230, 230);
	border-radius: 3px;
	color: #222;
	display: block;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	margin-top: -1px;
	padding: 13px 8px;
}
.hamburger-menu a:hover,
.hamburger-menu a:active {
	background-color: #e6f9fd;
	border-bottom-color: transparent;
	color: #000;
}

.wp-block-columns.tight .wp-block-column {
	align-items: center;
	display: flex;
}

.headline {
	background-color: #f5f5f5;
	border-bottom: 1px solid #dcdcdc;
	box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}
.headline .post-title {
	margin: 0 0 0.45rem 0;
}
.headline-content {
	margin: 0 auto;
	max-width: var(--desktop-content-width);
	padding: 4rem 0 2.5rem 0;
}
.headline-navigation {
	float: right;
}
.headline-navigation-button {
	background-color: #fff;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
	color: #000;
	line-height: 1.3;
	margin: 0 5px
}
.headline-navigation-button span {
	display: block;
}
.headline-navigation-button .button-sub-heading {
	font-weight: 400;
	color: #989898;
	font-size: 0.85rem;
}
.headline-navigation-next {
	text-align: right;
}
.headline-navigation-button {
	position: relative;
}
.headline-navigation-previous {
	padding-left: 25px;
}
.headline-navigation-next {
	padding-right: 25px;
}
.headline-navigation-next::after,
.headline-navigation-previous::before {
	content: "";
	display: block;
	height: 20px;
	position: absolute;
	top: calc(50% - 10px);
	width: 20px;
}
.headline-navigation-previous::before {
	background: url(images/arrow-left.svg) no-repeat;
	background-size: 100% 100%;
	left: 0;
}
.headline-navigation-next::after {
	background: url(images/arrow-right.svg) no-repeat;
	background-size: 100% 100%;
	right: 0;
}
.headline-meta {
	display: flex;
}
.headline-meta .headline-meta-date {
	color: #555;
	margin-right: 10px
}

/* Cover Banner Block */

.cover-banner {
	margin: 0 auto 30px;
	position: relative;
	overflow: hidden;
}
.cover-banner-wrapper {
	padding-top: 20px;
	position: relative;
	z-index: 100;
}
.cover-banner-content {
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 1px;
	box-shadow: 1px 1px 34px 11px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(3px);
	font-size: 1.35rem;
	line-height: 1.6;
	margin: 0;
	padding: 20px;
	z-index: 10
}
.cover-banner-image-wrapper {
	position: absolute;
	top: 0;
}
.cover-banner-content *:first-child {
	margin-top: 0;
}
.cover-banner-content *:last-child {
	margin-bottom: 0;
}
.cover-banner-content .wp-block-button__link {
	background-color: var(--meg-tint-color, #ccc);
}
.cover-banner-content {
	font-size: 1.15rem;
}

.home-page .largetype {
	margin: 0;
	text-align: right;
}

.case-study-filterable-list .case-study-list {
	display: grid;
	grid-template-columns: repeat(4, auto);
}

.case-study-filterable-list .posts  {
	margin-bottom: 18px;
}

.company-filter button {
	background-color: var(--company-primary-color);
	border: none;
}

.case-study-amp-collection {
	display: grid;
	grid-template-columns: 1fr 3fr;
}

.case-study-list > .case-study-entry {
	box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .15);
	color: #737373;
	padding: 0 10px 10px 10px;
	transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
		box-shadow .3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.case-study-list > .case-study-entry:hover {
	box-shadow: 0 25px 60px 0 rgba(0, 0, 0, .1);
	transform: translate3d(0,-2px,0);
}

.case-study-entry {
	position: relative;
}
.case-study-entry .lightbox-button {
	opacity: 0;
	display: block;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	z-index: 10; /* above image */
}

.case-study-entry .entry-link {
	color: #737373;
	height: 100%; /* expand to fit grid */
}

.case-study-entry .entry-link .tags {
	margin-top: auto;
}

.case-study-entry:active {
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1);
	transition: none;
}

.case-study-entry .post-content {
	font-size: 0.9rem;
}

.case-study-entry .tags {
	margin-top: auto;
}

.wp-block-button {
	font-weight: 500;
}

.wp-block-button__link {
	background-color: #0066ff;
	border-radius: 20px;
	color: #fff;
	font-size: 1.15rem;
}

/* Content types. */
.feature-list,
.feature-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.feature-list a {
	color: #000
}

.feature-list {
	columns: 3;
	margin-bottom: 2rem;
}

.feature-list li {
	color: #666;
	font-size: 1.15rem;
	line-height: 1.25;
	margin-bottom: 1.3rem;
	overflow: hidden;
	padding-left: 1.4rem;
	page-break-inside: avoid;
	position: relative;
}

.feature-list li::before {
	background-color: var(--meg-tint-color);
	border-radius: 2px;
	content: "";
	display: block;
	height: 1rem;
	left: 0;
	position: absolute;
	top: calc(50% - (1.15rem / 2));
	width: 1rem;
}


.entry-link {
	display: flex;
	flex-direction: column;
}

.case-study-entry .post-image {
	order: -1;
	margin: 0 -10px 0 -10px;
}

.filter-option {
	flex-shrink: 0;
}
.filter-label {
	margin: 10px 0;
}
.filter-options {
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-grow: 1;
	flex-wrap: nowrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	overflow-x: scroll;
	padding: 0;
}
.filter-tag {
	background-color: var(--company-primary-color);
	border-radius: 10px;
	border: 2px solid transparent;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .15);
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1;
	margin: 0;
	padding: 5px 7px;
}
.filter-active {
	border-color: rgba(0, 0, 0, 0.25);
	filter: brightness(90%);
}

.filter-tag:active,
.filter-tag:focus,
.wp-block-button:active,
.wp-block-button:focus {
	transform: translate3d(1px, 1px, 0);
}

.company-filter-tag {
	color: #fff;
}

.amp-carousel-button {
	background-color: var(--company-primary-color);
	opacity: 0.9;
	margin: 0;
}

.post-meta {
	color: #666;
	display: flex;
	flex-direction: row;
}

.post-meta .post-tags {
	margin-right: 5px;
}

.post-meta {
	line-height: 1.5;
}

.tags {
	display: block;
	margin: 0;
	padding: 0;
}

.tag {
	background-color: #e7e7e7;
	border-radius: 3px;
	display: inline-block;
	list-style: none;
	padding: 0 4px;
}

/* Company navigation */

.company-excerpt {
  color: #333;
	font-weight: 400;
	line-height: 1.5;
}

.company-excerpt p {
	margin: 0;
}

.company-excerpt strong {
	color: var(--company-primary-color);
	font-weight: 500;
}

.company-tag,
.company-tag a {
	color: #fff;
}

.posts .post-title {
	font-weight: 800;
	margin: 5px 0;
}

.posts .post-content p {
	margin: 0;
}


.case-study-entry .post-title {
	color: #000;
}

.case-study-entry a {
	text-decoration: none;
}

.case-study-entry .post-image {
	height: 105px;
	overflow: hidden;
}

/** Companies block */

.company-icons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.company-icons .company-logo {
	background-image: var(--company-logo-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	display: block;
	height: 40px;
	margin: 0 auto;
	width: 100px;
}

.company-icon {
	background-color: #fff;
	display: block;
	flex-basis: 200px;
}

.company-icon-link {
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);
	display: block;
	height: 100%;
	padding: 15px 12px;
  box-sizing: border-box;
}

.company-icon .company-logo {
	margin-bottom: 15px;
}

.wp-block-columns.scoreboard {
	margin-bottom: 40px;
}

.scoreboard {
	box-shadow: 2px 26px 26px rgba(0,0,0,.05);
	padding: 40px 10px;
}

.scoreboard .scorecard-description {
	text-align: center;
}

.scoreboard .scorecard-amount {
	color: rgb(237,67,61);
	font-size: 4.6rem;
	font-weight: 800;
	justify-content: center;
}
.scoreboard .scorecard-suffix {
	filter: none;
}
.scoreboard .scorecard-suffix {
	font-size: 3rem;
	font-weight: 800;
}
.scoreboard .scorecard-description {
	color: #737373;
	font-weight: 400;
	font-size: 1.5rem;
}

/* Company Tabbed Navigation. */

.company-nav {
	background-color: rgba(150, 150, 150, 0.1);
	padding: 0;
	overflow: hidden;
}

.company-nav img {
	display: block;
	margin: auto;
	height: 30px
}

.company-menu {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin: 0 auto;
}

.company-menu .current-menu-item.menu-item,
.company-menu .menu-item-active {
	align-self: flex-end;
	box-shadow: none;
}

.company-menu .menu-item:last-child {
	margin-right: 0;
}

.company-menu .current-menu-item .menu-link,
.company-menu .menu-item-active .menu-link {
	padding-top: 14px;
}

.company-menu .menu-link {
	background-color: #fff;
	box-shadow: 1px 1px 3px 1px rgba(0,0,0,.03);
	display: block;
	margin: 8px;
	padding: 8px 18px;
}

.company-menu .menu-item:last-child .menu-link {
	margin-right: 0;
}

.company-menu .current-menu-item .menu-link,
.company-menu .menu-item-active .menu-link {
	margin-bottom: 0;
	margin-top: 0;
	padding-bottom: 14px;
}

.company-menu amp-img {
	display: block;
}

.company-menu .company-logo {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	display: block;
	margin: 0 auto;
	height: 40px;
	width: 100px;
}

.company-menu .menu-item {
	display: block;
	flex-grow: 1;
	margin: 0;
	position: relative;
	flex-basis: 235px;
}

.content-group {
	margin: 0 auto;
	max-width: var(--desktop-content-width);
}

.lightbox {
	background-color: rgba(255, 255, 255, 0.7);
}

.modal {
	padding: 10px;
}

.modal-header {
	background-color: rgba(255, 255, 255, 1);
	padding: 40px 0;
	z-index: 10;
  position: relative;
}

.modal-header {
	background-color: rgba(255, 255, 255, 1);
	padding: 40px 0;
	z-index: 10;
  position: relative;
}

.modal-navigation {
	margin-left: auto;
}

.modal-navigation .button span {
	display: block;
}

.modal-header-content {
	display: flex;
	align-items: center;
	margin: 0 auto;
	max-width: 920px;
}

.modal-content {
	box-shadow: 0 0 60px rgba(0,0,0,0.25);
	margin: -20px auto 0 auto;
	max-width: 900px;
	padding-top: 20px;
}

.modal-header {
	box-shadow: 1px 1px 8px 5px rgba(0,0,0,0.05)
}

.modal-title {
	font-size: 17px;
	font-weight: 500;
	margin: 0;
}

.modal-button.with-icon::before,
.modal-button.with-icon::after {
	background-repeat: no-repeat;
	background-size: 100% 100%;
	bottom: 10px;
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	width: 28px;
}
.modal-button.icon-previous::before {
	background-image: url(images/arrow-left.svg);
	left: 0;
}
.modal-button.icon-next::after {
	background-image: url(images/arrow-right.svg);
	right: 0;
}
.modal-button.icon-next {
	padding-right: 33px;
}
.modal-button.icon-previous {
	padding-left: 33px;
}
.modal-button.icon-close {
	background: no-repeat url(images/close.svg) center center;
	background-size: 40% 40%;
	padding: 0 20px;
}
.modal-header-info > * {
	margin-bottom: 4px;
}

.modal-button {
	background-color: #fff;
	border-radius: 4px;
	overflow: hidden;
	border: none;
	position: relative;
	box-shadow: 0 0 20px rgba(0,0,0,0.1);
	line-height: 1.3;
	margin: 0 6px;
	padding: 4px 10px;
	text-align: left;
}
.modal-button-label {
	font-weight: 500;
}
.modal-button-label,
.modal-button-sub-label {
	display: block;
}
.modal-button-sub-label {
	color: #989898;
	font-size: 0.7rem;
}

.modal-header .tags {
	font-size: 0.8rem;
}
.modal-navigation {
	display: flex;
}

.remote-content-frame {
	border-radius: 20px;
}

/* Page Navigation */

.page-nav {
	background-color: rgba(255, 255, 255, 0.94);
	box-shadow: 1px 1px 2px rgba(0,0,0,.08);
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 10;
}

.page-menu {
	margin: 0 auto;
	max-width: var(--desktop-content-width);
}
.page-menu .menu-item {
	display: inline-block;
}
.page-menu .menu-link {
  font-size: .95rem;
	color: #000;
	font-weight: 500;
	display: block;
	padding: 8px 20px;
	position: relative;
}
.page-menu .menu-item:first-child .menu-link {
	color: #000;
}
.page-menu .menu-item:first-child .menu-link {
	border-bottom: 3px solid var(--company-primary-color);
}
.page-menu .menu-link::after {
	background-color: #e4e4e4;
	content: "";
	position: absolute;
	right: 0;
	top: calc(50% - (1rem / 2));
	height: 1rem;
	width: 1px;
}
.page-menu .menu-item:last-child .menu-link::after {
	content: none;
}

/* banner block */
.archive-header {
	background-color: #f6f7f9;
	box-shadow: 1px 1px 2px rgba(0,0,0,0.25);
	color: #333333;
	margin-bottom: 20px;
	padding: 10px;
}

.company-case-studies {
	background-color: #f7f7f7;
	padding: 20px;
}

.filters {
	margin: 0;
	padding: 0;
}

/* blocks */

.map {
	filter: grayscale(100)
}

.scorecard {
	color: var(--company-primary-color);
	font-weight: 600;
}
.scorecard-amount {
	align-items: center;
	display: flex;
	font-size: 3.8rem;
	line-height: 1;
}
.scorecard-amount span {
	display: block;
}
.scorecard-suffix {
	filter: brightness(0.5);
	font-size: 3rem;
	font-weight: 500;
}
.scorecard-description {
	color: #000;
	font-size: 1.2rem;
	margin: 0;
}
.scorecard-icon {
	margin-right: 5px
}

/* icons */

/* Scenes */

.scene {
	position: relative;
}
.arrow-up-container {
	background-color: var(--company-primary-color);
	border-radius: 30px;
	height: 60px;
	width: 60px
}

.gauge-pointer {
	background: url(images/scorecard-gauge-pointer.svg);
	background-size: 100% 100%;
	border-radius: 5px;
	bottom: 21px;
	height: 30px;
	left: 25px;
	position: absolute;
	transform-origin: bottom center;
	width: 10px;
	z-index: 1;
}

.banner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto 1fr;
	gap: 0 20px;
	grid-template-areas:
		"Title Image"
		"Content Image";
	text-align: right;
}

.banner h1:first-child {
	color: #000;
	grid-area: Title;
	margin: 20px 0 0;
}

.banner p {
	grid-area: Content;
}

.banner .wp-block-image {
	grid-area: Image;
	margin: 0 0 -50px 0;
	width: 350px;
}

/* Enquiry forms. */

.af-form .acf-fields > .acf-field {
	border: none;
	margin: 0 0 1rem;
	padding: 0;
}
.af-form .acf-field .acf-label {
	color: #000;
	margin: 0 0 5px
}
.af-form .acf-field .acf-label label {
	font-weight: 500;
}
.af-form .af-input textarea,
.af-form .af-input input[type="text"] {
	border-radius: 0;
	border: 1px solid #bbb;
	font-size: 1.2rem;
	padding: 5px 10px;
}
.af-form .af-submit {
	padding: 0;
}

/**
 * Posts
 */

.post-tags {
	margin: 0;
}

.news-posts {
	gap: 18px;
}

.news-posts .post-entry {
	display: grid;
	color: #4c4c4c;
	grid-template-columns: 0.5fr 2fr;
	grid-template-rows: auto auto auto 1fr;
	grid-template-areas:
		"Image Heading"
		"Image Tags"
		"Image Meta"
		"Image Content";
	line-height: 1.65;
	margin-top: 25px;
}

.news-posts .post-title {
	font-size: 1rem;
	margin: 0;
}

.news-posts .post-tags {
	grid-area: Tags;
}

.post-image img {
	width: 100%
}

.news-posts .post-image {
	border-radius: 2px;
	display: flex;
	grid-area: Image;
	margin-right: 8px;
	overflow: hidden;
}

.news-posts .post-image img {
	object-fit: contain;
	object-position: top;
}

.news-posts .post-title,
.news-posts .post-meta {
	margin-bottom: 0.25rem;
}

.news-posts .post-content {
	font-size: 0.9rem;
}

.news-posts .post-meta {
	font-size: 0.8rem;
}

.news-posts .post-title {
	font-weight: 700;
	grid-area: Heading;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tag-label {
	display: none;
}

.recent-news-post .post-content {
	display: none;
}

.recent-news-post .post-title {
	position: relative;
}

.recent-news-post:hover .post-title::after {
	background: url(images/external-link.svg) no-repeat;
	background-size: 100% 100%;
	content: "";
	display: inline-block;
	height: 0.9em;
	margin: 0 0 0 5px;
	transform: translate(0, 1px);
	width: 0.9em;
}

.post-entry .post-content {
	grid-area: Content;
	font-size: 0.9rem;
}

.post-content {
	position: relative;
}

.post-content .lead {
	color: #6c6c6c;
	line-height: 2.3rem;
  font-size: 1.55rem;
  font-weight: 400;
}

.post-entry .post-meta {
	grid-area: Meta;
}

.social-menu {
	display: flex;
	justify-content: center;
	text-align: center;
}

.social-menu .menu-item {
	display: inline-block;
	margin: 0 5px;
}

.social-menu .menu-item a {
	display: block;
}

.social-menu .menu-item svg {
	display: block;
	fill: #fff;
	height: 32px;
	width: 32px;
}

.footer-copyright {
	color: #ddd;
	margin: 8px 0;
}

.post-content > .wp-block-group {
	padding: 10px;
}

/* WordPress block styles */

.wp-block-group__inner-container {
	color: #515152;
	margin: 0 auto;
}

.alignfull .wp-block-group__inner-container {
	max-width: 1250px;
}

.wp-block-group.has-light-background-color {
	background-color: #f5f5f5;
}

.wp-block-group.has-lighter-background-color {
	background-color: #f6f7f9;
}

.wp-block-image {
	margin: 0;
}

/* Block of columns with company tiles */

.company-tile-columns .wp-block-column {
	align-items: center;
	background-color: #fff;
	display: grid;
	font-size: 0.9rem;
	grid-template-columns: 0.3fr 1fr;
	margin-bottom: 8px;
	padding: 8px 6px;
}
.company-tile-columns strong {
	color: var(--meg-tint-color);
	font-weight: 500;
}
.company-tile-columns a {
	display: block;
}
.company-tile-columns * {
	margin: 0;
}
.company-tile-columns .wp-block-image {
	align-items: center;
	border-right: 1px solid #e5e5e5;
	display: flex;
	height: 100%;
	margin-right: 5px;
	padding-right: 5px;
	text-align: center;
}

.search-form {
	display: flex;
}

.search-form label {
	flex-grow: 1;
	margin-right: 12px;
}

.search-field {
	background: #fff;
	border-radius: 6px;
	border: 1px solid #ddd;
	color: #111;
	font-size: 1.7rem;
	font-weight: 400;
	padding: 6px;
	width: 100%;
}

.search-submit,
.acf-button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #0066ff;
	border: none;
	border-radius: 6px;
	color: #fff;
	font-size: 1.3rem;
	padding: 4px 30px;
}

.action-primary {
	background-color: #0066ff;
	color: #fff;
}

.action-large {
	display: block;
	padding: 5px 12px;
	width: 100%;
}

.action-light {
	background-color: #fff;
	border: 2px solid #0066ff;
	color: #000;
}

.career-location {
	color: #888;
	font-size: 0.95rem;
}

.career-main-posts .post-content.expanded {
	height: auto;
}

.block-heading {
	line-height: 1.25;
}

.block-heading::before {
	background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNy45IDE1LjU4Ij48cGF0aCBmaWxsPSIjMmM5YmQ2IiBkPSJNOC42IDcuNzZMMCA0Ljg0VjBsMTMuODkgNS42OXY0LjJMMCAxNS41OHYtNC44M3oiLz48cGF0aCBmaWxsPSIjZjY5YzFkIiBkPSJNMjIuNiA3Ljc2TDE0IDQuODRWMGwxMy45IDUuNjl2NC4yTDE0IDE1LjU4di00LjgzeiIvPjwvc3ZnPg==) no-repeat;
	background-position: center center;
	content: "";
	display: inline-block;
	margin-right: 5px;
  height: 0.7em;
  width: 1em;
}

/* Timeline */
.timeline {
	position: relative;
}
.timeline-events,
.timeline-event {
	padding: 0;
	margin: 0;
}
.timeline-events {
	display: flex;
	flex-direction: row;
	list-style: none;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	padding-top: 10px; /* extra space around timeline to prevent overflow cropping */

	/* fix AMP child layout rendering bug */
	position: relative;
	z-index: 10;
}
.timeline-event {
	display: flex;
	flex-basis: 200px;
	flex-direction: column;
	flex-shrink: 0;
	margin-left: 1px;
	scroll-snap-align: start;
	position: relative;
}
.timeline-event::after {
	background: rgba(0,0,0,.1);
	content: "";
	height: 20px;
	position: absolute;
	right: -1px;
	top: calc(50% - 35px);
	width: 1px;
}
.timeline-event:nth-child(even)::after {
	top: calc(50%);
}
.timeline-event:nth-child(odd) .timeline-event-image-container {
	margin-top: 30px;
}
.timeline-event-heading,
.timeline-event-content {
	padding: 0 10px;
}
.timeline-event-heading {
	color: var(--meg-tint-color, #555);
	font-size: 2rem;
	margin: 0 0 6px;
}
.timeline-event-content,
.timeline-event-content a {
	color: #737373
}
.timeline-event-content {
	font-size: 0.9rem;
}
.timeline-event-content strong {
	color: var(--meg-tint-color);
}
.timeline-event-content * {
	margin: 0;
}
.timeline-event-summary,
.timeline-event-image-container {
	display: flex;
	flex-direction: column;
	min-height: 9rem;
}
.timeline-event-image-container {
	align-items: center;
}
.timeline-event-image {
	border-radius: 50%;
	border: 10px solid #ebebeb;
	height: 100px;
	width: 100px
}
.timeline-event-summary::before,
.timeline-event-summary::after {
	display: block;
	background: var(--meg-tint-color, #ccc) linear-gradient(0, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%);
	height: 15px;
	z-index: 10
}
/* Even events with summary below image */
.timeline-event:nth-child(even) .timeline-event-image-container {
	order: -1;
}
.timeline-event:nth-child(even) .timeline-event-summary::before {
	content: "";
}
.timeline-event:nth-child(even) .timeline-event-heading {
	margin-top: 20px;
}
.timeline-event:nth-child(odd) .timeline-event-summary::after {
	content: "";
	margin-top: auto; /* display at bottom of element */
	margin-bottom: -15px; /* takes into consideration the bar height */
}


.career-tag {
	border-radius: 0;
	color: var(--company-primary-color);
	font-weight: 500;
	padding-left: 1rem;
	position: relative;
}
.career-tag:first-child:last-child {
	border: none;
}
.career-tag::before {
	background: var(--company-icon-image);
	background-size: 100% 100%;
	display: block;
	position: absolute;
  top: 0;
  left: 0;
	content: "";
	height: 0.9rem;
	width: 0.9rem;
}

/* Remove margins by default */

.wp-block-columns {
	margin: 0;
}
.wp-block-column > *:first-child {
	margin-top: 0
}

/* .post-content > .wp-block-columns.tight {
	padding-top: 0;
	padding-bottom: 0;
} */

.wp-block-column > .block-heading,
.wp-block-group__inner-container > .block-heading,
.wp-block-megpress-panel > .block-heading {
	/* font-size: 1.8rem; */
	margin-top: 0;
}

.block-heading {
	font-size: 1.8rem;
}

.wp-block-button .icon-goto {
	position: relative;
}

.wp-block-button .wp-block-button__link {
	position: relative;
}

.wp-block-button.icon-goto .wp-block-button__link::after,
.action.icon-goto {
	background: url(images/arrow-circle-right.svg);
	color: #fff;
	content: "";
	display: inline-block;
	margin-left: 10px;
	transform: translate(0, 5px);
	height: 1.3rem;
	width: 1.3rem;
}

.post-content > .masthead {
	padding: 0;
}

.impactful-animation {
	overflow: hidden
}

.impactful-animation img {
	height: auto;
}

/* Border colours impactful animation: rename to include rounded */
.impactful-image,
.impactful-animation,
.impactful-animation-wrapper {
	border-radius: 50%;
	box-sizing: border-box;
}

.impactful-image {
	overflow: hidden;
	position: relative;
}

.impactful-image,
.impactful-animation,
.impactful-animation-wrapper {
	border: 7px solid transparent;
	position: relative;
}

.impactful-animation { background-color: #e73f3c; border-color: #e73f3c; }
.impactful-animation .impactful-animation-wrapper { background-color: #ef5b34; border-color: #ef5b34; }
.impactful-animation .impactful-animation-wrapper .impactful-animation-wrapper { background-color: #074b84; border-color: #074b84; }
.impactful-animation .impactful-animation-wrapper .impactful-animation-wrapper .impactful-animation-wrapper { background-color: #169990; border-color: #169990; }
.impactful-animation .impactful-animation-wrapper .impactful-animation-wrapper .impactful-animation-wrapper .impactful-animation-wrapper { background-color: #fff; border-color: #fff; }

.wp-block-megpress-panel .impactful-animation {
	width: 500px;
}

.case-study-list {
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: scroll;
	padding: 0 5px 0 5px; /* padding to prevent box-shadow clipped by overflow */
}

.case-study-list {
	margin-left: -20px;
}

.case-study-list .case-study-entry {
	background-color: #fff;
	display: block;
	flex-basis: 240px;
	flex-grow: 1;
	margin: 0 0 20px 20px;
}

.recent-news-post {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.05);
	margin-bottom: 12px;
	padding: 5px;
}

.recent-news-post:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

/* Space inside - padding inside, used with a has-*-background-color */
.wp-block-columns.space-inside,
.wp-block-group.space-inside {
	padding: 20px;
}

.no-space-outside {
	margin-left: -20px;
	margin-right: -20px;
}

.background-video {
  position: absolute;
  top: 0;
  filter: grayscale(.8) brightness(5.4);
  opacity: .06;
  width: 1350px;
}

/* Address block */

.address {
	color: #000;
	display: block;
}

a.address::after {
	display: block;
	color: #999;
	content: "Get directions »";
	font-size: 0.95rem;
}

.address-line-1,
.address-line-2,
.address-line-3 {
	display: block;
}

/* Effects */

.effect-parallax amp-img {
	display: block;
	margin-bottom: -50px;
}

.effect-parallax-wrapper {
	overflow: hidden;
	position: relative;
}

.effect-parallax-wrapper .rellax {
	margin-bottom: -100px;
}

.effect-parallax-wrapper img {
	height: auto;
	width: 100%
}

.largetype {
	margin: 0;
}

/* Utilities */

.wp-block-image.responsive img {
	height: auto;
	max-width: 100%;
	width: 100%;
}
.wp-block-group.z-up,
.wp-block-columns.z-up,
.wp-block-column.z-up {
	position: relative;
	z-index: 1;
}
.wp-block-columns.large .wp-block-column > h1:first-child,
.wp-block-columns.large .wp-block-column > h2:first-child,
.wp-block-columns.large .wp-block-column > h3:first-child {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
}
.wp-block-group.thin,
.wp-block-columns.thin {
	margin: 0 auto;
	max-width: 930px;
}
.wp-block-group.confine-content,
.wp-block-columns.confine-content {
	overflow: hidden;
}
.wp.block-group.relative {
	position: relative;
}

.page-entry .post-content > .background-motion-masthead {
	left: 0;
	margin: 0;
	max-width: none;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	z-index: -1;
}

@media (max-width: 1024px) {
	.hidden-mobile {
		display: none;
	}

	.cover-banner-content {
		margin: -150px 20px 20px;
	}
	.page-entry .post-content > .noedge {
		margin-left: 0;
		margin-right: 0;
	}

	.wp-block-column > .wp-block-buttons .wp-block-button,
	.wp-block-column > .wp-block-buttons .wp-block-button__link {
		display: block;
	}

	.news-posts .post-image {
		margin-top: 4px;
	}

	.mobile-wide-scroll {
		box-sizing: content-box;
		margin-left: -20px;
		margin-right: -20px;
		width: 100%;
	}

	.mobile-wide-scroll .case-study-entry {
		flex-shrink: 0;
	}

	.case-study-standard-list {
		padding: 20px 0 0;
	}
}


.company-menu {
	overflow-y: scroll;
}

.company-menu amp-img {
  width: 100px;
}

/* Desktop */

.mobile-light-space-around {
	padding: 20px;
}

@media (min-width: 1024px) {
	.mobile-light-space-around {
		padding: inherit;
	}

	html, body {
		height: 100%;
	}

	.block-heading.extra-large {
		font-size: 3rem;
	}

	.error-page-content {
		font-size: 1.2rem;
	}

	.largetype {
		font-size: 1.5rem
	}

	body {
		display: flex;
		flex-direction: column;
	}

	.footer {
		margin-top: auto;
	}

	#search-panel {
		padding: 20px;
	}

	.company-menu {
		margin-top: 7px;
		max-width: 1280px;
		overflow: visible;
	}

	.hamburger-menu-toggle {
		display: none;
	}

	.main-menu {
		display: flex;
	}

	.header {
		padding: 14px 30px;
	}

	.header .toggle-button {
		height: 18px;
		width: 18px;
	}

	/* Center everything and add max-width. */
	.page-content-wrapper,
	.page-entry .post-content > *,
	.inner-content {
		box-sizing: border-box;
		margin-left: auto;
		margin-right: auto;
	}

	.page-content-wrapper,
	.page-entry > .post-content > *,
	.inner-content {
		max-width: 1280px;
	}

	.page-entry > .post-content > * {
		max-width: 1240px;
		padding-left: 20px;
		padding-right: 20px;
	}


	.wp-block-column.is-aligned-right {
		justify-content: right;
		text-align: right;
	}

	/* Remove centering for alignfull gutenberg helper class. */
	.single > .entry > .post-content > .alignfull {
		margin-left: 0;
		margin-right: 0;
		max-width: none;
	}

	.page-entry > .post-content > .alignwide {
		box-sizing: border-box;
		margin-left: auto;
		margin-right: auto;
		max-width: 2080px;
		padding-left: 0;
		padding-right: 0;
	}

	.page-entry > .post-content {
		margin-top: 20px;
	}

	.case-study-list {
		overflow: visible;
		flex-wrap: wrap;
		padding: 0;
	}

	.filter {
		display: block;
	}

	.filter-option {
		margin: 0 5px 5px 0;
		display: block;
		float: left;
	}

	.filter-options {
		display: block;
		overflow: hidden;
	}

	.filter-label {
		margin: 12px 0 4px;
	}

	.filter-option {
		display: inline-block;
	}

	/* Company icons */
	.company-icons {
		display: flex;
		flex-direction: row;
		justify-content: center;
		list-style: none;
	}

	/* News Posts */

	.recent-news-posts {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.recent-news-posts .post-entry {
		margin-bottom: 14px;
	}

	.recent-news-post {
		background: none;
		box-shadow: none;
		border: none;
		padding: 0;
	}

	.recent-news-post {
		margin-bottom: 22px;
	}

	.recent-news-post .post-content {
		display: block;
	}

	.recent-news-post .post-title {
		font-size: 1.1rem;
		font-weight: 600;
	}

	.tag-label {
		display: block;
	}

	.wp-block-group.offset-overlay-above {
		margin-top: -50px;
	}

	.breakout {
		background-color: #efefef;
	}

	.cover-banner-content {
		width: 300px;
	}
	.cover-banner-image-wrapper {
		height: 400px;
		overflow: hidden;
	}
	.cover-banner-content {
		margin: 0 40px 20px 20px;
	}

	/* */

	.effect-glass-like.has-light-background-color {
		background-color: rgba(0, 0, 0, 0.05);
		backdrop-filter: blur(20px);
	}

	/* Block/Group classes */

	.wp-block-columns.space-inside,
	.wp-block-group.space-inside {
		padding: 50px 0;
	}

	.wp-block-columns.extra-space-inside,
	.wp-block-group.extra-space-inside {
		padding: 75px 0;
	}

	.wp-block-columns.space-around,
	.wp-block-group.space-around {
		margin-top: 50px;
		margin-bottom: 50px;
	}

	.wp-block-column.breakout-above {
		margin-top: -100px;
	}

	.wp-block-column.breakout-below {
		margin-bottom: -100px;
	}

	.wp-block-group.masthead {
		padding-top: 20px;
		padding-bottom: 20px;
		margin-bottom: 40px;
	}

	.wp-block-group.masthead .wp-block-image img {
		height: 100%;
		width: 100%
	}

	.no-space-outside {
		margin-left: 0;
		margin-right: 0;
	}

	.masthead:first-child {
		text-align: right;
	}

	.masthead h1 {
		color: #000;
		font-size: 2rem;
	}

	.wp-block-columns > .push-out {
		margin-top: -100px
	}

	.wp-block-columns > .pull-out {
		margin-bottom: -100px
	}

	.wp-block-group.push-after,
	.wp-block-columns > .push-after {
		margin-bottom: 100px;
	}

	.largetype {
		font-size: 2.9rem;
	}

	.page-entry > .post-content {
		margin: 0;
	}

	.news-posts .post-entry {
		margin-top: 0;
	}

	.timeline-event:first-child .timeline-event-summary::after,
	.timeline-event:first-child .timeline-event-summary::before {
		border-radius: 4px 0 0 4px;
	}
	.timeline-event:last-child .timeline-event-summary::after,
	.timeline-event:last-child .timeline-event-summary::before {
		border-radius: 0 4px 4px 0;
	}

	.impactful-image,
	.impactful-animation,
	.impactful-animation-wrapper {
		border-width: 10px; 
	}

	.company-tile-columns .wp-block-image {
		border: none;
		margin: 0;
		padding: 0;
		height: auto;
	}

	.company-tile-columns .wp-block-column {
		box-shadow: 1px 1px 5px rgba(0,0,0,.05);
		display: flex;
		flex-direction: column;
		margin: 0 5px;
		padding: 14px;
	}	
}
