.edit-profile-form,
.edit-profile-passwword-form {
    display: grid;
    column-gap: var(--wp--preset--spacing--50);
    row-gap: var(--wp--preset--spacing--30);
    @media(min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
    }
    .wp-block-buttons {
        grid-column: 1 / -1;
    }
    input, 
    select {
        margin-top: 0.25rem;
        color: var(--wp--preset--color--dark-grey-400);
    }
    label {
        color: var(--wp--preset--color--dark-grey-700);
        font-size: var(--wp--preset--font-size--small);
        font-weight: 600;
    }
    
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: var(--wp--custom--forms--fields--spacing--padding);
    z-index: 2;
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    content: '\f107';
    pointer-events: none;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--tiny);
    color: var(--wp--preset--color--dark-blue);
}

.multiple-select .ts-control {
    border-radius: 0;
    margin-top: 0.25rem;
    padding: var(--wp--custom--forms--fields--spacing--padding);

    > input:not(:first-child) {
        display: none !important;
    }
}

.edit-profile-passwword-form #confirm_password:disabled {
    background-color: var(--wp--preset--color--light-grey-200);
}

.edit-profile-passwword-form .password {
    position: relative;
}

.edit-profile-passwword-form .password .password-toggle {
    position: absolute;
    width: 0.875rem;
    right: var(--wp--preset--spacing--20);
    top: 2.5rem;
    cursor: pointer;
    svg path {
        fill: var(--wp--preset--color--dark-blue);
    }
}
.password-form-fields-wrapper {
    @media(min-width: 768px) {
        max-width: 342px;
    }
}
.edit-profile-passwword-form .confirm-password .password-toggle {
    svg path {
        fill: var(--wp--preset--color--dark-grey-800) !important;
    }
}
.edit-profile-passwword-form .confirm-password .password-toggle.open {
    svg path {
        fill: var(--wp--preset--color--dark-blue) !important;
    }
}
/**
 * Block: core/button 
 */
.wp-block-button .wp-block-button__link {
	transition: var(--wp--custom--animation--default-transition);
}
.wp-block-button .wp-block-button__link:is(:hover,:focus) {
	background-color: var(--wp--preset--color--dark-blue);
}
.wp-block-button .wp-block-button__link:active {
	background-color: var(--wp--preset--color--flsc-black);
}

/* White variant */
.wp-block-button .wp-block-button__link.has-white-background-color:is(:hover,:focus) {
	background-color: var(--wp--preset--color--dark-grey-400) !important;
	color: var(--wp--preset--color--white) !important;
}
.wp-block-button .wp-block-button__link.has-white-background-color:active {
	background-color: var(--wp--preset--color--flsc-black) !important;
	color: var(--wp--preset--color--white) !important;
}

/* Black variant */
.wp-block-button .wp-block-button__link.has-flsc-black-background-color:is(:hover,:focus) {
	background-color: var(--wp--preset--color--dark-grey-400) !important;
}
.wp-block-button .wp-block-button__link.has-flsc-black-background-color:active {
	background-color: var(--wp--preset--color--dark-grey-800) !important;
}

/* Icon buttons */
.wp-block-button:is(.is-style-download, .is-style-clear, .is-style-email) .wp-block-button__link:before {
	content: '\f358';
	font-family: "Font Awesome 6 Pro";
	display: inline-block;
	font-weight: 900;
	margin-right: 1em;
}

.wp-block-button.is-style-email .wp-block-button__link:before {
	content: '\f199';
}

.wp-block-button.is-style-clear .wp-block-button__link:before {
	content: '\f057';
}

.wp-block-button.is-style-clear .wp-block-button__link {
	background-color: var(--wp--preset--color--light-grey-200);
	color: var(--wp--preset--color--dark-grey-700);
}
.wp-block-button.is-style-clear .wp-block-button__link:is(:hover,:focus) {
	background-color: var(--wp--preset--color--dark-grey-400);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-clear .wp-block-button__link:active {
	background-color: var(--wp--preset--color--flsc-black);
	color: var(--wp--preset--color--white);
}

/* View all Buttons */
.wp-block-button.is-style-view-all .wp-block-button__link {
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-color: transparent;
	background-color: transparent;
	color: var(--wp--preset--color--flsc-blue-600);
}
.wp-block-button.is-style-view-all .wp-block-button__link:is(:hover,:focus) {
	color: var(--wp--preset--color--flsc-blue-800);
	text-decoration: underline;
}
.wp-block-button.is-style-view-all .wp-block-button__link:active {
	color: var(--wp--preset--color--flsc-black);
	text-decoration: underline;
}

/* Light blue variant */
.wp-block-button.is-style-view-all .wp-block-button__link.has-flsc-blue-200-color:is(:hover,:focus) {
	color: var(--wp--preset--color--flsc-blue-400) !important;
}
.wp-block-button.is-style-view-all .wp-block-button__link.has-flsc-blue-200-color:active {
	color: var(--wp--preset--color--white) !important;
}

/* Copy to clickboard styling */
.wp-block-button.copy-to-clipboard {
	position: relative;

	&:after {
		content: '\f058';
		font-family: "Font Awesome 6 Pro";
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		left: calc(100% + var(--wp--preset--spacing--10));
		font-weight: 900;
		color: var(--wp--preset--color--gold-600);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.5s ease;
	}

	&.copied:after {
		opacity: 1;
		transition: opacity 0.1s ease;
	}
}
/**
 * Google Map from baytek-cartographer shortcode
 */
.cartograph {
    min-height: min(66vh, 600px);
}

.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);
}

/**
 * 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;
    display: flex;
    flex-direction: column;
    .wp-block-group.has-background {
        height: 100%;
    }
}

/**
 * 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%;
	}
}
.wp-block-details {
    background-color: var(--wp--preset--color--white);
    /* padding: var(--wp--preset--spacing--30); */
}
.wp-block-details summary {
    font-size: var(--wp--preset--font-size--h-3-large);
    font-weight: 500;
    position: relative;
    padding: var(--wp--preset--spacing--30);
}
.wp-block-details .content {
    padding-right: var(--wp--preset--spacing--40);
    border-top: 1px solid var(--wp--preset--color--light-grey-200);
    padding-top: var(--wp--preset--spacing--20);
    margin-right: var(--wp--preset--spacing--30);
    margin-left: var(--wp--preset--spacing--30);
    margin-top: 0;
    padding-bottom: var(--wp--preset--spacing--20);
    p {
        max-width: 100%;
    }
}
.wp-block-details summary::marker {
    content: '';
}
.wp-block-details summary::after {
    content: '\f107';
    font-family: "Font Awesome 6 Pro";
    position: absolute;
    font-size: var(--wp--preset--font-size--large);
    right: var(--wp--preset--spacing--30);
    top: 1.75rem;
    font-weight: 400;
}
details[open] summary::after {
	content: '\f106';
}
/**
 * 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);
}

.lightbox-image-container .wp-block-image img {
    min-width: unset;
    min-height: unset;
    width: auto;
    height: auto;
}
/**
 * Block: genesis-custom-blocks/calendar-date
 */

.calendar-date {
	width: 80px;

	* {
		white-space: nowrap;
	}
}

/**
 * Block: genesis-custom-blocks/event-calendar
 */

.fc-toolbar-chunk {
	display: flex;
	align-items: center;
}

.fc-view table {
	--fc-border-color: var(--wp--preset--color--light-grey-200);

	background-color: var(--wp--preset--color--white);

	th {
		border-bottom: transparent;

		a {
			text-transform: uppercase;
			font-size: var(--wp--preset--font-size--tiny);
			color: var(--wp--preset--color--dark-grey-800);
			letter-spacing: 0.1em;
			font-weight: 600;
			padding-top: 1em !important;
		}
	}
}

.fc .fc-daygrid-day.fc-day-today {
	background-color: var(--wp--preset--color--gold-100);

	.fc-daygrid-day-number {
		color: var(--wp--preset--color--flsc-black);
	}
}

.fc .fc-day-other .fc-daygrid-day-top {
	opacity: 0;
}

.fc .fc-daygrid-day-top {
	justify-content: center;

	a {
		color: var(--wp--preset--color--dark-grey-400);
		font-weight: 600;
		font-size: var(--wp--preset--font-size--small);
	}
}

