.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}.gallery-post{min-width:0;border:1px solid var(--line,#dce4df);border-radius:18px;overflow:hidden;background:var(--surface,#fff)}.gallery-post-header{display:flex;align-items:center;gap:10px;padding:16px}.gallery-avatar{display:grid;place-items:center;background:#245e4c;color:white;width:38px;height:38px;border-radius:50%;flex-shrink:0;font-weight:700}.gallery-school{font-size:.85rem;font-weight:700}.gallery-post-header time{display:block;font-size:.75rem;opacity:.7}.gallery-total{margin-inline-start:auto;font-size:.75rem;white-space:nowrap}.gallery-carousel{position:relative;direction:rtl}.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;background:var(--bg,#f2f5f3);outline-offset:-3px}.gallery-slide{flex:0 0 100%;width:100%;min-width:0;margin:0;aspect-ratio:1;scroll-snap-align:start;position:relative;display:grid;place-items:center}.gallery-slide img{display:block;width:100%;height:100%;object-fit:contain}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line,#dce4df)}.gallery-controls[hidden],.gallery-image-error[hidden]{display:none}.gallery-controls button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--line,#dce4df);background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:1.2rem}.gallery-controls button:disabled{opacity:.3;cursor:default}.gallery-controls span{font-size:.8rem;font-variant-numeric:tabular-nums}.gallery-post-body{padding:18px}.gallery-post-body h3{margin:0 0 8px;font-size:1.05rem}.gallery-post-body p,.gallery-caption{font-size:.9rem;line-height:1.9;overflow-wrap:anywhere}.gallery-post-body .text-link{font-size:.8rem}.gallery-search{margin-bottom:28px}.gallery-search label{display:block;margin-bottom:8px}.gallery-search>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.gallery-search input{flex:1;min-width:150px;max-width:480px}.gallery-detail{max-width:720px}.gallery-detail>h1{font-size:1.5rem;margin:24px 0}.gallery-image-error{padding:30px;text-align:center;position:absolute;inset:0;align-content:center}.gallery-track:focus-visible,.gallery-controls button:focus-visible{outline:3px solid #779f42}.gallery-grid>.empty-state{grid-column:1/-1}.gallery-post a{overflow-wrap:anywhere}
@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.gallery-grid{grid-template-columns:minmax(0,1fr)}.gallery-post{border-radius:14px}.gallery-post-header{padding:12px}.gallery-post-body{padding:16px}}

.gallery-carousel.is-enhanced .gallery-track{scrollbar-width:none}.gallery-carousel.is-enhanced .gallery-track::-webkit-scrollbar{display:none}
