/** gallery.css */
/* ── Detail: gallery ─────────────────────────────────────────────────────────*/
.hui-gallery-toggle {
    display: flex;
    border: 1px solid var(--hui-rule);
    width: fit-content;
    margin-bottom: 16px;
    border-radius: var(--hui-radius);
    overflow: hidden;
}
.hui-gallery-toggle button {
    padding: 7px 18px;
    font-family: var(--hui-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--hui-white);
    border: none;
    cursor: pointer;
    color: var(--hui-muted);
    transition: background 0.2s, color 0.2s;
}
.hui-gallery-toggle button.active {
    background: var(--hui-heading);
    color: var(--hui-white);
}
.hui-filmstrip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    cursor: grab;
    margin-bottom: 40px;
}
.hui-filmstrip.dragging { cursor: grabbing; }
.hui-filmstrip::-webkit-scrollbar { display: none; }
.hui-filmstrip a { flex: 0 0 auto; display: block; width: 220px; height: 180px !important; overflow: hidden; }
.hui-filmstrip img { display: block; width: 220px !important; height: 180px !important; max-width: none !important; object-fit: cover; transition: opacity 0.2s; }
.hui-filmstrip img:hover { opacity: 0.85; }
.hui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 40px;
}
.hui-grid a { display: block; overflow: hidden; height: 180px !important; }
.hui-grid img { display: block; width: 100% !important; height: 180px !important; max-width: none !important; object-fit: cover; transition: opacity 0.2s; }
.hui-grid img:hover { opacity: 0.85; }
.hui-gallery-empty {
    color: var(--hui-muted);
    font-size: 0.9rem;
    padding: 20px 0;
    margin-bottom: 40px;
    font-family: var(--hui-font-body);
}

