/**
 * Block: core/button 
 */
.wp-block-button .wp-block-button__link {
	transition: var(--wp--custom--animation--default-transition);
}
.wp-block-button:hover .wp-block-button__link {
	background-image: linear-gradient(0deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.25) 100%);
}
.wp-block-button:active .wp-block-button__link {
	background-image: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
}

/* White button hover */
.wp-block-button:is(:hover,:active) .wp-block-button__link.has-white-background-color {
	background-color: var(--wp--preset--color--yellow) !important;
}

/* Outline Style Buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
}
.wp-block-button.is-style-outline:hover .wp-block-button__link {
	border-color: transparent;
	background-color: var(--wp--preset--color--dark-blue);
}

/* Link / Plain Style Buttons */
.wp-block-button.is-style-link .wp-block-button__link {
	padding-left: 0;
	padding-right: 0;
	border-color: transparent;
	background-color: transparent;
	color: currentColor;
}

/**
 * Google Map from baytek-cartographer shortcode
 */
.cartograph,
#registry-map {
    min-height: min(66vh, 700px);
}

.cartograph .marker-layer div {
    overflow: visible !important;
}
.cartograph .marker-layer img {
    filter: drop-shadow(0 5px 10px rgb(0 0 0 / 30%));
}

.cartographer-infowindow-content {
    color: var(--wp--preset--color--black);
}

/* Cartographs on the single project page */
.project-mini-map .cartograph {
    min-height: 400px;
}
/**
 * Block: core/columns
 */

.wp-block-column {
    box-sizing: border-box;
}

/* Stack in reverse order on mobile */
@media (max-width: 781px) {
    .wp-block-columns.mobile-reverse {
        flex-wrap: wrap-reverse !important;
    }
}

/* Equal Height Columns */
.wp-block-columns.is-style-equal-height > .wp-block-column {
    align-self: stretch;
}

/**
 * Block: core/cover
 */
.wp-block-cover.alignfull .wp-block-cover__inner-container {
    max-width: var(--wp--custom--spacing--wide-size);
}

.wp-block-cover:where(.hero) {
    min-height: auto;
}

/** 
 * Update max width when below our max-width / alignwide limits 
 * eg. 1296px + 3.00rem (48px) on each side = 1392px
 */
@media (max-width: 1392px) {
	.wp-block-cover.alignfull .wp-block-cover__inner-container {
		max-width: 100%;
	}
}
/**
 * Block: genesis-custom-blocks/language-toggle
 *
 * A compact language switcher pill (globe + 2-letter language code) used in the
 * desktop header and inside the mobile menu overlay.
 */

.eirb-language-toggle {
	display: inline-flex;
	align-items: center;
}

.eirb-language-toggle__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 4px;
	background-color: var(--wp--preset--color--dark-blue);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease-in-out;
}

.eirb-language-toggle__link:hover,
.eirb-language-toggle__link:focus-visible {
	background-color: var(--wp--preset--color--light-blue);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.eirb-language-toggle__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.eirb-language-toggle__label {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/**
 * Inside the mobile menu overlay the pill spans the full width and sits in its
 * own divided row, mirroring the spacing of the search field above it.
 *
 * The menu content applies `padding: 0 spacing-30` to direct children (which
 * keeps the horizontal inset), so the vertical padding is restored with
 * !important to give the pill breathing room below the divider.
 */
#mobile-header .eirb-language-toggle {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding-top: var(--wp--preset--spacing--30) !important;
	padding-bottom: var(--wp--preset--spacing--30) !important;
	border-top: solid 1px var(--mobile-menu--divider-color--primary);
}

#mobile-header .eirb-language-toggle__link {
	display: flex;
	justify-content: center;
	font-size: var(--mobile-menu--font-size);
}

/**
 * Block: core/gallery
 */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: var(--wp--preset--gradient--black-50-to-100);
    font-size: var(--wp--preset--font-size--small);
    padding: 0.5em 1em;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:is(.is-style-fixed-4-by-3, .is-style-fixed-16-by-9) figcaption {
    border-bottom-left-radius: var(--wp--custom--border--radius);
    border-bottom-right-radius: var(--wp--custom--border--radius);
}
/**
 * Block: genesis-custom-blocks/filter-archive
 */

ul.archive-items {
    list-style-type: none;
    padding-inline-start: 0;
}

ul.archive-items li > * {
    height: 100%;
}

/* Counter WP inline styles from conflicting blocks */
.filter-archive .wp-block-group.is-layout-flex:where(.is-vertical) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

#filter-form:not(:first-child) {
    margin-top: var(--wp--preset--spacing--30);
}

#filter-form label {
    display: none;
}

/* Special styling for news */
.filter-archive.post .wp-block-post-template {
    row-gap: 0;
}

.filter-archive.post .filters {
    margin-bottom: calc(var(--wp--preset--spacing--60) + 2px);
}

.filter-archive.post .wp-block-post-template > .wp-block-post,
.related-articles-query .wp-block-post-template > .wp-block-post {
    margin-top: -2px !important;
}

.filter-archive.post .pagination-wrapper {
    margin-top: var(--wp--preset--spacing--50);
}

/* Special styling for resources */
.filter-archive.resource .wp-block-post-template {
    row-gap: var(--wp--preset--spacing--40);
}

.filter-archive.resource .archive-items > li:first-child {
    border-top: solid 2px var(--wp--preset--color--black);
    padding-top: var(--wp--preset--spacing--40);
}

.filter-archive.resource .archive-items > li:not(.pagination-wrapper) {
    border-bottom: solid 2px var(--wp--preset--color--black);
    padding-bottom: var(--wp--preset--spacing--40);
}

.filter-archive.resource .pagination-wrapper {
    margin-top: calc(var(--wp--preset--spacing--50) - var(--wp--preset--spacing--30));
}
/**
 * Block: genesis-custom-blocks/home-hero-navigation
 */

.home-hero-navigation .wp-block-image {
	margin-block-start: calc(-1 * var(--wp--preset--spacing--50));
}

.home-hero-navigation .wp-block-columns.full-height {
	height: 100%;
}

.home-hero-navigation .modal-trigger {
	transition: background-color 0.3s ease-out;
}

.home-hero-navigation .modal-trigger:hover {
	background-color: var(--wp--preset--color--black) !important;
}

.home-hero-navigation .modal-trigger .has-white-color {
	transition: color 0.3s ease-out;
}

.home-hero-navigation .modal-trigger:hover .has-white-color {
	color: var(--wp--preset--color--yellow) !important;
}

/* The audience modals open non-modally via dialog.show() (class "inline"),
   so they don't use the top layer and won't obscure their sibling triggers.
   Hide the trigger strip while a modal is open so no other audience photos
   show alongside the highlighted one. visibility:hidden keeps layout stable. */
.home-hero-navigation:has(dialog[open]) .modal-trigger {
	visibility: hidden;
}

/* Dialog overrides */
.home-hero-navigation dialog {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: none;
	margin-block-start: 0;
	margin-block-end: 0 !important;
	width: 100%;
	height: 100%;
}

.home-hero-navigation dialog form.close {
	z-index: 2;
	position: absolute;
}

.home-hero-navigation dialog .wp-block-cover {
	height: 100%;
	align-items: flex-start;
}

.home-hero-navigation dialog .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--wide-size);
	width: 100% !important;
	/* The cover is a flexbox with align-items:flex-start, which would shrink
	   this container to its content height. Force it to fill the cover so the
	   absolutely-positioned headshot (bottom:0) reaches the bottom of the hero
	   — this container is the headshot's positioned ancestor (position:relative). */
	min-height: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* This markup is hand-written (server-rendered block), so it lacks the
   wp-block-columns-is-layout-flex class core would add. Without it the global
   .is-layout-flex rule applies align-items:center, vertically centering the
   columns; the right column's padding-top assumes top alignment, so force it. */
