/* V21.6 — Memorial da Pessoa unificado por tema + ajuste mobile
   Objetivo: tema muda apenas aparência; estrutura, altura e responsividade ficam estáveis. */

html[data-theme="claro"] {
  --profile-bg: #f7fbff;
  --profile-dialog: #ffffff;
  --profile-dialog-border: rgba(14, 90, 138, .16);
  --profile-surface: #ffffff;
  --profile-surface-2: #f7fbff;
  --profile-panel: #ffffff;
  --profile-panel-soft: #f4f9fd;
  --profile-text: #10243d;
  --profile-heading: #10243d;
  --profile-muted: #5f7288;
  --profile-accent: #0e5a8a;
  --profile-accent-2: #c9973a;
  --profile-accent-soft: rgba(14, 90, 138, .10);
  --profile-line: #d7e4ef;
  --profile-shadow: 0 26px 70px rgba(16, 36, 61, .18);
  --profile-hero-bg: linear-gradient(135deg, rgba(255,255,255,.98), rgba(235,246,253,.96));
  --profile-card-bg: linear-gradient(180deg, #ffffff, #f7fbff);
  --profile-event-bg: linear-gradient(180deg, #ffffff, #eef7fc);
}

html[data-theme="pergaminho"] {
  --profile-bg: #efe2c8;
  --profile-dialog: #fff3dc;
  --profile-dialog-border: rgba(118, 69, 30, .26);
  --profile-surface: #fff3dc;
  --profile-surface-2: #f7e6c5;
  --profile-panel: rgba(255, 246, 225, .96);
  --profile-panel-soft: rgba(245, 226, 190, .68);
  --profile-text: #321f10;
  --profile-heading: #321f10;
  --profile-muted: #7a6346;
  --profile-accent: #76451e;
  --profile-accent-2: #b8892a;
  --profile-accent-soft: rgba(184, 137, 42, .16);
  --profile-line: #d7b985;
  --profile-shadow: 0 24px 54px rgba(66, 38, 14, .18);
  --profile-hero-bg: linear-gradient(135deg, rgba(255, 248, 230, .98), rgba(235, 210, 162, .88));
  --profile-card-bg: linear-gradient(180deg, #fffdf7, #f7ead1);
  --profile-event-bg: linear-gradient(180deg, #fff9ec, #f2dfb8);
}

html[data-theme="escuro"] {
  --profile-bg: #071118;
  --profile-dialog: #07141d;
  --profile-dialog-border: rgba(196, 149, 58, .34);
  --profile-surface: #0a1b26;
  --profile-surface-2: #0e2431;
  --profile-panel: rgba(10, 27, 38, .96);
  --profile-panel-soft: rgba(12, 35, 48, .82);
  --profile-text: #f8ead0;
  --profile-heading: #fff4dc;
  --profile-muted: rgba(248, 234, 208, .76);
  --profile-accent: #c4953a;
  --profile-accent-2: #e0bd72;
  --profile-accent-soft: rgba(196, 149, 58, .14);
  --profile-line: rgba(196, 149, 58, .28);
  --profile-shadow: 0 32px 90px rgba(0, 0, 0, .58);
  --profile-hero-bg:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.06), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(196,149,58,.12), transparent 34%),
    linear-gradient(145deg, rgba(10,27,38,.98), rgba(5,15,22,.98));
  --profile-card-bg: linear-gradient(180deg, rgba(10,26,37,.96), rgba(7,17,24,.96));
  --profile-event-bg: linear-gradient(180deg, rgba(14, 39, 53, .96), rgba(9, 23, 32, .96));
}

/* Modal e cabeçalho */
.profile-dialog {
  width: min(1120px, calc(100vw - 44px)) !important;
  max-width: 1120px !important;
  height: min(920px, calc(100dvh - 54px)) !important;
  max-height: calc(100dvh - 54px) !important;
  margin: 24px auto !important;
  padding: 22px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  border: 1px solid var(--profile-dialog-border) !important;
  background:
    radial-gradient(circle at 82% -12%, color-mix(in srgb, var(--profile-accent) 16%, transparent), transparent 30rem),
    var(--profile-dialog) !important;
  color: var(--profile-text) !important;
  box-shadow: var(--profile-shadow) !important;
}

.profile-dialog::backdrop {
  background: rgba(0, 0, 0, .54) !important;
  backdrop-filter: blur(8px) !important;
}

.profile-dialog .dialog-header {
  min-height: 42px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: var(--profile-heading) !important;
}

.profile-dialog .dialog-header h2 {
  color: var(--profile-heading) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  line-height: 1.1 !important;
}

#closeProfileDialog {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid var(--profile-line) !important;
  background: var(--profile-panel) !important;
  color: var(--profile-heading) !important;
  box-shadow: none !important;
  font-size: 0 !important;
}

#closeProfileDialog::before,
#closeProfileDialog::after {
  content: "" !important;
  position: absolute !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

#closeProfileDialog::before { transform: rotate(45deg) !important; }
#closeProfileDialog::after { transform: rotate(-45deg) !important; }

.profile-content {
  height: calc(100% - 56px) !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

.person-memorial {
  width: 100% !important;
  max-width: 1020px !important;
  height: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  gap: 14px !important;
  overflow: hidden !important;
  color: var(--profile-text) !important;
}

/* Cabeçalho do Memorial */
.person-memorial-hero {
  display: grid !important;
  grid-template-columns: 124px minmax(0, 1fr) 160px !important;
  gap: 20px !important;
  align-items: center !important;
  min-height: 224px !important;
  max-height: 224px !important;
  padding: 22px !important;
  overflow: hidden !important;
  border: 1px solid var(--profile-line) !important;
  border-radius: 26px !important;
  background: var(--profile-hero-bg) !important;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--profile-accent) 12%, transparent) !important;
}

