.gal-masonry { column-width: 180px; column-gap: 14px; }
.gal-tile { break-inside: avoid; margin: 0 0 14px; background: #111; border: 1px solid #4e342e; display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; }
.gal-tile button.gal-open { display: block; width: 100%; padding: 12px; border: 0; background: #0a0a0a; cursor: zoom-in; }
.gal-tile img { display: block; width: auto; height: auto; max-width: 100%; max-height: 90px; margin: 0 auto; }
.gal-tile:hover { border-color: #fbbf24; }
.gal-btn { background: #212121; color: #ffca28; border: 1px solid #5d4037; padding: 4px 10px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.gal-btn:hover:not(:disabled) { border-color: #fbbf24; }
.gal-btn:disabled { opacity: 0.45; cursor: default; }
.gal-btn[aria-pressed="true"] { background: #3e2723; color: #6ee89a; border-color: #6ee89a; }
.gal-btn:focus-visible, .gal-open:focus-visible, .gal-in:focus-visible { outline: 2px solid #6ee89a; outline-offset: 2px; }
.gal-in { background: #111; color: #e8d5a0; border: 1px solid #5d4037; padding: 4px 6px; font: inherit; font-size: 0.85rem; width: 100%; box-sizing: border-box; }
.gal-dialog { background: #111; color: #e8d5a0; border: 2px solid #4e342e; padding: 0.75rem; max-width: 96vw; max-height: 96vh; }
.gal-dialog::backdrop { background: rgba(0,0,0,0.85); }
.gal-dialog img { display: block; max-width: calc(96vw - 2rem); max-height: 78vh; width: auto; height: auto; margin: 0 auto; }
@keyframes galpulse { 50% { opacity: 0.5; } }
.gal-skel { height: 200px; background: #1a1a1a; margin-bottom: 14px; break-inside: avoid; animation: galpulse 1.4s infinite; }
@media (prefers-reduced-motion: reduce) { .gal-skel { animation: none; } }
.gal-dialog { overflow-y: auto; width: min(760px, 96vw); }
.gal-comments { margin-top: 1rem; border-top: 1px solid #4e342e; padding-top: 0.75rem; display: grid; gap: 0.6rem; }
.gal-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.gal-h3 { margin: 0; font-size: 1rem; color: #86efac; }
.gal-note { color: #a1887f; font-size: 0.8rem; margin: 0; }
.gal-err { color: #f87171; font-size: 0.85rem; }
.gal-empty { color: #a1887f; border: 1px dashed #5d4037; padding: 1rem; text-align: center; margin: 0; }
.gal-form { display: grid; gap: 6px; }
textarea.gal-in { resize: vertical; }
.gal-link { color: #6ee89a; text-decoration: underline; }
.gal-clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gal-comment { border: 1px solid #4e342e; background: #0e0e0e; padding: 8px; display: grid; gap: 4px; justify-items: start; }
.gal-comment .gal-row { width: 100%; }
.gal-author { color: #fbbf24; font-weight: 800; }
.gal-body { white-space: pre-wrap; overflow-wrap: anywhere; width: 100%; }
