/* =========================================================
   Mobilio Intranet – Bildergalerie
   Öffentliche Galerie + Verwaltung in Intranet Settings
   ========================================================= */

/* ---------- Intranet-Ansicht ---------- */
.ig-page {
    --ig-primary: #17232e;
    --ig-accent: #ecefca;
    --ig-bg: #10161c;
    --ig-surface: #17212a;
    --ig-soft: #1d2933;
    --ig-text: #f7f7f2;
    --ig-muted: #9ca8af;
    --ig-line: rgba(255,255,255,.12);
    --ig-shadow: 0 28px 70px rgba(0,0,0,.25);
    min-height: 100vh;
    color: var(--ig-text);
    background: var(--ig-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ig-page.is-light {
    --ig-bg: #f5f5f1;
    --ig-surface: #fff;
    --ig-soft: #eceee9;
    --ig-text: #15202a;
    --ig-muted: #647078;
    --ig-line: rgba(20,31,41,.13);
    --ig-shadow: 0 28px 70px rgba(25,36,44,.12);
}
.ig-page *, .ig-page *::before, .ig-page *::after { box-sizing: border-box; }
.ig-page a { color: inherit; text-decoration: none; }
.ig-page button, .ig-page input { font: inherit; }

.ig-topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    grid-template-columns: minmax(250px,1fr) auto minmax(250px,1fr);
    align-items: center;
    min-height: 78px;
    padding: 0 clamp(18px,4vw,66px);
    border-bottom: 1px solid var(--ig-line);
    background: color-mix(in srgb, var(--ig-bg) 86%, transparent);
    backdrop-filter: blur(24px) saturate(135%);
}
.ig-brand { display: flex; align-items: center; gap: 12px; width: fit-content; }
.ig-brand-mark { display: grid; place-items: center; width: 39px; height: 39px; color: var(--ig-primary); border-radius: 11px; background: var(--ig-accent); font-weight: 900; }
.ig-brand > span:last-child { display: grid; line-height: 1.05; }
.ig-brand strong { font-size: 16px; }
.ig-brand small { max-width: 250px; margin-top: 4px; overflow: hidden; color: var(--ig-muted); font-size: 9px; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ig-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--ig-muted); font-size: 11px; }
.ig-breadcrumb a:hover, .ig-breadcrumb strong { color: var(--ig-text); }
.ig-tools { display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: var(--ig-muted); font-size: 11px; }
.ig-tools button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ig-text); border: 1px solid var(--ig-line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 17px; }

.ig-main { width: min(1800px,100%); margin: 0 auto; padding: clamp(48px,7vw,105px) clamp(18px,5vw,82px) 100px; }
.ig-overview-head { max-width: 850px; margin-bottom: 48px; }
.ig-overview-head > span, .ig-section-head > span, .ig-viewer-head > div > span { color: var(--ig-muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.ig-overview-head h1, .ig-section-head h1, .ig-viewer-head h1 { margin: 12px 0; font-size: clamp(48px,6.5vw,96px); line-height: .92; letter-spacing: -.065em; }
.ig-overview-head h1 em { display: block; color: var(--ig-accent); font-family: Georgia,serif; font-weight: 400; }
.ig-page.is-light .ig-overview-head h1 em { color: var(--ig-primary); }
.ig-overview-head p, .ig-section-head p, .ig-viewer-head p { max-width: 680px; margin: 18px 0 0; color: var(--ig-muted); font-size: 15px; line-height: 1.6; }

.ig-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ig-category-card { display: grid; grid-template-rows: minmax(250px,1fr) auto; min-height: 470px; overflow: hidden; border: 1px solid var(--ig-line); background: var(--ig-surface); transition: transform .25s ease, border-color .25s ease; }
.ig-category-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb,var(--ig-accent) 50%,var(--ig-line)); }
.ig-card-image, .ig-folder-image { position: relative; min-height: 0; overflow: hidden; background: linear-gradient(145deg,var(--ig-primary),color-mix(in srgb,var(--ig-primary) 66%,var(--ig-accent))); }
.ig-card-image img, .ig-folder-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ig-category-card:hover img, .ig-folder-card:hover img { transform: scale(1.035); }
.ig-card-image > span, .ig-folder-image > span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.62); font-size: 72px; font-weight: 800; }
.ig-card-image > small { position: absolute; right: 17px; bottom: 15px; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .15em; }
.ig-category-card > div:last-child { padding: 25px; }
.ig-category-card strong { display: block; font-size: 25px; letter-spacing: -.035em; }
.ig-category-card p { min-height: 42px; margin: 9px 0 18px; color: var(--ig-muted); font-size: 12px; line-height: 1.45; }
.ig-category-card > div:last-child > span { font-size: 10px; font-weight: 750; }

