/* QabrGuide — Default Theme
   Design tokens as CSS custom properties.
   All components reference these tokens; never hard-code colours or spacing. */

:root {
  /* ── Colour Palette ─────────────────────────────── */
  --color-primary:        #2D6A4F;   /* deep forest green — calm, respectful */
  --color-primary-dark:   #1B4332;
  --color-primary-light:  #52B788;
  --color-primary-subtle: #D8F3DC;

  --color-accent:         #B7791F;   /* warm gold — for highlights */
  --color-accent-subtle:  #FEF3C7;

  --color-danger:         #C0392B;
  --color-danger-subtle:  #FDECEA;
  --color-warning:        #D97706;
  --color-warning-subtle: #FEF9C3;
  --color-success:        #15803D;
  --color-success-subtle: #DCFCE7;
  --color-info:           #1D4ED8;
  --color-info-subtle:    #DBEAFE;

  /* ── Neutrals ───────────────────────────────────── */
  --color-bg:             #F8FAF9;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F0F4F2;
  --color-border:         #D1E0D8;
  --color-border-strong:  #A8C4B8;

  --color-text:           #1A2E25;
  --color-text-muted:     #4A6358;
  --color-text-subtle:    #7A9D8F;
  --color-text-inverse:   #FFFFFF;

  /* ── Typography ─────────────────────────────────── */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight:  1.25;
  --line-height-base:   1.6;
  --line-height-loose:  1.8;

  /* ── Spacing ────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ── Border Radius ──────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────── */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --shadow-card: 0 2px 8px rgba(45,106,79,.1);

  /* ── Transitions ─────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* ── Layout ──────────────────────────────────────── */
  --max-width-sm:  640px;
  --max-width-md:  768px;
  --max-width-lg:  1024px;
  --max-width-xl:  1280px;
  --nav-height:    60px;
}

.cemetery-card-hover {
  transition: background var(--transition-fast);
}
.cemetery-card-hover:hover {
  background: rgba(25, 135, 84, 0.07);
}