.fc-event {
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	border-radius: 0;
	border: none;

	&:not(.multi-day) {
		background-color: transparent;
		margin-left: 0.5em !important;

		.fc-event-title {
			color: var(--wp--preset--color--flsc-black);
			position: relative;
			display: flex;
			align-items: baseline;
			white-space: break-spaces;

			.time {
				font-weight: 400;
				white-space: nowrap;
			}
		}
	}
}

.fc .fc-toolbar.fc-header-toolbar {
	margin-bottom: 0;
	position: relative;
}

.fc .fc-toolbar-title {
	font-size: var(--wp--preset--font-size--large);
}

.fc .fc-today-button {
	transition: color 0.3s, background-color 0.3s;
	border-radius: 0;
	border: none;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--tiny);
	background-color: var(--wp--preset--color--flsc-black);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	letter-spacing: 0.1em;
	font-weight: 600;

	&:disabled {
		background-color: var(--wp--preset--color--light-grey-200);
		color: var(--wp--preset--color--dark-grey-700);
		opacity: 1;
		pointer-events: none;
	}

	&:is(:hover,:focus) {
		background-color: var(--wp--preset--color--dark-grey-400);
	}

	&:active {
		background-color: var(--wp--preset--color--dark-grey-800);
	}
}

.fc :is(.fc-prev-button, .fc-next-button) {
	background-color: transparent !important;
	color: var(--wp--preset--color--flsc-black);
	border: none;
	transition: var(--wp--custom--animation--default-transition);
	padding-top: 0;

	&:is(:hover,:focus) {
		color: var(--wp--preset--color--dark-grey-400);
	}

	&:active {
		color: var(--wp--preset--color--dark-grey-700) !important;
	}

	.fc-icon {
		font-size: 1.25em;
	}

	.fc-icon-chevron-left:before,
	.fc-icon-chevron-right:before {
		content: '\f0d9';
		font-family: "Font Awesome 6 Pro";
		font-weight: 900;
	}

	.fc-icon-chevron-right:before {
		content: '\f0da';
	}
}

.fc .fc-more-link {
	color: var(--wp--preset--color--dark-grey-700);
	background-color: var(--wp--preset--color--light-grey-100);
	padding: 0.3em var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 400;
	border-radius: 0;
	margin-left: 1em;
}

.fc-theme-standard .fc-list {
	--fc-border-color: var(--wp--preset--color--light-grey-200);
}

.fc .fc-list {
	--fc-neutral-bg-color: var(--wp--preset--color--white);
	--fc-list-event-dot-width: 5px;

	background-color: var(--fc-neutral-bg-color);
	position: static !important;

	.fc-list-event-title {
		padding-left: 0.3em !important;

		a {
			font-weight: 600;
		}
	}

	.fc-list-day {
		.fc-list-day-cushion {
			background-color: var(--wp--preset--color--light-grey-100);
			text-align: left;

			a {
				padding-top: 0 !important;
				float: none !important;

				&.fc-list-day-side-text {
					&:before {
						content: ' (';
					}

					&:after {
						content: ')';
					}
				}
			}
		}
	}

	.fc-list-day-cushion,
	td {
		padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	}

	.fc-list-event-time,
	.fc-event-title {
		color: var(--wp--preset--color--dark-grey-800);
	}

	.fc-list-event-time {
		font-weight: 400;
	}

	tr.fc-list-day + tr.fc-event td {
		padding-top: var(--wp--preset--spacing--20);
	}

	tr.fc-event:not(:last-child) td {
		border-bottom: none;
	}

	tr.fc-event + tr.fc-event td {
		border-top: none;
		padding-top: 0;
	}

	tr.fc-event td {
		padding-bottom: var(--wp--preset--spacing--20);
	}

	td.fc-list-event-graphic {
		padding-left: var(--wp--preset--spacing--50);
	}

	.fc-scroller {
		overflow: visible !important;
		height: fit-content;
	}
}

.fc .fc-list-event-dot {
	transform: translateY(-0.15em);
}

.fc .fc-event:not(.staff-event) .fc-list-event-dot {
	--fc-event-border-color: var(--wp--preset--color--gold-600);
}

.fc .fc-event.staff-event .fc-list-event-dot {
	--fc-event-border-color: var(--wp--preset--color--flsc-blue-600);
}

@media (max-width: 599px) {
	.fc .fc-toolbar.fc-header-toolbar {
		flex-direction: column;
		align-items: flex-start;

		.fc-toolbar-chunk {
			justify-content: space-between;
			width: 100%;

			.fc-today-button {
				margin-bottom: var(--wp--preset--spacing--20);
			}
		}
	}

	.fc .fc-prev-button {
		padding-left: 0 !important;
	}

	.fc .fc-next-button {
		padding-right: 0 !important;
	}

	.fc .fc-view-harness {
		height: fit-content !important;
	}
}

@media (min-width: 600px) {
	.fc .fc-today-button {
		position: absolute;
		top: 50%;
		left: 0;
		transform: translateY(-50%);
	}

	.fc-event {
		&:not(.multi-day) {
			margin-left: 0.5em !important;

			.fc-event-title {
				&:before {
					content: '';
					border-radius: 100%;
					min-width: 0.3em;
					min-height: 0.3em;
					background-color: var(--wp--preset--color--gold-600);
					display: inline-block;
					margin-right: 0.3em;
					transform: translateY(-0.15em);
				}
			}
		}

		&.multi-day {
			background-color: var(--wp--preset--color--gold-700);
			color: var(--wp--preset--color--white);
			margin-left: 0 !important;
			margin-right: 0 !important;
			padding: 0.3em var(--wp--preset--spacing--10);

			&.staff-event {
				background-color: var(--wp--preset--color--flsc-blue-800);
			}
		}
	}
}

/**
 * Block: genesis-custom-blocks/event-time-location
 */

.event-time-location {
	display: flex;
}

.event-time-location:before {
	content: '\f133';
	font-family: "Font Awesome 6 Pro";
	display: inline-block;
	font-weight: 300;
	margin-right: var(--wp--preset--spacing--10);
}

/**
 * Block: genesis-custom-blocks/favourite-toggle
 */

.favourite-toggle {
	display: inline-block;
	font-size: var(--wp--preset--font-size--h-3);
	cursor: pointer;
}

.favourite-toggle:before {
	content: '\f005';
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	display: inline-block;
}

.favourite-toggle.filled:before {
	font-weight: 900;
}

/* Loading state */
.favourite-toggle.loading {
	pointer-events: none;
}

