/* ═══════════════════════════════════════════════════════════════════
   THAISA GARCIA — main.css
   Estilos específicos de cada página (complementa o design-system.css)
═══════════════════════════════════════════════════════════════════ */

.br-desktop { display: none; }
@media (min-width: 1024px) { .br-desktop { display: inline; } }


/* ── Login ───────────────────────────────────────────────────────────────── */
.login-quote {
  font-size: var(--fs-3xl);
}

.login-bottom {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-9);
  right: var(--sp-9);
}

.login-divider {
  display: none;
}

/* Painel do formulário com foto de fundo */
.login-form-panel { position: relative; }

.login-form-overlay {
  position: absolute;
  inset: 0;
  background: rgba(237, 230, 218, 0.80);
  pointer-events: none;
}

/* Hero left panel — reserva espaço para o bloco instagram absoluto */
.hero-left-panel {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.lp-brand-sub { margin-top: 0; }

/* Instagram — home */
.lp-instagram {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  z-index: 1;
}
.lp-instagram:hover { opacity: 0.7; }
.lp-instagram--mobile { display: none; }

/* Frase hero — mesma escala na home e no login */
.frase-hero {
  font-size: var(--fs-3xl);
}

@media (max-width: 1024px) {
  .login-bottom {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    order: -1;
  }

  .login-divider {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    order: 0;
  }

  .login-quote {
    font-size: var(--fs-2xl);
    order: 1;
  }

  .lp-instagram--desktop { display: none; }
  .lp-instagram--mobile  { display: flex; bottom: auto; top: var(--sp-8); left: var(--sp-5); }

  /* Login mobile — form em cima (50%), painel escuro embaixo (50%) */
  .login-form-panel           { order: -1; flex: 0 0 50%; }
  .split-layout__left--dark   { order: 0;  flex: 0 0 50%; border-bottom: none; }

  .frase-hero {
    font-size: var(--fs-2xl);
  }

}


/* ─────────────────────────────────────────────────────────────────
   GLOBAL
───────────────────────────────────────────────────────────────── */

.logo-img {
  display: block;
  width: auto;
  height: 48px;
}

.logo-img--sm { height: 36px; }
.logo-img--lg { height: 64px; }


/* ─────────────────────────────────────────────────────────────────
   LANDING PAGE (front-page)
───────────────────────────────────────────────────────────────── */

/* Espaçamentos dos elementos do painel esquerdo */
.lp-brand-name  { margin-bottom: 0; }
.lp-brand-sub   { margin-top: 0; margin-bottom: 40px; }
.frase-hero     { margin-bottom: 32px; }
.lp-accent      { margin-bottom: 24px; }
.lp-specialties { margin-bottom: 40px; font-size: 12px; font-weight: 400 !important; }

@media (max-width: 1024px) {
  .lp-brand-sub   { margin-bottom: 24px; }
  .frase-hero     { margin-bottom: 24px; }
  .lp-accent      { margin-bottom: 24px; }
  .lp-specialties { margin-bottom: 24px !important; font-size: 12px !important; font-weight: 400; }
  .hero-left-panel .btn--lg { padding: 0 var(--sp-5); }
}

.lp-hero {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Painel esquerdo */
.lp-left {
  position: relative;
  width: 46%;
  height: 100%;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}

.lp-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
}

.lp-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 32px;
}

.lp-accent-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 24px;
}

.lp-specialties {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-8);
}

/* Painel direito */
.lp-right {
  position: relative;
  width: 54%;
  height: 100%;
  overflow: hidden;
}

.lp-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.5s ease;
}

.lp-right:hover img { filter: brightness(0.88); }

.lp-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 55%, rgba(237,230,218,0.22) 100%);
  pointer-events: none;
}

/* Botão WhatsApp */
.btn-wpp {
  background: #25a244 !important;
  border-color: #25a244 !important;
}
.btn-wpp:hover:not(:disabled) {
  background: #1e8a39 !important;
  border-color: #1e8a39 !important;
}

@media (max-width: 768px) {
  .lp-hero { flex-direction: column; height: auto; overflow: visible; }
  .lp-right { order: -1; width: 100%; height: 50vh; }
  .lp-left { width: 100%; height: auto; padding: 48px 32px 64px; }
  .lp-phrase { font-size: clamp(32px, 9vw, 48px); }
}

