/* Catalog pages in Βοηθός answers (app_catalog.js) */
.catimgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.catimg { margin: 0; width: 220px; max-width: 100%; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; overflow: hidden; }
.catimg img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.catimg figcaption { font-size: 12px; line-height: 1.3; padding: 5px 7px; color: #374151; }
.catlb { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .92); display: flex; flex-direction: column; }
.catlb-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; font-size: 14px; }
.catlb-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catlb-bar a, .catlb-bar button { color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 6px; font-size: 18px; padding: 4px 10px; text-decoration: none; cursor: pointer; }
.catlb-img { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: flex-start; justify-content: center; padding: 0 8px 12px; }
.catlb-img img { max-width: 100%; max-height: calc(100dvh - 70px); object-fit: contain; cursor: zoom-in; touch-action: pinch-zoom; }
.catlb-img img.zoom { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
@media (max-width: 900px) { .catimg { width: calc(50% - 4px); } .catimgs .catimg:only-child { width: 75%; } }
