/* Photo viewer */
.ft-lb {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(12, 20, 16, .94);
	display: flex; align-items: center; justify-content: center;
	animation: ft-lb-in .2s ease;
}
.ft-lb[hidden] { display: none; }
html.ft-lb-open { overflow: hidden; }
@keyframes ft-lb-in { from { opacity: 0; } to { opacity: 1; } }

.ft-lb__stage {
	margin: 0; width: 100%; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 4.5rem 5.5rem 4rem;
}
.ft-lb__stage img {
	max-width: 100%; max-height: calc(100vh - 10rem); width: auto; height: auto;
	border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
	transition: opacity .2s;
}
.ft-lb.is-loading .ft-lb__stage img { opacity: .35; }
.ft-lb__stage figcaption {
	color: rgba(255,255,255,.88); font-family: "Inter", system-ui, sans-serif; font-size: .95rem;
	margin-top: 1rem; text-align: center; max-width: 760px;
}

.ft-lb button {
	position: absolute; border: 0; cursor: pointer; color: #fff;
	background: rgba(255,255,255,.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	display: grid; place-items: center; line-height: 1; transition: background .2s;
	font-family: system-ui, sans-serif;
}
.ft-lb button:hover, .ft-lb button:focus-visible { background: rgba(255,255,255,.25); }
.ft-lb__close { top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; }
.ft-lb__prev, .ft-lb__next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 2.6rem; padding-bottom: 6px; }
.ft-lb__prev { left: 1.25rem; }
.ft-lb__next { right: 1.25rem; }
.ft-lb.is-single .ft-lb__prev, .ft-lb.is-single .ft-lb__next, .ft-lb.is-single .ft-lb__count { display: none; }
.ft-lb__count {
	position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%);
	color: rgba(255,255,255,.75); font: 600 .85rem "Inter", system-ui, sans-serif; letter-spacing: .08em;
}
.admin-bar .ft-lb__close { top: calc(1rem + 32px); }
.admin-bar .ft-lb__count { top: calc(1.4rem + 32px); }

@media (max-width: 640px) {
	.ft-lb__stage { padding: 4rem .75rem 5.5rem; }
	.ft-lb__prev, .ft-lb__next { top: auto; bottom: 1.25rem; transform: none; width: 50px; height: 50px; }
	.ft-lb__prev { left: calc(50% - 64px); }
	.ft-lb__next { right: calc(50% - 64px); }
}

/* Make photos in content feel clickable */
.ft-content .wp-block-gallery img, .ft-content a > img { transition: transform .3s ease, filter .3s; }
.ft-content .wp-block-gallery a:hover img, .ft-content a:hover > img { filter: brightness(1.06); }