.favourite-toggle.loading:before {
	content: '\f1ce';
	font-weight: 400;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/**
 * Block: genesis-custom-blocks/favourites-menu
 */

.wp-block-navigation.favourites-menu {
	.wp-block-navigation__container {
		width: 100%;
		max-height: 100%;
		overflow-y: auto;
	}
}

/**
 * Block: genesis-custom-blocks/favourites-table
 */

.favourites-table,
.federation-directory {
	&:not(.federation-directory) tbody tr:not(.no-results) td:last-child {
		text-align: right;
	}

	.favourite-mover {
		color: var(--wp--preset--color--dark-grey-400);
		text-decoration: none !important;
		display: inline-block;

		&:is(:hover,:focus) {
			color: var(--wp--preset--color--dark-grey-700);
		}

		&:active {
			color: var(--wp--preset--color--dark-grey-800);
		}

		&:before {
			content: '\f0b2';
			font-weight: 900;
			font-family: "Font Awesome 6 Pro";
		}
	}

	tr.no-results:not(:first-child,.show) {
		display: none;
	}

	tr.hidden {
		display: none;
		visibility: hidden;
	}

	tr.is-dragging {
		background-color: var(--wp--preset--color--white);
		border: solid 1px var(--wp--preset--color--light-grey-200);
		border-left: none;
	}

	td:last-child {
		min-width: initial !important;
	}

	.custom-url {
		&:before {
			content: '\2a';
			font-family: "Font Awesome 6 Pro";
			color: var(--wp--preset--color--flsc-blue-400);
			font-size: 8px;
			font-weight: 900;
			transform: translateY(-10%);
			display: inline-block;
		}
	}
}

.favourite-dialog {
	min-width: min(calc(100% - var(--wp--preset--spacing--30) * 2), 800px);

	span.remove-favourite-title {
		font-weight: 600;
	}

	form {
		display: flex;
		flex-direction: column;

		label {
			margin-bottom: 0.2em;
			font-size: var(--wp--preset--font-size--small);
			color: var(--wp--preset--color--dark-grey-700);
			font-weight: 600;
		}

		input {
			margin-bottom: var(--wp--preset--spacing--30);
		}

		&.submitting {
			button[type="submit"] {
				span {
					display: none;
				}

				&:before {
					content: '\f1ce';
					font-family: "Font Awesome 6 Pro";
					font-weight: 400;
					display: inline-block;
					animation: spin 1s linear infinite;
				}
			}
		}
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
/**
 * 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-taxonomy label {
    display: none;
}

.filter-taxonomy {
    max-width: fit-content;

    .search-wrapper {
        position: relative;

        input {
            padding-right: calc(var(--wp--custom--forms--fields--spacing--padding) * 2);
        }

        &:after {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: var(--wp--custom--forms--fields--spacing--padding);
            z-index: 2;
            font-family: "Font Awesome 6 Pro";
            font-style: normal;
            content: '\f002';
            pointer-events: none;
            cursor: pointer;
            font-size: var(--wp--preset--font-size--tiny);
            color: var(--wp--preset--color--dark-grey-400);
        }
    }
}

#filter-form-toggle {
    display: none;
}

@media (min-width: 992px) {
    :is(#filter-form, #calendar-filter-form, #favourites-filter-form, #federation-directory-filter-form) .wp-block-buttons {
        margin-left: auto;
    }
}

/* Button alignment on tablet */
@media (min-width: 750px) and (max-width: 991px) {
    #filter-form,
    #calendar-filter-form,
    #favourites-filter-form,
    #federation-directory-filter-form {
        flex-wrap: nowrap !important;

        .wp-block-buttons {
            margin-left: auto;
            flex-wrap: nowrap;
            flex-shrink: 0;
        }
   }
}

@media (min-width: 600px) and (max-width: 749px) {
    body.search #filter-form {
        flex-wrap: nowrap !important;

        .wp-block-buttons {
            margin-left: auto;
            flex-wrap: nowrap;
            flex-shrink: 0;
        }
   }
}

@media (max-width: 599px) {
    :is(.filter-archive, .event-calendar, .favourites-table, .federation-directory) .filters {
        display: grid;
        grid-template-rows: min-content 0fr;
        overflow: hidden;
        transition: grid-template-rows 0.3s ease-out;
        padding-bottom: 0 !important;

        &.open {
            grid-template-rows: min-content 1fr;

            #filter-form-toggle:after {
                transform: scaleY(-1);
            }

            :is(#filter-form, #calendar-filter-form, #favourites-filter-form, #federation-directory-filter-form) {
                padding-bottom: var(--wp--preset--spacing--30);
            }
        }

        :is(#filter-form, #calendar-filter-form, #favourites-filter-form, #federation-directory-filter-form) {
            min-height: 0;
            margin-top: 0;
            display: grid;
            grid-template-columns: repeat(2, 1fr);

            #keyword, .wp-block-buttons {
                grid-column: 1 / -1;
            }

            .filter-taxonomy {
                max-width: 100%;
            }
        }
    }

    .filter-archive {
        .pagination-summary {
            flex-direction: column-reverse;
            justify-content: center;
        }
    }

    #filter-form-toggle {
        display: flex;
        align-items: center;
        cursor: pointer;
        margin-bottom: var(--wp--preset--spacing--20);
        max-width: fit-content;
    }

    #filter-form-toggle:after {
        display: inline-block;
        font-family: "Font Awesome 6 Pro";
        font-style: normal;
        content: '\f107';
        margin-left: var(--wp--preset--spacing--10);
    }
}

/* Fixes for Event Cards in the Archive */
.filter-archive.event {
    .wp-block-post {
        .is-style-linked-card {
            gap: 0;

            &.is-content-justification-stretch {
                align-items: stretch !important;
            }

            > .wp-block-group.has-white-background-color {
                flex-grow: 1;
            }
        }
    }
}

/* Adjust grid in search results */
.filter-archive.any {
    .filters {
        margin-bottom: var(--wp--preset--spacing--30) !important;
    }

    .archive-items {
        gap: var(--wp--preset--spacing--30);

        .pagination-summary {
            margin-top: var(--wp--preset--spacing--30) !important;
        }
    }
}

/* Full width empty results message */
.wp-block-query-no-results {
    grid-column: 1/-1;
}

/**
 * Block: genesis-custom-blocks/gridlist-toggle
 */

.gridlist-toggle {
	.wp-block-button {
		.wp-block-button__link {
			border-radius: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 35px;
			height: 35px;
			padding: 0;
			background-color: transparent;
			color: var(--wp--preset--color--flsc-blue-600);
			border: solid 1px;

			&:before {
				content: '\e196';
				font-family: "Font Awesome 6 Pro";
				font-size: var(--wp--preset--font-size--small);
				font-weight: 900;
			}

			&:active {
				background-color: var(--wp--preset--color--flsc-blue-800);
				border-color: var(--wp--preset--color--flsc-blue-800);
			}
		}

		&.active .wp-block-button__link,
		.wp-block-button__link:is(:hover,:focus) {
			background-color: var(--wp--preset--color--flsc-blue-600);
			border-color: var(--wp--preset--color--flsc-blue-600);
			color: var(--wp--preset--color--white);
		}

		&.active .wp-block-button__link {
			pointer-events: none;
		}

		&.list .wp-block-button__link:before {
			content: '\f03a';
		}
	}
}

body.showing-grid-view .is-list-view {
	display: none;
	visibility: hidden;
}

body.showing-list-view .is-grid-view {
	display: none;
	visibility: hidden;
}

/**
 * Block: genesis-custom-blocks/linked-icon
 */

.wp-block-linked-icon a {
	color: currentColor;
}

.wp-block-linked-icon .linked-icon:before {
	font-family: "Font Awesome 6 Pro";
	display: inline-block;
	font-weight: 400;
	font-size: clamp(0.938rem, 0.817rem + 0.534vw, 1.25rem);
}

.linked-icon.has-dashboard-icon:before {
	content: "\f0db";
}

.linked-icon.has-news-icon:before {
	content: "\f1ea";
}

.linked-icon.has-initiatives-icon:before {
	content: "\f0eb";
}

.linked-icon.has-groups-icon:before {
	content: "\f500";
}

.linked-icon.has-calendar-icon:before {
	content: "\f073";
}

.linked-icon.has-resources-icon:before {
	content: "\f303";
}

.linked-icon.has-directory-icon:before {
	content: "\f02d";
}

.linked-icon.has-staff-icon:before {
	content: "\f7f3";
}

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

.team-member .name .designation::before {
	content: ', ';
	display: inline;
}

@media (max-width: 782px) {
	/* Centre the view bio button at single column */
	.team-member > .wp-block-group .wp-block-buttons {
		justify-content: center;
	}
}

dialog .biography *:last-child {
	margin-bottom: 0;
}
#gform_1 {
    .gform_fields {
        row-gap: var(--wp--preset--spacing--30);
    }
    .gfield_required {
        display: none;
    }
    label {
        font-weight: 600;
    }
    input,
    textarea,
    select {
        box-shadow: none;
    }
    select {
        background-image: none;
    }
    .row-2 {
        @media(min-width: 640px) {
            grid-row: 2;
        }
    }
    .gform-footer {
        border-top: 1px solid var(--wp--preset--color--light-grey-200);
        margin-top: var(--wp--preset--spacing--50);
        padding-top: var(--wp--preset--spacing--30);
    }
    .gform-footer input[type="submit"] {
        text-transform: uppercase;
        font-size: var(--wp--preset--font-size--tiny);
        font-weight: 600;
        padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
    }
}
/**
 * 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);
}


/** 
 * 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--flsc-blue-600);
}

/* 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;
}

/**
 * Blocks that are only relatively positioned on mobile
 */
@media (max-width: 781px) {
	.wp-block-group.is-style-mobile-relative {
		position: relative !important;

		> .wp-block-heading:first-child {
			padding-right: calc(var(--wp--preset--font-size--large) + var(--wp--preset--spacing--10));
		}
	}
}
@media (min-width: 782px) {
	.wp-block-group.is-style-mobile-relative {
		position: static !important;
	}
}

/**
 * Divided (usually for stacks)
 */

.wp-block-group.is-style-divided.is-layout-flex.is-vertical {
	> * + * {
		&:before {
			width: 100%;
			border: solid 1px var(--wp--preset--color--light-grey-200);
		}
	}
}

/**
 * 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);
}

/* Override the panoramic aspect ratio to be more responsive */
figure[style*="aspect-ratio:3.2/1"] {
	aspect-ratio: auto !important;
	height: clamp(15.625rem, 13.221rem + 10.684vw, 21.875rem);
	box-sizing: border-box;

	img {
		max-width: 100%;
	}
}