.home-hero-navigation dialog .wp-block-columns {
	align-items: flex-start;
	gap: var(--wp--style--block-gap, 2em);
}

.home-hero-navigation dialog a {
	color: var(--wp--preset--color--yellow);
	font-weight: 400;
}

.home-hero-navigation dialog a:hover {
	color: var(--wp--preset--color--white);
}

.home-hero-navigation dialog .wp-block-image {
	position: absolute;
	max-width: 325px;
	bottom: 0;
}
/**
 * Block: genesis-custom-blocks/project-documents
 */

#project-documents-filter label {
	display: none;
}

.document-group {
	overflow: hidden;
	transition: all 0.4s ease;
	max-height: 500px;
}

.document-group.hidden {
	max-height: 0px;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border-top-width: 0 !important;
}

@media only screen and (max-width: 781px) {
	.project-document-meta-columns .has-text-align-right {
		text-align: left !important;
	}
}

/* Sticky select all */
.is-sticky-select-all {
	position: sticky;
	bottom: 0;
	margin-bottom: calc(var(--wp--preset--spacing--30) * -1);
	padding-bottom: var(--wp--preset--spacing--30);
}

/* Fancy checkboxes */
input.fancy-checkbox {
	position: absolute;
	opacity: 0;
}

input.fancy-checkbox + label.fancy-checkbox-label {
	display: inline-block;
	width: var(--wp--preset--spacing--20);
	height: var(--wp--preset--spacing--20);
	border: solid 2px var(--wp--preset--color--black);
	box-sizing: border-box;
	transform: translateY(6px);
	position: relative;
	cursor: pointer;
}

input.toggle-select-documents + label.fancy-checkbox-label {
	transform: translateY(2px);
}

input.fancy-checkbox:checked + label.fancy-checkbox-label:before {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: smaller;
	font-weight: 700;
}
/**
 * Block: genesis-custom-blocks/read-more-toggle
 * A slightly more customized version of the 'details' block with similar styling
 */

.wp-block-read-more-toggle :is(.open-toggle, .close-toggle) {
	font-weight: 700;
	color: inherit;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
}

.wp-block-read-more-toggle .open-toggle {
	margin-top: 0;
	transition: all 0.4s ease-in-out;
	scroll-margin-top: 5rem;
	margin-bottom: 0;
}

.wp-block-read-more-toggle .close-toggle {
	margin-bottom: 0;
}

.wp-block-read-more-toggle :is(.open-toggle, .close-toggle):hover {
	color: var(--wp--preset--color--dark-blue);
}

.wp-block-read-more-toggle :is(.open-toggle, .close-toggle)::after {
	content: '';
	width: 8px;
	height: 10px;
	display: inline-flex;
	margin-inline-end: 1em;
	margin-right: 0;
	margin-left: var(--wp--preset--spacing--10);
    background-image: url('/wp-content/themes/eirb2023/assets/images/caret.svg');
    background-repeat: no-repeat;
    background-size: 10px 8px;
    background-position: center;
    transition: transform 0.2s ease-out;
}

.wp-block-read-more-toggle :is(.close-toggle)::after {
	rotate: 180deg;
}

.wp-block-read-more-toggle .content *:first-child {
	margin-top: 0;
}

/* Animation */
.wp-block-read-more-toggle {
	display: grid;
	grid-template-rows: min-content 0fr;
	transition: grid-template-rows 0.7s ease-in-out;
	overflow: hidden;
}

.wp-block-read-more-toggle .content {
	min-height: 0;
}

.wp-block-read-more-toggle.open {
	grid-template-rows: min-content 1fr;
	transition: grid-template-rows 0.4s ease-in-out;
	margin-block-start: 1em;
}

.wp-block-read-more-toggle.open .open-toggle {
	line-height: 0;
	opacity: 0;
}

.wp-block-read-more-toggle.open .open-toggle:after {
	height: 0;
}

/**
 * Block: genesis-custom-blocks/registry-search-results
 */

/* Hiding table rows - no animation since it happens offscreen and trs don't like to animate */
tr.hidden {
	display: none;
}

/* Infowindow styling */
.gm-style-iw {
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.project-infowindow {
	font-size: 12px;
	display: flex;
	max-width: 271px;
	column-gap: var(--wp--preset--spacing--10);
}

.project-infowindow p {
	margin-top: 0;
}

.project-infowindow p:last-child {
	margin-bottom: 0;
}

.project-infowindow a:hover {
	text-decoration: underline;
}

/**
 * Block: genesis-custom-blocks/team-member
 */

.team-member .name a {
	color: inherit;
}

.team-member a:hover {
	color: var(--wp--preset--color--dark-blue) !important;
}

dialog .biography *:last-child {
	margin-bottom: 0;
}
/**
 * Form Blocks: gravityforms/form
 * Intended to replace the built in gravity form css files.
 */

/* Form Fields - up 4 column grid */
.gform_fields {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--forms--fields--spacing--block-gap);
}
.gfield {
	width: 100%;
}
.gfield--width-half {
	width: calc(50% - var(--wp--custom--forms--fields--spacing--block-gap) * 0.5);
}
.gfield--width-third {
	width: calc(33.3333% - var(--wp--custom--forms--fields--spacing--block-gap) * 0.66667);
}
.gfield--width-quarter {
	width: calc(25% - var(--wp--custom--forms--fields--spacing--block-gap) * 0.75);
}

/* Checkbox & Radio Group Form Fields */
.gfield_label + :where(.ginput_container_checkbox, .ginput_container_radio) {
	margin-block-start: var(--wp--custom--forms--fields--spacing--padding);
}

/* Spacing after labels? */
.gfield_label + .ginput_container {
	margin-block-start: var(--wp--preset--spacing--10);
}

/** 
 * Special Complex Fields 
 * e.g. name, address, date, time, etc
 */
.ginput_complex {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--forms--fields--spacing--padding);
}
.ginput_complex label {
	font-size: var(--wp--preset--font-size--small);
}

/* Name Field */
:is(.gf_name_has_1, .gf_name_has_2, .gf_name_has_3, .gf_name_has_4, .gf_name_has_5) {
	gap: var(--wp--custom--forms--fields--spacing--padding) var(--wp--custom--forms--fields--spacing--block-gap);
}
:where(.gf_name_has_1, .gf_name_has_2, .gf_name_has_3, .gf_name_has_4, .gf_name_has_5) > * {
	flex-basis: calc(20% - var(--wp--custom--forms--fields--spacing--block-gap) * 0.8);
	flex-grow: 1;
}
:where(.gf_name_has_1, .gf_name_has_2, .gf_name_has_3, .gf_name_has_4, .gf_name_has_5) :is(.name_prefix_select, .name_suffix) {
	flex-basis: 4em;
	flex-grow: 0;
}

/* Address Field */
.ginput_container_address {
	gap: var(--wp--custom--forms--fields--spacing--padding) var(--wp--custom--forms--fields--spacing--block-gap);
}
.ginput_container_address .ginput_full {
	width: 100%;
}
.ginput_container_address :where(.ginput_left, .ginput_right) {
	width: calc(50% - var(--wp--custom--forms--fields--spacing--block-gap) * 0.5);
}

