/* Site adjustments; upstream assets in the versioned directory stay untouched. */
/* The shared scrollbar gutter already reserves this space while scrolling is locked. */
@supports (scrollbar-gutter: stable) {
	body.gscrollbar-fixer { margin-right: 0 !important; }
}
.bc-image-gallery.glightbox-container { width: 100vw; height: 100vh; height: 100dvh; }
.bc-image-gallery .gslide-image img { border-radius: .5rem; }
.bc-image-gallery .gclose, .bc-image-gallery .gprev, .bc-image-gallery .gnext { min-width: 44px; min-height: 44px; }
.bc-image-gallery .gclose { z-index: 100001; }
.bc-image-gallery .gprev, .bc-image-gallery .gnext { top: 0; bottom: 0; width: clamp(44px, 7vw, 96px); height: auto; border-radius: 0; background: transparent; }
.bc-image-gallery .gprev { left: 0; }
.bc-image-gallery .gnext { right: 0; }
.bc-image-gallery .gprev:hover, .bc-image-gallery .gnext:hover { background: rgba(255, 255, 255, .06); }
.bc-image-gallery .gprev::before, .bc-image-gallery .gnext::before { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 50px; border-radius: .375rem; background: rgba(0, 0, 0, .45); transform: translate(-50%, -50%); }
.bc-image-gallery .gprev svg, .bc-image-gallery .gnext svg { position: relative; }
.bc-image-gallery-single .gprev, .bc-image-gallery-single .gnext { display: none; }
.bc-image-gallery .gbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bc-image-gallery .bc-gallery-caption { position: absolute; inset: auto 0 0; z-index: 100000; display: flex; flex-direction: column; box-sizing: border-box; max-height: 25vh; max-height: 25dvh; overflow: hidden; padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(17, 17, 17, .92); color: #fff; font: 1.125rem/1.5 var(--bc-font-family, sans-serif); text-align: center; }
.bc-image-gallery .bc-gallery-caption p { flex: 0 1 auto; min-height: 0; width: 100%; max-width: 70ch; margin: 0 auto .375rem; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; }
.bc-image-gallery .bc-gallery-caption p:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.bc-image-gallery .bc-gallery-count { flex: 0 0 auto; font-size: 1rem; color: #d6dce2; }
@media (prefers-reduced-motion: reduce) {
	.bc-image-gallery *, .bc-image-gallery *::before, .bc-image-gallery *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