.qg-map-pin {
  background: var(--color-primary);
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.qg-hotspot-circle {
  fill: rgba(212, 168, 75, 0.22);
  stroke: rgba(180, 130, 40, 0.55);
  stroke-width: 2;
}

.qg-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.qg-map-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.qg-map-legend-pin {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.qg-map-legend-hotspot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(212, 168, 75, 0.35);
  border: 2px solid rgba(180, 130, 40, 0.6);
}

.qg-badge-cem-type,
.qg-badge-cem-verify {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-right: 4px;
  margin-bottom: 4px;
}

.qg-badge-cem-type--dedicated { background: #d1e7dd; color: #0f5132; }
.qg-badge-cem-type--section { background: #cff4fc; color: #055160; }
.qg-badge-cem-type--mixed { background: #e2e3e5; color: #41464b; }
.qg-badge-cem-type--verify { background: #fff3cd; color: #664d03; }
.qg-badge-cem-verify--confirmed { background: #d1e7dd; color: #0f5132; }
.qg-badge-cem-verify--org { background: #cfe2ff; color: #084298; }
.qg-badge-cem-verify--pending { background: #fff3cd; color: #664d03; }

.qg-cemetery-picker .form-select-lg,
.qg-cemetery-picker .qg-input {
  width: 100%;
}

.qg-cemetery-picker .row.g-3 {
  align-items: flex-end;
}

/* Mobile custom picker — replaces broken iOS native selects */
.qg-picker-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.qg-mobile-picker-btn {
  display: block;
  color: var(--color-text, #212529);
  background-color: #fff;
  cursor: pointer;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qg-mobile-picker-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.qg-picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.qg-picker-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.qg-picker-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.qg-picker-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 75vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.qg-picker-sheet.is-open .qg-picker-sheet-panel {
  transform: translateY(0);
}

.qg-picker-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.qg-picker-sheet-close {
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #666;
  padding: 0 0.25rem;
}

.qg-picker-sheet-search-wrap {
  padding: 0.75rem 1rem;
}

.qg-picker-sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.qg-picker-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 16px;
  color: #212529;
  cursor: pointer;
}

.qg-picker-sheet-item.is-selected {
  background: rgba(45, 106, 79, 0.08);
  color: var(--color-primary, #2D6A4F);
  font-weight: 600;
}

body.qg-picker-open {
  overflow: hidden;
}

/* iOS Safari: Bootstrap form-select strips native appearance and breaks pickers */
@media (pointer: coarse) {
  .qg-cemetery-picker select.form-select:not(.qg-picker-native-hidden) {
    -webkit-appearance: menulist;
    appearance: menulist;
    font-size: 16px;
    min-height: 48px;
    background-image: none;
    padding-right: 0.75rem;
  }
}

.cemetery-list-item {
  transition: background 0.15s, border-color 0.15s;
}

.cemetery-list-item:hover {
  background: rgba(25, 135, 84, 0.05);
}

.cemetery-list-item--active {
  background: rgba(25, 135, 84, 0.1) !important;
  border-color: var(--color-primary) !important;
}

/* Home hero - subtle Islamic geometry accents */
.home-hero-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-hero-geometry-layer {
  position: absolute;
  inset: 0;
}

.home-hero-geometry-layer.layer-a {
  opacity: 0.16;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.14) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 90% 18%, rgba(255,255,255,0.14) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 10% 82%, rgba(255,255,255,0.12) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 90% 82%, rgba(255,255,255,0.12) 0 2px, transparent 2px 100%);
}

.home-hero-geometry-layer.layer-b {
  opacity: 0.22;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23D9B466' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='80,14 99,33 127,33 140,56 127,79 99,79 80,98 61,79 33,79 20,56 33,33 61,33'/%3E%3Cpolygon points='80,42 95,57 117,57 127,74 117,91 95,91 80,106 65,91 43,91 33,74 43,57 65,57'/%3E%3Cpolygon points='0,94 19,113 47,113 60,136 47,159 19,159 0,178 -19,159 -47,159 -60,136 -47,113 -19,113'/%3E%3Cpolygon points='160,94 179,113 207,113 220,136 207,159 179,159 160,178 141,159 113,159 100,136 113,113 141,113'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
  background-position: center;
  mask-image:
    radial-gradient(circle at 7% 14%, #000 0 180px, transparent 205px),
    radial-gradient(circle at 93% 17%, #000 0 165px, transparent 190px),
    radial-gradient(circle at 10% 82%, #000 0 150px, transparent 178px),
    radial-gradient(circle at 91% 80%, #000 0 170px, transparent 198px),
    radial-gradient(circle at 2% 48%, #000 0 110px, transparent 130px),
    radial-gradient(circle at 98% 52%, #000 0 120px, transparent 142px),
    radial-gradient(circle at 50% 48%, transparent 0 300px, transparent 100%);
  -webkit-mask-image:
    radial-gradient(circle at 7% 14%, #000 0 180px, transparent 205px),
    radial-gradient(circle at 93% 17%, #000 0 165px, transparent 190px),
    radial-gradient(circle at 10% 82%, #000 0 150px, transparent 178px),
    radial-gradient(circle at 91% 80%, #000 0 170px, transparent 198px),
    radial-gradient(circle at 2% 48%, #000 0 110px, transparent 130px),
    radial-gradient(circle at 98% 52%, #000 0 120px, transparent 142px),
    radial-gradient(circle at 50% 48%, transparent 0 300px, transparent 100%);
}

.home-hero-geometry-layer.layer-c {
  opacity: 0.38;
  background:
    radial-gradient(circle at 50% 46%, rgba(27,67,50,0.62), transparent 39%),
    radial-gradient(circle at 50% 50%, transparent 0 250px, rgba(27,67,50,0.34) 360px);
}

/* Home page — desktop alignment */
/* ── Home hero action buttons ─────────────────────────────────── */
.home-hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.home-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-lg);
  padding: 13px var(--space-4);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.home-hero-btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.home-hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.home-hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.75);
}
.home-hero-btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }

.home-hero-btn-full { /* no special rule needed — all are full-width on mobile */ }

@media (min-width: 540px) {
  .home-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
  }
  .home-hero-btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 992px) {
  .home-hero-inner {
    max-width: 960px !important;
  }
  .home-hero-actions {
    max-width: 700px;
  }
  .home-steps-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .home-guide-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 991px) {
  .home-hero-geometry-layer.layer-b {
    opacity: 0.16;
    background-size: 130px 130px;
    mask-image:
      radial-gradient(circle at 5% 16%, #000 0 120px, transparent 138px),
      radial-gradient(circle at 95% 18%, #000 0 112px, transparent 130px),
      radial-gradient(circle at 8% 84%, #000 0 108px, transparent 126px),
      radial-gradient(circle at 92% 82%, #000 0 116px, transparent 136px),
      radial-gradient(circle at 50% 50%, transparent 0 215px, transparent 100%);
    -webkit-mask-image:
      radial-gradient(circle at 5% 16%, #000 0 120px, transparent 138px),
      radial-gradient(circle at 95% 18%, #000 0 112px, transparent 130px),
      radial-gradient(circle at 8% 84%, #000 0 108px, transparent 126px),
      radial-gradient(circle at 92% 82%, #000 0 116px, transparent 136px),
      radial-gradient(circle at 50% 50%, transparent 0 215px, transparent 100%);
  }

  .home-hero-geometry-layer.layer-c {
    opacity: 0.28;
    background:
      radial-gradient(circle at 50% 42%, rgba(27,67,50,0.66), transparent 33%),
      radial-gradient(circle at 50% 50%, transparent 0 170px, rgba(27,67,50,0.28) 250px);
  }
}

/* ── Photo upload (crop, preview, progress) ─────────────────── */
.qg-photo-upload {
  margin-bottom: var(--space-2);
}

.qg-photo-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.qg-photo-upload-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.qg-photo-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-photo-upload-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 10px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
}

.qg-photo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.qg-photo-upload-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
}

.qg-field-hint {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
  margin-top: 4px;
  line-height: 1.4;
}

.qg-photo-upload-tips {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}

.qg-photo-crop-modal {
  max-width: 100%;
  width: min(560px, 100vw - 24px);
}

.qg-photo-crop-wrap {
  max-height: 50vh;
  overflow: hidden;
  background: #111;
}

.qg-photo-crop-wrap img {
  max-width: 100%;
}

.qg-photo-crop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4);
  justify-content: center;
}

.qg-upload-progress {
  height: 8px;
  background: var(--color-surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.qg-upload-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 99px;
  transition: width 0.15s ease;
}

.qg-upload-progress-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

.badge-photo-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--color-warning-subtle, #fff3cd);
  color: var(--color-warning, #856404);
  margin-bottom: var(--space-3);
}

.qg-ocr-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}

.qg-ocr-panel pre {
  font-size: var(--font-size-sm);
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  margin: var(--space-2) 0;
}

/* ── Headstone photo ────────────────────────────────────────────────────── */
.qg-headstone-img-wrap {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-2);
  line-height: 0;
}

.qg-headstone-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}

.qg-headstone-img-wrap:hover .qg-headstone-img {
  opacity: 0.88;
}

.qg-headstone-zoom-hint {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}

.qg-headstone-img-wrap:hover .qg-headstone-zoom-hint {
  opacity: 1;
}

/* ── Comments & Tributes ────────────────────────────────────────────────── */
.qg-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.qg-comment-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.qg-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  user-select: none;
}

.qg-comment-body {
  flex: 1;
  min-width: 0;
  background: var(--color-surface-2, #f8f9fa);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
}

.qg-comment-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  flex-wrap: wrap;
}

.qg-comment-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.qg-comment-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
}

.qg-comment-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0 0 var(--space-1);
  word-break: break-word;
}

.qg-comment-photo-wrap {
  margin: var(--space-2) 0;
}

.qg-comment-photo-caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
  font-style: italic;
}

.qg-comment-reply-btn {
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  margin-top: var(--space-1);
}

.qg-comment-reply-btn:hover {
  text-decoration: underline;
}

.qg-comment-reply {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.qg-comment-reply-body {
  flex: 1;
  min-width: 0;
}

/* ── Gallery grid ───────────────────────────────────────────────────────── */
.qg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .qg-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.qg-gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-surface-2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qg-gallery-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.qg-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qg-gallery-pending-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  margin: 0 !important;
  font-size: 9px !important;
  padding: 2px 6px !important;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.qg-lightbox-modal {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
}

.qg-lightbox-img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.qg-lightbox-meta {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
}

.qg-lightbox-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  font-style: italic;
}

.qg-lightbox-info {
  display: flex;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.qg-lightbox-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Comment inline photo ────────────────────────────────────────────────── */
.qg-comment-photo {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s;
}

.qg-comment-photo:hover {
  opacity: 0.88;
}

/* ── Tribute photo hint ──────────────────────────────────────────────────── */
.qg-tribute-photo-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
}

.qg-tribute-caption-wrap {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