/**
 * Blocks: core/list
 */
:is(ul:not([class]), ul[class='wp-block-list'], ol, ul.is-style-default, ol.is-style-default) :is(li + li, ul, ol) {
	margin-block-start: 0.25em;
}

/**
 * Block: core/navigation-link
 */

.wp-block-navigation-item a {
	font-weight: 400;
}

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

.wp-block-navigation-submenu {
	box-sizing: border-box;
}

.wp-block-navigation-submenu.is-style-outlined {
	border: solid 1px var(--wp--preset--color--light-grey-200);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);

	.wp-block-navigation__submenu-container {
		top: auto;
		bottom: 100%;
		padding: var(--wp--preset--spacing--30);
		left: -1px;
		right: -1px;
		gap: var(--wp--preset--spacing--30);

		.wp-block-navigation-item {
			.wp-block-navigation-item__content {
				padding: 0;
			}

			a {
				transition: none;
			}

			a:hover {
				font-weight: 600;

			}
		}
	}

	.wp-block-navigation__submenu-icon {
		transform: scaleY(-1);
	}
}

.wp-block-navigation-submenu.is-style-outlined.wp-block-navigation-item:hover {
	background-color: var(--wp--preset--color--light-grey-100);

	.wp-block-navigation__submenu-icon {
		transform: scaleY(1);
	}
}
/**
 * Block: core/navigation
 */

.wp-block-navigation.is-content-justification-stretch {
	li.wp-block-navigation-item {
		width: 100%;

		.wp-block-navigation-item__content {
			width: 100%;
		}
	}
}

/* Underlines menu for sidebar footer */
.wp-block-navigation.is-style-underlined {
	a {
		text-decoration: underline;
	}

	a:hover {
		color: var(--wp--preset--color--flsc-black);
	}
}

/* Icons menu for sidebar */
.wp-block-navigation.is-style-icons {
	.wp-block-navigation-item__content {
		padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
		transition: color 0.3s, background-color 0.3s;
		margin-left: calc(var(--wp--preset--spacing--20) * -1);
		margin-right: calc(var(--wp--preset--spacing--20) * -1);
	}

	.wp-block-navigation-item__content:is(:hover, :focus) {
		background-color: var(--wp--preset--color--flsc-blue-100);
		color: var(--wp--preset--color--dark-blue);
		font-weight: 600;
	}

	.wp-block-navigation-item__content:active {
		background-color: var(--wp--preset--color--flsc-blue-200);
		color: var(--wp--preset--color--flsc-black);
		font-weight: 600;
	}

	.wp-block-navigation-item {
		position: relative;
	}

	.wp-block-navigation-item:is(.current-menu-item, .current-menu-ancestor):before {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		width: 6px;
		background-color: var(--wp--preset--color--flsc-blue-800);
		left: calc(var(--wp--preset--spacing--40) * -1);
	}

	.wp-block-navigation-item.has-icon {
		.wp-block-navigation-item__content:before {
			font-family: "Font Awesome 6 Pro";
			display: inline-block;
			font-weight: 900;
			font-size: var(--wp--preset--font-size--small);
			margin-right: var(--wp--preset--spacing--30);
			min-width: 18px;
		}
	}

	.wp-block-navigation-item.has-dashboard-icon {
		.wp-block-navigation-item__content:before {
			content: "\f0db";
		}
	}

	.wp-block-navigation-item.has-news-icon {
		.wp-block-navigation-item__content:before {
			content: "\f1ea";
		}
	}

	.wp-block-navigation-item.has-initiatives-icon {
		.wp-block-navigation-item__content:before {
			content: "\f0eb";
		}
	}

	.wp-block-navigation-item.has-groups-icon {
		.wp-block-navigation-item__content:before {
			content: "\f500";
		}
	}

	.wp-block-navigation-item.has-calendar-icon {
		.wp-block-navigation-item__content:before {
			content: "\f073";
		}
	}

	.wp-block-navigation-item.has-resources-icon {
		.wp-block-navigation-item__content:before {
			content: "\f303";
		}
	}

	.wp-block-navigation-item.has-directory-icon {
		.wp-block-navigation-item__content:before {
			content: "\f02d";
		}
	}

	.wp-block-navigation-item.has-staff-icon {
		.wp-block-navigation-item__content:before {
			content: "\f7f3";
		}
	}

	.wp-block-navigation-item.has-favourites-icon {
		.wp-block-navigation-item__content:before {
			content: "\f005";
		}
	}
}

/* Horizontal menu + more drop-down */
nav.wp-block-navigation.is-style-horizontal-more {
	--menu-bottom-border-width: 1px;

	gap: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--flsc-blue-800);
	padding-bottom: var(--wp--preset--spacing--20);
	border-bottom: solid var(--menu-bottom-border-width) var(--wp--preset--color--light-grey-200);

	&:not(.items-fit) {
		overflow: hidden;

		.wp-block-navigation-submenu {
			.wp-block-navigation__submenu-container {
				.wp-block-navigation-item {
					overflow: hidden;

					.wp-block-navigation-item__content {
						.wp-block-navigation-item__label {
							white-space: nowrap;
						}
					}
				}
			}
		}
	}

	> .wp-block-navigation__container {
		flex-wrap: nowrap;
		max-width: fit-content;

		&.block-editor-block-list__layout {
			flex-wrap: wrap;
		}

		> .wp-block-navigation-item {
			.wp-block-navigation-item__label {
				white-space: nowrap;
			}
		}

		> .wp-block-navigation-item:not(.wp-block-navigation-submenu):is(:hover, :focus, .current-menu-item) {
			position: relative;

			.wp-block-navigation-item__content:after {
				--current-item-border-width: 6px;

				content: '';
				position: absolute;
				left: 0;
				right: 0;
				top: calc(100% + var(--wp--preset--spacing--20) + var(--menu-bottom-border-width) - var(--current-item-border-width));
				border-bottom: solid var(--current-item-border-width) var(--wp--preset--color--flsc-blue-800);
			}
		}

		.wp-block-navigation-item:not(.wp-block-navigation-submenu).current-menu-item {
			.wp-block-navigation-item__content {
				color: var(--wp--preset--color--dark-blue);
				font-weight: 600;
			}
		}

		.wp-block-navigation-submenu {
			&.wp-block-navigation-item {
				cursor: pointer;
				position: relative;

				> .wp-block-navigation-item__content {
					display: flex;
					align-items: center;
				}

				> .wp-block-navigation-item__content:after {
					content: '\f107';
					font-family: "Font Awesome 6 Pro";
					display: inline-block;
					margin-left: 0.5em;
					font-size: var(--wp--preset--font-size--tiny);
				}
			}

			.wp-block-navigation__submenu-container {
				display: block;
				opacity: 0;
				pointer-events: none;
				position: absolute;
				top: 100%;
				left: auto;
				right: 0;
				padding: var(--wp--preset--spacing--20);
				color: inherit;
				border: solid 1px var(--wp--preset--color--light-grey-200);
				box-shadow: 2px 2px 10px 0px #00000026;
				min-width: 200px;
				max-width: 300px;
				z-index: 2;

				.wp-block-navigation-item {
					.wp-block-navigation-item__content {
						padding: 0;

						.wp-block-navigation-item__label {
							white-space: break-spaces;
						}
					}
				}

				.wp-block-navigation-item + .wp-block-navigation-item {
					border-top: solid 1px var(--wp--preset--color--light-grey-200);
					margin-top: var(--wp--preset--spacing--10);
					padding-top: var(--wp--preset--spacing--10);
				}
			}
		}
	}

	&.submenu-open {
		> .wp-block-navigation__container {
			.wp-block-navigation-submenu {
				&.wp-block-navigation-item {
					> .wp-block-navigation-item__content:after {
						transform: scaleY(-1);
					}
				}
				.wp-block-navigation__submenu-container {
					opacity: 1;
					pointer-events: auto;
				}
			}
		}
	}
}
/* Stop the weird overflow from the menu when resizing */
body.resizing nav.wp-block-navigation.is-style-horizontal-more {
	overflow: hidden;
}