.person-memorial-photo-wrap {
  justify-self: center !important;
  min-width: 0 !important;
}

.person-memorial-photo {
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  border-radius: 26px !important;
  border: 3px solid color-mix(in srgb, var(--profile-surface) 80%, #ffffff) !important;
  background: var(--profile-surface-2) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.memorial-photo-ribbon {
  background: color-mix(in srgb, var(--profile-accent) 82%, #000) !important;
  color: #fff8e8 !important;
  border: 1px solid color-mix(in srgb, var(--profile-accent-2) 50%, transparent) !important;
}

.memorial-photo-ribbon.live {
  background: color-mix(in srgb, #2d6a4f 78%, var(--profile-surface)) !important;
}

.person-memorial-headline,
.person-memorial-headline * {
  min-width: 0 !important;
}

.memorial-kicker {
  background: color-mix(in srgb, var(--profile-accent-soft) 70%, var(--profile-panel)) !important;
  border: 1px solid var(--profile-line) !important;
  color: var(--profile-accent-2) !important;
}

.person-memorial-headline h2 {
  color: var(--profile-heading) !important;
  font-size: clamp(2rem, 3.2vw, 2.7rem) !important;
  line-height: 1.03 !important;
  overflow-wrap: anywhere !important;
}

.memorial-route,
.memorial-quote,
.profile-section-title p,
.person-life-event p {
  color: var(--profile-muted) !important;
}

.memorial-quote {
  border-left-color: var(--profile-accent) !important;
  background: color-mix(in srgb, var(--profile-panel-soft) 80%, transparent) !important;
}

.memorial-badges span {
  background: var(--profile-panel-soft) !important;
  border: 1px solid var(--profile-line) !important;
  color: var(--profile-text) !important;
}

.person-memorial-actions {
  width: 160px !important;
  min-width: 160px !important;
  display: grid !important;
  gap: 9px !important;
}

.person-memorial-actions .button {
  width: 100% !important;
  min-height: 38px !important;
  border-color: var(--profile-line) !important;
}

/* Estatísticas, abas e painéis */
.person-memorial-stats {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-height: 76px !important;
  max-height: 90px !important;
  overflow: hidden !important;
}

.memorial-stat,
.memorial-card,
.person-life-event,
.relation-card,
.profile-text-section,
.person-memorial .profile-tab-panel,
.memorial-tab-standard,
.profile-source-panel {
  background: var(--profile-card-bg) !important;
  border: 1px solid var(--profile-line) !important;
  color: var(--profile-text) !important;
  box-shadow: none !important;
}

.memorial-stat {
  min-height: 74px !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.memorial-stat span,
.fact span,
.relation-card span,
.profile-section-title small {
  color: var(--profile-muted) !important;
}

.memorial-stat strong,
.memorial-card h3,
.profile-section-title h3,
.person-life-event strong,
.relation-card strong,
.profile-text-section h3 {
  color: var(--profile-heading) !important;
}

.person-memorial-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-height: 52px !important;
  max-height: 58px !important;
  padding: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid var(--profile-line) !important;
  border-radius: 20px !important;
  background: var(--profile-panel-soft) !important;
  scrollbar-width: thin !important;
}

.person-memorial-tabs .profile-tab {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 8px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: var(--profile-text) !important;
  background: transparent !important;
  white-space: nowrap !important;
}

.person-memorial-tabs .profile-tab.active,
.person-memorial-tabs .profile-tab:hover {
  background: color-mix(in srgb, var(--profile-accent) 28%, var(--profile-panel)) !important;
  border-color: var(--profile-line) !important;
  color: var(--profile-heading) !important;
}

.person-memorial .profile-tab-panel {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 22px !important;
  padding: 16px !important;
}

.person-memorial .profile-tab-panel:not(.active) {
  display: none !important;
}

.memorial-two-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr) !important;
  gap: 16px !important;
}

.memorial-card {
  border-radius: 22px !important;
}

.person-life-timeline::before {
  background: linear-gradient(var(--profile-accent), color-mix(in srgb, var(--profile-accent) 20%, transparent)) !important;
}

.person-life-event {
  background: var(--profile-event-bg) !important;
  border-radius: 18px !important;
}

.person-life-icon {
  background: var(--profile-panel) !important;
  border: 1px solid var(--profile-line) !important;
  color: var(--profile-accent) !important;
  box-shadow: none !important;
}

.person-life-icon .ui-icon {
  width: 18px !important;
  height: 18px !important;
}

.life-icon.ui-icon {
  display: inline-block !important;
  width: .9em !important;
  height: .9em !important;
  margin-left: 6px !important;
  color: currentColor !important;
  vertical-align: middle !important;
}

/* Galeria e documentos dentro do Memorial */
.person-memorial .profile-photo-card,
.person-memorial .premium-photo-card,
.premium-document-card,
.premium-documents-list .document-card,
.shared-memory-card {
  background: var(--profile-card-bg) !important;
  border: 1px solid var(--profile-line) !important;
  color: var(--profile-text) !important;
}

.photo-placeholder-visual,
.person-memorial .photo-placeholder-card {
  background: var(--profile-panel-soft) !important;
  border-color: var(--profile-line) !important;
  color: var(--profile-muted) !important;
}

/* Ajustes gerais para celular/tablet */
@media (max-width: 1050px) {
  .profile-dialog {
    width: min(96vw, 1120px) !important;
    height: auto !important;
    max-height: calc(100dvh - 20px) !important;
    margin: 10px auto !important;
    overflow-y: auto !important;
  }

  .profile-content,
  .person-memorial {
    height: auto !important;
    overflow: visible !important;
  }

  .person-memorial {
    grid-template-rows: none !important;
  }

  .person-memorial-hero {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .person-memorial-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .person-memorial-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-height: none !important;
  }

  .person-memorial .profile-tab-panel {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust: 100% !important;
  }

  .main {
    padding: 12px !important;
  }

  .topbar {
    margin-bottom: 12px !important;
  }

  .profile-dialog {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
  }

  .profile-dialog .dialog-header {
    position: sticky !important;
    top: -14px !important;
    z-index: 4 !important;
    padding: 10px 0 12px !important;
    background: var(--profile-dialog) !important;
    border-bottom: 1px solid var(--profile-line) !important;
  }

  .profile-dialog .dialog-header h2 {
    font-size: 1.35rem !important;
  }

  #closeProfileDialog {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .person-memorial {
    gap: 12px !important;
  }

  .person-memorial-hero {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 16px !important;
    text-align: center !important;
    border-radius: 22px !important;
  }

  .person-memorial-photo {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
  }

  .memorial-kicker,
  .memorial-badges {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .person-memorial-headline h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem) !important;
  }

  .memorial-quote {
    text-align: left !important;
  }

  .person-memorial-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .person-memorial-actions .button {
    min-height: 42px !important;
    white-space: normal !important;
  }

  .person-memorial-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .memorial-stat {
    min-height: 70px !important;
    padding: 10px !important;
  }

  .memorial-stat strong {
    font-size: .94rem !important;
    overflow-wrap: anywhere !important;
  }

  .person-memorial-tabs {
    margin-inline: -2px !important;
    padding: 7px !important;
    border-radius: 18px !important;
  }

  .person-memorial-tabs .profile-tab {
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: .92rem !important;
  }

  .person-memorial .profile-tab-panel {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .memorial-two-columns,
  .memorial-facts-compact,
  .premium-facts,
  .memorial-relations-grid,
  .profile-memory-grid,
  .person-memorial .profile-photo-gallery {
    grid-template-columns: 1fr !important;
  }

  .person-life-timeline {
    padding-left: 0 !important;
  }

  .person-life-timeline::before {
    display: none !important;
  }

  .person-life-event {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: start !important;
    padding: 12px !important;
  }

  .person-life-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .person-memorial .profile-photo-card,
  .person-memorial .premium-photo-card {
    min-height: auto !important;
  }

  .person-memorial .profile-tab-panel[data-profile-panel="fotos"] .profile-photo-gallery img,
  .person-memorial .profile-tab-panel[data-profile-panel="fotos"] img {
    height: auto !important;
    min-height: 0 !important;
    max-height: 280px !important;
  }
}

@media (max-width: 420px) {
  .person-memorial-actions,
  .person-memorial-stats {
    grid-template-columns: 1fr !important;
  }

  .person-memorial-headline h2 {
    font-size: 1.65rem !important;
  }

  .memorial-badges span {
    font-size: .72rem !important;
  }
}


/* =============================================================================
   V22 — FAMÍLIA DIRETA: redesign visual dos relation-cards
   Substituição completa do layout de grade simples por cards ricos com avatar,
   label tipado, nome em destaque e metadado.
   ============================================================================= */

/* Grid principal: 2 colunas para pais + cônjuge + blocos de filhos/irmãos */
.memorial-relations-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

/* Pai e Mãe ficam lado a lado na primeira linha */
/* Cônjuge ocupa uma coluna */
/* Filhos e Irmãos cada um ocupa uma coluna (ou 2 se sozinho) */
.memorial-siblings-card {
  grid-column: span 1 !important;
}

/* ── Card base ── */
.relation-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid var(--profile-line) !important;
  background: var(--profile-card-bg) !important;
  text-align: left !important;
  transition: border-color 140ms ease, box-shadow 140ms ease !important;
  min-height: 80px !important;
}

