/* Gallery-only additions. Keep the existing styles.css. */
.community-gallery-section{background:#f0eee7;border-top:1px solid #dedfdc;border-bottom:1px solid #dedfdc}
.community-gallery-section .section-heading{margin-bottom:28px}
.community-gallery-section .section-heading>p{max-width:360px}
.gallery-controls{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 16px}
.gallery-controls button{background:transparent;border:1px solid #c7c9c2;border-radius:30px;padding:9px 17px;font:600 12px/1.4 "Segoe UI",Arial,sans-serif;color:#111454;transition:background .2s,color .2s}
.gallery-controls button:hover{background:#e5e1d6}
.gallery-controls button.is-selected{background:#111454;border-color:#111454;color:#fff}
.gallery-status{font-size:12px;color:#63697a;margin:0 0 24px}
.community-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 26px}
.community-photo{min-width:0;background:#faf8f2;border:1px solid #dcdcd2}
.community-photo-featured{grid-column:1/-1}
.gallery-image{position:relative;display:block;width:100%;padding:0;border:0;background:#e6e5de;overflow:hidden;line-height:0}
.gallery-image img{display:block;width:100%;height:auto;aspect-ratio:1672/941;object-fit:contain}
.gallery-image:hover .gallery-zoom{background:#111454;color:#fff}
.gallery-zoom{position:absolute;right:13px;bottom:13px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #cfb78c;border-radius:50%;background:#faf8f2;color:#111454;font:23px/1 "Segoe UI",Arial,sans-serif;box-shadow:0 2px 9px #0002;transition:background .2s,color .2s}
.gallery-caption{padding:17px 20px 20px}
.gallery-category{display:block;font-size:9px;font-weight:700;color:#806127;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px}
.gallery-caption h3{font-size:23px;line-height:1.3;margin:0;color:#111454}
.community-photo-featured .gallery-caption{display:flex;align-items:center;justify-content:space-between;gap:20px}
.community-photo-featured .gallery-category{margin:0}
.gallery-more-wrap{text-align:center;margin-top:35px}
.gallery-pager{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 20px;background:#111454;color:#fff;border-top:1px solid #353969}
.gallery-pager button{border:1px solid #7d809f;background:transparent;color:#fff;padding:7px 12px;font:600 12px/1.5 "Segoe UI",Arial,sans-serif}
.gallery-pager button:hover{background:#303475}
.gallery-pager button:disabled{opacity:.4;cursor:default}
#gallery-position{font-size:12px;white-space:nowrap}
#poster-dialog.gallery-is-open .dialog-head{position:relative}
:lang(bn) .gallery-category{letter-spacing:0}
:lang(bn) .gallery-controls button,:lang(bn) .gallery-pager button{line-height:1.8}
@media(max-width:1080px){.header nav{gap:18px}}
@media(max-width:820px){.community-photo-grid{gap:22px 18px}.gallery-caption{padding:15px}.gallery-caption h3{font-size:21px}}
@media(max-width:600px){.community-photo-grid{grid-template-columns:1fr;gap:22px}.community-photo-featured{grid-column:auto}.community-photo-featured .gallery-caption{display:block}.community-photo-featured .gallery-category{margin-bottom:8px}.gallery-controls{gap:8px}.gallery-controls button{padding:8px 13px;font-size:11px}.gallery-caption h3{font-size:23px}.gallery-pager{padding:10px 12px;gap:8px}.gallery-pager button{padding:7px 9px;font-size:11px}.gallery-status{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.gallery-controls button,.gallery-zoom{transition:none}}