body:is(.single-group, .single-initiative) nav.wp-block-navigation.is-style-horizontal-more {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Vertical Anchor Sticky Menu */
@media (max-width: 781px) {
	nav.wp-block-navigation.is-style-vertical-anchor {
		position: absolute;
		top: 0 !important;
		left: calc(100% - var(--wp--preset--font-size--large));

		.mobile-toggle {
			display: block;
			cursor: pointer;

			&:before {
				content: '\f03a';
				font-family: "Font Awesome 6 Pro";
				font-weight: 900;
				font-size: var(--wp--preset--font-size--large);
			}
		}

		.wp-block-navigation__container {
			border: solid 1px var(--wp--preset--color--flsc-blue-200);
			background-color: var(--wp--preset--color--flsc-blue-100);
			padding: var(--wp--preset--spacing--20);
			width: 250px;
			row-gap: var(--wp--preset--spacing--20);
			position: absolute;
			right: 0;
			top: calc(var(--wp--preset--font-size--large) * 1.5);
			opacity: 0;
			pointer-events: none;
			transition: opacity 0.2s ease;
		}

		.mobile-toggle.open + .wp-block-navigation__container {
			opacity: 1;
			pointer-events: auto;
		}
	}
}

@media (min-width: 782px) {
	nav.wp-block-navigation.is-style-vertical-anchor {
		position: relative;
		transition: var(--wp--custom--animation--default-transition);
		border-left: solid 1px var(--wp--preset--color--light-grey-200);

		.mobile-toggle {
			display: none;
			visibility: hidden;
		}

		.wp-block-navigation-item__content {
			padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
			position: relative;

			&:is(:hover,:focus,.active) {
				font-weight: 600;
					
				&:before {
					content: '';
					position: absolute;
					top: 0;
					bottom: 0;
					left: -1px;
					width: 6px;
					background-color: currentColor;
				}
			}
		}
	}
}

.blue-theme {
    background-color: var(--wp--preset--color--flsc-blue-100);
    border: 1px solid var(--wp--preset--color--flsc-blue-200);
    p {
        color: var(--wp--preset--color--flsc-blue-800);
    }
}
.gold-theme {
    background-color: var(--wp--preset--color--light-grey-100);
    border: 1px solid var(--wp--preset--color--gold-300);
    p {
        color: var(--wp--preset--color--gold-700);
        
    }
}
.notification p {
    font-weight: 600;
    font-size: var(--wp--preset--font-size--tiny);
    margin: 0;
}
/**
 * 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;
}

/* Inline images */
.wp-block-post-content p > img {
    float: left;
    margin-right: var(--wp--preset--spacing--20);
}

.wp-block-post-content :is(h1, h2, h3, h4, h5, h6, ol, li, figure, table, div) {
    clear: both;
}

/**
 * Post Excerpt
 */
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt {
    margin-block-start: 0;
}

/* Set the readmore link to be one size larger than the paragraph text */
.wp-block-post-excerpt .wp-block-post-excerpt__more-text {
    font-size: var(--wp--preset--font-size--large);
}
.wp-block-post-excerpt.has-small-font-size .wp-block-post-excerpt__more-text {
	font-size: var(--wp--preset--font-size--medium);
}
/**
 * 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
 */

.wp-block-button.is-style-previous-page a,
.wp-block-button.is-style-next-page a,
.wp-block-post-navigation-link a {
    display: flex;
    align-items: baseline;
    gap: var(--wp--preset--spacing--10);
    font-weight: 400;
    cursor: pointer;
}

.wp-block-button.is-style-previous-page a:before,
.wp-block-button.is-style-next-page a:after,
.post-navigation-link-previous a:before,
.post-navigation-link-next a:after {
    content: '\f104';
    font-family: "Font Awesome 6 Pro";
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--flsc-blue-600);
}

.wp-block-button.is-style-next-page a:after,
.post-navigation-link-next a:after {
    content: '\f105';
}

.wp-block-button.is-style-next-page:first-child,
.post-navigation-link-next:first-child {
    margin-left: auto;
}

.wp-block-button:is(.is-style-previous-page, .is-style-next-page) .wp-block-button__link {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    background-color: transparent;
    color: var(--wp--preset--color--dark-grey-700);
    text-transform: none;
    font-size: var(--wp--preset--font-size--medium);
    letter-spacing: 0;

    &:is(:hover,:focus) {
        color: var(--wp--preset--color--flsc-blue-600);
    }
}
/**
 * Block: core/post-title
 */
.wp-block-post-title a {
    text-decoration: inherit;
    color: inherit;
}  
/**
 * Block: core/query
 */

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

/* 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--50) 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;
	}
}

/**
 * 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;
}

/**
 * Keep query block items a consistent height when in a grid
 */
.wp-block-post-template.is-layout-grid {
	li > *:first-child:last-child {
		height: 100%;
	}
}

/**
 * Responsive Slider Styles
 */
.wp-block-query.is-style-responsive-slider {
	--slider-button-size: 35px;
	--swiper-navigation-sides-offset: 0;

	overflow: visible;

	.wp-block-post-template.is-layout-grid.columns-3 {
		grid-template-columns: 1fr;
		column-gap: var(--wp--preset--spacing--50);
		row-gap: var(--wp--preset--spacing--40);
	}

	.swiper-button-next,
	.swiper-button-prev {
		--swiper-navigation-size: var(--wp--preset--font-size--small);
		--swiper-navigation-top-offset: auto;

		bottom: 0;
		width: var(--slider-button-size);
		height: var(--slider-button-size);
		display: none;
		visibility: hidden;
		align-items: center;
		justify-content: center;
		border-radius: 100%;
		border: solid 1px;
		color: var(--wp--preset--color--dark-grey-400);

		&.swiper-button-disabled {
			border-color: var(--wp--preset--color--light-grey-200);
			background-color: var(--wp--preset--color--light-grey-200);
			color: var(--wp--preset--color--dark-grey-700);
			opacity: 1;
		}

		&:after {
			font-family: "Font Awesome 6 Pro";
			content: '\f105';
		}
	}

	.swiper-button-prev:after {
		content: '\f104';
	}

	&.swiper-initialized {
		overflow: hidden;
		padding-bottom: calc(var(--slider-button-size) + var(--wp--preset--spacing--10));

		.wp-block-post-template {
			display: flex;
			gap: initial !important;
			align-items: stretch;

			.wp-block-post {
				height: initial;
			}
		}

		.swiper-button-next,
		.swiper-button-prev {
			display: inline-flex;
			visibility: visible;
		}
	}
}

@media (min-width: 782px) {
	.wp-block-query.is-style-responsive-slider {
		.wp-block-post-template.is-layout-grid.columns-3 {
			grid-template-columns: repeat(3, 1fr);
		}
	}
}

/**
 * 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 {
    content: '\f10d';
    display: inline;
    font-family: "Font Awesome 6 Pro";
	font-style: normal;
    font-weight: 900;
    font-size: var(--wp--preset--font-size--h-2);
    line-height: 0.75;
}
.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: 3em;
    padding-left: calc(var(--cite-line-width) + 1em);
}
.wp-block-quote.is-style-quote-mark cite {
    grid-column: 2;
}
.wp-block-quote.is-style-quote-mark cite:before {
    content: '';
    display: inline-block;
    width: var(--cite-line-width);
    height: 0.1rem;
    margin-left: calc(-1 * (var(--cite-line-width) + 1em));
    margin-right: 1em;
    margin-bottom: calc(1em / 4);
    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 {
	overflow-x: auto;

	&:where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		max-width: var(--wp--style--global--content-size);
	}
	
	table {
		background-color: var(--wp--preset--color--white);
		border-collapse: collapse;
		width: 100%;

		thead {
			background-color: var(--wp--preset--color--flsc-blue-200);
			border: solid 1px var(--wp--preset--color--flsc-blue-200);

			th {
				font-size: var(--wp--preset--font-size--tiny);
				text-transform: uppercase;
				letter-spacing: 0.1em;
				border: none;
				text-align: left;
				padding: 1em var(--wp--preset--spacing--20);
				color: var(--wp--preset--color--dark-grey-800);
				white-space: nowrap;
				font-weight: 600;

				&.sortable:after {
					content: '\f0dc';
					font-family: "Font Awesome 6 Pro";
					font-weight: 300;
					line-height: 100%;
					cursor: pointer;
					margin-left: var(--wp--preset--spacing--10);
					display: inline-block;
				}

				&.sortable[aria-sort="ascending"]:after {
					content: '\f0de';
					font-weight: 900;
				}

				&.sortable[aria-sort="descending"]:after {
					content: '\f0dd';
					font-weight: 900;
				}
			}
		}

		tbody {
			font-size: var(--wp--preset--font-size--small);
			border: solid 1px var(--wp--preset--color--light-grey-200);
			border-top: none;

			&:first-child {
				border-top: solid 1px var(--wp--preset--color--light-grey-200);
			}

			tr {
				& + tr {
					border-top: solid 1px var(--wp--preset--color--light-grey-200);
				}

				td {
					padding: var(--wp--preset--spacing--20);
					border: none;
					vertical-align: top;
					min-width: 15ch;

					a {
						font-weight: 400;
						text-decoration: underline;
						cursor: pointer;

						&:is(:hover, :focus) {
							color: var(--wp--preset--color--flsc-blue-800);
						}

						&:active {
							color: var(--wp--preset--color--dark-blue);
						}
					}
				}
			}
		}
	}
}

/**
 * Make sure styles are always available
 */