/* ── Label de tipo (Pai / Mãe / Cônjuge) ── */
.relation-card > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: fit-content !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: var(--profile-accent-soft) !important;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 22%, transparent) !important;
  color: var(--profile-accent) !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
}

/* ── Nome da pessoa ── */
.relation-card > strong {
  font-size: .98rem !important;
  font-weight: 700 !important;
  color: var(--profile-heading) !important;
  line-height: 1.2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

/* ── Metadado (localização, data de casamento) ── */
.relation-card > small {
  font-size: .76rem !important;
  color: var(--profile-muted) !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

/* ── Card clicável ── */
.relation-card-clickable {
  cursor: pointer !important;
}

.relation-card-clickable:hover {
  border-color: var(--profile-accent) !important;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--profile-accent) 14%, transparent) !important;
}

.relation-card-clickable:hover > strong {
  color: var(--profile-accent) !important;
}

/* ── Estado "Não informado" ── */
.relation-card:not(.relation-card-clickable):not(.relation-children-card) {
  opacity: .7 !important;
}

.relation-card:not(.relation-card-clickable):not(.relation-children-card) > strong {
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--profile-muted) !important;
}

/* ── Cards de lista: Filhos e Irmãos ── */
.relation-children-card {
  flex-direction: column !important;
  gap: 8px !important;
}

