/*
 * Image carousel and lightbox, [gf_image_carousel] (was WP Carousel Pro, PLAN.md phase GF-1).
 * Sizes, colours and spacing copy WP Carousel's settings for carousels 4023 and 4066 and the
 * Fancybox 3 lightbox it opened, as measured on the live site on 27 October 2026
 * (baseline/2026-10-27/gf-1).
 */

/*
 * The 60px below is the space the dots sit in: WP Carousel's script wrapped its carousel in a box
 * with a 60px bottom margin, which pushed the rest of the page down by that much.
 */
.gf-carousel {
	--gf-per-view: 1;
	--gf-gap: 20px;
	position: relative;
	margin-bottom: 60px;
}

.gf-carousel,
.gf-carousel * {
	box-sizing: border-box;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* Cards per view: 1 under 480px, then 2, 3, 4 and 5 from 480, 736, 980 and 1200px. */
@media (min-width: 480px) {
	.gf-carousel {
		--gf-per-view: 2;
	}
}

@media (min-width: 736px) {
	.gf-carousel {
		--gf-per-view: 3;
	}
}

@media (min-width: 980px) {
	.gf-carousel {
		--gf-per-view: 4;
	}
}

@media (min-width: 1200px) {
	.gf-carousel {
		--gf-per-view: 5;
	}
}

/*
 * The cards sit 45px in from each side, which leaves room for the arrows. Without the script the
 * row scrolls sideways and snaps to a card.
 */
.gf-carousel__viewport {
	margin: 0 45px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.gf-carousel__viewport::-webkit-scrollbar {
	display: none;
}

/* With the script the row slides instead; vertical swipes still scroll the page. */
.gf-carousel.is-ready .gf-carousel__viewport {
	overflow: hidden;
	scroll-snap-type: none;
	touch-action: pan-y;
}

.gf-carousel.is-ready .gf-carousel__track {
	cursor: grab;
}

.gf-carousel__track {
	display: flex;
	align-items: center;
	gap: var(--gf-gap);
	transition-property: transform;
	transition-timing-function: ease;
}

.gf-carousel.is-dragging .gf-carousel__track {
	cursor: grabbing;
	user-select: none;
}

.gf-carousel__slide {
	flex: 0 0 calc((100% - (var(--gf-per-view) - 1) * var(--gf-gap)) / var(--gf-per-view));
	min-width: 0;
	scroll-snap-align: start;
}

.gf-carousel__card {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid #ddd;
	background: #f9f9f9;
	vertical-align: middle;
}

/* Centred carousel: the current card at full size, the others at 85% and faded. */
.gf-carousel--center .gf-carousel__slide {
	scroll-snap-align: center;
}

.gf-carousel--center.is-ready .gf-carousel__card {
	transform: scale(0.85);
	opacity: 0.6;
	transition: all 0.3s;
}

.gf-carousel--center.is-ready .is-active .gf-carousel__card {
	transform: scale(1);
	opacity: 1;
}

/* When the loop jumps back a lap, identical cards swap places without animating. */
.gf-carousel.is-jumping .gf-carousel__track,
.gf-carousel.is-jumping .gf-carousel__card {
	transition: none;
}

.gf-carousel__image {
	position: relative;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
	text-align: center;
}

.gf-carousel__image a {
	display: block;
	text-align: center;
}

.gf-carousel__image img {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 0;
	transition: all 0.3s;
}

.gf-carousel__image:hover img {
	transform: scale(1.2);
}

/* The magnifier over a hovered card. */
.gf-carousel__zoom {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	background-color: rgba(0, 0, 0, 0.5);
	transition: 0.3s ease;
}

.gf-carousel__image:hover .gf-carousel__zoom {
	opacity: 1;
}

.gf-carousel__zoom > span {
	display: inline-flex;
	position: absolute;
	top: 50%;
	left: 50%;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 10px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
}

.gf-carousel__zoom > span:hover {
	background: rgba(0, 0, 0, 0.8);
}

.gf-carousel__zoom svg {
	flex: none;
}

/* Arrows: 30px squares, 10px in from each side, vertically centred on the cards. */
.gf-carousel .gf-carousel__nav {
	display: flex;
	position: absolute;
	z-index: 22;
	top: 50%;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid #aaa;
	border-radius: 0%;
	background-color: transparent;
	box-shadow: none;
	color: #aaa;
	font-size: 20px;
	line-height: 28px;
	cursor: pointer;
	transition: all 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.gf-carousel .gf-carousel__nav:focus {
	border-color: #aaa;
	background-color: transparent;
	color: #aaa;
}

.gf-carousel .gf-carousel__nav:hover {
	border-color: #178087;
	background-color: #178087;
	color: #fff;
}

.gf-carousel__nav svg {
	display: block;
	flex: none;
}

.gf-carousel__prev {
	left: 10px;
}

.gf-carousel__next {
	right: 10px;
}

/* Dots: 40px below the cards, outside the carousel's own height, as WP Carousel placed them. */
.gf-carousel__dots {
	position: absolute;
	z-index: 10;
	top: 100%;
	left: 0;
	width: 100%;
	margin-top: 40px;
	line-height: 1;
	text-align: center;
}

.gf-carousel .gf-carousel__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 3px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #ccc;
	box-shadow: none;
	vertical-align: top;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.gf-carousel .gf-carousel__dot:hover,
.gf-carousel .gf-carousel__dot:focus {
	background-color: #ccc;
}

.gf-carousel .gf-carousel__dot[aria-current="true"] {
	background-color: #178087;
}

/* Keyboard focus only; mouse and touch visitors see no ring, as today. */
.gf-carousel .gf-carousel__nav:focus-visible,
.gf-carousel .gf-carousel__dot:focus-visible,
.gf-carousel__image a:focus-visible {
	outline: 2px solid #178087;
	outline-offset: 2px;
}

.gf-carousel .gf-carousel__nav[hidden],
.gf-carousel .gf-carousel__dots[hidden] {
	display: none;
}

/*
 * Lightbox: WP Carousel's Fancybox 3 viewer with its settings for these carousels: a dark
 * overlay, the counter top left, seven buttons top right, arrows at the sides, the caption
 * over the foot of the image and a strip of thumbnails along the bottom.
 */
body.gf-lightbox-active {
	overflow: hidden;
}

.gf-lightbox {
	position: fixed;
	z-index: 999992;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	/* The script handles swipes and taps; a pinch still zooms the screen. */
	touch-action: pinch-zoom;
}

.gf-lightbox *,
.gf-lightbox *::before,
.gf-lightbox *::after {
	box-sizing: border-box;
}

.gf-lightbox__bg,
.gf-lightbox__inner,
.gf-lightbox__stage {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.gf-lightbox__bg {
	opacity: 0;
	background: #0b0b0b;
	transition: opacity 366ms cubic-bezier(0.47, 0, 0.74, 0.71);
}

.gf-lightbox.is-open .gf-lightbox__bg {
	opacity: 0.8;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gf-lightbox.has-thumbs .gf-lightbox__inner {
	bottom: 95px;
}

.gf-lightbox__stage {
	z-index: 99994;
	overflow: hidden;
}

/* Each image sits in its own layer, so the next can fade in over the last. */
.gf-lightbox__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
	transition: opacity 366ms cubic-bezier(0.19, 1, 0.22, 1);
}

.gf-lightbox__slide.is-hidden {
	opacity: 0;
}

.gf-lightbox__image {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	transform-origin: top left;
	user-select: none;
	-webkit-user-drag: none;
	cursor: zoom-in;
	transition-property: transform, opacity;
	transition-timing-function: cubic-bezier(0.5, 0, 0.14, 1);
}

/* A zoomed image, one that can't zoom and any on a touch screen can be dragged. */
.gf-lightbox.is-zoomed .gf-lightbox__image,
.gf-lightbox.can-not-zoom .gf-lightbox__image,
.gf-lightbox.is-touch .gf-lightbox__image {
	cursor: grab;
}

.gf-lightbox.is-grabbing .gf-lightbox__image {
	cursor: grabbing;
}

.gf-lightbox__loading {
	position: absolute;
	z-index: 99999;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	padding: 0;
	opacity: 0.7;
	border: 4px solid #888;
	border-bottom-color: #fff;
	border-radius: 50%;
	background: transparent;
	animation: gf-lightbox-spin 1s linear infinite;
}

@keyframes gf-lightbox-spin {

	to {
		transform: rotate(1turn);
	}
}

/*
 * The controls fade in with the viewer. On computers the counter, buttons and arrows fade out after
 * 3 idle seconds and the caption stays; on phones a tap hides or shows them all.
 */
.gf-lightbox__counter,
.gf-lightbox__toolbar,
.gf-lightbox .gf-lightbox__nav,
.gf-lightbox__caption {
	position: absolute;
	z-index: 99997;
	visibility: hidden;
	opacity: 0;
	direction: ltr;
	transition: opacity 0.25s ease, visibility 0s ease 0.25s;
}

.gf-lightbox.is-open.shows-controls .gf-lightbox__counter,
.gf-lightbox.is-open.shows-controls .gf-lightbox__toolbar,
.gf-lightbox.is-open.shows-controls .gf-lightbox__nav,
.gf-lightbox.is-open.shows-caption .gf-lightbox__caption {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.25s ease 0s, visibility 0s ease 0s;
}

.gf-lightbox__counter {
	top: 0;
	left: 0;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	color: #ccc;
	font-size: 13px;
	line-height: 44px;
	-webkit-font-smoothing: subpixel-antialiased;
	mix-blend-mode: difference;
	pointer-events: none;
	user-select: none;
}

.gf-lightbox__toolbar {
	top: 0;
	right: 0;
	font-size: 0;
	white-space: nowrap;
}

.gf-lightbox .gf-lightbox__button {
	display: inline-block;
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 0;
	background: rgba(30, 30, 30, 0.6);
	box-shadow: none;
	color: #ccc;
	line-height: normal;
	cursor: pointer;
	transition: color 0.2s;
	vertical-align: top;
}

.gf-lightbox .gf-lightbox__button:hover,
.gf-lightbox .gf-lightbox__button:focus {
	background: rgba(30, 30, 30, 0.6);
	color: #fff;
}

.gf-lightbox .gf-lightbox__button:focus:not(:focus-visible) {
	color: #ccc;
}

.gf-lightbox .gf-lightbox__button:hover {
	color: #fff;
}

.gf-lightbox .gf-lightbox__button[disabled],
.gf-lightbox .gf-lightbox__button[disabled]:hover {
	color: #888;
	cursor: default;
}

.gf-lightbox__button svg {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: currentColor;
}

/* Each two-state button holds both icons and shows one. */
.gf-lightbox__button.is-on svg:first-child,
.gf-lightbox__button:not(.is-on) svg:nth-child(2) {
	display: none;
}

/* Arrows: 50 by 100px dark tabs at each side of the image area. */
.gf-lightbox .gf-lightbox__nav {
	top: calc(50% - 50px);
	width: 50px;
	height: 100px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #1e1e1e;
	box-shadow: none;
	color: #ccc;
	line-height: normal;
	cursor: pointer;
}

.gf-lightbox .gf-lightbox__nav:hover,
.gf-lightbox .gf-lightbox__nav:focus {
	background: #1e1e1e;
}

.gf-lightbox .gf-lightbox__nav:hover svg {
	color: #fff;
}

.gf-lightbox__prev {
	left: 0;
	padding: 31px 26px 31px 6px;
}

.gf-lightbox__next {
	right: 0;
	padding: 31px 6px 31px 26px;
}

.gf-lightbox__nav span {
	display: block;
	height: 100%;
	padding: 7px;
	text-align: left;
}

.gf-lightbox__next span {
	margin-left: -15px;
}

.gf-lightbox__nav svg {
	display: block;
	color: #ccc;
}

/* The caption: the image's title in white, centred over the foot of the image area. */
.gf-lightbox__caption {
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0 auto;
	padding: 0;
	color: #444;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	pointer-events: none;
}

/* The title, then a line break, as WP Carousel built it: the break adds an empty line below. */
.gf-lightbox__caption-text {
	display: inline-block;
	padding: 5px 15px;
	color: #fff;
}

.gf-lightbox__thumbs {
	display: none;
	position: absolute;
	z-index: 99995;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0 auto;
	padding: 3px 10px 5px;
	overflow-x: auto;
	overflow-y: hidden;
	background: rgba(0, 0, 0, 0.3);
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-x;
}

.gf-lightbox.has-thumbs .gf-lightbox__thumbs {
	display: block;
}

.gf-lightbox__thumbs-list {
	position: relative;
	height: 100%;
	margin: auto;
	overflow: hidden;
	font-size: 0;
	white-space: nowrap;
}

.gf-lightbox .gf-lightbox__thumb {
	position: relative;
	float: left;
	width: 100px;
	height: 75px;
	margin: 2px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	outline: none;
	background-color: rgba(0, 0, 0, 0.1);
	background-position: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: none;
	cursor: pointer;
}

.gf-lightbox__thumb::before {
	content: "";
	position: absolute;
	z-index: 99991;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	border: 4px solid #ff5268;
	transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gf-lightbox__thumb:focus-visible::before {
	opacity: 0.5;
}

.gf-lightbox__thumb[aria-current="true"]::before {
	opacity: 1;
}

/* The slideshow's progress bar along the top. */
.gf-lightbox__progress {
	position: absolute;
	z-index: 99998;
	top: 0;
	right: 0;
	left: 0;
	height: 2px;
	transform: scaleX(0);
	transform-origin: 0;
	background: #ff5268;
	transition-property: transform;
	transition-timing-function: linear;
}

/* The Share box, over a second, darker overlay. */
.gf-lightbox__share {
	display: flex;
	position: absolute;
	z-index: 999999;
	top: 0;
	left: 0;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 44px 6px;
	background: rgba(30, 30, 30, 0.9);
	touch-action: auto;
}

.gf-lightbox__share[hidden] {
	display: none;
}

.gf-lightbox__share-box {
	position: relative;
	max-width: 90%;
	padding: 30px;
	border-radius: 3px;
	background: #f4f4f4;
	text-align: center;
}

.gf-lightbox .gf-lightbox__share h1 {
	margin: 0 0 20px;
	color: #222;
	font-size: 35px;
	font-weight: 700;
}

.gf-lightbox__share p {
	margin: 0;
	padding: 0;
}

.gf-lightbox .gf-lightbox__share-button {
	display: inline-block;
	min-width: 130px;
	margin: 0 5px 10px;
	padding: 0 15px;
	border: 0;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s;
	user-select: none;
}

.gf-lightbox .gf-lightbox__share-button:hover,
.gf-lightbox .gf-lightbox__share-button:focus {
	color: #fff;
	text-decoration: none;
}

.gf-lightbox__share-button--fb {
	background: #3b5998;
}

.gf-lightbox__share-button--fb:hover {
	background: #344e86;
}

.gf-lightbox__share-button--tw {
	background: #1da1f2;
}

.gf-lightbox__share-button--tw:hover {
	background: #0d95e8;
}

.gf-lightbox__share-button--pt {
	background: #bd081d;
}

.gf-lightbox__share-button--pt:hover {
	background: #aa0719;
}

.gf-lightbox__share-button svg {
	display: inline-block;
	position: relative;
	top: -1px;
	width: 25px;
	height: 25px;
	margin-right: 7px;
	vertical-align: middle;
	fill: #fff;
}

.gf-lightbox .gf-lightbox__share-input {
	width: 100%;
	margin: 10px 0 0;
	padding: 10px 15px;
	border: 0;
	border-bottom: 1px solid #d7d7d7;
	border-radius: 0;
	outline: none;
	background: transparent;
	color: #5d5b5b;
	font-size: 14px;
}

.gf-lightbox .gf-lightbox__share-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: currentColor;
	opacity: 0.8;
	cursor: pointer;
}

.gf-lightbox .gf-lightbox__share-close:hover {
	background: transparent;
	color: #555;
	opacity: 1;
}

.gf-lightbox__share-close svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

@media (max-width: 576px) {

	.gf-lightbox .gf-lightbox__thumb {
		max-width: calc(100% - 10px);
	}
}