.ig-section-head, .ig-viewer-head { margin-bottom: 42px; }
.ig-section-head > a, .ig-viewer-head a { display: block; width: fit-content; margin-bottom: 38px; color: var(--ig-muted); font-size: 11px; }
.ig-section-head h1, .ig-viewer-head h1 { font-size: clamp(42px,5vw,75px); }
.ig-folder-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ig-folder-card { display: grid; grid-template-rows: 270px auto; overflow: hidden; border: 1px solid var(--ig-line); background: var(--ig-surface); transition: transform .25s ease; }
.ig-folder-card:hover { transform: translateY(-4px); }
.ig-folder-image > small { position: absolute; right: 14px; bottom: 14px; padding: 7px 9px; color: #fff; background: rgba(8,14,18,.62); font-size: 9px; backdrop-filter: blur(8px); }
.ig-folder-card > div:last-child { padding: 22px; }
.ig-folder-card > div:last-child > span { color: var(--ig-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.ig-folder-card h2 { margin: 9px 0 7px; font-size: 23px; letter-spacing: -.035em; }
.ig-folder-card p { min-height: 35px; margin: 0; color: var(--ig-muted); font-size: 11px; line-height: 1.45; }

.ig-viewer-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.ig-viewer-head > strong { color: var(--ig-muted); font-size: clamp(42px,5vw,72px); font-weight: 350; letter-spacing: -.06em; }
.ig-viewer-head > strong small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ig-viewer { display: grid; gap: 0; }
.ig-stage { position: relative; display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; align-items: stretch; min-height: min(68vh,810px); overflow: hidden; outline: 0; background: #080b0e; touch-action: pan-y; }
.ig-main-image { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; background: #080b0e; cursor: zoom-in; }
.ig-main-image img { display: block; width: 100%; height: min(68vh,810px); object-fit: contain; }
.ig-arrow { color: #fff; border: 0; background: rgba(255,255,255,.04); cursor: pointer; font-size: 22px; transition: background .2s ease; }
.ig-arrow:hover { background: rgba(255,255,255,.11); }
.ig-counter { position: absolute; right: 86px; bottom: 18px; padding: 7px 10px; color: #fff; background: rgba(0,0,0,.55); font-size: 9px; letter-spacing: .1em; backdrop-filter: blur(8px); }
.ig-image-caption { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 30px; border: 1px solid var(--ig-line); border-top: 0; background: var(--ig-surface); }
.ig-image-caption > div > span { color: var(--ig-muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.ig-image-caption h2 { margin: 6px 0 0; font-size: 24px; }
.ig-image-caption p { margin: 7px 0 0; color: var(--ig-muted); font-size: 11px; }
.ig-image-caption > button { padding: 11px 0; color: var(--ig-text); border: 0; border-bottom: 1px solid var(--ig-line); background: transparent; cursor: pointer; font-size: 10px; white-space: nowrap; }
.ig-thumbnails { display: flex; gap: 9px; margin-top: 14px; padding: 4px 0 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.ig-thumbnails button { position: relative; flex: 0 0 118px; height: 78px; padding: 0; overflow: hidden; border: 2px solid transparent; background: var(--ig-soft); cursor: pointer; opacity: .58; scroll-snap-align: start; transition: opacity .2s ease,border-color .2s ease; }
.ig-thumbnails button:hover, .ig-thumbnails button.is-active { opacity: 1; }
.ig-thumbnails button.is-active { border-color: var(--ig-accent); }
.ig-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.ig-thumbnails span { position: absolute; right: 4px; bottom: 4px; padding: 2px 5px; color: #fff; background: rgba(0,0,0,.55); font-size: 7px; }

.ig-empty, .ig-state { display: grid; place-items: center; align-content: center; min-height: 330px; padding: 45px; color: var(--ig-muted); border: 1px dashed var(--ig-line); text-align: center; }
.ig-empty > span, .ig-state-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; color: var(--ig-primary); border-radius: 16px; background: var(--ig-accent); font-size: 23px; font-style: normal; }
.ig-empty strong { color: var(--ig-text); font-size: 18px; }
.ig-empty p { margin: 8px 0 0; }
.ig-state { min-height: 100vh; border: 0; }
.ig-state h1 { margin: 10px 0; color: var(--ig-text); font-size: clamp(35px,6vw,62px); letter-spacing: -.05em; }
.ig-state a { margin-top: 22px; padding: 12px 18px; color: var(--ig-primary); background: var(--ig-accent); font-weight: 800; }
.ig-spinner { width: 30px; height: 30px; border: 2px solid var(--ig-line); border-top-color: var(--ig-accent); border-radius: 50%; animation: ig-spin .7s linear infinite; }
@keyframes ig-spin { to { transform: rotate(360deg); } }

.ig-lightbox { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-columns: 80px minmax(0,1fr) 80px; align-items: center; color: #fff; background: rgba(3,6,8,.96); outline: 0; }
.ig-lightbox figure { display: grid; place-items: center; max-width: 100%; max-height: 100vh; margin: 0; }
.ig-lightbox figure img { display: block; max-width: 100%; max-height: 88vh; object-fit: contain; }
.ig-lightbox figcaption { display: flex; justify-content: space-between; gap: 30px; width: 100%; padding-top: 12px; color: rgba(255,255,255,.7); font-size: 11px; }
.ig-lightbox-arrow { align-self: stretch; color: #fff; border: 0; background: transparent; cursor: pointer; font-size: 28px; }
.ig-lightbox-close { position: absolute; z-index: 2; top: 18px; right: 22px; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer; font-size: 26px; }

/* ---------- Verwaltung ---------- */
.iga-admin {
    --iga-text: var(--is-text,#17232e);
    --iga-muted: var(--is-sub,#71808c);
    --iga-line: var(--is-border,rgba(23,35,46,.14));
    --iga-surface: var(--is-card,#fff);
    --iga-soft: var(--is-card-soft,#f4f6f5);
    --iga-input: var(--is-input,#fff);
    --iga-accent: var(--is-accent,#8ccfd0);
    --iga-accent-ink: var(--is-accent-ink,#17232e);
    --iga-danger: var(--is-danger,#bf534a);
    color: var(--iga-text);
}
.iga-admin *, .iga-admin *::before, .iga-admin *::after { box-sizing: border-box; }
.iga-admin button, .iga-admin input, .iga-admin textarea { font: inherit; }
.iga-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.iga-toolbar h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.035em; }
.iga-toolbar p { max-width: 700px; margin: 8px 0 0; color: var(--iga-muted); font-size: 12px; line-height: 1.5; }
.iga-primary, .iga-danger, .iga-upload-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--iga-line); border-radius: 11px; cursor: pointer; }
.iga-primary { color: var(--iga-accent-ink); border-color: var(--iga-accent); background: var(--iga-accent); font-weight: 800; }
.iga-danger { color: var(--iga-danger); background: transparent; }
.iga-message { margin-bottom: 16px; padding: 12px 14px; color: #248052; border: 1px solid color-mix(in srgb,#248052 35%,var(--iga-line)); border-radius: 11px; background: color-mix(in srgb,#248052 7%,transparent); font-size: 11px; }
.iga-message.is-error { color: var(--iga-danger); border-color: color-mix(in srgb,var(--iga-danger) 38%,var(--iga-line)); }
.iga-empty { display: grid; place-items: center; align-content: center; min-height: 180px; padding: 36px; color: var(--iga-muted); border: 1px dashed var(--iga-line); border-radius: 14px; text-align: center; }
.iga-empty strong { color: var(--iga-text); }
.iga-empty span { margin-top: 5px; font-size: 11px; }
.iga-first { display: grid; place-items: center; width: 100%; min-height: 260px; color: var(--iga-muted); border: 1px dashed var(--iga-line); border-radius: 18px; background: transparent; cursor: pointer; text-align: center; }
.iga-first > span { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; color: var(--iga-accent-ink); border-radius: 16px; background: var(--iga-accent); font-size: 26px; }
.iga-first strong { color: var(--iga-text); font-size: 19px; }
.iga-first small { margin-top: 6px; }
.iga-category-tabs { display: flex; gap: 8px; margin-bottom: 14px; padding-bottom: 5px; overflow-x: auto; }
.iga-category-tabs > button { position: relative; display: grid; flex: 0 0 210px; gap: 4px; min-height: 68px; padding: 12px 14px; color: var(--iga-muted); border: 1px solid var(--iga-line); border-radius: 13px; background: var(--iga-soft); cursor: pointer; text-align: left; }
.iga-category-tabs strong { color: var(--iga-text); font-size: 12px; }
.iga-category-tabs small { font-size: 9px; }
.iga-category-tabs em { position: absolute; top: 8px; right: 8px; font-size: 7px; font-style: normal; text-transform: uppercase; }
.iga-category-tabs button.is-active { border-color: var(--iga-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--iga-accent) 10%,transparent); }
.iga-category-editor, .iga-folder-editor { padding: 16px; border: 1px solid var(--iga-line); border-radius: 15px; background: var(--iga-soft); }
.iga-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.iga-form-grid > label, .iga-image-fields label, .iga-image-options label { display: grid; gap: 6px; min-width: 0; }
.iga-form-grid label > span, .iga-image-fields label > span, .iga-image-options label > span { color: var(--iga-muted); font-size: 9px; font-weight: 800; }
.iga-form-grid input, .iga-image-fields input, .iga-image-fields textarea, .iga-image-options input { width: 100%; min-width: 0; padding: 10px; color: var(--iga-text); border: 1px solid var(--iga-line); border-radius: 9px; outline: 0; background: var(--iga-input); }
.iga-form-grid input { min-height: 40px; }
.iga-form-grid input:focus, .iga-image-fields input:focus, .iga-image-fields textarea:focus { border-color: var(--iga-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--iga-accent) 11%,transparent); }
.iga-span-2 { grid-column: span 2; }
.iga-check { display: flex !important; align-items: center; gap: 8px !important; align-self: end; min-height: 40px; color: var(--iga-muted); font-size: 10px; cursor: pointer; }
.iga-check input { width: 16px !important; min-height: 16px !important; accent-color: var(--iga-accent); }
.iga-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.iga-workspace { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 14px; margin-top: 16px; }
.iga-folder-rail { min-width: 0; padding: 12px; border: 1px solid var(--iga-line); border-radius: 15px; background: var(--iga-soft); }
.iga-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 2px 11px; color: var(--iga-muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.iga-rail-head button { display: grid; place-items: center; width: 30px; height: 30px; color: var(--iga-accent-ink); border: 0; border-radius: 8px; background: var(--iga-accent); cursor: pointer; font-size: 17px; }
.iga-folder-empty { width: 100%; min-height: 80px; color: var(--iga-muted); border: 1px dashed var(--iga-line); border-radius: 10px; background: transparent; cursor: pointer; font-size: 10px; }
.iga-folder-tile { position: relative; display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 6px; color: var(--iga-muted); border: 1px solid transparent; border-radius: 11px; background: transparent; cursor: pointer; text-align: left; }
.iga-folder-tile + .iga-folder-tile { margin-top: 5px; }
.iga-folder-tile.is-active { border-color: var(--iga-line); background: var(--iga-surface); }
.iga-folder-cover { display: grid; place-items: center; width: 56px; height: 50px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb,var(--iga-accent) 18%,var(--iga-soft)); }
.iga-folder-cover img { width: 100%; height: 100%; object-fit: cover; }
.iga-folder-tile > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.iga-folder-tile strong { overflow: hidden; color: var(--iga-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.iga-folder-tile small { font-size: 8px; }
.iga-folder-tile em { position: absolute; top: 5px; right: 5px; font-size: 7px; font-style: normal; }
.iga-folder-content { min-width: 0; }
.iga-upload { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(280px,1fr) auto; align-items: center; gap: 16px; margin-top: 14px; padding: 18px; border: 1px solid var(--iga-line); border-radius: 15px; background: var(--iga-soft); }
.iga-upload h3 { margin: 4px 0; font-size: 18px; }
.iga-upload p { margin: 0; color: var(--iga-muted); font-size: 9px; line-height: 1.4; }
.iga-dropzone { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 10px; min-height: 76px; padding: 13px; overflow: hidden; color: var(--iga-muted); border: 1px dashed var(--iga-line); border-radius: 12px; background: var(--iga-input); cursor: pointer; }
.iga-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.iga-dropzone > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; color: var(--iga-accent-ink); border-radius: 11px; background: var(--iga-accent); font-size: 21px; }
.iga-dropzone strong { align-self: end; overflow: hidden; color: var(--iga-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.iga-dropzone small { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.iga-upload-button { color: var(--iga-accent-ink); border-color: var(--iga-accent); background: var(--iga-accent); font-size: 10px; font-weight: 800; }
.iga-upload-button:disabled { opacity: .42; cursor: default; }
.iga-image-empty { margin-top: 14px; }
.iga-image-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 24px 0 12px; }
.iga-image-heading > div { display: flex; align-items: baseline; gap: 10px; }
.iga-image-heading h3 { margin: 0; font-size: 19px; }
.iga-image-heading span, .iga-image-heading > small { color: var(--iga-muted); font-size: 9px; }
.iga-image-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.iga-image-card { min-width: 0; overflow: hidden; border: 1px solid var(--iga-line); border-radius: 14px; background: var(--iga-soft); }
.iga-image-card.is-inactive { opacity: .58; }
.iga-image-preview { aspect-ratio: 16/10; overflow: hidden; background: #111; }
.iga-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.iga-image-preview span {
    width: 100%; height: 100%; display: grid; place-items: center; padding: 1rem;
    color: var(--iga-muted); font-size: .78rem; text-align: center;
    background: color-mix(in srgb, var(--iga-surface) 88%, var(--iga-text));
}
.iga-image-fields { display: grid; gap: 8px; padding: 12px; }
.iga-image-fields input, .iga-image-fields textarea, .iga-image-options input { font-size: 10px; }
.iga-image-fields textarea { resize: vertical; }
.iga-image-options { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.iga-image-options .iga-check { min-width: 65px; }
.iga-image-actions { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 12px; color: var(--iga-muted); }
.iga-image-actions small { font-size: 8px; }
.iga-image-actions button { min-height: 34px; padding: 0 11px; color: var(--iga-text); border: 1px solid var(--iga-line); border-radius: 9px; background: var(--iga-surface); cursor: pointer; font-size: 9px; font-weight: 750; }

@media (max-width: 1180px) {
    .ig-topbar { grid-template-columns: 1fr auto; }
    .ig-breadcrumb { display: none; }
    .ig-category-grid, .ig-folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .iga-upload { grid-template-columns: 1fr; }
    .iga-upload-button { width: 100%; }
    .iga-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .ig-topbar { min-height: 70px; padding: 0 15px; }
    .ig-brand-mark { width: 35px; height: 35px; }
    .ig-brand small { max-width: 130px; }
    .ig-tools > a { display: none; }
    .ig-tools button { width: 38px; height: 38px; }
    .ig-main { padding: 45px 15px 72px; }
    .ig-overview-head { margin-bottom: 30px; }
    .ig-overview-head h1 { font-size: clamp(48px,16vw,72px); }
    .ig-category-grid, .ig-folder-grid { grid-template-columns: 1fr; }
    .ig-category-card { grid-template-rows: 240px auto; min-height: 430px; }
    .ig-folder-card { grid-template-rows: 230px auto; }
    .ig-viewer-head { display: block; }
    .ig-viewer-head > strong { display: block; margin-top: 20px; }
    .ig-stage { grid-template-columns: 48px minmax(0,1fr) 48px; min-height: 52vh; }
    .ig-main-image img { height: 52vh; }
    .ig-counter { right: 59px; }
    .ig-image-caption { align-items: flex-start; flex-direction: column; padding: 20px; }
    .ig-thumbnails button { flex-basis: 92px; height: 64px; }
    .ig-lightbox { grid-template-columns: 48px minmax(0,1fr) 48px; }
    .ig-lightbox figcaption { padding-inline: 4px; }

    .iga-toolbar { flex-direction: column; }
    .iga-toolbar .iga-primary { width: 100%; }
    .iga-form-grid { grid-template-columns: 1fr; }
    .iga-span-2 { grid-column: auto; }
    .iga-actions { align-items: stretch; flex-direction: column-reverse; }
    .iga-actions button { width: 100%; }
    .iga-workspace { grid-template-columns: 1fr; }
    .iga-folder-rail { display: flex; gap: 7px; overflow-x: auto; }
    .iga-rail-head { flex: 0 0 52px; align-items: center; flex-direction: column; justify-content: center; padding: 0; }
    .iga-folder-tile { flex: 0 0 205px; }
    .iga-folder-tile + .iga-folder-tile { margin-top: 0; }
    .iga-folder-empty { flex: 1 0 180px; }
    .iga-image-heading { align-items: flex-start; flex-direction: column; }
    .iga-image-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ig-page *, .ig-page *::before, .ig-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