/* Date Field */
.ginput_container_date {
	display: flex;
	gap: var(--wp--custom--forms--fields--spacing--padding);
}
:is(.ui-datepicker, .gform-theme-datepicker) {
	padding: 1em;
	background-color: var(--wp--preset--color--white);
	font-size: calc(var(--wp--preset--font-size--small) * 0.875);
	border-bottom-left-radius: var(--wp--custom--border--radius-small);
	border-bottom-right-radius: var(--wp--custom--border--radius-small);
	box-shadow: 0px 4px 6px 2px var(--wp--custom--forms--fields--color--box-shadow);
}
.ui-datepicker-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
    align-items: center;
	gap: calc(var(--wp--custom--forms--fields--spacing--padding) * 2);
}
.ui-datepicker-header > * {
	grid-row: 1;
}
.ui-datepicker-header :is(.ui-datepicker-prev, .ui-datepicker-next) {
	cursor: pointer;
}
.ui-datepicker-header :is(.ui-datepicker-prev, .ui-datepicker-next) span {
	display: none;
}
.ui-datepicker-header :is(.ui-datepicker-prev, .ui-datepicker-next)::before {
	font-family: "Font Awesome 6 Pro";
	font-style: normal;
}
.ui-datepicker-header .ui-datepicker-prev::before {
	content: '\f323';
}
.ui-datepicker-header .ui-datepicker-next::before {
	content: '\f324';
}
.ui-datepicker-header .ui-datepicker-next {
	grid-column: 3;
}
.ui-datepicker-title {
	display: flex;
	gap: var(--wp--custom--forms--fields--spacing--padding);
}
.ui-datepicker-title select {
	width: auto;
	font-size: inherit;
	border: none;
	padding-right: 0;
}
.ui-datepicker-calendar {
	width: 100%;
	margin-block-start: var(--wp--custom--forms--fields--spacing--padding);
	text-align: center;
}
.ui-datepicker-calendar :is(th,td) {
	width: calc(100% / 7);
	padding: 0;
}

/* Time Field */
.ginput_container_time {
	display: inline-flex;
	flex-basis: 3em;
	flex-grow: 1;
}
.ginput_container_time input {
	text-align: center;
}
.gfield_time_ampm {
	flex-basis: 4em;
}

/* List Field */
.gfield_list_groups .gfield_list_group + .gfield_list_group {
	margin-block-start: var(--wp--custom--forms--fields--spacing--padding);
}
.gfield_list .gfield_list_icons {
	margin-block-start: var(--wp--custom--forms--fields--spacing--padding);
}
.gfield_list .gfield_list_icons :is(.add_list_item, .delete_list_item) {
	font-size: calc(var(--wp--preset--font-size--small) * 0.875);
}
.gfield_list .gfield_list_icons .delete_list_item {
	margin-inline-start: 1.5em;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--dark-blue);
}

/* File Field */
.ginput_container_fileupload .gform_fileupload_rules {
	font-size: var(--wp--preset--font-size--small);
}

/* Error Validation */
.gform_validation_errors {
	margin-block-end: var(--wp--custom--forms--fields--spacing--block-gap);
	padding: 1em;
	background-color: var(--wp--custom--forms--errors--color--background);
	color: var(--wp--custom--forms--errors--color--text);
	border: 1px solid var(--wp--custom--forms--errors--color--border);
}
.gform_validation_errors .gform_submission_error {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: currentColor;
}
.gform_validation_errors > * {
	margin: 0;
}
.gform_validation_errors > * + *{
	margin-block-start: var(--wp--preset--spacing--20);
}
.gform_validation_error_link {
	color: currentColor;
}
.gfield .validation_message {
	margin-block-start: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--forms--errors--color--text);
}
.gfield.gform_validation_container {
	display: none;
}

/* Form Wrapper - removing margin on the block - leaving to a wrapper block */
body .is-layout-flow > .gform_wrapper {
	margin: 0;
}
/* Form Header */
.gform_heading .gform_required_legend {
	display: none;
}

/* Form Footer */
.gform_footer {
	margin-block-start: var(--wp--custom--forms--fields--spacing--block-gap);
}
/**
 * Block: core/group
 */

/**
 * Fixes for when Gutenberg isn't outputting inline styles
 * (e.g. markup included through custom blocks)
 */
body .is-layout-flex.is-nowrap {
	flex-wrap: nowrap;
}

body .is-layout-flex.is-vertical {
	flex-direction: column;
}

.is-content-justification-space-between {
	justify-content: space-between;
}
/**
 * Blocks: core/image, core/post-featured-image
 */
:is(.wp-block-image, .wp-block-post-featured-image):is(.is-style-rounded) img {
	border-radius: var(--wp--custom--border--radius);
}
:is(.wp-block-image, .wp-block-post-featured-image) img {
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
}

/* Captions */
.wp-block-image {
    position: relative;
}

.wp-block-image .wp-element-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--small);
    margin-top: 0;
    margin-bottom: 0;
    padding: var(--wp--preset--spacing--20);
    text-align: left;
}

/**
 * Blocks: core/list
 */
:is(ul:not([class]), ol, ul.is-style-default:not(.wp-block-navigation), ol.is-style-default) :is(li + li, ul, ol) {
	margin-block-start: var(--wp--preset--font-size--large);
}

ul:not([class]),
ul.is-style-default:not(.wp-block-navigation) {
	list-style-type: '—   ';
	padding-inline-start: 1.9em;
}

:is(ul:not([class]),
ul.is-style-default:not(.wp-block-navigation)) ul {
	list-style-type: disc;
	padding-inline-start: 2.9em;
}

.is-style-list-style-none {
	list-style-type: none;
	padding-inline-start: 0;
}
.is-style-list-style-none li + li,
.is-style-list-style-none li :is(ul, ol) {
	margin-block-start: var(--wp--preset--font-size--large);
}

ol:not([class]),
ol.is-style-default {
	padding-inline-start: 1.2em;
}

:is(ol:not([class]),
ol.is-style-default) ol {
	list-style-type: lower-alpha;
	padding-inline-start: 2.9em;
}


:is(ul.is-style-checkmark-list) {
	margin-top: calc(var(--wp--preset--font-size--small) * 2) !important;
}
:is(ul.is-style-checkmark-list) li{
	margin-top: var(--wp--preset--font-size--large) !important;
}
:is(ul.is-style-checkmark-list) li{
	position: relative;
}
:is(ul.is-style-checkmark-list), :is(ul.is-style-checkmark-list) ul {
	list-style-type: none;
}
:is(ul.is-style-checkmark-list) li:before {
	content: '';
	position: absolute;
	top: 5px;
	left: calc(-1 * (var(--wp--preset--font-size--medium) * 2));
	width: calc(var(--wp--preset--font-size--medium) + 2px);
	height: calc(var(--wp--preset--font-size--medium) + 2px);
	background-image: url('../images/circle-checkmark.svg');
	background-size: auto;
	background-position: top left;
	background-repeat: no-repeat;
}


ul.is-style-divided-list {
	border-top: solid 2px var(--wp--preset--color--black);
	list-style: none;
	padding-left: 0;
	width: 100%;
}
ul.is-style-divided-list li {
	padding: var(--wp--preset--font-size--large) 0;
	border-bottom: solid 2px var(--wp--preset--color--black);
}
ul.is-style-divided-list.has-small-font-size li {
	padding: var(--wp--preset--font-size--small) 0;
}

/**
 * Block: core/navigation-link
 */
.wp-block-navigation-link.is-style-button .wp-block-navigation-item__content {
	background-color: var(--wp--preset--dark-blue);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--border--radius-small);
	font-weight: 400;
	transition: background-color 0.4s ease;
}

.wp-block-navigation-link.is-style-button:hover .wp-block-navigation-item__content {
	background-color: var(--wp--preset--dark-blue);
}

