/* Project gallery (full screen) — AVIRAX Builder */
.avg { --avg-off: 80px; --avg-panel: 400px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--avg-panel); background: #0b0b0b; color: #fff; height: calc(100vh - var(--avg-off)); height: calc(100svh - var(--avg-off)); min-height: 520px; overflow: hidden; }
.avg--large { height: 80vh; height: 80svh; min-height: 520px; }
.avg--medium { height: 65vh; height: 65svh; min-height: 520px; }
.avg--nopanel { grid-template-columns: minmax(0, 1fr); }
.avg--empty { display: block; height: auto; min-height: 0; padding: 120px 24px 40px; text-align: center; }
.avg__stage { position: relative; min-width: 0; min-height: 0; background: #111; overflow: hidden; }
.avg__zoom { all: unset; display: block; position: absolute; inset: 0; cursor: zoom-in; }
.avg__zoom:focus-visible { outline: 2px solid var(--brand, #ffd400); outline-offset: -4px; }
.avg__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease; }
.avg__img.is-swap { opacity: 0; }
.avg__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); pointer-events: none; }
.avg__strip { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.avg__thumbs { display: flex; gap: 6px; max-width: min(640px, 100%); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.avg__thumbs::-webkit-scrollbar { display: none; }
.avg__thumb { flex: 0 0 auto; width: 104px; height: 70px; padding: 0; border: 1px solid rgba(255,255,255,.25); background: #000; opacity: .55; cursor: pointer; transition: opacity .2s ease, border-color .2s ease; }
.avg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avg__thumb:hover, .avg__thumb.is-active { opacity: 1; }
.avg__thumb.is-active { border-color: var(--brand, #ffd400); }
.avg__arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.avg__arrow:hover { background: var(--brand, #ffd400); }
.avg__panel { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 2.5rem 2.5rem 6rem; background: #111; }
.avg__eyebrow { margin: 0; font-family: var(--font-display, inherit); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand, #ffd400); }
.avg__title { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(34px, 3.4vw, 54px); line-height: 1.02; text-transform: uppercase; color: #fff; }
.avg__meta { margin: .4rem 0 .6rem; display: grid; gap: .65rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1rem; }
.avg__meta div { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: baseline; }
.avg__meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.avg__meta dd { margin: 0; font-size: 15px; color: #fff; }
.avg__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); font-family: var(--font-display, inherit); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.avg__btn:hover { background: #fff; color: #111; }
.avg__link { align-self: flex-start; color: #fff; font-family: var(--font-display, inherit); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--brand, #ffd400); padding-bottom: 2px; }
.avg__link:hover { color: var(--brand, #ffd400); }

.avb-inner:has(> .avg) { padding-left: 0; padding-right: 0; max-width: none; }

/* full-screen viewer */
.avg-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.95); display: none; align-items: center; justify-content: center; }
.avg-lb.is-open { display: flex; }
.avg-lb__img { max-width: 94vw; max-height: 86vh; object-fit: contain; transition: opacity .25s ease; }
.avg-lb__btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.avg-lb__btn:hover { background: var(--brand, #ffd400); }
.avg-lb__close { top: 18px; right: 18px; }
.avg-lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.avg-lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.avg-lb__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .2em; }
html.avg-lock { overflow: hidden; }

@media (max-width: 1100px) { .avg { --avg-panel: 340px; } .avg__panel { padding: 2rem 1.75rem 5rem; } }
.avg__slides { display: none; }
@media (max-width: 900px) {
  .avg, .avg--large, .avg--medium { display: block; height: auto; min-height: 0; overflow: visible; }
  .avg__stage { display: flex; flex-direction: column; overflow: visible; background: #0b0b0b; }
  .avg__stage::after { display: none; }
  .avg__zoom { position: relative; inset: auto; height: 68vw; min-height: 240px; max-height: 62vh; }
  .avg:has(.avg__slides) .avg__zoom { display: none; }
  /* swipeable row of big pictures */
  .avg__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; cursor: zoom-in; }
  .avg__slides::-webkit-scrollbar { display: none; }
  .avg__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 2; max-height: 62vh; background: #111; }
  .avg__slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
  /* row of small pictures under it (also scrolls sideways) */
  .avg__strip { position: static; padding: 8px 0 12px; background: #0b0b0b; display: block; }
  .avg__arrow { display: none; }
  .avg__thumbs { max-width: none; width: 100%; gap: 6px; padding: 0 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .avg__thumb { width: 28vw; max-width: 130px; height: 19vw; max-height: 88px; scroll-snap-align: start; opacity: .6; }
  .avg__thumb.is-active { opacity: 1; border-width: 2px; }
  .avg__panel { padding: 1.6rem 1.25rem 2.25rem; gap: .9rem; }
  .avg__title { font-size: clamp(34px, 10vw, 44px); }
  .avg__btn { width: 100%; justify-content: center; }
  .avg-lb__prev { left: 8px; } .avg-lb__next { right: 8px; }
}
/* Showcase page: search + wheel list */
.avs-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.avs-q, .avs-wheel { height: 46px; padding: 0 14px; border: 1px solid rgba(8,8,8,.18); background: #fff; font: inherit; font-size: 14px; color: inherit; border-radius: 0; }
.avs-q { flex: 1 1 260px; min-width: 0; }
.avs-wheel { flex: 0 1 260px; max-width: 100%; }
.avs-q:focus, .avs-wheel:focus { outline: 2px solid var(--brand, #ffd400); outline-offset: 1px; }
.avs-none { margin: 24px 0; }
@media (max-width: 640px) { .avs-q, .avs-wheel { flex: 1 1 100%; } }
/* Collections filter panel on phones */
html.avs-lock, html.avs-lock body { overflow: hidden; }
.avs-apply { display: none; }
@media (max-width: 1100px) {
  .pl-side.is-open { display: flex; flex-direction: column; z-index: 1200; }
  .pl-side.is-open .pl-side__head { position: sticky; top: -1.35rem; z-index: 2; background: #fff; margin: -1.35rem -1.35rem 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid rgba(8,8,8,.08); }
  .pl-side.is-open .pl-side__close { width: 44px; height: 44px; display: grid; place-items: center; }
  .pl-side.is-open .avs-apply { display: block; position: sticky; bottom: -1.35rem; margin: auto -1.35rem -1.35rem; padding: 1rem 1.35rem calc(1rem + env(safe-area-inset-bottom)); background: var(--brand, #ffd400); color: #111; border: 0; font-family: var(--font-display, inherit); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
}
/* Project finder (under a project) */
.avs-browse { background: var(--soft, #f4f4f2); padding: 56px 20px 64px; }
.avs-browse__in { max-width: 1200px; margin: 0 auto; }
.avs-browse__t { margin: 0 0 22px; font-family: var(--font-display, inherit); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.avs-browse__bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 24px; }
.avs-browse__q { flex: 1 1 280px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid rgba(8,8,8,.18); background: #fff; font: inherit; font-size: 15px; border-radius: 0; }
.avs-browse__q:focus { outline: 2px solid var(--brand, #ffd400); outline-offset: 1px; }
.avs-browse__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.avs-browse__chips button { height: 48px; padding: 0 16px; border: 1px solid rgba(8,8,8,.18); background: #fff; font-family: var(--font-display, inherit); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.avs-browse__chips button:hover { border-color: var(--ink, #080808); }
.avs-browse__chips button.is-active { background: var(--brand, #ffd400); border-color: var(--brand, #ffd400); }
.avs-browse__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.avs-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(8,8,8,.07); color: inherit; text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.avs-pcard[hidden] { display: none; }
.avs-pcard:hover { transform: translateY(-3px); border-color: rgba(255,212,0,.6); }
.avs-pcard__img { display: block; aspect-ratio: 4 / 3; background: #e9e9e6; overflow: hidden; }
.avs-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avs-pcard__body { display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 16px; }
.avs-pcard__body small { font-family: var(--font-display, inherit); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-hover, #c9a200); }
.avs-pcard__body b { font-family: var(--font-display, inherit); font-size: 18px; line-height: 1.2; }
.avs-pcard__body em { font-style: normal; font-size: 13px; color: rgba(8,8,8,.55); }
.avs-browse__none { margin: 20px 0 0; color: rgba(8,8,8,.6); }
.avs-browse__all { margin: 26px 0 0; text-align: center; }
.avs-browse__all a { font-family: var(--font-display, inherit); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: inherit; border-bottom: 1px solid var(--brand, #ffd400); padding-bottom: 2px; text-decoration: none; }
@media (max-width: 1000px) { .avs-browse__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .avs-browse { padding: 40px 16px 48px; }
  .avs-browse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .avs-browse__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; width: calc(100% + 32px); }
  .avs-browse__chips::-webkit-scrollbar { display: none; }
  .avs-browse__chips button { flex: 0 0 auto; }
  .avs-pcard__body { padding: 10px 10px 12px; }
  .avs-pcard__body b { font-size: 16px; }
}
.avb-inner:has(> .avs-browse) { padding-left: 0; padding-right: 0; max-width: none; }
