/* Plane page photo gallery (replaces Fotorama) */
.bb-gallery {
	margin: 8px 0 12px;
	outline: none;
}
.bb-gallery__stage {
	position: relative;
	background: #1a1a1a;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.bb-gallery__frame {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bb-gallery__frame > img,
.bb-gallery__video > img,
.bb-gallery__frame iframe {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 0;
}
.bb-gallery__video {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.bb-gallery__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
}
.bb-gallery__play::before {
	content: "";
	display: block;
	margin: 18px 0 0 22px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}
.bb-gallery__arr,
.bb-gallery__fs {
	position: absolute;
	z-index: 2;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}
.bb-gallery__arr {
	top: 50%;
	width: 36px;
	height: 48px;
	margin-top: -24px;
	font-size: 28px;
}
.bb-gallery__arr--prev { left: 0; }
.bb-gallery__arr--next { right: 0; }
.bb-gallery__fs {
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	font-size: 16px;
}
.bb-gallery__thumbs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	margin-top: 6px;
}
.bb-gallery__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 54px;
	padding: 0;
	border: 2px solid transparent;
	background: #ddd;
	cursor: pointer;
	opacity: 0.65;
	overflow: hidden;
}
.bb-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bb-gallery__thumb.is-active {
	opacity: 1;
	border-color: #333;
}
.bb-gallery__thumb--video {
	position: relative;
}
.bb-gallery__thumb--video::after {
	content: "▶";
	position: absolute;
	right: 3px;
	bottom: 2px;
	font-size: 10px;
	color: #fff;
	text-shadow: 0 0 2px #000;
}
.bb-gallery.is-fs {
	position: fixed;
	inset: 0;
	z-index: 10000;
	margin: 0;
	background: #000;
	display: flex;
	flex-direction: column;
	padding: 8px;
}
.bb-gallery.is-fs .bb-gallery__stage {
	flex: 1 1 auto;
	aspect-ratio: auto;
	min-height: 0;
}
.bb-gallery.is-fs .bb-gallery__thumbs {
	flex: 0 0 auto;
}
body.bb-gallery-fs {
	overflow: hidden;
}