.wp-block-navigation-link.is-style-button:active .wp-block-navigation-item__content .wp-block-navigation-item__label {
	opacity: 0.5;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .is-style-button .wp-block-navigation-item__content {
	padding: 0.625em 1.5em;
}

.wp-block-navigation-link.is-style-rounded-image img {
	border-radius: var(--wp--custom--border--radius);
	overflow: hidden;
	aspect-ratio: 1.5 / 1;
}

/* Thin nav links */
.wp-block-navigation-link.is-style-thin a {
	font-weight: 400;
}

/**
 * Block: core/navigation-submenu
 */

a.wp-block-navigation-item__content {
    z-index: 3;
}

/* Bridge between parent item and mega menu to keep mouse hover */
.wp-block-navigation__container > .wp-block-navigation-submenu.is-style-full-width:hover:before {
    content: '';
    position: absolute;
    /* Start below the label so the bridge doesn't overlap sibling nav items
       and swallow their hover events; only bridge the vertical gap to the panel. */
    top: 100%;
    left: -160px;
    right: -160px;
    height: var(--wp--preset--spacing--60);
    z-index: 2;
}

.wp-block-navigation-submenu.is-style-full-width ul.wp-block-navigation__submenu-container {
    position: absolute;
    top: calc(var(--wp--preset--spacing--30) + 100% + 7.5px);
    left: 0 !important;
    right: auto !important;
    border: none;
    padding: var(--wp--preset--spacing--20) 0;
}

.wp-block-navigation-submenu.is-style-full-width ul.wp-block-navigation__submenu-container:before {
    --mega-menu--overlay--width: 100vw;

    content: '';
    height: 100%;
    position: absolute;
    background-color: inherit;
    top: 0;
    left: var(--mega-menu--overlay--horizontal-offset--left);
    width: var(--mega-menu--overlay--width);
}

.wp-block-navigation-submenu.is-style-full-width ul.wp-block-navigation__submenu-container li {
    font-size: var(--wp--preset--font-size--small) !important;
}

.wp-block-navigation-submenu.is-style-full-width ul.wp-block-navigation__submenu-container li + li {
    margin-block-start: var(--wp--preset--spacing--20);
}

.wp-block-navigation-submenu.is-style-full-width ul.wp-block-navigation__submenu-container li a {
    padding: 0;
}

/* Manage body overflow to accommodate menu background */
body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Colour */
:is(.wp-block-navigation__container, .wp-block-navigation__submenu-container).has-dark-blue-color a:hover {
    color: var(--wp--preset--color--light-blue);
}

/* Change the submenu toggle icon */
.wp-block-navigation__submenu-icon {
    position: relative;
    margin-left: 6px;
}

.wp-block-navigation__submenu-icon:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/themes/eirb2023/assets/images/caret.svg');
    background-repeat: no-repeat;
    background-size: 10px 8px;
    background-position: center;
    transition: transform 0.2s ease-out;
}

.wp-block-navigation__submenu-icon svg {
    display: none !important;
}

.wp-block-navigation-item.has-expanded-submenu > .wp-block-navigation__submenu-icon:after,
.wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon:after {
    transform: rotate(-180deg);
}

/* The hover listener for the main menu is interfering with the mobile menu icon rotation */
.wp-block-navigation-item.has-collapsed-submenu > .wp-block-navigation__submenu-icon:after {
    transform: rotate(0deg);
}

/**
 * Block: core/navigation
 */

/* Underlines style */
nav.is-style-underlines :not(.is-style-button) .wp-block-navigation-item__content.current-menu-ancestor,
nav.is-style-underlines .wp-block-navigation__container > .current-menu-item:not(.is-style-button) > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 4px;
	text-underline-offset: calc(var(--wp--preset--spacing--30) + 9.5px);
}

nav.is-style-underlines .wp-block-navigation__container > .wp-block-navigation-item:not(.is-style-button):hover > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 4px;
	text-underline-offset: calc(var(--wp--preset--spacing--30) + 9.5px);
}

nav.is-style-underlines .wp-block-navigation__submenu-container a {
	text-decoration: none !important;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--yellow);
}

/**
 * Special mobile menu
 */
#mobile-header {
	--mobile-menu--divider-color--primary: var(--wp--preset--color--light-blue);
	--mobile-menu--background-color--primary: var(--wp--preset--color--white);
	--mobile-menu--link-color--primary: var(--wp--preset--color--dark-blue);
	--mobile-menu--weight--primary: 700;

	--mobile-menu--divider-color--secondary: var(--wp--preset--color--light-blue);
	--mobile-menu--background-color--secondary: var(--wp--preset--color--baby-blue);
	--mobile-menu--link-color--secondary: var(--wp--preset--color--dark-blue);
	--mobile-menu--weight--secondary: 400;

	--mobile-menu--header--offset: 79.41px;
	--mobile-menu--font-size: var(--wp--preset--font-size--small);
	--mobile-menu--max-height: calc(100vh - var(--mobile-menu--header--offset));
}

#mobile-header:not(:first-child) .wp-block-navigation__responsive-close {
	--mobile-menu--max-height: calc(100vh - var(--mobile-menu--header--offset) - 40px);
	
	margin-top: 40px;
}

body:not(.admin-bar) .show-over-mobile-menu {
	z-index: 100001;
	position: relative;
}

#mobile-header :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog) {
	height: 100%;
}

#mobile-header .wp-block-navigation__responsive-container-close {
	right: var(--wp--preset--spacing--40);
	top: calc(var(--mobile-menu--header--offset) / -2);
	transform: translateY(-50%);
}

#mobile-header .wp-block-navigation__responsive-container {
	padding: 0;
	background-color: var(--mobile-menu--background-color--primary) !important;
	color: var(--mobile-menu--link-color--primary) !important;
	font-size: var(--mobile-menu--font-size);
	overflow: hidden;
}

#mobile-header .wp-block-navigation__responsive-container a {
	font-weight: var(--mobile-menu--weight--primary);
}

#mobile-header .wp-block-navigation__container {
	border-top: solid 1px var(--mobile-menu--divider-color--primary);
	border-bottom: solid 1px var(--mobile-menu--divider-color--primary);
	width: 100%;
	gap: 0;
}

#mobile-header .wp-block-navigation-item {
	width: 100%;
}

#mobile-header .wp-block-navigation__responsive-container .wp-block-navigation-item a {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

#mobile-header .wp-block-navigation__responsive-container-content {
	padding-top: 0;
	margin-top: var(--mobile-menu--header--offset);
	max-height: var(--mobile-menu--max-height);
	overflow: auto;
	padding-bottom: var(--wp--preset--spacing--30);
}

#mobile-header .wp-block-navigation__responsive-container-content > *:not(.wp-block-navigation__container) {
	padding: 0 var(--wp--preset--spacing--30);
}

#mobile-header .wp-block-navigation__responsive-container li + li {
	border-top: solid 1px var(--mobile-menu--divider-color--primary);
	margin-top: 0 !important;
}

#mobile-header .wp-block-navigation__responsive-container .wp-block-navigation-item.has-child {
	display: grid !important;
	grid-template-columns: 1fr auto;
	grid-template-rows: min-content 0fr;
	transition: grid-template-rows 0.4s ease-in-out;
	overflow: hidden;
}

#mobile-header .wp-block-navigation__responsive-container .wp-block-navigation-item.has-child.has-expanded-submenu {
	grid-template-rows: min-content 1fr;
}

#mobile-header .wp-block-navigation__submenu-container {
    --wp--style--block-gap: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    background-color: var(--mobile-menu--background-color--secondary) !important;
	color: var(--mobile-menu--link-color--secondary) !important;
	grid-column: 1 / -1;
	min-height: 0;
	margin-block-start: 0;
}

#mobile-header .has-expanded-submenu .wp-block-navigation__submenu-container {
    border-top: solid 1px var(--mobile-menu--divider-color--primary);
}

#mobile-header .wp-block-navigation__submenu-container a {
	font-weight: var(--mobile-menu--weight--secondary);
}

#mobile-header .wp-block-navigation__submenu-container li + li {
	border-top: solid 1px var(--mobile-menu--divider-color--secondary);
}

#mobile-header .wp-block-navigation__submenu-icon {
    display: block !important;
    border-left: solid 1px var(--mobile-menu--divider-color--primary);
    margin: 0;
    width: 100%;
    height: 100%;
    padding: 0 var(--wp--preset--spacing--40);
}

#mobile-header .wp-block-navigation__submenu-icon svg {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease-in-out;
}