@media (max-width: 512px) {
  .lp-phrase { font-size: clamp(28px, 10vw, 40px); }
}


/* ─────────────────────────────────────────────────────────────────
   LOGIN PAGE
───────────────────────────────────────────────────────────────── */

.login-wrap {
  display: flex;
  min-height: 100vh;
}

/* Painel esquerdo escuro */
.login-left {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.login-left__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.45;
  filter: grayscale(20%);
}

.login-left__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20,18,15,0.85) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(20,18,15,0.3) 0%, transparent 30%);
  pointer-events: none;
}

.login-left__top {
  position: relative;
  z-index: 1;
}

.login-left__bottom {
  position: relative;
  z-index: 1;
}

.login-left__name {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.08;
}

.login-left__name em { font-style: italic; }

.login-left__quote {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.38);
  max-width: 320px;
}

/* Painel direito branco */
.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  background: var(--white);
  position: relative;
}

.login-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.login-right__inner {
  width: 100%;
  max-width: 320px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}

.login-divider span {
  flex: 1;
  height: 1px;
  background: var(--line-lt);
}

/* Input de senha com toggle */
.login-senha-wrap { position: relative; }

.login-senha-wrap input { padding-right: 48px; }

.login-senha-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-lt);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}

.login-senha-toggle:hover { color: var(--muted); }

/* Rodapé */
.login-footer {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted-lt);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .login-wrap { flex-direction: column; }
  .login-left { flex: 0 0 220px; padding: 28px 24px; }
  .login-left__quote { display: none; }
  .login-right { flex: 1; padding: 40px 28px 56px; }
  .login-right::before { display: none; }
}


/* ─────────────────────────────────────────────────────────────────
   GALERIA DO CLIENTE
───────────────────────────────────────────────────────────────── */

/* Conteúdo principal da galeria */
.gal-content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--sp-5);
}

@media (max-width: 1024px) {
  .gal-content { padding: 32px 24px; }
}

@media (max-width: 540px) {
  .gal-content { padding: 24px 16px; }
}

/* Header sticky */
.gal-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}

.gal-header::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: 0.5;
}

.gal-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Hero do ensaio */
.gal-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}

.gal-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.gal-hero__title em { font-style: italic; font-weight: 300; }

.gal-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.gal-hero__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* Grade de fotos — grid linha por linha */
.gal-grid {
  padding: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
}

.gal-item {
  overflow: hidden;
  border-radius: var(--r);
  position: relative;
  cursor: pointer;
  background: var(--panel);
  aspect-ratio: 16 / 9;
}

.gal-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gal-item:hover img { transform: scale(1.04); }

.gal-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,26,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gal-item:hover .gal-item__overlay { background: rgba(28,28,26,0.28); }

.gal-item__expand {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
  color: rgba(255,255,255,0.95);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal-item:hover .gal-item__expand { opacity: 1; transform: scale(1); }

.gal-item__num {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.25s;
}

.gal-item:hover .gal-item__num { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,6,0.96);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open,
#lightbox.is-open { display: flex !important; animation: lb-fade .22s ease; }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r);
  display: block;
  animation: lb-slide .3s cubic-bezier(.25,.46,.45,.94);
}

@keyframes lb-slide { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }

.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lightbox__btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

.lightbox__close {
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--r);
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(2px); }

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .gal-header__inner { padding: 0 24px; }
  .gal-hero { padding: 40px 24px 32px; flex-direction: column; align-items: flex-start; }
  .gal-grid { padding: 0 0 32px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 540px) {
  .gal-header__inner { height: auto; min-height: 56px; padding: 8px 16px; flex-wrap: wrap; gap: 8px; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); padding: 0 0 32px; }
}


/* ─────────────────────────────────────────────────────────────────
   ADMIN — COMUM
───────────────────────────────────────────────────────────────── */

/* Labels menores no admin */
.admin-main .field label,
.admin-main label.field__label {
  font-size: 14px;
}

.admin-layout .label-caps {
  font-size: var(--fs-sm);
}

