.category-grid .category-card{display:block;min-width:0}.category-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;margin-bottom:20px}.category-gallery:empty{display:none}.category-gallery a{display:block;cursor:zoom-in;min-width:0}.category-gallery img{display:block;width:100%;height:clamp(180px,24vw,300px);max-height:none;object-fit:cover;border-radius:8px}.category-gallery a:focus-visible{outline:3px solid currentColor;outline-offset:4px}.category-image-dialog{padding:12px;border:0;border-radius:12px;background:#fff;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.category-image-dialog::backdrop{background:#000b}.category-image-dialog img{display:block;max-width:calc(100vw - 48px);max-height:calc(100dvh - 100px);width:auto;height:auto;object-fit:contain}.category-image-dialog button{display:block;margin:10px 0 0 auto;padding:10px 18px;border:1px solid #c6d0d6;border-radius:6px;background:#e4efff;color:#243b36;cursor:pointer;font:inherit}