#mobile-header .wp-block-navigation__submenu-icon[aria-expanded=true] svg {
	transform: rotate(-180deg);
}

#mobile-header .wp-block-social-links li {
	border-top: none !important;
}

#mobile-header .wp-block-search {
	box-sizing: border-box;
	width: 100%;
}
/**
 * Block: core/paragraph
 */
p {
    max-width: var(--wp--custom--typography--max-width);
    word-spacing: var(--wp--custom--typography--word-spacing);
}
p.has-text-align-center {
    margin-left: auto;
    margin-right: auto;
}
/**
 * Post Excerpt
 */
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt {
    margin-block-start: 0;
}

.wp-block-post-excerpt .wp-block-post-excerpt__more-text {
    margin-top: var(--wp--preset--spacing--20);
}

/**
 * Post Featured Image
 */
.wp-block-post-featured-image img {
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
}
@media (min-width: 782px) {
	.wp-block-query .wp-block-post-featured-image.is-offset-desktop {
		margin-top: calc(-1 * (var(--wp--preset--spacing--60) + var(--wp--preset--spacing--50) + var(--wp--preset--font-size--small)) );
	}
}
/**
 * Block: core/post-navigation-link-previous, core/post-navigation-link-next
 */
:where(.wp-block-post-navigation-link) > a[role="textbox"]:not(:last-child),
:where(.post-navigation-link-previous, .post-navigation-link-next) .post-navigation-link__label {
    display: block;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
}
/**
 * Block: core/post-title
 */
.wp-block-post-title a {
    text-decoration: inherit;
    color: inherit;
}  
/**
 * Block: core/query
 */

.wp-block-query {
	--container-width: var(--wp--custom--spacing--content-size);
}
.wp-block-query.alignwide {
	--container-width: var(--wp--custom--spacing--wide-size);
}

/* Seems like we need this when nesting a query in the cover block for now */
.wp-block-cover .wp-block-query {
	width: var(--container-width);
	max-width: 100%;
}

.wp-block-post-template.is-layout-grid {
	gap: var(--wp--preset--spacing--50);
}
.wp-block-post-template.is-layout-grid:where(.columns-2,.columns-3,.columns-4,.columns-5,.columns-6) {
	display: grid;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	padding: 0;
	list-style: none;
}
.wp-block-post-template.is-layout-grid:is(.columns-2,.columns-3,.columns-4,.columns-5,.columns-6) > li.wp-block-post {
	width: auto;
	margin: 0;
}

.wp-block-post-template.is-layout-grid.columns-2 {
	grid-template-columns: repeat(auto-fill, minmax(calc(var(--container-width)/2 - var(--wp--preset--spacing--50)*1/2), 1fr));
}
.wp-block-post-template.is-layout-grid.columns-3 {
	grid-template-columns: repeat(auto-fill, minmax(calc(var(--container-width)/3 - var(--wp--preset--spacing--50)*2/3), 1fr));
}
.wp-block-post-template.is-layout-grid.columns-4 {
	grid-template-columns: repeat(auto-fill, minmax(calc(var(--container-width)/4 - var(--wp--preset--spacing--50)*3/4), 1fr));
}
.wp-block-post-template.is-layout-grid.columns-5 {
	grid-template-columns: repeat(auto-fill, minmax(calc(var(--container-width)/5 - var(--wp--preset--spacing--50)*4/5), 1fr));
}
.wp-block-post-template.is-layout-grid.columns-6 {
	grid-template-columns: repeat(auto-fill, minmax(calc(var(--container-width)/6 - var(--wp--preset--spacing--50)*5/6), 1fr));
}

/**
 * If we're down to a single column just do auto columns. Fix for narrow screens.
 */
@media (max-width: 400px) {
	.wp-block-post-template.is-layout-grid:is(.columns-2,.columns-4,.columns-5,.columns-6) {
		grid-template-columns: auto;
	}
}
@media (max-width: 480px) {
	.wp-block-post-template.is-layout-grid:is(.columns-3) {
		grid-template-columns: auto;
	}
}

/**
 * Equal Height, No Wrap Style
 */
.wp-block-query.is-style-equal-height-no-wrap .wp-block-post-template {
	display: flex !important;
}

.wp-block-query.is-style-equal-height-no-wrap .wp-block-post-template > .wp-block-post {
	flex-grow: 1;
	flex-basis: 0;
	min-width: 0;
}

.wp-block-query.is-style-equal-height-no-wrap .wp-block-post-template > .wp-block-post > *:first-child:last-child {
	height: 100%;
}

/**
 * Strips Style
 * Intended be used with columns. Does an offset column view like film strips.
 */
.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 {
	display: block;
}
.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post {
	width: calc(50% - var(--wp--preset--spacing--50)*1/2);
	float: left;
	margin-block-start: var(--wp--preset--spacing--70);
}
.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post:nth-child(even) {
	float: right;
}
.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post:first-child {
	margin-block-start: 0;
}
/* Push the right side down to create the effect */
.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post:nth-child(2) {
	margin-block-start: calc(var(--wp--preset--spacing--70) * 3);
}
/* Clear the floats */
.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2::after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/**
 * Gutenberg Editor specific layout fixes since it has extra elements
 * A little finicky right now
 */
.block-editor-block-list__block.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post:nth-child(3) {
	margin-block-start: calc(var(--wp--preset--spacing--70) * 3);
}
.block-editor-block-list__block.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post:nth-child(2n+4) {
	float: left;
}
.block-editor-block-list__block.wp-block-query.is-style-strips .wp-block-post-template.is-layout-grid.columns-2 > li.wp-block-post:nth-child(2n+3) {
	float: right;
}

/**
 * Fixes for when Gutenberg isn't outputting inline styles
 * (e.g. markup included through custom blocks)
 */
ul.wp-block-post-template {
	list-style: none;
    margin-bottom: 0;
    margin-top: 0;
    max-width: 100%;
    padding: 0;
}

/**
 * Styling news items
 */