.wp-block-table .has-fixed-layout {
    table-layout: fixed;
    width: 100%;
}
/**
 * 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;
}

.wpml-language-switcher-navigation-block {
    text-transform: uppercase;

    a {
        font-weight: 400;
    }
}

/* Hide development banner, it's messing with the overflow/scrolling */
.otgs-development-site-front-end {
    display: none !important;
}

/**
 * Block: yoast-seo/breadcrumbs 
 */

.yoast-breadcrumbs a {
    font-weight: inherit;
}
/**
 * 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;
    }
}
/**
 * Shared card styles
 */

.is-style-linked-card {
	position: relative;

	.wp-block-post-title a {
		font-weight: 700;

		&:is(:hover,:focus) {
			&:before {
				box-shadow: 2px 2px 10px 0px #00000026;
				cursor: pointer;
			}
		}
	}

	:is(.wp-block-post-title, .wp-block-heading) a:before {
		transition: var(--wp--custom--animation--default-transition);
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2;
	}
}

/**
 * Blocks: core/comments, core/comments-title, core/comment-template core/post-comments-form
 */

.wp-block-comments {
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-comment-content {
	font-size: var(--wp--preset--font-size--tiny);
}

.wp-block-comment-template {
	.comment {
		.wp-block-comment-author-name {
			font-weight: 600;
		}

		> .wp-block-group.is-layout-flex {
			flex-wrap: nowrap;
			gap: 0;

			> * + *:before {
				content: '|';
				padding: 0 0.3em;
				color: var(--wp--preset--color--dark-grey-400);
			}
		}

		> ol {
			margin-top: var(--wp--preset--spacing--20);
			margin-left: var(--wp--preset--spacing--10);
			padding-left: var(--wp--preset--spacing--30);
			border-left: solid 6px var(--wp--preset--color--flsc-blue-200);
		}

		&.editing {
			> .wp-block-comment-content,
			> .wp-block-comment-reply-link {
				display: none;
			}	
		}
	}

	.comment + .comment {
		margin-top: var(--wp--preset--spacing--30);
	}
}

#cancel-comment-reply-link,
.wp-block-comment-template .comment a {
	color: var(--wp--preset--color--dark-grey-400);
	font-weight: 400;
	cursor: pointer;

	&:hover {
		color: var(--wp--preset--color--dark-grey-700);
	}

	&:active {
		color: var(--wp--preset--color--dark-blue);
	}
}

.comment-reply-title {
	font-size: var(--wp--preset--font-size--large);
}

.wp-block-comments-title {
	text-transform: capitalize;
}

.wp-block-comments-title,
.comment-reply-title {
	font-weight: 700;
	margin-top: 0;
}

.wp-block-post-comments-form:not(:first-child) {
	border-top: solid 1px var(--wp--preset--color--light-grey-200);
	padding-top: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
}

form.comment-form {
	.logged-in-as {
		.name {
			font-weight: 600;
		}
	}

	label {
		text-transform: uppercase;
		letter-spacing: 0.1em;
		font-size: var(--wp--preset--font-size--tiny);
		font-weight: 600;
		display: block;
		margin-bottom: var(--wp--preset--spacing--10);
	}

	.wp-block-button {
		margin-bottom: 0;
		width: fit-content;
		margin-top: var(--wp--preset--spacing--20);

		&:hover .wp-block-button__link {
			background-color: var(--wp--preset--color--dark-grey-400) !important;
		}
		&:active .wp-block-button__link {
			background-color: var(--wp--preset--color--dark-grey-800) !important;
		}
	}

	.wp-block-button__link {
		background-color: var(--wp--preset--color--flsc-black);
	}
}

form.comment-edit-form,
form.comment-form {
	textarea {
		background-color: var(--wp--preset--color--light-grey-100);
		min-height: var(--wp--preset--spacing--70);
	}
}

form.comment-edit-form {
	margin-top: var(--wp--preset--spacing--20);

	&.submitting {
		button {
			span {
				display: none;
			}

			&:before {
				content: '\f1ce';
				font-family: "Font Awesome 6 Pro";
				font-weight: 400;
				display: inline-block;
				animation: spin 1s linear infinite;
			}
		}
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.wp-block-post:last-of-type .dashboard-news {
    margin-bottom: 0;
    border-bottom: 0;
}
.dashboard-news h3 a:is(:hover, :focus) {
    text-decoration: underline;
}
:where(.editor-styles-wrapper) .gfield--width-third {
    width: 100% !important;
}
/* Eyebrow */
.is-style-eyebrow {
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	letter-spacing: 0.1em;
}

/* Labels */
label {
	font-weight: 700;
}

/* General Form Field Settings */
input, textarea, select {
	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--tiny);
	line-height: inherit;
	color: inherit;
	box-sizing: border-box;
}

/* Text Input Fields */
input:not([type="checkbox"],[type="radio"], [type="submit"]), textarea {
	padding: var(--wp--custom--forms--fields--spacing--padding);
	width: 100%;
}
textarea {
	height: 6em;
	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:not(.wp-block-search__input), textarea:not(#comment)):invalid:not(:placeholder-shown), .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 {
	color: var(--wp--preset--color--dark-blue);
	padding: var(--wp--custom--forms--fields--spacing--padding);
	padding-right: calc(var(--wp--custom--forms--fields--spacing--padding) * 2);
	width: 100%;
	appearance: none;
}

/* Select - Custom Drop Down Arrow - Requires Wrapper */
:is(.ginput_container_select, .ginput_address_country, .name_prefix_select, .gfield_time_ampm, .filter-taxonomy .select-wrapper) {
	position: relative;
}
:is(.ginput_container_select, .ginput_address_country, .name_prefix_select, .gfield_time_ampm, .filter-taxonomy .select-wrapper)::after {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: var(--wp--custom--forms--fields--spacing--padding);
	z-index: 2;
	font-family: "Font Awesome 6 Pro";
	font-style: normal;
	content: '\f107';
	pointer-events: none;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--tiny);
	color: var(--wp--preset--color--dark-blue);
}
: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--flsc-blue-600);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border-width: 0;
	font-size: var(--wp--preset--font-size--tiny);
}
form input[type="file"]::file-selector-button {
	margin-inline-end: 1em;
}
form :is(input[type="submit"], button):focus  {
	opacity: 0.8;
}

/* 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 */
.wp-block-search {
	.wp-block-search__inside-wrapper  {
		padding: 0;
		background-color: var(--wp--preset--color--light-grey-100);
		border-color: var(--wp--preset--color--dark-grey-400);

		.wp-block-search__input {
			background-color: var(--wp--preset--color--light-grey-100);
		}

		.wp-block-search__input::placeholder {
			opacity: 1;
		}

		.wp-block-search__button {
			background-color: transparent;
			color: var(--wp--preset--color--dark-grey-800);
			margin-left: 0;
			padding: var(--wp--custom--forms--fields--spacing--padding);

			svg {
				min-width: 1.65em;
				min-height: 1.65em;
				transform: scaleX(-1);
			}
		}

		.wp-block-search__button:hover {
			color: var(--wp--preset--color--flsc-black);
		}
	}
}

/**
 * Shared styles for image and featured image blocks
 */
figure:is(.wp-block-post-featured-image, .wp-block-image) {
	max-width: 100%;
}

.is-layout-constrained > figure:is(.wp-block-post-featured-image, .wp-block-image):where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: min(var(--wp--style--global--content-size), 100%);
}

/**
 * Shared link styles
 */

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

:is(p, td, li) > a:not([class]):is(:hover,:focus) {
	text-decoration: underline;
}
/**
 * General Modal Styling
 */

