.post_gallery { width: 100%; max-width: 854px; min-width: 0; margin: 30px auto; color: #222; }
.post_gallery *, .post_gallery *::before, .post_gallery *::after { box-sizing: border-box; }
.post_gallery [hidden] { display: none !important; }
.post_gallery_stage { position: relative; padding: 0 52px; }
.post_gallery_viewport { aspect-ratio: 3 / 2; overflow: hidden; border: 0; background: transparent; }
.post_gallery.is-ready .post_gallery_track { display: flex; height: 100%; align-items: stretch; transition: transform .25s ease; }
.post_gallery_slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; min-width: 0; width: 100%; height: 100%; }
.post_gallery_slide > img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.post_gallery_error { margin: 20px; font-size: 16px; text-align: center; }
.post_gallery_controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0; pointer-events: none; }
.post_gallery_controls button { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #888; color: #fff; font-size: 18px; cursor: pointer; }
.post_gallery_controls button[aria-disabled="true"] { background: #d5d5d5; cursor: default; }
.post_gallery_count { min-width: 70px; margin: 12px 0; text-align: center; font-size: 16px; }
.post_gallery_thumbs { max-width: 750px; margin: 0 auto; position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 10px; }
.post_gallery_thumbs button { flex: 0 0 73px; width: 73px; height: 73px; margin: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 4px; background: #f6f6f6; opacity: .55; cursor: pointer; }
.post_gallery_thumbs button:first-child { margin-left: auto; }
.post_gallery_thumbs button:last-child { margin-right: auto; }
.post_gallery_thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post_gallery_thumbs button[aria-current="true"] { border-color: #d64000; opacity: 1; }
.post_gallery button:focus-visible, .post_gallery_viewport:focus-visible { outline: 2px solid #253858; outline-offset: 2px; }
@media screen and (max-width: 767px) {
    .post_gallery { margin: 20px auto; }
    .post_gallery_stage { padding: 0 36px; }
    .post_gallery_controls button { width: 28px; height: 28px; font-size: 16px; }
    .post_gallery_thumbs button { flex-basis: 60px; width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .post_gallery.is-ready .post_gallery_track { transition: none; }
}
