/*!
Theme Name: OCHF
Theme URI: https://ochf.coop/
Author: Sean Pearce
Author URI: https://ochf.coop/
Description: Custom theme for ochf.coop
Version: 0.9.3
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ochf

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

OCHF is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic,
Inc. Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/


TABLE OF CONTENTS: -------------------------------------------------------------

# Normalization
# Base
  ## Typography
  ## Elements
  ## Links
  ## Forms
# Layouts
# Components
  ## Navigation
  ## Footer
  ## Posts and pages
  ## Comments
  ## Widgets
  ## Media
  ## Captions
  ## Galleries
# Home page
  ## Hero image section
  ## About Us section
  ## Co-operation section
  ## Co-op Housing section
  ## Local Federations section
  ## Federation Links section
  ## Below Federations section
  ## Resources section
# Plugins
  ## Jetpack infinite scroll
# Utilities
  ## Accessibility
  ## Alignments


/* -----------------------------------------------------------------------------
 # Normalization ------------------------------------------------------------ */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css     */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
 html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: 600;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}


/* -----------------------------------------------------------------------------
 # Base --------------------------------------------------------------------- */

/* ## Typography ------------------------------------------------------------ */

body,
button,
input,
select,
optgroup,
textarea {
	color: #333;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	color: #000;
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

.no-break {
	white-space: nowrap;
}

/* ## Elements -------------------------------------------------------------- */

body {
	background: #f2f2f2;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* ## Links ----------------------------------------------------------------- */

a {
	font-weight: 600;
	color: #000;
	text-decoration: none;
}

a:visited {
	color: #000;
}

a:hover,
a:focus,
a:active {
	color: #000;
}

a:focus {
	outline: thin dotted;
	border-radius: 0.5px;
}

a:hover,
a:active {
	outline: 0;
}

p a {
	border-bottom: 1.5px solid #000;
}

p a:hover {
	border-bottom-width: 2px;
}

p a:focus {
	border-bottom: none;
	outline: 3px solid rgba(0, 0, 0, 0.2);
}

/* ## Forms ----------------------------------------------------------------- */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #202020;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}


/* -----------------------------------------------------------------------------
 # Layouts ------------------------------------------------------------------ */

.site-content:not(.page-home) {
	padding: 9em 0 3em 0;
}

.limited-page {
	max-width: 1280px;
	margin: 0 auto;
	box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.03);
	background: #fff;
}

.limiter {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 1.5em;
}

/* Fix horizontal margin issue on home page on mobile */
@media screen and (max-width: 82em) {
	.limited-page {
		box-shadow: none;
		overflow: hidden;
	}
}


/* -----------------------------------------------------------------------------
 # Components --------------------------------------------------------------- */

/* ## Navigation ------------------------------------------------------------ */

.site-header {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 100;
	/* prevent flicker in Chrome: */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.site-header .nav-wrapper {
	margin: 0 auto;
	width: 100%;
	max-width: 1280px;
}

.site-header .limited-width {
	width: 100%;
	max-width: 1224px;
	margin: 0 auto;
	padding: 0 1.5em;
}

.above-nav {
	height: 1em;
	width: 100%;
	background: #000;
}

.nav-wrapper {
	width: 100%;
	position: relative;
}

.primary-nav {
	width: 100%;
	height: 8em;
	background: transparent;
	position: static;
	z-index: 20;
	transition: background 0.4s, box-shadow 0.4s, height 0.4s;
	display: flex;
	align-items: center;
}

.primary-nav.scrolled {
	height: 6.25em;
	background: #fff;
	box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2);
}

.primary-nav.sticky {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100;
	/* prevent flicker in Chrome: */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.primary-nav .limited-width {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.primary-nav .logo-container,
.primary-nav .menu-container {
	position: relative;
	flex: inherit;
	height: 6.25em;
}

.primary-nav .logo-container {
	float: left;
	flex: 1;
	max-width: 14em;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.primary-nav .menu-container {
	float: right;
	padding: 0 0.25em 0 0;
	align-items: center;
}

.primary-nav .logo {
	display: block;
	width: 100%;
	height: 0;
	padding-bottom: 27.8%;
	padding-bottom: calc(100% / 3.6);
	margin-top: -0.0625em;
	background-image: url('./img/logo-ochf.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 0 50%;
	border-radius: 0.5px;
	transition: opacity 0.1s;
}

.primary-nav .logo:hover {
	opacity: 0.85;
}

.primary-nav .logo:focus {
	outline: 3px solid rgba(0, 0, 0, 0.2);
}

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-align: right;
}

.primary-nav .nav-menu {
	padding-left: 1em;
}

.primary-nav .nav-menu > .menu-item {
	background: rgba(0, 0, 0, 0.75);
}

@media screen and (min-width: 54.001em ) {

	.primary-nav .nav-menu > .menu-item:first-child {
		border-radius: 1.25em 0 0 1.25em;
		padding-left: 1.25em;
	}

	.primary-nav .nav-menu > .menu-item:last-child {
		border-radius: 0 1.25em 1.25em 0;
		padding-right: 1.25em;
	}
}

.primary-nav .nav-menu > .menu-item {
	display: inline-block;
	position: relative;
	height: 2.5em;
	margin: 0;
	padding: 0.375em 0.75em;
	line-height: 1.75em;
}

.primary-nav .nav-link-parent {
	display: inline-block;
	margin: auto 0;
	text-decoration: none;
	color: #fff;
	font-size: 1em;
	font-weight: 600;
}

.primary-nav .menu-item .nav-link-parent:focus,
.primary-nav .menu-item:hover .nav-link-parent {
	text-decoration: underline;
	outline: none;
}

/* .primary-nav .menu-item.current-menu-item .nav-link-parent,
.primary-nav .menu-item.current-menu-parent .nav-link-parent,
.primary-nav .menu-item.current-menu-ancestor .nav-link-parent,
.primary-nav .menu-item.current-page-ancestor .nav-link-parent {
	border-bottom: 3px solid #f8ad3a;
} */

.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 999;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

.primary-nav .menu-item-has-children > .nav-link-parent {
	cursor: default;
}

.primary-nav .menu-item.expanded .sub-menu {
	display: block;
}

.primary-nav .sub-menu .menu-item {
	padding: 0;
	width: 13.5em;
	line-height: 1.5;
	border-top: 0.0417em solid hsl(36, 93%, 75%);
}

.primary-nav .sub-menu .menu-item:first-child {
	border-top: 0.0417em solid #999;
}

.primary-nav .nav-link-child {
	display: block;
	padding: 0.5em 0.875em;
	background: #f8ad3a;
	color: #fff;
	font-size: 0.875em;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: none;
	outline: none;
}

.primary-nav .current-menu-item > .nav-link-child,
.primary-nav .nav-link-child:focus,
.primary-nav .nav-link-child:hover {
	background: #202020;
	color: #fff;
}

.nav-menu-toggle {
	display: none;
	position: absolute;
	top: 4.375rem;
	right: 1.51rem;
	height: 2.5rem;
	width: 2.5rem;
	margin-top: -1.25rem;
	background-color: #fff;
	color: #202020;
	outline: none;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	border: none;
	font-size: 1em;
	padding: 0;
}

.nav-menu-toggle i {
	font-size: 1.375em;
}

.nav-menu-toggle:hover {
	background-color: #000;
	color: #fff;
}

.nav-menu-toggle:focus {
	background-color: #000;
	color: #fff;
	outline: none;
}

.nav-menu-toggle:active {
	background-color: #4d4d4d;
	outline: none;
}

@media screen and (min-width: 54.001em ) {
	.primary-nav .menu-container {
		display: flex !important;
	}
}

@media screen and (max-width: 54em ) {
	.primary-nav {
		display: block;
		height: 6.25em;
		background: #fff;
		box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2);
	}

	.primary-nav .limited-width {
		display: block;
	}

	.primary-nav .logo-container,
	.primary-nav .menu-container {
		float: none;
		width: 100%;
	}

	.primary-nav .menu-container {
		display: none;
		height: auto;
		top: 100%;
		background: #f2f2f2;
		border-top: 1px solid #ccc;
		box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.18);
		padding: 0;
	}

	.primary-nav .nav-menu {
		padding: 0;
	}

	.primary-nav .nav-link-parent {
		display: block;
		padding: 0 0 0 1rem;
		border-bottom: none !important;
	}

	.primary-nav .nav-menu > .menu-item {
		display: block;
		border: none;
		line-height: 2.25em;
		padding: 0;
		height: auto;
		text-align: left;
		width: auto;
	}

	.primary-nav .menu-item:hover .nav-link-parent,
	.primary-nav .menu-item.expanded .nav-link-parent {
		color: inherit;
	}

	.primary-nav .menu-item.current-menu-ancestor .nav-link-parent {
		color: #f8ad3a;
	}

	.primary-nav .menu-item .nav-link-parent:focus,
	.primary-nav .menu-item .nav-link-parent:hover {
		background: #808080;
		color: #fff;
	}

	.primary-nav .sub-menu {
		display: none;
		position: relative;
		top: 100%;
		z-index: 999;
		border-top: none;
		box-shadow: none;
	}

	.primary-nav .sub-menu .menu-item {
		border: none;
		width: auto;
	}
	
	.primary-nav .nav-link-child {
		padding: 0 0 0 2rem;
		background: inherit;
		color: #202020;
		font-size: 0.9375em;
		line-height: 2em;
		text-align: left;
	}

	.primary-nav .sub-menu .menu-item:first-child {
		border-top: none;
	}

	.primary-nav .current-menu-item > .nav-link-child {
		background: inherit;
		color: #f8ad3a;
		font-weight: 600;
	}

	.primary-nav .nav-link-child:focus,
	.primary-nav .nav-link-child:hover {
		background: #f8ad3a;
		color: #fff;
	}

	.primary-nav .menu-container.expanded {
		display: block;
	}
	
	.nav-menu-toggle {
		display: flex;
	}
}

@media screen and (max-width: 45em) {
	.top-nav .contact-link:first-child {
		display: none;
	}
}

@media screen and (max-width: 36em) {
	.top-nav .contact-link {
		display: none;
	}

	.top-nav .divider {
		display: none;
	}
}

/* ## Footer ---------------------------------------------------------------- */

.site-footer {
	padding: 3em 0;
	background: #333;
	color: #fff;
	border-bottom: 1em solid #000;
}

.ochf-panel {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.ochf-panel .top {
	max-width: 48em;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.ochf-panel .top a {
	flex: initial;
	width: 16em;
	margin-right: 2.5em;
}

.ochf-panel .top img {
	display: block;
	margin-bottom: 0.375em;
}

.ochf-panel .top p {
	flex: initial;
	max-width: 24em;
	margin: 0;
}

.ochf-panel .middle {
	margin: 1.5em auto;
	max-width: 48em;
}

.ochf-panel .bottom {
	max-width: 48em;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-around;
}

.ochf-panel .bottom a {
	display: inline-block;
	margin: 0 0.75em;
	border-radius: 0.5px;
}

.ochf-panel .bottom img {
	display: block;
}

.ochf-panel .bottom a:focus {
	outline: 3px solid #ffffff40;
}

.ochf-panel img {
	display: inline-block;
	width: 100%;
}

@media screen and (max-width: 56em) {
	.ochf-panel {
		padding: 0;
	}
}

@media screen and (max-width: 40em) {
	.site-footer {
		padding: 3em 0 2.5em 0;
	}

	.ochf-panel .top {
		display: block;
	}

	.ochf-panel .top a {
		display: block;
		width: 100%;
		margin: 0 auto 1em auto;
		max-width: 14em;
	}

	.ochf-panel .top img {
		width: 100%;
	}

	.ochf-panel .top p {
		font-size: 0.875em;
	}

	.ochf-panel .bottom {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.ochf-panel .middle {
		margin: 1.375em auto 1em auto;
		object-fit: cover;
	}

	.ochf-panel .middle img {
		min-height: 0.625em;
		object-fit: cover;
	}

	.ochf-panel .bottom a {
		flex: 0 0 28%;
		margin: 0.375em;
		max-width: 9em;
		min-width: 5.75em;
	}
}

@media screen and (max-width: 20em) {
	.ochf-panel .middle img {
		min-height: 0.5em;
		display: none;
	}
}

/* ## Posts and pages ------------------------------------------------------- */

.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* ## Comments -------------------------------------------------------------- */

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* ## Widgets --------------------------------------------------------------- */

.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* ## Media ----------------------------------------------------------------- */

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* ## Captions -------------------------------------------------------------- */

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* ## Galleries ------------------------------------------------------------- */

.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}


/* -----------------------------------------------------------------------------
 # Home page ---------------------------------------------------------------- */

.page-home .section {
	padding: 3em 0;
	text-align: center;
}

.page-home .section h2 {
	margin: 0 0 1.5rem 0;
	font-size: 1.75em;
	line-height: 1.3;
}

.page-home .section h3 {
	margin: 0 0 1rem 0;
	font-size: 1.25em;
	line-height: 1.3;
}

.page-home .section p {
	margin: 0 0 1.5rem 0;
	line-height: 1.5;
}

.page-home .section p.xlarge {
	font-size: 1.625em;
	font-weight: 300;
}

.page-home .section p.large {
	font-size: 1.1875em;
	font-weight: 300;
}

.image-text-group {
	display: flex;
	align-items: flex-start;
	margin: 1.5em 0 0 0;
}

.image-text-group.reverse {
	flex-direction: row-reverse;
}

.image-text-group .image {
	flex: 1;
}

.image-text-group.reverse .image {
	margin-left: 1.5em;
}

.image-text-group .image img {
	display: block;
	width: 100%;
	height: auto;
}

.image-text-group .image figure {
	width: 100%;
	margin: 0;
}

.image-text-group .text {
	flex: 1;
}

.image-text-group.reverse .text {
	margin-right: 1.5em;
}

.jump-anchor {
	position: relative;
	top: -6.25em;
}

@media screen and (max-width: 45em) {
	.page-home .section h2 {
		font-size: 1.5em;
	}

	.page-home .section p.xlarge {
		font-size: 1.4375em;
	}

	.page-home .section p.large {
		font-size: 1.125em;
	}

	.image-text-group {
		display: block;
	}

	.image-text-group .image,
	.image-text-group.reverse .image {
		margin: 0;
	}

	.image-text-group .text,
	.image-text-group.reverse .text {
		margin: 2em 0 0 0;
	}
}

/* ## Common ---------------------------------------------------------------- */

.fed-logo-link {
	border-radius: 0.5px;
	transition: opacity 0.1s;
}

.fed-logo-link:hover {
	opacity: 0.85;
}

.fed-logo-link.chaseo:focus {
	outline: 3px solid #00a39840;
}

.fed-logo-link.chft:focus {
	outline: 3px solid #27a7df40;
}

.fed-logo-link.phchf:focus {
	outline: 3px solid #be272d40;
}

.fed-logo-link.cochf:focus {
	outline: 3px solid #f2902240;
}

.fed-logo-link.ghchf:focus {
	outline: 3px solid #fcd33b40;
}

/* ## Hero image section ---------------------------------------------------- */

.section.hero {
	height: 0;
	padding-bottom: 50.5%;
	min-height: 40em;
	background-color: #e9efeb;
	background-image: url('./img/bg-hero.jpg');
	background-position: 40% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}

@media screen and (max-width: 54em) {
	.section.hero {
		background-position: 46% 50%;
	}
}

/* ## About Us section ------------------------------------------------------ */

.section.about-us .ochf-logo {
	max-width: 36em;
	margin: 0 auto 1.5em auto;
}

.section.about-us .ochf-logo img {
	display: block;
	width: 100%;
}

.section.about-us h2.xlarge {
	font-size: 1.625em;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.section.about-us p.large {
	margin-right: auto;
	margin-left: auto;
	max-width: 33em;
}

.section.about-us .region-map-panel {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2.5em;
}

.section.about-us .map-container {
	flex: 3;
	margin-right: 2em;
}

.section.about-us .map-ar {
	width: 100%;
	height: 0;
	padding-bottom: 75%;
	position: relative;
}

/* Old map: */
/* .section.about-us .region-map {
	width: 100%;
	height: 0;
	padding-bottom: 75%;
	background-image: url('./img/region-map.svg');
	background-position: 50% 100%;
	background-repeat: no-repeat;
	background-size: cover;
} */

.section.about-us .map-ar .svg-wrapper {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.section.about-us .map-ar .svg-wrapper svg {
	position: absolute;
	width: 100%;
	height: auto;
	bottom: 0;
	left: 0;
	right: 0;
}

.section.about-us .map-legend {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.section.about-us .map-legend .item {
	display: flex;
	align-items: center;
}

.section.about-us .map-legend .colour {
	display: block;
	width: 2em;
	height: 1em;
	margin-right: 1em;
	border-radius: 0.5em;
	background: #e5e5e5;
}

.section.about-us .map-legend .chaseo .colour {
	background: #00a599;
}

.section.about-us .map-legend .chft .colour {
	background: #27a7df;
}

.section.about-us .map-legend .phchf .colour {
	background: #be272d;
}

.section.about-us .map-legend .cochf .colour {
	background: #f29022;
}

.section.about-us .map-legend .ghchf .colour {
	background: #fcd33b;
}

.section.about-us .map-legend a {
	display: block;
	margin: 0.5em 0;
}

.section.about-us .map-legend img {
	display: block;
	width: 100%;
	max-width: 10em;
}

@media screen and (max-width: 45em) {
	.section.about-us .ochf-logo {
		max-width: 32em;
	}

	.section.about-us .region-map-panel {
		display: block;
	}

	.section.about-us .map-container {
		margin: 0 0 0.75em 0;
	}

	.section.about-us .map-legend {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.section.about-us .map-legend a {
		margin: 0;
	}

	.section.about-us .map-legend .item {
		flex-direction: column;
		justify-content: center;
		margin: 0.5em;
	}

	.section.about-us .map-legend .colour {
		display: block;
		width: 1.5em;
		height: 0.75em;
		margin: 0 0 0.75em 0;
		border-radius: 0.125em;
	}

	.section.about-us .map-legend .fed-logo-link {
		max-width: 7em;
	}
}

/* ## Co-operation section -------------------------------------------------- */

.section.cooperation {
	background-color: #736357;
	background-image: url('./img/bg-cooperation.jpg');
	background-position: 7.5% 100%;
	background-repeat: no-repeat;
	background-size: auto 80%;
	color: #fff;
}

.section.cooperation h2 {
	color: #fff;
}

.section.cooperation p {
	margin-right: auto;
	margin-left: auto;
	max-width: 32em;
	font-size: 1.0625em;
	font-weight: 300;
	line-height: 1.6;
}

.section.cooperation a,
.section.cooperation a:visited {
	color: #fff;
	border-color: #fff;
}

.section.cooperation a:focus {
	outline-color: rgba(255, 255, 255, 0.3);
}

/* ## Co-op Housing section ------------------------------------------------- */

.section.coop-housing h2 {
	margin-bottom: 3rem;
}

.section.coop-housing .image-text-group {
	margin-top: 1.5em;
	text-align: left;
}

.section.coop-housing .wp-block-embed-youtube {
	background: #f2f2f2;
}

.principles-wrapper {
	padding: 3em 2em 1.5em 2em;
}

.principles {
	position: relative;
	margin: 0 auto;
	width: 100%;
	height: 0;
	padding-bottom: 57.2%;
	background-image: url('./img/principles-house.svg');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: contain;
	color: #404040;
}

.principles .title {
	position: absolute;
	top: 24%;
	left: 6.3%;
	right: 6.2%;
	bottom: 62%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.75em;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.principles .body {
	display: flex;
	position: absolute;
	top: 42%;
	left: 6.3%;
	right: 6.2%;
	bottom: 2.3%;
	border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.principles .body::after {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
	content: '';
}

.principle {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	position: relative;
}

.principle::after {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
	content: '';
}

.principle:first-child::after {
	background: none;
}

.principle .top {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 70%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.principle .top::after {
	position: absolute;
	display: block;
	content: '';
	top: 100%;
	top: calc(100% - 0.5px);
	left: 37.5%;
	right: 37.5%;
	height: 12.5%;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	background: transparent;
}

.principle.one .top {
	background: #f4af1b;
	background: linear-gradient(0deg, #f4af1b 0%, #fceb05 100%); 
}

.principle.one .top::after {
	background: #f4af1b;
}

.principle img {
	max-height: 75%;
}

.principle.two .top {
	background: #f16422;
	background: linear-gradient(0deg, #f16422 0%, #ea9b22 100%); 
}

.principle.two .top::after {
	background: #f16422;
}

.principle.three .top {
	background: #e5306c;
	background: linear-gradient(0deg, #e5306c 0%, #eb80af 100%); 
}

.principle.three .top::after {
	background: #e5306c;
}

.principle.four .top {
	background: #8a4c9d;
	background: linear-gradient(0deg, #8a4c9d 0%, #df61a3 100%); 
}

.principle.four .top::after {
	background: #8a4c9d;
}

.principle.five .top {
	background: #614299;
	background: linear-gradient(0deg, #614299 0%, #8173b3 100%); 
}

.principle.five .top::after {
	background: #614299;
}

.principle.six .top {
	background: #054f99;
	background: linear-gradient(0deg, #054f99 0%, #457cbe 100%); 
}

.principle.six .top::after {
	background: #054f99;
}

.principle.seven .top {
	background: #007453;
	background: linear-gradient(0deg, #007453 0%, #08ac4b 100%); 
}

.principle.seven .top::after {
	background: #007453;
}

.principle .bottom {
	position: absolute;
	top: 30%;
	right: 0;
	left: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	padding: 7.5% 0;
}

.principle .name {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.5em;
	font-size: 0.9375em;
	font-weight: 500;
	line-height: 1.6;
}

.principle .number {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42.5%;
	font-size: 3em;
	font-weight: 700;
	line-height: 1.1;
	color: #949494;
}

.principle .divider {
	flex: initial;
	margin: 0 auto;
	height: 2.5px;
	width: 100%;
	max-width: 45%;
	background: #ccc;
}

.principle.one .divider {
	background: #fceb05;
}

.principle.two .divider {
	background: #ea9b22;
}

.principle.three .divider {
	background: #eb80af;
}

.principle.four .divider {
	background: #df61a3;
}

.principle.five .divider {
	background: #8173b3;
}

.principle.six .divider {
	background: #457cbe;
}

.principle.seven .divider {
	background: #08ac4b;
}

@media screen and (max-width: 64em) {
	.principles-wrapper {
		padding: 1em 0;
	}

	.principles .title {
		bottom: 60%;
		font-size: 4.5vw;
	}

	.principles .body::after {
		height: 3px;
	}

	.principle::after {
		width: 3px;
	}

	.principle .number {
		font-size: 4.5vw;
	}

	.principle .name {
		font-size: 1.5vw;
		font-weight: 500;
		letter-spacing: -0.02em;
	}
}

@media screen and (max-width: 45em) {
	.image-text-group {
		margin: 3em auto;
		max-width: 30em;
	}

	.principles-wrapper {
		padding: 0;
	}

	.principles {
		max-width: 30em;
		height: auto;
		margin: 0 auto;
		padding: 0;
		background: none;
	}

	.principles .title {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		display: block;
		margin-bottom: 1.5rem;
		font-size: 1.25em;
		font-weight: 700;
		line-height: 1.25;
		text-align: left;
		color: #000;
	}

	.principles .body {
		display: block;
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		border-top: none;
	}

	.principles .body::after {
		display: none;
	}

	.principles .principle {
		flex-direction: row;
		margin-bottom: 0.5em;
	}

	.principles .principle::after {
		display: none;
	}

	.principles .principle .top {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		flex: initial;
		width: 4.5em;
		border-radius: 1px;
	}

	.principle .top::after {
		display: none;
	}

	.principles .principle .bottom {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		flex: 1;
		flex-direction: row;
		padding: 0;
		align-items: center;
	}

	.principle .name {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding: 0;
		font-size: 1em;
		text-align: left;
		line-height: 1.5;
	}

	.principle .number {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: initial;
		width: 1.875em;
		font-size: 2.5em;
	}

	.principle .divider {
		flex: initial;
		margin: 0 auto;
		width: 2.5px;
		height: 50%;
		max-width: none;
		margin-right: 1.5em;
	}
}

/* ## Local Federations section --------------------------------------------- */

.section.local-federations {
	height: 0;
	padding-bottom: 50%;
	min-height: 40em;
	background-color: #e9efeb;
	background-image: url('./img/bg-local-federations.jpg');
	background-position: 50% 60%;
	background-repeat: no-repeat;
	background-size: cover;
}

@media (max-width: 75em) {
	.section.local-federations {
		background-position: 50% 50%;
	}
}

@media (max-width: 35em) {
	.section.local-federations {
		min-height: 45em;
		background-position: 60% 50%;
	}
}

.section.local-federations p {
	margin: 0 auto 1rem auto;
	line-height: 1.4;
}

.section.local-federations p.one {
	max-width: 36rem;
}

.section.local-federations .support-areas {
	margin: 0 auto 1rem auto;
	padding: 0;
	list-style-type: none;
	font-size: 1.375em;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1.7;
	letter-spacing: -0.005em;
}

.section.local-federations .support-areas li {
	display: inline;
	padding: 0 0.4375rem;
}

.section.local-federations p.three {
	max-width: 23rem;
}

@media screen and (max-width: 45em) {
	.section.local-federations p.two {
		font-size: 1.25em;
		line-height: 1.6;
	}
}

/* ## Federation Links section ---------------------------------------------- */

.section.federation-links .items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.section.federation-links .item {
	flex: 0 0 17.5%;
	margin: 0.75em;
	min-width: 9em;
}

.section.federation-links .item .fed-logo-link {
	display: block;
	margin-bottom: 1em;
}

.section.federation-links ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.section.federation-links li {
	margin: 0;
	padding: 0;
	font-size: 1.0625em;
	line-height: 1.8;
}

@media all and (max-width: 54em) {
	.section.federation-links .items {
		margin-right: -0.75em;
		margin-left: -0.75em;
	}

	.section.federation-links .item {
		min-width: 8.75em;
	}

	.section.federation-links .item .fed-logo-link {
		margin-bottom: 0.25em;
	}

	.section.federation-links li {
		margin: 0;
		padding: 0;
		font-size: 0.9375em;
		line-height: 1.6;
	}
}

/* ## Below Federations section --------------------------------------------- */

.section.below-federations {
	background-color: #61544e;
	background-image: url('./img/bg-houses.jpg');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}

.section.below-federations p {
	margin: 1.5rem auto;
	max-width: 40rem;
	font-size: 1.4375em;
	font-weight: 500;
	line-height: 1.4;
}

@media screen and (max-width: 45em) {
	.section.below-federations p {
		font-size: 1.25em;
		line-height: 1.3;
	}
}

/* ## Resources section ----------------------------------------------------- */

.section.resources .items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 1.5em -5% -1em -5%;
}

.section.resources .item {
	flex: 1;
	flex: 0 0 27%;
	margin: 1em 2.5%;
	text-align: left;
}

.section.resources .item figure {
	width: 100%;
	margin: 0;
	background: #f2f2f2;
}

.section.resources .item .image {
	display: block;
	width: 100%;
	height: auto;
}

.section.resources .item h3 {
	margin: 1.5rem 0 0.75rem 0;
}

.section.resources .item p {
	margin: 0 0 0.75rem 0;
}

@media screen and (max-width: 58em) {
	.section.resources .items {
		margin: 2.5em -1.5em 0 -1.5em;
	}

	.section.resources .item {
		flex: 0 0 17em;
	}
}

@media screen and (max-width: 42em) {
	.section.resources .items {
		display: block;
		margin: 0;
	}

	.section.resources .item {
		max-width: 22em;
		margin: 0 auto 4em auto;
	}

	.section.resources .item:first-child {
		margin-top: 2.5em;
	}

	.section.resources .item:last-child {
		margin-bottom: 0;
	}
}


/* -----------------------------------------------------------------------------
 # Plugins ------------------------------------------------------------------ */

/* ## Jetpack infinite scroll ----------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}


/* -----------------------------------------------------------------------------
 # Utilities ---------------------------------------------------------------- */

/* ## Accessibility --------------------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* ## Alignments ------------------------------------------------------------ */

.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
