/* Alumin Gallery: masonry grid (8px row units), FLIP-animated filtering, zoom lightbox. */
.acg {
	--b: var(--acg-brand, #14407A); --a: var(--acg-accent, #F9A03F);
	--fg: #14233A; --muted: #54667D; --line: #D5DDE7; --surface: #fff;
	box-sizing: border-box; background: #F3F6FA; color: var(--fg); border-radius: 8px;
	padding: clamp(16px, 3vw, 40px); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.5;
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.acg *, .acg *::before, .acg *::after { box-sizing: border-box; }
.acg-title { font: 700 clamp(28px, 4.5vw, 44px)/1.08 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.01em; margin: 0; color: var(--fg); text-wrap: balance; }
.acg-lede { max-width: 62ch; color: var(--muted); margin: 12px 0 0; }
.acg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.acg .acg-tab { font: 600 14px 'Inter', system-ui, sans-serif; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; text-transform: none; letter-spacing: 0; box-shadow: none; }
.acg .acg-tab .n { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.acg .acg-tab:hover { border-color: var(--b); background: var(--surface); color: var(--fg); }
.acg .acg-tab[aria-pressed="true"] { background: var(--b); color: #fff; border-color: var(--b); box-shadow: 0 3px 0 var(--a); }
.acg .acg-tab:focus-visible, .acg .acg-card:focus-visible, .acg-lb button:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

.acg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 8px; column-gap: 18px; }
.acg .acg-card { all: unset; box-sizing: border-box; display: block; cursor: zoom-in; margin-bottom: 18px; background: var(--surface); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); will-change: transform; }
.acg .acg-card .clip { display: block; overflow: hidden; }
.acg .acg-card .pic { display: block; position: relative; width: 100%; aspect-ratio: var(--ar); background-size: cover; background-position: center; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.acg .acg-card .pic::after { content: ""; position: absolute; inset: 0; }
.acg .acg-card:hover .pic { transform: scale(1.05); }
.acg .acg-card .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 14px; }
.acg .acg-card .cap b { font: 600 14px 'Inter', system-ui, sans-serif; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.acg .acg-card .cap i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--b); flex: none; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 2px solid var(--a); }
.acg .acg-card[hidden] { display: none !important; }

.acg-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(8, 18, 33, .94); display: none; color: #fff; touch-action: pan-y; font-family: 'Inter', system-ui, sans-serif; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.acg-lb.open { display: block; }
.acg-lb .stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 16px 96px; }
.acg-lb img { display: block; pointer-events: none; border-radius: 4px; transform-origin: 0 0; box-shadow: 0 20px 60px rgba(0,0,0,.45); -webkit-user-drag: none; max-width: none; }
.acg-lb .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.acg-lb .meta h2 { font: 700 20px 'Space Grotesk', system-ui, sans-serif; margin: 0; color: #fff; }
.acg-lb .meta p { margin: 2px 0 0; color: #B9C8DA; font-size: 14px; }
.acg-lb .count { font-size: 13px; color: #B9C8DA; font-variant-numeric: tabular-nums; }
.acg-lb button { position: absolute; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.acg-lb button:hover { background: rgba(255,255,255,.22); }
.acg-lb .x { top: 14px; right: 14px; }
.acg-lb .prev { left: 12px; top: 50%; margin-top: -24px; }
.acg-lb .next { right: 12px; top: 50%; margin-top: -24px; }
.acg-lb svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .acg-lb .prev, .acg-lb .next { top: auto; bottom: 90px; margin-top: 0; } .acg-lb .stage { padding-bottom: 150px; } }
@media (prefers-reduced-motion: reduce) { .acg .acg-card .pic { transition: none; } }
@media print { .acg, .acg-lb { display: none !important; } }
