/* =========================================================
   gallery.css - styles used only by gallery.html
   ========================================================= */
.page-hero--gallery { background-image: url('../images/story-workshop.jpg'); background-position: center 55%; }

.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.gallery-filters button { border: 2px solid #e1e4e8; background: #fff; color: var(--text); font-weight: 600; font-size: .9rem; padding: .55rem 1.2rem; border-radius: 50rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.gallery-filters button:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.gallery-filters button.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(237, 28, 36, .3); }
.gallery-count { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 1.6rem; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo-grid .g-item { aspect-ratio: 4 / 3; animation: galIn .5s var(--ease) both; }
.photo-grid .g-item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.photo-grid .g-item.is-hidden { display: none; }
.photo-grid .g-overlay { flex-direction: column; gap: .5rem; padding: 1rem; text-align: center; background: linear-gradient(to top, rgba(237, 28, 36, .85), rgba(11, 15, 18, .6)); }
.photo-grid .g-overlay span { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.photo-grid .g-overlay { display: flex; align-items: center; justify-content: center; }
@keyframes galIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 1199.98px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .photo-grid .g-overlay span { display: none; } }
@media (max-width: 359.98px) { .photo-grid { grid-template-columns: 1fr; } }
