.pbba {
	/* Typography and text colour are inherited from the theme; only the accent and caption colours are set here. Override on .pbba or :root. */
	--pbba-gold: #b59a4e;
	--pbba-caption-bg: #bdb8ad;
	--pbba-caption-text: #fff;
	color: inherit;
	position: relative;
	padding: 0 60px;
	box-sizing: border-box;
}
.pbba *,
.pbba *::before,
.pbba *::after { box-sizing: border-box; }

/* Without JS every slide is shown; JS adds .is-ready to enable the carousel. */
.pbba__slide { margin-bottom: 48px; }
.pbba.is-ready .pbba__slide { display: none; margin-bottom: 0; }
.pbba.is-ready .pbba__slide.is-active { display: block; animation: pbba-fade .35s ease; }
@keyframes pbba-fade { from { opacity: 0; } to { opacity: 1; } }

.pbba__images {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}
.pbba__figure { margin: 0; }
.pbba__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.pbba__figure figcaption {
	background: var(--pbba-caption-bg);
	color: var(--pbba-caption-text);
	text-align: center;
	text-transform: uppercase;
	font-size: 1.1em;
	letter-spacing: .05em;
	line-height: 1;
	padding: 17px 10px;
}

.pbba__title {
	margin: 30px 0 18px;
	/* font family, weight and colour come from the theme's h3 styles */
	font-size: clamp(1.5rem, 3vw, 2.6rem);
	letter-spacing: .04em;
	line-height: 1.2;
}

.pbba__tags {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}
.pbba__tags li {
	margin: 0;
	padding: 0 15px;
	border-left: 1px solid rgba(128, 128, 128, .45);
	line-height: 1.2;
	text-transform: uppercase;
	opacity: .65;
}
.pbba__tags li:first-child { padding-left: 0; border-left: 0; }


.pbba__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 60px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
}
.pbba.is-ready .pbba__arrow { display: flex; }
.pbba.is-ready .pbba__arrow,
.pbba.is-ready .pbba__arrow:hover,
.pbba.is-ready .pbba__arrow:focus,
.pbba.is-ready .pbba__arrow:active {
	background: none;
	border: 0;
	box-shadow: none;
}
.pbba__arrow--prev { left: -50px; }
.pbba__arrow--next { right: -50px; }
.pbba__arrow span {
	width: 0;
	height: 0;
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	transition: opacity .2s;
}
.pbba__arrow--prev span { border-right: 22px solid var(--pbba-gold); }
.pbba__arrow--next span { border-left: 22px solid var(--pbba-gold); }
.pbba__arrow:hover span { opacity: .7; }
.pbba button { box-shadow: none; text-transform: none; border-radius: 0; }
.pbba__arrow:focus-visible,
.pbba__page:focus-visible { outline: 2px solid var(--pbba-gold); outline-offset: 2px; }

.pbba__pager { display: none; gap: 28px; margin-top: 50px; }
.pbba.is-ready .pbba__pager { display: flex; flex-wrap: wrap; }
.pbba__page {
	padding: 4px 6px;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 1.2em;
	color: var(--pbba-gold);
}
.pbba__page.is-active { font-weight: 700; }

@media (max-width: 767px) {
	.pbba { padding: 0 34px; }
	.pbba__arrow { width: 28px; }
	.pbba__arrow--prev { left: -32px; }
	.pbba__arrow--next { right: -32px; }
	.pbba__arrow span { border-top-width: 10px; border-bottom-width: 10px; }
	.pbba__arrow--prev span { border-right-width: 15px; }
	.pbba__arrow--next span { border-left-width: 15px; }
	.pbba__images { grid-template-columns: 1fr; gap: 10px; }
	.pbba__figure figcaption { font-size: 1em; padding: 12px 10px; }
	.pbba__tags li { padding: 0 10px; }
		.pbba__pager { gap: 14px; margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.pbba.is-ready .pbba__slide.is-active { animation: none; }
}

.pbba__zoom { display: block; cursor: zoom-in; line-height: 0; }

.pbba-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
	animation: pbba-fade .2s ease;
}
.pbba-lightbox[hidden] { display: none; }
.pbba-lightbox__img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	box-shadow: 0 0 40px rgba(0, 0, 0, .5);
}
.pbba-lightbox__cap {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.pbba-lightbox button {
	position: absolute;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
}
.pbba-lightbox__close { top: 14px; right: 22px; font-size: 40px; }
.pbba-lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 54px; padding: 10px; }
.pbba-lightbox__nav--prev { left: 14px; }
.pbba-lightbox__nav--next { right: 14px; }
.pbba-lightbox button:hover { color: #b59a4e; background: none; }
.pbba-lightbox button:focus-visible { outline: 2px solid #b59a4e; }
