/* ==========================================================================
   Webonomics: gallery.css   (Client Gallery page)
   Four-column grid with category filters (M2 direction).
   ========================================================================== */

.wbn-gallery-head { padding: 70px 0 34px; }
.wbn-gallery-head h1 { font: 500 50px/1.1 var(--wbn-head); margin: 16px 0 14px; }
.wbn-gallery-head .wbn-lede { max-width: 620px; font-size: 17px; }

.wbn-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.wbn-filter { min-height: 40px; padding: 8px 16px; border: 1px solid var(--wbn-rule); border-radius: 30px; background: #fff; font: 400 14px var(--wbn-body); color: var(--wbn-slate); cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.wbn-filter:hover, .wbn-filter:focus-visible { color: var(--wbn-green); border-color: var(--wbn-green); }
.wbn-filter[aria-pressed="true"] { color: #fff; background: var(--wbn-green); border-color: var(--wbn-green); }
html:not(.js) .wbn-filters { display: none; }

.wbn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wbn-tile { display: flex; flex-direction: column; border: 1px solid var(--wbn-rule); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.wbn-tile:hover { border-color: #C9CFCD; box-shadow: 0 10px 30px rgba(20, 30, 40, .06); }
.wbn-tile[hidden] { display: none; }
/* Thumbnails are pre-graded (muted) in the files; the filter keeps any Media Library upload in step. */
.wbn-tile-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--wbn-rule); background: var(--wbn-mist); }
.wbn-tile-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); transition: filter .3s ease, transform .4s ease; }
a.wbn-tile-media:hover img, a.wbn-tile-media:focus-visible img { filter: saturate(.9); transform: scale(1.02); }
.wbn-tile-play { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--wbn-ink); font-size: 12px; transition: background-color .18s ease, color .18s ease; }
a.wbn-tile-media:hover .wbn-tile-play { background: var(--wbn-green); color: #fff; }
.wbn-tile figcaption { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.wbn-tile figcaption small { font: 600 11px var(--wbn-body); letter-spacing: .16em; text-transform: uppercase; color: var(--wbn-green); }
.wbn-tile figcaption b { font: 600 17px var(--wbn-head); color: var(--wbn-ink); }
.wbn-tile figcaption span { font-size: 14px; color: var(--wbn-slate); line-height: 1.5; }
.wbn-tile-link { margin-top: auto; padding-top: 10px; font: 600 14px var(--wbn-body); color: var(--wbn-ink); transition: color .18s ease; }
.wbn-tile-link:hover, .wbn-tile-link:focus-visible { color: var(--wbn-green); }

.wbn-gallery-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 64px 0 96px; padding: 40px; border: 1px solid var(--wbn-rule); border-radius: 12px; background: var(--wbn-green-tint); }
.wbn-gallery-cta h2 { font-weight: 500; font-size: 30px; }

@media (max-width: 960px) { .wbn-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
	.wbn-gallery-head { padding: 40px 0 24px; }
	.wbn-gallery-head h1 { font-size: 36px; }
	.wbn-grid { grid-template-columns: 1fr; gap: 18px; }
	.wbn-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; }
	.wbn-filter { flex: none; }
	.wbn-gallery-cta { flex-direction: column; align-items: flex-start; padding: 28px; margin: 40px 0 64px; }
}