.relation-children-card > span {
  /* herda o estilo de label (badge de tipo) */
}

.relation-children-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.relation-children-list button {
  display: block !important;
  width: 100% !important;
  padding: 7px 10px !important;
  border: 1px solid var(--profile-line) !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--profile-accent-soft) 40%, transparent) !important;
  color: var(--profile-heading) !important;
  font-size: .84rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 120ms ease, border-color 120ms ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.relation-children-list button:hover {
  background: var(--profile-accent-soft) !important;
  border-color: color-mix(in srgb, var(--profile-accent) 35%, transparent) !important;
  color: var(--profile-accent) !important;
}

/* ── Responsivo: 1 coluna no mobile ── */
@media (max-width: 580px) {
  .memorial-relations-grid {
    grid-template-columns: 1fr !important;
  }
  .memorial-siblings-card {
    grid-column: span 1 !important;
  }
}


/* =============================================================================
   V22 — GALERIA DE FOTOS: skeleton de carregamento + melhorias visuais
   ============================================================================= */

/* Grid da galeria */
.profile-photo-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* Skeleton de carregamento */
.photos-loading-state {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  grid-column: 1 / -1 !important;
}

.photos-skeleton {
  height: 200px !important;
  border-radius: 14px !important;
  background: linear-gradient(
    90deg,
    var(--profile-panel-soft, rgba(14,90,138,.06)) 25%,
    var(--profile-line, #d7e4ef) 37%,
    var(--profile-panel-soft, rgba(14,90,138,.06)) 63%
  ) !important;
  background-size: 400% 100% !important;
  animation: skeleton-shimmer 1.4s ease infinite !important;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card de foto */
.profile-photo-card {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--profile-line) !important;
  background: var(--profile-panel-soft) !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-photo-card a {
  display: block !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
  background: var(--profile-panel-soft) !important;
}

.profile-photo-card a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 200ms ease !important;
}

.profile-photo-card:hover a img {
  transform: scale(1.04) !important;
}

.photo-card-info {
  padding: 10px 12px !important;
}

.photo-card-info strong {
  display: block !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
  color: var(--profile-heading) !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.photo-card-info span,
.photo-card-info small {
  font-size: .74rem !important;
  color: var(--profile-muted) !important;
}

/* Card placeholder (par visual) */
.photo-placeholder-card {
  opacity: .45 !important;
  border-style: dashed !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 160px !important;
}

.photo-placeholder-visual {
  font-size: 2rem !important;
  margin-bottom: 8px !important;
  opacity: .5 !important;
}

/* Badge de foto compartilhada */
.photo-shared-badge {
  display: inline-block !important;
  font-size: .7rem !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: var(--profile-accent-soft) !important;
  color: var(--profile-accent) !important;
  margin-top: 3px !important;
}

/* Mobile */
@media (max-width: 480px) {
  .profile-photo-gallery,
  .photos-loading-state {
    grid-template-columns: 1fr !important;
  }
}