.wp-block-post.type-post > .wp-block-group {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-post.type-post .wp-block-post-title a:hover {
	color: var(--wp--preset--color--dark-blue);
}
/**
 * Block: core/quote
 */
.wp-block-quote > p {
    color: var(--wp--preset--color--black);
}
.wp-block-quote > :first-child {
    margin-top: 0;
}
.wp-block-quote cite {
    display: block;
}

/* Quote Mark Style - Default (column) & Centred (row) vairations */
.wp-block-quote:is(.is-style-quote-mark,.is-style-quote-mark-centred) {
    border: none;
    padding-left: 0;
}
.wp-block-quote.is-style-quote-mark {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1em;
}
.wp-block-quote.is-style-quote-mark-centred {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(var(--wp--custom--spacing--content-size) - var(--wp--preset--spacing--70));
}
.wp-block-quote:is(.is-style-quote-mark,.is-style-quote-mark-centred):before {
    -webkit-mask: url('../images/quote.svg') no-repeat 50% 50%;
    mask: url('../images/quote.svg') no-repeat 50% 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: currentColor;
    width: 1.3em;
    height: 1.8em;
    content: '';
    display: inline-block;
}
.wp-block-quote.is-style-quote-mark:before {
    grid-column: 1;
}
.wp-block-quote.is-style-quote-mark-centred:before {
    margin-bottom: var(--wp--style--block-gap);
}
.wp-block-quote.is-style-quote-mark > * {
    grid-column: 2;
}
.wp-block-quote.is-style-quote-mark cite {
    --cite-line-width: 2.5em;
}
.wp-block-quote.is-style-quote-mark cite {
    grid-column: 2;
}
.wp-block-quote.is-style-quote-mark cite:before {
    content: '';
    display: block;
    width: var(--cite-line-width);
    height: 0.1rem;
    margin-bottom: 1em;
    background-color: currentcolor;
}
.wp-block-quote.is-style-quote-mark cite:before {
    grid-column: 1;
}
.wp-block-quote.is-style-quote-mark cite > * {
    grid-column: 2;
}
/**
 * Block: core/separator
 */

/* Thicker lines */
.wp-block-separator.has-background:not(.is-style-dots) {
	height: 2px;
}

/**
 * Block: core/table 
 */

.wp-block-table {
	width: 100%;
	max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-table table {
	border-width: 0;
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table :is(td,th) {
	border-left-color: transparent !important;
	border-right-color: transparent !important;
	vertical-align: top;
	padding: var(--wp--preset--spacing--30);
	padding-left: 0;
}

.wp-block-table tr {
	border-top: solid 2px var(--wp--preset--color--black);
	border-bottom: solid 2px var(--wp--preset--color--black);
}

.wp-block-table table thead tr {
	border-top: none;
}

.wp-block-table table thead tr :is(td, th) {
	padding-top: 0;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--baby-blue);
}

.wp-block-table table :is(td, th):first-child {
	padding-left: 0;
}

.wp-block-table table :is(td, th):last-child {
	padding-right: 0;
}

.wp-block-table table p {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-table table p + p {
	margin-top: 1em;
}

/* Lists in tables */
.wp-block-table table ul:first-child {
    margin-top: 0;
}

/* Plain table style */
.wp-block-table.is-style-plain {
	width: auto;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.wp-block-table.is-style-plain table tr {
	border-top: none !important;
	border-bottom: none !important;
}

.wp-block-table.is-style-plain table :is(td, th) {
	padding-top: 0;
	padding-left: 0;
	padding-right: var(--wp--preset--spacing--30);
}

.wp-block-table.is-style-plain table :is(td, th):last-child {
	padding-right: 0;
}

.wp-block-table.is-style-plain table tr:last-child :is(td, th) {
	padding-bottom: 0;
}

/**
 * Block: wpml/navigation-language-switcher
 */

/* Hide the current language from the list */
.wpml-language-switcher-navigation-block .wp-block-navigation-item[data-wpml="current-language-item"] {
    display: none !important;
}
.wpml-language-switcher-navigation-block .wp-block-navigation-item[data-wpml='language-item']:first-of-type {
    margin-block-start: 0 !important;
}

/* Uppercase for mobile header */
#mobile-header .wpml-language-switcher-navigation-block {
    text-transform: uppercase;
}
/**
 * Block: yoast-seo/breadcrumbs 
 */

.yoast-breadcrumbs {
    font-size: var(--wp--preset--font-size--small);
}

.yoast-breadcrumbs a {
    font-weight: 600;
    color: inherit;
}

.yoast-breadcrumbs a:hover {
    color: var(--wp--preset--color--yellow);
}

.yoast-breadcrumbs .breadcrumb_last {
    display: none;
    visibility: hidden;
}

/* Breadcrumbs on a light background */
.has-light-grey-background-color > .yoast-breadcrumbs {
    color: var(--wp--preset--color--dark-blue);
}

.has-light-grey-background-color > .yoast-breadcrumbs a:hover {
    color: var(--wp--preset--color--light-blue);
}
/**
 * Animations for blocks tied to scripting
 * @see /source/scripts/animate.js
 */


/**
 * Be mindful of unintuitive / unexpected animations for those that don't want them 
 * https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
 */
@media(prefers-reduced-motion) {

}

.animate {
    transition: all 0.3s;
}


/* Fade in and out based on percentage visible in viewport */
:not(.block-editor-block-list__block).animate.scroll-fade-in-out {
    opacity: 0;
}


/**
 * Triggered Canned Animations
 * Animations with set values that get triggered once the element is in view
 */

 
/* Cover specific fade in - image, then text */
.animate.cover-fade-in {
    background-color: var(--wp--preset--color--black);
}
.animate.in-view.cover-fade-in .wp-block-cover__image-background {
    animation: focus-in 0.5s cubic-bezier(0.470, 0.000, 0.745, 0.715) 0s both;
}
.animate.in-view.cover-fade-in .wp-block-cover__inner-container {
    animation: fade-in 0.75s cubic-bezier(0.470, 0.000, 0.745, 0.715) 0.25s both;
}


/* Blur the text into focus */
.animate.in-view.text-focus-in {
    animation: focus-in 0.6s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
}
@keyframes focus-in {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

/* Fade in gradually */
.animate.in-view.fade-in {
    animation: fade-in 2s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
}
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide left */
.animate.in-view.slide-left {
    animation: slide-left 0.5s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
}
@keyframes slide-left {
    0% {
        translate: 10%;
    }
    100% {
        translate: 0;
    }
}
/* Slide right */
.animate.in-view.slide-right {
    animation: slide-right 0.5s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
}
@keyframes slide-right {
    0% {
        translate: -10%;
    }
    100% {
        translate: 0;
    }
}
/**
 * Cards
 * Adds to the rounded style by centring content. Useful in multi-column card-like layouts
 * that have content centred vertically.
 */
.is-style-card {
	display: grid;
	align-items: center;
	align-content: center;
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--wp--custom--border--radius);
}
.wp-block-cover.is-style-card {
    overflow: hidden;
}
/* Eyebrow */
.is-style-eyebrow {
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--small);
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 400;
}

/**
 * Full Height Image - Inherits Container Height
 * Should only be used inside of patterns with layout blocks that have content dictating the height (eg. columns)
 */
:is(.wp-block-image, .wp-block-post-featured-image).is-style-full-height {
	height: 100%;
	max-height: 100vh;
}
:is(.wp-block-image, .wp-block-post-featured-image).is-style-full-height.block-editor-block-list__block > div:first-child {
	height: inherit !important;
}

:is(.wp-block-image, .wp-block-post-featured-image).is-style-full-height img {
	object-fit: cover;
	height: inherit;
}
/**
 * General exceptions to font sizing
 */

:is(header,footer).wp-block-template-part {
	--wp--preset--font-size--medium: 18px;

	font-size: var(--wp--preset--font-size--medium);
}

.has-h-1-font-size,
.has-h-2-font-size,
.has-h-3-font-size,
.has-h-4-font-size,
.has-h-5-font-size,
.has-h-6-font-size {
	line-height: var(--wp--custom--typography--heading-line-height);
}
/* Labels */
label {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}

/* General Form Field Settings */
input, textarea, select,
.wp-block-search__input {
	border-width: var(--wp--custom--forms--fields--border--width);
	border-color: var(--wp--custom--forms--fields--color--border);
	border-radius: var(--wp--custom--forms--fields--border--radius);
	border-style: solid;
	background-color: var(--wp--custom--forms--fields--color--background);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: inherit;
	color: inherit;
	outline: var(--wp--preset--color--dark-blue);
}

:is(input, textarea, select,
.wp-block-search__input):focus {
	border-color: var(--wp--preset--color--dark-blue);
}

/* Text Input Fields */
input:not([type="checkbox"],[type="radio"], [type="submit"]), textarea {
	padding: var(--wp--custom--forms--fields--spacing--padding);
	width: 100%;
	box-sizing: border-box;
}
textarea {
	height: 16em;
	resize: vertical;
}
:is(input, textarea)::placeholder {
	opacity: 0.5;
}
:is(input, textarea):focus {
	padding-left: var(--wp--custom--forms--fields--spacing--padding);
	padding-left: var(--wp--custom--forms--fields--spacing--padding);
}
:is(input, textarea):invalid:not(.wp-block-search__input),
.gfield_error :is(input, textarea, select) {
	background-color: var(--wp--custom--forms--errors--color--background);
	border-color: var(--wp--custom--forms--errors--color--border);
	color: var(--wp--custom--forms--errors--color--text);
}
.gfield_error {
	color: var(--wp--custom--forms--errors--color--text);
}

/* Radio / Checklist */
input:is([type="checkbox"],[type="radio"]) + label {
	font-weight: 400;
}

/* Select */
select {
	padding: var(--wp--custom--forms--fields--spacing--padding);
	width: 100%;
	appearance: none;
	background-image: url('/wp-content/themes/eirb2023/assets/images/dropdown-icon.svg');
	background-size: 0.8em;
	background-repeat: no-repeat;
	background-position: calc(100% - var(--wp--preset--spacing--20)) center;
}

/* Select - Custom Drop Down Arrow - Requires Wrapper */
:is(.ginput_container_select, .ginput_address_country, .name_prefix_select, .gfield_time_ampm) > select {
	appearance: none;
}

/* Form Buttons */
form :is(input[type="submit"], button), input[type="file"]::file-selector-button {
	background-color: var(--wp--preset--color--dark-blue);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border-width: 0;
	border-radius: var(--wp--custom--border--radius-small);
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
	font-weight: 600;
}
form input[type="file"]::file-selector-button {
	margin-inline-end: 1em;
}
form :is(input[type="submit"], button):hover  {
	background-image: linear-gradient(0deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.25) 100%);
}
form :is(input[type="submit"], button):focus  {
	background-image: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
}

/* File Field */
form input[type="file"] {
	border-width: 0;
}
form input[type="file"]:focus {
	border-width: initial;
	border-radius: var(--wp--custom--border--radius-small);
}

/* Fieldset */
fieldset {
	border: none;
	padding-inline-start: 0;
	padding-block-start: 0;
	padding-block-end: 0;
	padding-inline-end: 0;
	margin-inline-start: 0;
	margin-inline-end: 0;
}
fieldset legend {
	font-weight: 700;
}

/* Search input */
.wp-block-search__input,
#keyword-filter,
#document-keyword {
	background-image: url('/wp-content/themes/eirb2023/assets/images/search-icon.svg');
	background-size: 1em;
	background-repeat: no-repeat;
	background-position: calc(100% - var(--wp--preset--spacing--20)) center;
}
.wp-block-search__input::-webkit-search-cancel-button {
	display: none;
}

