/* Плитка витрины «Фото» — публикации (ui/post-grid.js), три в ряд,
   от края до края (1 в 1 с показом QTime). Литералы цвета — только
   themes.css, здесь их нет ни одного. */

.pf-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.pf-shot {
  position: relative;
  aspect-ratio: 3 / 4;
  border: none;
  padding: 0;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.pf-shot--add {
  display: grid;
  place-items: center;
  color: var(--text-faint);
  transition: color var(--fast) var(--ease);
}

.pf-shot--add .icon { width: var(--fs-xl); height: var(--fs-xl); }

@media (hover: hover) {
  .pf-shot--add:hover { color: var(--accent-text); }
}

.pf-shot__pin,
.pf-shot__menu {
  position: absolute;
  top: var(--sp-1);
  display: grid;
  place-items: center;
  width: var(--sp-6);
  height: var(--sp-6);
  border: none;
  border-radius: 50%;
  background: var(--veil);
  color: var(--on-badge);
  cursor: pointer;
}

.pf-shot__pin { left: var(--sp-1); }
.pf-shot__menu { right: var(--sp-1); }

.pf-shot__pin .icon,
.pf-shot__menu .icon { width: var(--fs-xs); height: var(--fs-xs); }

.pf-shot__views {
  position: absolute;
  left: var(--sp-1);
  bottom: var(--sp-1);
  display: flex;
  align-items: center;
  gap: .5ch;
  padding: 0 var(--sp-1);
  border-radius: var(--r-sm);
  background: var(--veil);
  color: var(--on-badge);
  font-size: var(--fs-2xs);
  font-weight: 600;
}

.pf-shot__views .icon { width: var(--fs-xs); height: var(--fs-xs); }

.pf-shot__many {
  position: absolute;
  right: var(--sp-1);
  bottom: var(--sp-1);
  color: var(--on-badge);
  filter: drop-shadow(0 1px 2px var(--veil));
}

.pf-shot__many .icon { width: var(--fs-sm); height: var(--fs-sm); }