/* overlay for when dialogs are open */
dialog::backdrop {
    background-color: var(--wp--preset--color--light-grey-200);
    opacity: 0.5;
}

/* leave the container styling to the content within */
dialog {
    background: white;
    border: none;
    padding: 0;
    box-shadow: 2px 2px 10px 0px #00000026;
}

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;
    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);
    }
}

/* Close Button Form - closes the modal without the need for scripting */
dialog form.close {
    position: fixed;
    top: var(--wp--preset--spacing--30);
    right: var(--wp--preset--spacing--30);
}
dialog form.close button {
    background: transparent;
    padding: 0;
}
dialog form.close button svg {
    fill: var(--wp--preset--color--dark-grey-700);
    width: var(--wp--preset--font-size--large);
}

/**
 * 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,
.pagination-links {
    --anchor-width: 35px;
}

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

.pagination-links a.page-number,
.wp-block-query-pagination-numbers :is(a, span) {
    border: solid 1px var(--wp--preset--color--flsc-blue-600);
    width: var(--anchor-width);
    height: var(--anchor-width);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    color: var(--wp--preset--color--flsc-blue-600);
    cursor: pointer;
    font-weight: 400;
}

.pagination-links a:is(.previous, .next, .first, .last),
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    cursor: pointer;
}

.pagination-links a.page-number: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 {
    background-color: var(--wp--preset--color--flsc-blue-600);
    color: var(--wp--preset--color--white);
}

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

.pagination-links a.first:after,
.pagination-links a.last:after,
.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;
    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.first:after {
    content: '\f100';
}

.pagination-links a.last:after {
    content: '\f101';
}

.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;
}

.past-event .wp-block-group {
    color: var(--wp--preset--color--dark-grey-400) !important;
    h3 {
        color: var(--wp--preset--color--black);
    }
}
.past-event img {
  /*filter: grayscale(100%);*/
}
.past-event .wp-block-group.has-flsc-blue-200-background-color {
    background-color: var(--wp--preset--color--light-grey-200) !important;
    color: var(--wp--preset--color--black) !important;
}
/**
 * Shared Styles for buttons and links in more complex blocks
 * Blocks: core/button, core/read-more, core-post-excerpt
 */
body {
	--read-more-line-width: 30px;
	--read-more-line-thickness: 1.3px;
}

:is(.wp-block-read-more, .wp-block-post-excerpt__more-link),
.wp-block-button.is-style-read-more .wp-block-button__link {
	font-size: var(--wp--preset--font-size--tiny);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: var(--wp--custom--animation--default-transition);
	padding-left: calc(1em + var(--read-more-line-width));
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-color: transparent;
	background-color: transparent;
	color: var(--wp--preset--color--gold-600);
	display: flex;
	align-items: center;
	position: relative;
}
.wp-block-read-more:before,
.wp-block-post-excerpt__more-link:before,
.wp-block-button.is-style-read-more .wp-block-button__link:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	display: inline-block;
	border-top: solid var(--read-more-line-thickness) currentColor;
	width: var(--read-more-line-width);
	transition: all 0.3s ease-out;
}
.wp-block-read-more:after,
.wp-block-post-excerpt__more-link:after,
.wp-block-button.is-style-read-more .wp-block-button__link:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	display: inline-block;
	border-top: solid var(--read-more-line-thickness) currentColor;
	width: 0;
	transition: all 0.2s ease-out;
}
.is-style-linked-card:is(:hover,:focus) :is(.wp-block-read-more, .wp-block-post-excerpt__more-link):before,
.is-style-linked-card:is(:hover,:focus) .wp-block-button.is-style-read-more .wp-block-button__link:before,
:is(.wp-block-read-more, .wp-block-post-excerpt__more-link):is(:hover,:focus):before,
.wp-block-button.is-style-read-more:is(:hover,:focus) .wp-block-button__link:before {
	opacity: 0;
}
.is-style-linked-card:is(:hover,:focus) :is(.wp-block-read-more, .wp-block-post-excerpt__more-link):after,
.is-style-linked-card:is(:hover,:focus) .wp-block-button.is-style-read-more .wp-block-button__link:after,
:is(.wp-block-read-more, .wp-block-post-excerpt__more-link):is(:hover,:focus):after,
.wp-block-button.is-style-read-more:is(:hover,:focus) .wp-block-button__link:after {
	width: var(--read-more-line-width);
}

:is(.wp-block-read-more, .wp-block-post-excerpt__more-link):active,
.wp-block-button.is-style-read-more:active .wp-block-button__link {
	color: var(--wp--preset--color--flsc-black);
}
/**
 * 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;
    top: 0;
    left: 0;
}
/**
 * Any applicable css related to sitewide scrolling
 */

html { 
    scroll-behavior: smooth; 
}
.wp-block-post-template .event.group-category-staff .wp-block-group.has-gold-700-color {
    color: var(--wp--preset--color--flsc-blue-800) !important;
}
.wp-block-post-template .event.group-category-staff .wp-block-group.has-gold-200-background-color {
    background-color: var(--wp--preset--color--flsc-blue-200) !important;
}
.welcome-dashboard::after {
    content: "";
    background-image: url('../images/flsc_icon2020_wht.svg');
    background-repeat: no-repeat;
    position: absolute;
    background-position: 100px 150px;
    opacity: 0.04;
    width: 300px;
    height: 300px;
    bottom: 0;
    right: 0;
}
.welcome-dashboard {
    overflow: hidden;
    position: relative;
    .wp-block-group, 
    .wp-block-buttons {
        z-index: 2;
        position: relative;
    }
}
.dashboard-wrapper {
    @media(max-width: 1023px) {
        flex-direction: column;
    }
}
/**
 * Template Part: header
 */

body {
	--logo-group-height: clamp(5rem, 4.279rem + 3.205vw, 6.875rem);
}

header.wp-block-template-part {
	aside {
		position: relative;

		.logo-group,
		.responsive-group {
			z-index: 5;
		}

		.logo-group {
			min-height: var(--logo-group-height);
		}

		.favourites-group {
			transition: transform 0.3s;
			z-index: 4;
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			transform: translateX(0);
		}

		.account-menu {
			margin-top: auto;
		}
	}
}

/* Favourites slide-out menu */
body.favourites-menu-open {
	header.wp-block-template-part .favourites-group {
		transform: translateX(100%);
	}
}

@media (max-width: 991px) {
	/* Break the outer columns early for the mobile version of the header/sidebar */
	.wp-site-blocks > .wp-block-columns {
		flex-wrap: wrap !important;

		> .wp-block-column {
			flex-basis: 100% !important;
			flex-grow: 1 !important;
		}

		> .wp-block-column:last-child {
			min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--logo-group-height));
		}
	}

	/* Hide responsive container on mobile until summoned */
	header.wp-block-template-part > aside {
		--menu-height: calc(100vh - var(--logo-group-height) - var(--wp-admin--admin-bar--height, 0px));

		.responsive-group {
			transition: transform 0.3s;
			position: absolute;
			top: 100%;
			left: 0;
			right: 0;
			height: var(--menu-height);
			max-height: var(--menu-height);
			overflow-y: auto;
			transform: translateX(-100%);
			opacity: 0;
			visibility: hidden;
		}

		.favourites-group {
			top: 100%;
			bottom: auto;
			height: var(--menu-height);
			max-height: var(--menu-height);
			transform: translateX(0);
			opacity: 0;
			visibility: hidden;

			.closes-favourites {
				display: flex;
				align-items: center;
				gap: var(--wp--preset--spacing--20);
			}

			.closes-favourites:before {
				content: '\f104';
				font-family: "Font Awesome 6 Pro";
				display: inline-block;
				font-size: var(--wp--preset--font-size--small);
			}
		}
	}

	/* Don't scroll the body while the mobile menu is open */
	body.mobile-menu-open {
		overflow: hidden;

		header.wp-block-template-part {
			.responsive-group {
				transform: translateX(0);
				opacity: 1;
				visibility: visible;
			}

			.favourites-group {
				transition-property: opacity;
				transition-delay: 0.3s;
				opacity: 1;
				visibility: visible;
			}
		}
	}

	body.mobile-menu-open.favourites-menu-open {
		header.wp-block-template-part {
			.responsive-group {
				transform: translateX(-100%);
			}

			.favourites-group {
				transform: translateX(0);
			}
		}
	}
}

/* Mobile menu toggles */
.wp-block-outermost-icon-block.mobile-close {
	display: none;
}

