.news-gallery{position:relative;clear:both;margin:28px 0;max-width:100%;text-align:left!important}
.gallery-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;position:relative;padding:0 0 4px}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-photo{flex:0 0 78%;padding:0;border:0;background:#f1f2f3;border-radius:12px;overflow:hidden;scroll-snap-align:start;cursor:zoom-in}
.gallery-photo:last-child{margin-right:22%}
.article-body .gallery-photo img{display:block;width:100%!important;height:330px!important;max-width:100%;object-fit:cover;margin:0!important;float:none!important;border-radius:12px}
.gallery-prev,.gallery-next{position:absolute;top:145px;width:42px;height:42px;border:0;border-radius:50%;background:white;color:#333;box-shadow:0 2px 10px #0002;cursor:pointer;font-size:28px;z-index:1}
.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-prev:disabled,.gallery-next:disabled{opacity:.35;cursor:default}
.gallery-dots{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;padding:14px}
.gallery-dots button{width:8px;height:8px;padding:0;border:0;border-radius:20px;background:#ccc;cursor:pointer;min-height:8px}
.gallery-dots button[aria-current=true]{width:28px;background:#237c37}
.gallery-lightbox{border:0;border-radius:12px;padding:12px;background:#111;max-width:95vw;max-height:95vh;color:white}
.gallery-lightbox::backdrop{background:#000c}.gallery-lightbox button{display:block;margin:0 0 10px auto;padding:8px 16px;cursor:pointer}.gallery-lightbox img{display:block;max-width:90vw;max-height:80vh;object-fit:contain}
#rich-editor .news-gallery{display:flex;gap:12px;overflow-x:auto;border:2px dashed #aaa;padding:12px}
#rich-editor .news-gallery img{flex:0 0 auto;width:240px!important;height:180px!important;object-fit:cover;margin:0!important;float:none!important;border-radius:10px}
.gallery-editor{width:min(640px,90vw);border:1px solid #ddd;border-radius:12px;padding:24px}.gallery-editor::backdrop{background:#0007}.gallery-editor textarea{width:100%;min-height:150px;margin:12px 0}.gallery-editor label{display:block;margin:16px 0}.gallery-editor button{padding:10px 15px;margin:5px;cursor:pointer}.gallery-editor-preview{display:flex;overflow:auto;gap:8px;margin:12px 0}.gallery-editor-preview img{width:120px;height:90px;object-fit:cover;border-radius:8px}
@media(min-width:1100px){.gallery-photo{flex-basis:48%}.gallery-photo:last-child{margin-right:52%}}
@media(max-width:600px){.article-body .gallery-photo img{height:240px!important}.gallery-prev,.gallery-next{top:100px}}
