/* Life Timeline — Полноэкранный просмотр фото и всплывающие уведомления.
   Вынесено без изменений из app/life-timeline.html (строки 4261–4355 на 31.10.2026).
   Порядок подключения файлов важен: он повторяет исходный порядок правил. */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 34px;
  background: rgba(5, 8, 11, .78);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.photo-viewer.is-open {
  display: grid;
  pointer-events: auto;
}

.photo-viewer-frame {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: min(92vw, 1120px);
  max-height: 92vh;
}

.photo-viewer-frame img {
  max-width: 100%;
  max-height: calc(92vh - 42px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0,0,0,.52);
}

.photo-viewer-caption {
  color: rgba(238, 243, 239, .72);
  font-size: 12px;
  text-align: center;
}

.photo-viewer-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(238, 243, 239, .18);
  background: rgba(18, 22, 25, .92);
  color: rgba(238, 243, 239, .86);
  box-shadow: 0 10px 30px rgba(0,0,0,.34);
  touch-action: manipulation;
}

.photo-open-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
}

.photo-open-button img {
  width: 100%;
  height: 100%;
}

.app-toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 26px;
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(156, 200, 194, .24);
  border-radius: 8px;
  background: rgba(18, 22, 25, .92);
  color: rgba(229, 248, 244, .94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .34);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

