:root {
  --ink: #171916;
  --muted: #6d7068;
  --paper: #f4f1e9;
  --paper-2: #ebe7dc;
  --white: #fffefa;
  --line: #d8d4c9;
  --accent: #cb5b40;
  --accent-dark: #a9402b;
  --sage: #8e9a82;
  --danger: #b44432;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(28, 29, 25, .1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
body.has-lightbox { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--paper); font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.brand > span:last-child { display: grid; line-height: 1; letter-spacing: .08em; }
.brand strong { font-size: 13px; }
.brand small { margin-top: 4px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .28em; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .2em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform .18s, background .18s, border-color .18s, opacity .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; }
.button.is-disabled { cursor: not-allowed; opacity: .46; }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover:not(:disabled) { background: #2b2e29; }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.44); }
.button--ghost:hover:not(:disabled) { border-color: #aaa99f; background: var(--white); }
.button--danger-quiet { border-color: #dfc4bc; background: #f6e8e3; color: var(--danger); }
.button--small { min-height: 40px; padding: 0 14px; font-size: 13px; }
.button span { color: var(--muted); font-weight: 600; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--white); cursor: pointer; transition: transform .18s, background .18s; }
.icon-button:hover { transform: translateY(-1px); background: var(--paper); }

.login-page { display: grid; grid-template-columns: minmax(420px, .82fr) 1.18fr; min-height: 100vh; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 112px); background: var(--paper); }
.login-card > .brand { position: absolute; top: 40px; }
.login-card__intro { max-width: 500px; }
.login-card h1 { margin: 0 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 5vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.login-card__intro > p:last-child { max-width: 440px; margin: 0 0 40px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.stack-form { max-width: 500px; }
.stack-form > label, .modal label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 750; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--white); color: var(--ink); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(203, 91, 64, .12); }
.form-error { margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.login-card__foot { position: absolute; bottom: 36px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.login-card__foot span { width: 32px; height: 1px; background: var(--muted); }
.login-visual { position: relative; min-height: 100vh; overflow: hidden; background: #273027; }
.login-visual::before, .login-visual::after { content: ''; position: absolute; border-radius: 50%; filter: blur(1px); }
.login-visual::before { width: 60vw; height: 60vw; left: -10vw; top: -22vw; background: radial-gradient(circle at 55% 65%, rgba(206,155,95,.75), rgba(98,111,70,.22) 48%, transparent 70%); }
.login-visual::after { width: 48vw; height: 48vw; right: -14vw; bottom: -18vw; background: radial-gradient(circle at 30% 30%, rgba(202,87,59,.6), rgba(75,43,34,.2) 52%, transparent 70%); }
.login-visual__frame { position: absolute; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); box-shadow: 0 40px 100px rgba(0,0,0,.25); backdrop-filter: blur(3px); }
.frame-a { width: 42%; height: 54%; left: 18%; top: 17%; transform: rotate(-7deg); }
.frame-b { width: 36%; height: 46%; left: 46%; top: 31%; transform: rotate(8deg); }
.frame-a::after, .frame-b::after { content: ''; position: absolute; inset: 6%; background: linear-gradient(140deg, rgba(238,218,175,.75), rgba(80,92,68,.7) 48%, rgba(27,30,26,.92)); }
.frame-b::after { background: linear-gradient(35deg, rgba(53,40,34,.9), rgba(180,96,64,.66) 48%, rgba(218,185,135,.65)); }
.login-visual__copy { position: absolute; right: 6%; bottom: 8%; display: grid; color: rgba(255,255,255,.92); font-family: Georgia, serif; font-size: clamp(20px, 2.4vw, 42px); font-style: italic; line-height: 1.1; text-align: right; }

.admin-layout { display: grid; grid-template-columns: 238px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 22px 22px; border-right: 1px solid var(--line); background: #eeeadf; }
.sidebar__nav { margin-top: 56px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 13px; border: 0; border-radius: 11px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-item.is-active { background: var(--white); color: var(--ink); box-shadow: 0 5px 18px rgba(30,30,25,.06); }
.nav-item--button { cursor: pointer; background: transparent; }
.nav-item--button:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.sidebar__bottom { margin-top: auto; }
.sidebar__caption { margin: 0 12px 16px; color: #99998f; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.admin-main { min-width: 0; padding: clamp(34px, 5vw, 72px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: 1220px; margin: 0 auto 48px; }
.page-header h1, .gallery-header h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(40px, 5vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.page-header__sub { margin: 13px 0 0; color: var(--muted); }
.gallery-list { display: grid; gap: 15px; max-width: 1220px; margin: auto; }
.gallery-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.48); transition: transform .2s, box-shadow .2s, background .2s; }
.gallery-card:hover { transform: translateY(-2px); background: var(--white); box-shadow: var(--shadow); }
.gallery-card__main { display: grid; grid-template-columns: 138px 1fr; align-items: stretch; min-height: 138px; }
.gallery-card__cover { position: relative; display: grid; place-items: center; overflow: hidden; margin: 11px; border-radius: 11px; background: var(--ink); color: rgba(255,255,255,.15); }
.gallery-card__cover > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card__cover > svg { width: 32px; height: 32px; }
.gallery-card__number { position: absolute; right: 9px; bottom: 4px; color: rgba(255,255,255,.95); font-family: Georgia, serif; font-size: 30px; font-style: italic; }
.gallery-card__body { align-self: center; padding: 24px 72px 24px 18px; }
.gallery-card__body h2 { margin: 0 0 15px; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 34px); font-weight: 400; }
.gallery-card__stats { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.gallery-card__copy { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); }
.gallery-card__copy:hover { transform: translateY(calc(-50% - 1px)); }

.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; padding: 80px 24px; border: 1px dashed #c9c4b7; border-radius: var(--radius); text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 19px; background: var(--paper-2); color: var(--accent); }
.empty-state__icon svg { width: 26px; height: 26px; }
.empty-state h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 31px; font-weight: 400; }
.empty-state p { max-width: 480px; margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.empty-state--images { padding: 65px 24px; }

.modal { width: min(94vw, 560px); padding: 0; border: 0; border-radius: 20px; background: transparent; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(20,21,18,.62); backdrop-filter: blur(5px); }
.modal__panel { position: relative; padding: 38px; border-radius: 20px; background: var(--paper); }
.modal__panel h2 { max-width: 410px; margin: 0 0 28px; font-family: Georgia, serif; font-size: 36px; font-weight: 400; }
.modal__close { position: absolute; top: 20px; right: 20px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.gallery-header { max-width: 1420px; margin: 0 auto 35px; }
.gallery-header__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 46px; }
.gallery-header__actions { display: flex; gap: 9px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.gallery-header__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.gallery-header__totals { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 9px; padding-bottom: 4px; }
.gallery-header__totals strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; text-align: right; }
.gallery-header__totals span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }

.upload-panel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 21px; max-width: 1420px; min-height: 130px; margin: 0 auto 46px; padding: 25px 28px; border: 1px dashed #bbb6a9; border-radius: var(--radius); background: rgba(255,255,255,.36); transition: border-color .2s, background .2s, transform .2s; }
.upload-panel.is-dragging { border-color: var(--accent); background: #fff8f1; transform: scale(1.006); }
.upload-panel__icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 16px; background: var(--ink); color: var(--white); }
.upload-panel__icon svg { width: 23px; height: 23px; }
.upload-panel h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.upload-panel p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.upload-panel__buttons { display: flex; gap: 9px; }
.upload-panel__buttons.is-disabled { pointer-events: none; opacity: .45; }
.upload-progress { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid var(--line); }
.upload-progress__meta { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: var(--paper-2); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s; }
.upload-progress p { margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.image-section { max-width: 1420px; margin: auto; }
.image-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.image-toolbar > p { margin: 0; color: var(--muted); font-size: 12px; }
.image-toolbar__right { display: flex; align-items: center; gap: 14px; }
.image-toolbar__right > p { margin: 0; color: var(--muted); font-size: 12px; }
.download-selected span { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: rgba(255,255,255,.14); color: white; font-size: 10px; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.45); }
.segmented button { min-height: 37px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; }
.segmented button span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: var(--paper-2); font-size: 10px; }
.segmented button.is-active { background: var(--ink); color: var(--white); }
.segmented button.is-active span { background: rgba(255,255,255,.15); }

.image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; }
.image-card { position: relative; min-width: 0; }
.image-card__preview { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; padding: 0; border: 0; border-radius: 11px; background: var(--paper-2); cursor: zoom-in; }
.image-card__preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .25s; }
.image-card:hover .image-card__preview img { transform: scale(1.025); }
.image-card.is-selected .image-card__preview img { filter: saturate(1.04); }
.select-button { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1.5px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(22,24,22,.24); color: transparent; cursor: pointer; backdrop-filter: blur(5px); transition: transform .18s, background .18s, color .18s; }
.select-button:hover { transform: scale(1.08); background: rgba(22,24,22,.48); }
.select-button.is-selected { border-color: var(--accent); background: var(--accent); color: white; }
.select-button svg { width: 17px; height: 17px; stroke-width: 2.5; }
.delete-image { position: absolute; top: 11px; left: 11px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: rgba(22,24,22,.56); color: white; cursor: pointer; opacity: 0; backdrop-filter: blur(5px); transition: opacity .18s, background .18s; }
.image-card:hover .delete-image, .delete-image:focus { opacity: 1; }
.delete-image:hover { background: var(--danger); }
.image-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 3px 0; }
.image-card__meta > div { min-width: 0; }
.image-card__meta strong { display: block; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.image-card__meta small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.image-card__meta > span { flex: none; color: var(--muted); font-size: 10px; }
.load-more-wrap { display: flex; justify-content: center; padding: 40px 0 16px; }

.public-view { background: #f7f4ed; }
.public-shell { min-height: 100vh; }
.public-nav { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 clamp(22px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.public-nav__selection { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.public-nav__selection svg { color: var(--accent); }
.public-nav__selection strong { color: var(--ink); }
.public-main { padding: 0 clamp(18px, 4vw, 64px) 70px; }
.public-hero { max-width: 900px; margin: 0 auto; padding: clamp(70px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); text-align: center; }
.public-hero h1 { margin: 0 0 22px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 8vw, 102px); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
.public-hero > p:last-child { max-width: 620px; margin: auto; color: var(--muted); font-size: 15px; line-height: 1.7; }
.public-images { max-width: 1600px; }
.image-toolbar--sticky { position: sticky; z-index: 5; top: 10px; padding: 10px; border: 1px solid rgba(216,212,201,.85); border-radius: 16px; background: rgba(247,244,237,.86); backdrop-filter: blur(16px); }
.image-grid--public { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.image-grid--public .image-card__preview { aspect-ratio: 4 / 5; }
.public-footer { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 130px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.public-footer .brand__mark { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; }
.public-footer .brand strong { font-size: 10px; }
.public-footer .brand small { font-size: 7px; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: #10110f; color: white; }
.lightbox::backdrop { background: #10110f; }
.lightbox__top { position: absolute; z-index: 2; top: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 78px; padding: 0 24px; background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent); }
.lightbox__top > div { display: flex; align-items: center; gap: 13px; }
.lightbox__top strong { max-width: 50vw; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__top span { color: rgba(255,255,255,.55); font-size: 11px; }
.lightbox .icon-button { border-color: rgba(255,255,255,.25); background: rgba(0,0,0,.32); color: white; }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 72px 75px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.4); transition: opacity .15s; }
.lightbox__stage img.is-loading { opacity: .35; }
.lightbox__nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 50px; height: 70px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.65); cursor: pointer; transform: translateY(-50%); }
.lightbox__nav:hover { color: white; }
.lightbox__nav svg { width: 34px; height: 34px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__bottom { position: absolute; z-index: 2; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 78px; padding: 0 24px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.lightbox__bottom > span { color: rgba(255,255,255,.55); font-size: 11px; }
.lightbox__select { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; background: rgba(0,0,0,.32); color: white; cursor: pointer; }
.lightbox__select svg { display: grid; place-items: center; width: 23px; height: 23px; padding: 4px; border: 1px solid currentColor; border-radius: 50%; }
.lightbox__select.is-selected { border-color: var(--accent); background: var(--accent); }

.toast-region { position: fixed; z-index: 9999; right: 22px; bottom: 22px; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 15px 50px rgba(0,0,0,.22); font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s; }
.toast.is-visible { opacity: 1; transform: none; }
.toast svg { flex: none; color: #a6c899; }
.toast--error svg { color: #e98e79; }
.not-found { display: grid; place-items: center; align-content: center; min-height: 100vh; padding: 30px; text-align: center; }
.not-found .brand { position: absolute; top: 34px; left: 36px; }
.not-found__code { color: var(--accent); font-family: Georgia, serif; font-size: 90px; font-style: italic; line-height: 1; }
.not-found h1 { margin: 12px 0; font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.not-found p { max-width: 500px; margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1100px) {
  .image-grid, .image-grid--public { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .upload-panel { grid-template-columns: auto 1fr; }
  .upload-panel__buttons { grid-column: 2; }
}

@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-card { min-height: 100vh; padding: 36px 24px; }
  .login-card > .brand { top: 28px; }
  .login-card__foot { bottom: 24px; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; z-index: 10; flex-direction: row; align-items: center; height: 72px; padding: 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar__nav { display: none; }
  .sidebar__bottom { margin: 0 0 0 auto; }
  .sidebar__caption { display: none; }
  .nav-item--button { width: 44px; padding: 0; justify-content: center; }
  .nav-item--button span { display: none; }
  .admin-main { padding: 34px 18px 55px; }
  .page-header, .gallery-header__title { align-items: flex-start; }
  .image-grid, .image-grid--public { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-header__top { margin-bottom: 35px; }
}

@media (max-width: 580px) {
  .field-row { grid-template-columns: 1fr; }
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .page-header > .button { width: 100%; }
  .gallery-card__main { grid-template-columns: 100px 1fr; min-height: 112px; }
  .gallery-card__body { padding: 16px 48px 16px 7px; }
  .gallery-card__body h2 { margin-bottom: 10px; font-size: 22px; }
  .gallery-card__stats { flex-wrap: wrap; gap: 5px; font-size: 11px; }
  .gallery-card__copy { right: 9px; }
  .gallery-header__top { align-items: flex-start; }
  .gallery-header__actions { flex-direction: column; align-items: flex-end; }
  .gallery-header__actions .button { min-height: 36px; }
  .gallery-header__title { flex-direction: column; }
  .gallery-header__totals { align-self: stretch; grid-template-columns: auto 1fr auto 1fr; column-gap: 6px; padding-top: 15px; border-top: 1px solid var(--line); }
  .gallery-header__totals strong { text-align: left; }
  .upload-panel { grid-template-columns: auto 1fr; padding: 20px; }
  .upload-panel__icon { width: 46px; height: 46px; }
  .upload-panel__buttons { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .upload-panel__buttons .button { padding: 0 10px; font-size: 12px; }
  .image-toolbar { align-items: flex-start; flex-direction: column; }
  .image-toolbar > p { padding-left: 5px; }
  .image-toolbar__right { justify-content: space-between; width: 100%; }
  .image-toolbar__right .download-selected { min-height: 40px; padding-inline: 12px; font-size: 11px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 8px; }
  .image-grid, .image-grid--public { gap: 18px 8px; }
  .image-card__meta { display: none; }
  .select-button { top: 7px; right: 7px; width: 32px; height: 32px; }
  .delete-image { top: 7px; left: 7px; opacity: 1; }
  .public-nav { height: 72px; padding: 0 16px; }
  .public-nav__selection span { font-size: 0; }
  .public-nav__selection strong { font-size: 12px; }
  .public-nav__selection span::after { content: ' gewählt'; font-size: 12px; }
  .public-main { padding: 0 8px 50px; }
  .public-hero { padding: 72px 16px 58px; }
  .public-hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .image-toolbar--sticky { top: 6px; margin-inline: 4px; }
  .lightbox__stage { padding: 65px 8px 78px; }
  .lightbox__nav { width: 42px; background: rgba(0,0,0,.28); }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
  .lightbox__bottom > span { display: none; }
  .lightbox__bottom { justify-content: center; }
  .modal__panel { padding: 32px 22px 22px; }
  .modal__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