/* Exception for gravity form field to display with less margin below */
.gfield.no-bottom-space {
	margin-block-end: calc(-1 * var(--wp--custom--forms--fields--spacing--block-gap));
}

/**
 * Headings
 * Do some font weight/heading size overrides
 */

.has-h-1-font-size,
.has-h-2-font-size,
.has-h-6-font-size {
	font-weight: 600;
}

.has-h-3-font-size,
.has-h-4-font-size,
.has-h-5-font-size {
	font-weight: 500;
}

.htc-wrapper {
    .wp-block-image img {
        width: 100% !important;
        object-fit: cover;
    }
}
/**
 * Shared link styles
 */

a {
	transition: all 0.3s ease-out;
}

:is(p, td, li) > a:not([class]):hover {
	opacity: 0.75;
}
/**
 * General Modal Styling
 */

/* overlay for when dialogs are open */
dialog::backdrop {
    background-color: black;
    opacity: 0.93;
}

/* leave the container styling to the content within */
dialog {
    background: white;
    border: none;
    padding: 0;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
}

dialog,
body .is-layout-flow > dialog {
    position: fixed;
    max-height: calc(100vh - (var(--wp--preset--spacing--30)*5) - var(--wp--preset--font-size--large));
    margin-block-start: auto !important;
    margin-block-end: auto !important;
}

/* allow it to overflow so we don't have a double scrollbar on smaller screens */
@media (max-width: 850px) {
    dialog {
        position: absolute;
        margin-block-start: var(--wp--preset--spacing--60) !important;
    }
}

/* Close Button Form - closes the modal without the need for scripting */
dialog form.close {
    position: fixed;
    top: var(--wp--preset--spacing--50);
    right: var(--wp--preset--spacing--50);
}
dialog form.close button {
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--wp--preset--spacing--50);
    height: var(--wp--preset--spacing--50);
    padding: 0;
}
dialog form.close button svg {
    fill: var(--wp--preset--color--black);
    width: var(--wp--preset--font-size--large);
}

/* Search exceptions */
dialog.search-modal {
    background-color: transparent;
    min-width: min(100%, 960px);
}

dialog.search-modal :is(form:not(.close), .wp-block-search__inside-wrapper) {
    width: 100%;
}

/* Missing styles for embedded videos */
.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.wp-embed-responsive .wp-has-aspect-ratio iframe {
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.wp-block-embed iframe {
    max-width: 100%;
}

/**
 * Shared Styles for pagination more complex blocks
 * Blocks: query-pagination-previous, query-pagination-next, query-pagination-numbers, genesis-custom-blocks/filter-archive-pagination
 */

.wp-block-query-pagination {
    gap: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination,
.pagination-links {
    --anchor-width: clamp(3rem, 2.6154rem + 1.7094vw, 4rem);
}

.pagination-links,
.wp-block-query-pagination-numbers {
    display: flex;
    gap: var(--wp--preset--spacing--20) !important;
}

.wp-block-query-pagination-numbers {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.pagination-links a,
.wp-block-query-pagination-numbers :is(a, span),
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0 !important;
}

.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow {
    display: none !important;
}

.pagination-links a:is(.active, :hover),
.wp-block-query-pagination-numbers :is(a, span):is(:hover, .current),
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    color: var(--wp--preset--color--dark-blue);
}

.pagination-links a:is(.active),
.wp-block-query-pagination-numbers :is(a, span):is(.current) {
    font-weight: 700;    
}

.pagination-links a.previous {
    margin-right: auto;
}

.pagination-links a.previous:after,
.pagination-links a.next:after,
.wp-block-query-pagination-previous:after,
.wp-block-query-pagination-next:after {
    content: '\f104';
    display: inline-flex;
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    font-weight: 400;
    font-size: var(--wp--preset--spacing--30);
    transition: transform 0.5s ease;
}

.pagination-links a.next,
.wp-block-query-pagination-next {
    margin-left: auto;
}

.pagination-links a.next:after,
.wp-block-query-pagination-next:after {
    content: '\f105';
}

.pagination-links a.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.wp-block-query-pagination-numbers:first-child {
    margin-left: auto !important;
}

.wp-block-query-pagination-numbers:last-child {
    margin-right: auto !important;
}

.wp-block-query-pagination-numbers .page-numbers.dots {
    border: none;
    pointer-events: none;
}

/**
 * Shared Styles for buttons and links in more complex blocks
 * Blocks: core/button, core/read-more, core-post-excerpt
 * - read-more: Text + Right Arrow visible, arrow moves on hover
 * - arrow: Variation where only Right Arrow is visible initially, text reveals / slides in on hover
 */
:is(.wp-block-read-more),
.wp-block-button:is(.is-style-read-more,.is-style-arrow) {
	font-size: var(--wp--preset--font-size--small);
}
:is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .wp-block-button.is-style-read-more) {
	transition: var(--wp--custom--animation--default-transition);
}
.wp-block-read-more:after,
:where(.wp-block-post-excerpt__more-link):after,
.wp-block-button:where(.is-style-read-more, .is-style-arrow) .wp-block-button__link:after {
	display: inline-block;
	position: relative;
	font-family: "Font Awesome 6 Pro";
	font-style: normal;
	content: '\f178';
	margin-left: 0.8em;
	transition: inherit;
	font-weight: 400;
	font-size: 0.625em !important;
	top: -0.2em;
}
:is(.wp-block-read-more, .wp-block-post-excerpt__more-link):hover:after,
.wp-block-button.is-style-read-more:hover .wp-block-button__link:after {
	margin-left: 1.6em;
}

