/* =====================================================================
   PERFORMANCE — lighter effects on phones/tablets and for gallery photos.
   Loaded after the other stylesheets. Desktop keeps the full look.
   ===================================================================== */

/* Gallery photos: simple fade (no blur/scale on big images — that is what made scrolling laggy) */
.tile img { filter: none; transform: none; transition: opacity .35s ease; }
.tile.is-loaded img { filter: none; transform: none; }
.tile button.open:hover img { transform: none; }

/* Stop reserving GPU memory for hero items once they have appeared */
html.js body.is-revealed [data-hero-in] { will-change: auto; }

/* Phones & touch screens: no blur filters / glass blur, no whole-page fade */
@media (max-width: 900px), (hover: none) {
  html.js [data-hero-in], html.js [data-reveal] { filter: none; will-change: auto; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .site-header.is-scrolled, body:not([data-page="home"]) .site-header { background: rgba(6, 17, 12, .95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-ghost, .header-action .btn, .lb-btn, .tile .del, .confirm { -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { animation: none; }
}

/* Reduced motion: no transitions at all */
@media (prefers-reduced-motion: reduce) {
  .tile img { transition: none; }
}