/* Card de ensaio (lista de ensaios) */
.ensaio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ensaio-card:hover {
  box-shadow: 0 4px 24px rgba(28,28,26,0.07);
  border-color: #d8d4ce;
}

.ensaio-card__thumb {
  height: 180px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.ensaio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ensaio-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.5) 100%);
}

.ensaio-card__count {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 500;
  background: rgba(0,0,0,0.35);
  padding: 4px 10px;
  border-radius: 40px;
}

.ensaio-card__body {
  padding: 16px 20px 14px;
}

.ensaio-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.ensaio-card__client {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.ensaio-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.ensaio-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: 10px 20px 14px;
  border-top: 1px solid var(--line);
}

/* Nav ativa com linha accent */
.sidebar__item--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--text);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 999;
}

.toast--visible,
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,28,26,0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay--visible,
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 400px;
  width: calc(100% - 48px);
  transform: translateY(-8px);
  transition: transform 0.2s;
  box-shadow: 0 8px 40px rgba(28,28,26,0.12);
}

.modal-overlay--visible .modal,
.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: var(--sp-2);
}

/* Empty state genérico */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--line-lt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--muted);
}

.empty-state__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

@media (max-width: 1024px) {
  .admin-main {
    padding: 24px 16px;
  }

  /* Sidebar vira uma linha no topo */
  .sidebar {
    width: 100%;
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 200;
    flex-direction: row;
    align-items: center;
    padding: 0 18px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }

  .sidebar__brand {
    flex-shrink: 0;
    padding: 0;
    border-bottom: none;
    margin-right: 8px;
  }

  .sidebar__brand p { font-size: 20px !important; }
  .sidebar__brand .label-caps { display: block; font-size: 10px !important; }

  .sidebar__nav {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    padding: 0;
    gap: 0;
  }

  .sidebar__label { display: none; }

  .sidebar__item {
    flex-shrink: 0;
    width: auto;
    height: 52px;
    padding: 0 12px;
    border-radius: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
  }

  .sidebar__item--active { border-bottom-color: var(--accent); }
  .sidebar__item--active::before { display: none; }

  .sidebar__footer {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
    border-top: none;
  }

  .sidebar__footer .sidebar__item { width: auto; }
}


/* ─────────────────────────────────────────────────────────────────
   ADMIN — CLIENTES — tabela vira cards no mobile
───────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .admin-main .table-wrap {
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .admin-main .table-wrap table,
  .admin-main .table-wrap tbody {
    display: block;
    width: 100%;
  }

  .admin-main .table-wrap thead { display: none; }

  .admin-main .table-wrap tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 12px;
    padding: 16px;
  }

  .admin-main .table-wrap td {
    display: block;
    padding: 0;
    border: none;
    font-size: 13px;
  }

  .admin-main .table-wrap td + td {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .admin-main .table-wrap td.td-actions {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}


/* ─────────────────────────────────────────────────────────────────
   SEARCH-CHECK — seleção de clientes com busca no form de ensaio
───────────────────────────────────────────────────────────────── */

.search-check {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}

.search-check__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft, #f8f8f6);
}

.search-check__icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-check__input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  padding: 0 !important;
  box-shadow: none !important;
}

.search-check__input::placeholder {
  color: var(--muted-lt, #b0aba3);
}

.search-check__list {
  max-height: 192px;
  overflow-y: auto;
}

.search-check__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}

.search-check__item:hover {
  background: var(--bg-soft, #f8f8f6);
}

.search-check__item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent, var(--text));
  cursor: pointer;
}

/* ── Galeria header ───────────────────────────────────────────────────────── */
.galeria-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .galeria-header {
    flex-direction: column;
  }

  .galeria-header__btn {
    width: 100%;
    justify-content: center;
    order: 99;
  }
}

/* ── Galeria — paginação responsiva ─────────────────────────────────────── */
@media (max-width: 540px) {
  .gal-pagination {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 32px 0 48px !important;
  }
}

/* ── Lightbox — mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #lb-prev  { left: 8px !important; }
  #lb-next  { right: 8px !important; }
  #lb-img   { max-width: 100vw !important; max-height: calc(100vh - 144px) !important; }
  #lb-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    padding: 0 16px !important;
    align-items: center !important;
  }
}