.wp-block-read-more.is-style-arrow,
.wp-block-button.is-style-arrow .wp-block-button__link {
	clip-path: inset(0 0 0 calc(100% - 1em));
	transform: translateX(calc(-100% + 1em));
}
.wp-block-read-more.is-style-arrow:hover,
.wp-block-button.is-style-arrow:hover .wp-block-button__link {
	clip-path: inset(0 0 0 0);
	transform: translateX(0);
}
:where(.is-content-justification-center) > .wp-block-read-more.is-style-arrow,
:where(.wp-block-buttons.is-content-justification-center) .wp-block-button.is-style-arrow .wp-block-button__link {
	transform: translateX(calc(-50% + 0.5em));
}
.wp-block-buttons.is-content-justification-right .wp-block-button.is-style-arrow .wp-block-button__link {
	transform: none;
}

.wp-block-button:is(.is-style-read-more, .is-style-arrow) .wp-block-button__link {
	background-color: transparent;
	padding: 0;
	color: var(--wp--preset--color--dark-blue);
}
.wp-block-button.is-style-read-more:hover .wp-block-button__link {
	border-color: transparent;
}

/* Plain read more link */
.wp-block-read-more.is-style-plain:hover {
	text-decoration: underline;
}
.wp-block-read-more.is-style-plain:after {
	display: none;
}

/* Handle black and white cases */
:is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .wp-block-button.is-style-read-more) {
	color: inherit;
}

:is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .wp-block-button.is-style-read-more):hover {
	color: var(--wp--preset--color--dark-blue);
}

:is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .wp-block-button.is-style-read-more):is(:active, :focus) {
	color: inherit;
}

.has-white-color :is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .wp-block-button.is-style-read-more):hover {
	color: var(--wp--preset--color--yellow);
}

.has-white-color :is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .wp-block-button.is-style-read-more):is(:active, :focus) {
	color: inherit;
}
/**
 * Special styling for resources (e.g. toggle)
 */

.toggle-wrapper {
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: min-content 0fr;
	transition: grid-template-rows 0.4s ease-in-out;
	overflow: hidden;
}

.toggle-wrapper.open {
	grid-template-rows: min-content 1fr;
}

.toggle-wrapper .toggle-header {
	width: 100%;
	cursor: pointer;
}

.toggle-wrapper .toggle-body {
	min-height: 0;
}

.toggle-wrapper:not(.open) .toggle-icons .collapse-icon {
	display: none;
}

.toggle-wrapper.open .toggle-icons .expand-icon {
	display: none;
}

/**
 * Special styling for screen reader text
 */

.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    overflow: hidden;
    position: absolute!important;
    width: 1px;
    word-wrap: normal!important;
}
/**
 * Any applicable css related to sitewide scrolling
 */

html { 
    scroll-behavior: smooth; 
}
/**
 * Template Part: footer
 */
.wp-site-blocks > footer {
    margin-top: 0;
}

/* Link hover overrides, since WP is excluding menus from hover colour experience */
footer .has-dark-grey-background-color li.wp-block-navigation-item:hover {
    color: var(--wp--preset--color--yellow);
}

/**
 * Template Part: header
 */

.wp-site-blocks > header {
	--admin-bar-offset: 0px;
	position: sticky;
	top: var(--admin-bar-offset);
	background-color: var(--wp--preset--color--white);
	z-index: 3;
	transition: transform 0.8s ease, box-shadow 0.3s ease;
}

/* Hiding header */
.wp-site-blocks > header.hiding {
	transform: translateY(-150%);
}

/* Peeking header */
.wp-site-blocks > header.peeking {
	box-shadow: 0 5px 10px 0px rgba(0, 0, 0, 0.1);
}

body.admin-bar .wp-site-blocks > header {
	--admin-bar-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header {
		--admin-bar-offset: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header {
		--admin-bar-offset: 0px;
	}
}

.wp-site-blocks > header > .wp-block-group {
	padding: var(--wp--preset--spacing--50);
}
.wp-site-blocks > header > .wp-block-group.is-style-floating {
	position: absolute;
	z-index: 10;
	width: 100%;
}

/* Bring the Site Logo Overtop of the open mobile menu */
.wp-site-blocks > header .wp-block-site-logo {
	position: relative;
	z-index: 100001;
}

.wp-site-blocks > header .wp-block-navigation-link.current-menu-item {
	color: var(--wp--preset--color--dark-blue);
}

/* Protruded desktop site logo */
.wp-block-site-logo.protruded {
	--logo-width: 115px;

	width: var(--logo-width);
}

.wp-block-site-logo.protruded > * {
	position: absolute;
	top: calc(var(--wp--preset--spacing--20) * -1 + 2px);
	left: 0;
	width: var(--logo-width);
}
/**
 * Main Entry / Post Content Layout Adjustments
 */

/** 
 * Apply hozizontal margins when below our max-width / alignwide limits 
 * eg. 1296px + 3.00rem (48px) on each side = 1392px
 */
@media (max-width: 1392px) {
	main > .entry-content > .alignwide {
		margin-left: var(--wp--preset--spacing--50) !important;
		margin-right: var(--wp--preset--spacing--50) !important;
	}
}

/** 
 * Apply hozizontal margins when below our contrained content limits 
 * eg. 960px + 3.00rem (48px) on each side = 1056px
 */
@media (max-width: 1056px) {
	main > .is-layout-constrained:not(.alignfull, .post-header, .wp-block-post-content),
	main > .entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
	main > .is-layout-constrained.post-header > :not(.wp-block-post-featured-image) {
		margin-left: var(--wp--preset--spacing--50) !important;
		margin-right: var(--wp--preset--spacing--50) !important;
	}
}
/**
 * Special styles for the home hero cover block
 */

.home-hero {
	position: relative;
	/* Fill the viewport below the (in-flow) site header. The block's inline
	   min-height:82vh left a gap before the fold, so override it here. */
	min-height: calc(100vh - 79.41px) !important;
}

.home-hero > .wp-block-cover__inner-container {
	max-width: none !important;
	min-height: inherit;
	display: flex;
	flex-direction: column;
}

.home-hero > .wp-block-cover__inner-container > *:first-child {
	margin-top: auto;
	margin-bottom: auto;
}

/**
 * Template: index.html
 */

/**
 * Change the aspect ratio of the featured posts to landscape when in single column
 */
@media (max-width: 942px) {
	body.blog .wp-block-post-template.is-flex-container .wp-block-post-featured-image img {
		aspect-ratio: 3 / 2;
	}
}
/**
 * Special Styling of the first post of the blog page on wider screens
 * Two column card layout with larger font sizes and spacing
 */
@media (min-width: 943px) {
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child > .wp-block-group {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--50);
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-featured-image {
		display: grid;
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-featured-image img {
		aspect-ratio: auto;
		height: 100%;
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-featured-image + .wp-block-group {
		display: grid;
		justify-items: start;
		align-content: center;
		margin-block-start: 0;
		padding: var(--wp--preset--spacing--50);
		border-radius: var(--wp--custom--border--radius);
		background-color: var(--wp--preset--color--grey);
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-featured-image + .wp-block-group > * {
		width: 100%;
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--h-3) !important;
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-title + .wp-block-group {
		margin-block-start: var(--wp--preset--spacing--30) !important;
	}
	body.blog .wp-block-post-template.is-flex-container > .wp-block-post:first-child .wp-block-post-excerpt {
		margin-block-start: var(--wp--preset--spacing--30) !important;
		font-size: var(--wp--preset--font-size--medium) !important;
	}
}

/**
 * Update how many grid columns the first post takes up so its an entire row
 * Adjust according to breakpoints of other columns (eg. 3 per row to 2 per row)
 */
@media (min-width: 943px) {
	body.blog .wp-block-post-template.is-flex-container.columns-3 > .wp-block-post:first-child {
		grid-area: 1 / 1 / 1 / 3;
	}
}
@media (min-width: 1393px) {
	body.blog .wp-block-post-template.is-flex-container.columns-3 > .wp-block-post:first-child {
		grid-area: 1 / 1 / 1 / 4;
	}
}
/**
 * Template: search.html
 */
