/* Extra styles specific to Projects page */
.page .masonry .tile { transition: transform .25s ease, box-shadow .25s ease; }
.page .masonry .tile:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.page .tile .btn.tiny { margin-top: 6px; }
.page .tag { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }


/* Subtle zoom on thumbnail hover */
.tile:hover .thumb { transform: translateY(-1px); transition: transform .2s ease; }

/* Проекты: адаптация для телефонов */
@media (max-width: 600px) {
  /* Сетка — по одному тайлу на строку */
  .masonry {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .tile {
    grid-column: span 1 !important;
    padding: 20px;
  }

  /* Уменьшить тени и анимации на мобильных (чтобы не лагало) */
  .page .masonry .tile {
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .page .masonry .tile:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .tile:hover .thumb {
    transform: none;
  }

  /* Кнопки tiny — более крупные для пальца */
  .page .tile .btn.tiny {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px; /* Better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Better spacing for tags on mobile */
  .page .tag {
    margin-right: 6px;
    margin-bottom: 8px;
  }
}
