/* v1 page style, wrapped in the legacy layer (12.4, D49): the v2 base layers win over nothing, the page rules still beat the base */
@layer legacy {
/* gallery grid for thumbnails */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-grid .gallery-item {
  width: calc(50% - 0.5rem);  /* 2 items side by side on small screens */
}

@media (min-width: 992px) {
  .gallery-grid .gallery-item {
    width: calc(25% - 0.75rem); /* 4 items side by side on large screens */
  }
}

  /* ac1f24 theme */
  :root{--primary:#ac1f24;--text:#111;--bg:#fff}
  body{font-family:"Inter","Helvetica Neue",Arial,sans-serif;line-height:1.65;color:var(--text)}
  h2,h3{color:var(--primary);margin-top:1.2em}

  /* hover animation for thumbnails */
  .gallery-grid img{width:100%;border-radius:.5rem;box-shadow:0 4px 10px rgba(0,0,0,.15);transition:transform .35s cubic-bezier(0.25,0.8,0.25,1),box-shadow .35s ease;height:auto}
  .gallery-grid img:hover{transform:scale(1.08);box-shadow:0 10px 20px rgba(0,0,0,.25)}
  /* desktop layout: side-by-side using flex to avoid column glitches */

}
