/* Inline galleries: only explicitly grouped article images. */
.gs-richtext .gs-image-gallery {margin: 24px 0 30px; max-width: 100%; min-width: 0;}
.gs-richtext .gs-image-gallery:not(.gs-gallery-ready) img {display: block; margin: 8px auto; max-width: 100%; height: auto;}
.gs-gallery-ready {--gallery-accent: var(--gs-accent, #c9fa42); color: #f3f5f1;}
.gs-gallery-ready:focus-visible {outline: 2px solid var(--gallery-accent); outline-offset: 4px;}
.gs-gallery-stage {position: relative; width: 100%; aspect-ratio: 16/9; background: #080b0b; border: 1px solid #35413b; box-sizing: border-box; overflow: hidden; touch-action: pan-y pinch-zoom;}
.gs-gallery-slide {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;}
.gs-gallery-slide[hidden] {display: none !important;}
.gs-richtext .gs-gallery-slide img {display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; border: 0;}
.gs-gallery-ready button {font: inherit; cursor: pointer; box-sizing: border-box; padding: 0;}
.gs-gallery-ready button:focus-visible {outline: 2px solid var(--gallery-accent); outline-offset: -3px;}
.gs-gallery-ready .gs-gallery-arrow {display: flex; align-items: center; justify-content: center; padding: 0; text-align: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 48px; border: 1px solid #67716a; background: rgba(10,14,13,.82); color: #fff; border-radius: 3px; font-size: 0 !important; line-height: 0;}
.gs-gallery-arrow svg {display: block; flex: 0 0 auto; width: 24px; height: 24px; margin: 0; pointer-events: none;}
.gs-gallery-arrow:hover {background: var(--gallery-accent); color: #111; border-color: var(--gallery-accent);}
.gs-gallery-prev {left: 12px;}
.gs-gallery-next {right: 12px;}
.gs-gallery-position {position: absolute; right: 12px; bottom: 12px; background: rgba(10,14,13,.85); color: #fff; padding: 3px 10px; font-size: 12px; line-height: 1.6; border-radius: 3px;}
.gs-gallery-thumbs {position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px 0; scrollbar-width: thin; scrollbar-color: #62715f #171e1b;}
.gs-gallery-thumb {flex: 0 0 104px; width: 104px; aspect-ratio: 16/10; overflow: hidden; border: 2px solid #35413b; background: #101614; opacity: .7;}
.gs-gallery-thumb.is-current {border-color: var(--gallery-accent); opacity: 1;}
.gs-gallery-thumb:hover {opacity: 1;}
.gs-richtext .gs-gallery-thumb img {display: block; width: 100%; height: 100%; object-fit: cover; margin: 0;}
@media(max-width: 600px) {
    .gs-gallery-ready .gs-gallery-arrow {width: 34px; height: 40px;}
    .gs-gallery-arrow svg {width: 20px; height: 20px;}
    .gs-gallery-prev {left: 6px;}
    .gs-gallery-next {right: 6px;}
    .gs-gallery-position {right: 6px; bottom: 6px;}
    .gs-gallery-thumb {flex-basis: 76px; width: 76px;}
    .gs-gallery-thumbs {gap: 6px;}
}