body.mobile-menu-open {
	.wp-block-outermost-icon-block.mobile-open {
		display: none;
	}

	.wp-block-outermost-icon-block.mobile-close {
		display: block;
	}
}

@media (min-width: 992px) {
	body {
		overflow-y: auto;
		overflow-x: hidden;
	}

	/* On desktop, make sure sidebar goes full height and other content scrolls */
	.wp-site-blocks > .wp-block-columns {
		--sidebar-width: 350px;

		position: relative;

		> .wp-block-column:first-child {
			top: var(--wp-admin--admin-bar--height, 0px);
			position: sticky;
			height: fit-content;
			z-index: 5;
			width: var(--sidebar-width) !important;
		}

		> .wp-block-column:last-child {
			z-index: 4;
			overflow-x: auto;
		}
	}

	header.wp-block-template-part {
		height: 100%;

		aside {
			.responsive-group {
				min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--logo-group-height));
				height: 100%;
			}

			.favourites-group {
				position: fixed;
				top: var(--wp-admin--admin-bar--height, 0px);
				right: auto;
				width: var(--sidebar-width);
				min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
			}
		}
	}

	/* When resizing up from tablet/mobile to desktop, prevent unwanted animations */
	body.resizing {
		overflow-x: hidden;

		header.wp-block-template-part :is(.responsive-group, .favourites-group) {
			transition: none !important;
		}
	}
}

/* Try to fit the menu on wider, shorter screens, without needing to scroll the page */
@media (min-width: 992px) and (max-height: 1080px) {
	/* Reduce logo height */
	body {
		--logo-group-height: clamp(5.344rem, 1.362rem + 8.167vh, 6.875rem);
	}

	header.wp-block-template-part {
		aside {
			/* Shorten the search box and account menu */
			.wp-block-navigation-submenu.is-style-outlined,
			.wp-block-search__input,
			.wp-block-search__button {
				padding-top: clamp(0.5rem, -0.8rem + 2.667vh, 1rem) !important;
				padding-bottom: clamp(0.5rem, -0.8rem + 2.667vh, 1rem) !important;
			}

			/* Reduce top and bottom spacing */
			.responsive-group {
				padding-top: clamp(1rem, -1.6rem + 5.333vh, 2rem) !important;
				padding-bottom: clamp(1rem, -1.6rem + 5.333vh, 2rem) !important;
			}
		}
	}
}

/**
 * Main Entry / Post Content Layout Adjustments
 */

/* More accurate body colour for editor experience */
body {
	background-color: var(--wp--preset--color--light-grey-100);
}

/** 
 * Apply hozizontal margins when below our max-width / alignwide limits 
 * eg. 1296px + 3.00rem (48px) on each side + 350px sidebar = 1742px
 */
@media (max-width: 1742px) {
	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. 1122px + 3.00rem (48px) on each side + 350px sidebar = 1568px
 */
@media (max-width: 1568px) {
	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),
	main > :not(.entry-content):where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		margin-left: var(--wp--preset--spacing--50) !important;
		margin-right: var(--wp--preset--spacing--50) !important;
	}
}

/**
 * Consistent bottom of content spacing
 */
main > *:last-child:not(.alignfull) {
	margin-bottom: var(--wp--preset--spacing--60) !important;
}

/**
 * Pattern: Hero Banner - Blue Favourite
 */

.hero-blue-favourite {
	min-height: var(--logo-group-height);
	display: flex;
	align-items: center;

	> * {
		width: 100%;
	}

	.wp-block-heading {
		font-weight: 500;
		font-size: var(--wp--preset--font-size--h-3-large) !important;
	}
}

/**
 * Template: 404.html
 */

body.error404 {
	.wp-block-cover {
		height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	}
}

/**
 * Template: index.html
 */

.login h1 a {
    /* background-image: url('../images/logo_login.png?v=2.0');
    width: 291px;
    height: 50px !important; */
    /* 100 anniversary logo */
    background-image: url('../images/logo_login_100.png?v=3.0');
    width: 360px;
    background-size: 100%;
    height: 90px !important;
    
}

/* Mobile */
@media (max-width: 768px) {
    .login h1 a {
        width: auto;
        background-size: contain;
    }
}
  
.login {
    background-color: #F5F5F5;
}
.login form .forgetmenot {
    padding-bottom: clamp(1.50rem, calc(0.92rem + 2.56vw), 3.00rem);
    width: 100%;
    display: flex;
    input {
      border-radius: 0;
      margin-top: 2px;
      border-color: #CCCFCE;
      margin-right: .5rem;
      width: 1rem;
      height: 1rem;
    }
    label {
      display: block;
      color: #50555B;
    }
}

.login .back-to-site {
  background: black;
  border: 0;
  color: white;
  border-radius: 0;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 24px;
  height: 49px;
  line-height: 2;
  margin-bottom: 0;
}
  
.login .titles {
    text-align: center;
}

.login .flscportal-login-title {
    background: white;
    padding-top: clamp(3.00rem, calc(2.62rem + 1.71vw), 4.00rem);
    text-align: center;
    font-size: 25px;
    font-weight: 500;
}
.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    height: auto;
}

.login #login {
    width: 100%;
    max-width: clamp(20rem, 13.334rem + 28.441vi, 39.5rem);
    padding: 24px 24px 0;
}

.login #nav a {
    font-weight: 600;
    color: #0079c2;
}
  
.login form {
    padding: clamp(3.00rem, calc(2.62rem + 1.71vw), 4.00rem) clamp(1.5rem, 0.069rem + 6.108vi, 5.688rem) clamp(3.00rem, calc(2.62rem + 1.71vw), 4.00rem);
    margin-bottom: clamp(1.25rem, calc(1.15rem + 0.43vw), 1.50rem);
    border: 0;
    margin-top: 0;
}

.login .notice {
  margin-bottom: 0;
}
  
.login .button.wp-hide-pw {
    top: 12px;
    .dashicons::before {
      color: #CCCFCE;
      font-size: 1rem;
    }
}

.login .wpml-login-ls {
    display: flex;
    justify-content: center;
}

.login .wpml-login-ls form {
    display: flex;
    select {
        margin-right: .5rem;
    }
}

.login form .input {
    width: 100%;
    font-weight: 400;
    height: inherit;
    outline: none;
    border-radius: 0;
    font-size: 12px;
    padding: 24px 12px;
    font-family: inherit;
    border-color: #CCCFCE !important;
    color: #808990;
}

.login .submit {
  text-align: center;
}
  
.login input[type="submit"].button-primary {
    background: #0066BA !important;
    color: #ffffff !important;
    box-shadow: none;
    text-shadow: none;
    border-radius: 0;
    padding: 12px 24px;
    line-height: 1em !important;
    /* margin: .5em 0; */
    height: 49px;
    font-weight: 600;
    display: inline-block;
    font-size: 12px;
    -webkit-transition: all .2s ease-out;
    transition: all .2s ease-out;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    float: unset;
    margin-bottom: 0;
}
  
.login input[type="submit"].button-primary:hover {
    background-position-y: 100%;
    color: #fff!important;
}
  
.login #backtoblog,
.login .privacy-policy-page-link {
    display: none;
}
  
.login #nav {
    text-align: center;
    margin-bottom: 1.2em;
}
  
.login .titles h2 {
    color: #0079c2;
    line-height: 1.2em;
}
  
.login .titles h2:first-child {
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: solid 1px #0079c2;
}
  
.login .titles + div,
.login .titles + .message {
    margin-top: 20px;
}
/**
 * Template: single-post.html
 */

body.single-post {
	h2.wp-block-post-title {
		font-weight: 400;
	}
}

.single-resource .wp-block-post-content {
    margin-top: var(--wp--preset--spacing--10);
}

.single-resource .video-resource {
    .wp-block-video {
        height: 100%;
        video {
            height: 100%;
            object-fit: cover;
        }
    }
    .video-wrapper {
        background-color: var(--wp--preset--color--white);
        @media(min-width: 1024px) {
            gap: 0 !important;
        }
    }
    .video-wrapper .wp-block-column.has-white-background-color {
        padding-bottom: 78px !important;
        @media(max-width: 1023px) {
            padding-top: 0 !important;
        }
    }
    .wp-block-query .wp-block-post-template {
        gap: var(--wp--preset--spacing--20);
    }
}

.single-resource .video-resource .wp-block-columns {
    gap: 3rem;
    @media(max-width: 1023px) {
        flex-direction: column !important;
    }
}