/* kovalov.tattoo — лайтбокс эскиза.
   Общий для ленты на главной (.flash-card) и сетки на /flash (.fc):
   обе страницы грузят этот файл вместе с js/flash-zoom.js.
   Цвета берём из tokens.css, который подключён на обеих. */

/* Карточка открывается в лайтбоксе, поэтому курсор обещает увеличение.
   Ссылка «Забронировать» лежит выше и оставляет себе обычный курсор.
   .flash-card — лента на главной, .fc — сетка на /flash. */
.flash-card img,
.fc img { cursor: zoom-in; }
.flash-book,
.fc-book { cursor: pointer; }

/* ── Лайтбокс эскиза ───────────────────────────────────
   Ниже баннера согласия (900), выше шапки (300) и лупы (500). */
.fx {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  /* Боковые поля шире кнопок-стрелок (44px + 20px отступ), чтобы подпись
     под эскизом не наезжала на них на узком окне. */
  padding: 72px 84px 28px;
  background: rgba(11, 10, 8, 0.94);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.fx.open { display: flex; }
.fx.shown { opacity: 1; }
.fx-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-height: 100%;
  min-width: 0;
}
.fx-img {
  display: block;
  max-height: calc(100vh - 194px);
  max-width: min(88vw, 620px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
}
.fx-cap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.fx-id {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.fx-book {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--text);
  padding: 13px 26px;
  transition: opacity 0.2s ease;
}
.fx-book:hover { opacity: 0.82; }
.fx-book--done {
  background: none;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 25px;
}
.fx-btn {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease;
}
.fx-btn:hover { background: rgba(255, 255, 255, 0.16); }
.fx-close { top: 20px; right: 20px; width: 44px; height: 44px; }
.fx-nav { top: 50%; margin-top: -22px; width: 44px; height: 44px; }
.fx-prev { left: 20px; }
.fx-next { right: 20px; }
@media (max-width: 720px) {
  /* Стрелки уезжают под подпись, поэтому нижнее поле резервирует их полосу */
  .fx { padding: 56px 16px 86px; }
  .fx-img { max-height: calc(100vh - 212px); max-width: 88vw; }
  .fx-nav { top: auto; bottom: 20px; margin-top: 0; }
  .fx-prev { left: 22px; }
  .fx-next { right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx { transition: none; }
}
