/* AFN Portfolio & Gallery: scoped, theme-independent styles */
.afnpg { --afnpg-gap:18px; --afnpg-columns:3; --afnpg-ink:#182033; --afnpg-muted:#707b8e; --afnpg-line:#e9edf3; --afnpg-accent:#5f54e8; color:var(--afnpg-ink); width:100%; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.afnpg *, .afnpg *::before, .afnpg *::after { box-sizing:border-box; }
.afnpg button, .afnpg a { -webkit-tap-highlight-color:transparent; }
.afnpg [hidden] { display:none !important; }
.afnpg-filters { display:flex; align-items:center; justify-content:var(--afnpg-filter-align,center); flex-wrap:wrap; gap:8px; margin:0 0 27px; }
.afnpg-filter { border:1px solid #e8eaf1; background:#fff; color:#505a70; padding:10px 18px; border-radius:999px; font-family:inherit; font-weight:600; font-size:13px; line-height:1.4; cursor:pointer; transition:background .2s, color .2s, border-color .2s, transform .2s; }
.afnpg-filter:hover { transform:translateY(-1px); border-color:#c5c4e9; }
.afnpg-filter.is-active { background:#21263b; border-color:#21263b; color:#fff; }
.afnpg :is(button,a):focus-visible { outline:3px solid #a7a0ff; outline-offset:3px; }
.afnpg-grid { display:grid; grid-template-columns:repeat(var(--afnpg-columns),minmax(0,1fr)); gap:var(--afnpg-gap); align-items:stretch; }
.afnpg-item { min-width:0; min-height:0; border-radius:var(--afnpg-radius,14px); overflow:hidden; background:var(--afnpg-background,#fff); border:1px solid var(--afnpg-line); box-shadow:0 8px 28px rgba(34,43,76,.055); transition:transform .25s, box-shadow .25s; }
.afnpg--hover-lift .afnpg-item:hover { transform:translateY(-4px); box-shadow:0 15px 35px rgba(32,44,76,.11); }
.afnpg--no-shadow .afnpg-item, .afnpg--no-shadow .afnpg-item:hover { box-shadow:none !important; }
.afnpg-media { position:relative; overflow:hidden; background:#f0f2f7; aspect-ratio:4/3; }
.afnpg--square .afnpg-media { aspect-ratio:1/1; }
.afnpg--portrait .afnpg-media { aspect-ratio:3/4; }
.afnpg--landscape .afnpg-media { aspect-ratio:4/3; }
.afnpg--natural .afnpg-media { aspect-ratio:auto; }
.afnpg-image { display:block; height:100%; width:100%; object-fit:var(--afnpg-fit,cover); margin:0; border:0; transition:transform .55s cubic-bezier(.19,1,.22,1); }
.afnpg--natural .afnpg-image { height:auto; }
.afnpg--hover-lift .afnpg-item:hover .afnpg-image, .afnpg--hover-zoom .afnpg-item:hover .afnpg-image { transform:scale(1.055); }
.afnpg-zoom { position:absolute; inset:0; display:flex; align-items:flex-start; justify-content:flex-end; padding:13px; width:100%; height:100%; background:transparent; border:0; cursor:zoom-in; color:#fff; }
.afnpg-zoom-icon { display:grid; place-items:center; width:39px; height:39px; border:1px solid rgba(255,255,255,.55); background:rgba(14,22,40,.65); backdrop-filter:blur(8px); color:#fff; font:500 22px/1 system-ui,sans-serif; border-radius:50%; opacity:0; transform:translateY(5px); transition:opacity .2s, transform .2s; }
.afnpg-item:hover .afnpg-zoom-icon, .afnpg-zoom:focus-visible .afnpg-zoom-icon { opacity:1; transform:none; }
@media (hover:none) { .afnpg-zoom-icon { opacity:1; transform:none; } }
.afnpg-category { position:absolute; bottom:12px; left:12px; z-index:1; max-width:calc(100% - 24px); display:inline-block; border-radius:999px; background:rgba(12,22,43,.78); backdrop-filter:blur(8px); color:#fff; padding:6px 11px; font:600 11px/1.25 system-ui,sans-serif; }
.afnpg-details { padding:18px 20px 21px; }
.afnpg-title { margin:0 0 5px; color:var(--afnpg-ink); font-family:inherit !important; font-weight:700; font-size:17px; line-height:1.35; letter-spacing:-.02em; overflow-wrap:anywhere; }
.afnpg-client { margin:0 0 7px; color:var(--afnpg-accent); font-family:inherit; font-weight:600; font-size:12px; line-height:1.5; }
.afnpg-excerpt { margin:9px 0 0; color:var(--afnpg-muted); font-family:inherit; font-weight:400; font-size:13px; line-height:1.6; }
.afnpg-link { display:inline-flex; align-items:center; margin-top:13px; font-family:inherit; font-weight:600; font-size:12px; line-height:1.5; text-decoration:none !important; color:var(--afnpg-accent); }
.afnpg-link:hover { color:#3b2bc4; }
.afnpg--minimal .afnpg-item { box-shadow:none; border:0; border-radius:var(--afnpg-radius,9px); background:transparent; }
.afnpg--minimal .afnpg-details { padding:13px 2px 5px; }
.afnpg--minimal .afnpg-item:hover { box-shadow:none; }
.afnpg--overlay .afnpg-item { position:relative; border:0; min-height:210px; }
.afnpg--overlay .afnpg-details { position:absolute; left:0; right:0; bottom:0; padding:54px 19px 18px; background:linear-gradient(transparent,rgba(9,16,31,.87)); color:#fff; pointer-events:none; }
.afnpg--overlay .afnpg-title, .afnpg--overlay .afnpg-client, .afnpg--overlay .afnpg-excerpt, .afnpg--overlay .afnpg-link { color:#fff; }
.afnpg--overlay .afnpg-excerpt { opacity:.85; }
.afnpg--overlay .afnpg-link { pointer-events:auto; }
.afnpg--overlay .afnpg-category { bottom:auto; top:12px; }
.afnpg--masonry .afnpg-grid { display:block; columns:var(--afnpg-columns); column-gap:var(--afnpg-gap); }
.afnpg--masonry .afnpg-item { width:100%; break-inside:avoid; display:inline-block; vertical-align:top; margin:0 0 var(--afnpg-gap); }
.afnpg--masonry .afnpg-media { aspect-ratio:auto; }
.afnpg--masonry .afnpg-image { height:auto; }
.afnpg--masonry.afnpg--overlay .afnpg-item { min-height:0; }
.afnpg-no-match { color:var(--afnpg-muted); padding:15px; text-align:center; }
.afnpg-empty { padding:22px; border:1px dashed #d2d9e6; border-radius:12px; color:#657086; background:#fafbfe; font-size:14px; }
@media(max-width:850px) { .afnpg-grid { grid-template-columns:repeat(var(--afnpg-tablet-columns,2),minmax(0,1fr)); } .afnpg--masonry .afnpg-grid { columns:var(--afnpg-tablet-columns,2); } }
@media(max-width:540px) { .afnpg-grid { grid-template-columns:repeat(var(--afnpg-mobile-columns,1),minmax(0,1fr)); } .afnpg--masonry .afnpg-grid { columns:var(--afnpg-mobile-columns,1); } .afnpg-filter { padding:8px 13px; font-size:12px; } .afnpg-filters { gap:6px; margin-bottom:18px; } .afnpg-details { padding:15px 16px 19px; } .afnpg-zoom { width:37px; height:37px; } }
/* Global lightbox is created and managed on demand by the gallery JS. */
.afnpg-lightbox[hidden] { display:none !important; }
.afnpg-lightbox { position:fixed; z-index:2147483000; inset:0; display:flex; align-items:center; justify-content:center; padding:54px 68px 68px; background:rgba(8,12,25,.96); color:#fff; }
.afnpg-lb-photo { display:block; max-width:100%; max-height:calc(100vh - 145px); object-fit:contain; border-radius:4px; box-shadow:0 18px 60px rgba(0,0,0,.27); }
.afnpg-lb-caption { position:absolute; left:80px; right:80px; bottom:14px; text-align:center; pointer-events:none; font:400 14px/1.5 system-ui,sans-serif; color:#e3e4ee; }
.afnpg-lb-caption strong { font-weight:700; display:block; }
.afnpg-lb-btn { position:absolute; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; height:42px; width:42px; display:grid; place-items:center; border-radius:50%; cursor:pointer; font:400 26px/1 system-ui,sans-serif; }
.afnpg-lb-btn:hover { background:rgba(255,255,255,.25); }
.afnpg-lb-btn:focus-visible { outline:3px solid #c1baff; outline-offset:3px; }
.afnpg-lb-close { top:18px; right:22px; }
.afnpg-lb-prev { left:17px; top:50%; transform:translateY(-50%); }
.afnpg-lb-next { right:17px; top:50%; transform:translateY(-50%); }
.afnpg-lb-btn[disabled] { opacity:.3; cursor:default; }
@media(max-width:540px) { .afnpg-lightbox { padding:70px 10px 88px; } .afnpg-lb-photo { max-height:calc(100vh - 210px); } .afnpg-lb-prev { left:8px; } .afnpg-lb-next { right:8px; } .afnpg-lb-caption { left:30px; right:30px; bottom:20px; } .afnpg-lb-close { right:15px; } }
@media(prefers-reduced-motion:reduce) { .afnpg *, .afnpg *::before, .afnpg *::after { animation:none !important; transition:none !important; } }

/* Override inherited theme headings while remaining scoped to the gallery. */
.afnpg .afnpg-title { font-size:17px; line-height:1.35; font-weight:700; margin:0 0 6px; }
.afnpg--hover-none .afnpg-item:hover { transform:none; }
.afnpg--hover-none .afnpg-item:hover .afnpg-image { transform:none; }

/* v0.3: unobtrusive paging and improved touch hit targets. */
.afnpg-pagination { display:flex; flex-direction:column; align-items:center; gap:12px; margin:26px 0 0; }
.afnpg-load-more { background:var(--afnpg-accent); color:#fff; border:1px solid var(--afnpg-accent); border-radius:999px; font:600 14px/1.4 system-ui,sans-serif; padding:12px 26px; cursor:pointer; transition:filter .2s,transform .2s; }
.afnpg-load-more:hover { filter:brightness(.9); transform:translateY(-2px); }
.afnpg-count { color:var(--afnpg-muted); margin:0; font:400 12px/1.4 system-ui,sans-serif; }
.afnpg .afnpg-pagination[hidden] {display:none !important;}
/* The full card remains tappable for the lightbox on a phone. */
@media(max-width:540px) { .afnpg-zoom { width:100%; height:100%; } .afnpg-zoom-icon { width:37px; height:37px; } }

.afnpg-category { pointer-events:none; }

/* v0.4: market-ready preset looks. Default 'custom' is unchanged from v0.3. */
.afnpg--filters-underline .afnpg-filters { gap:20px; border-bottom:1px solid #e8eaf1; }
.afnpg--filters-underline .afnpg-filter { background:transparent; color:var(--afnpg-ink); border:0; border-bottom:3px solid transparent; border-radius:0; padding:10px 3px 12px; box-shadow:none; }
.afnpg--filters-underline .afnpg-filter.is-active { color:var(--afnpg-accent); border-bottom-color:var(--afnpg-accent); }
.afnpg--filters-square .afnpg-filter { border-radius:7px; }
.afnpg--filters-square .afnpg-filter.is-active { background:var(--afnpg-accent); border-color:var(--afnpg-accent); color:#fff; }
.afnpg--preset-editorial .afnpg-item { border-color:#e8e2dc; box-shadow:0 7px 24px rgba(77,55,37,.055); }
.afnpg--preset-editorial .afnpg-media { background:#f5f0ea; }
.afnpg--preset-editorial .afnpg-filter.is-active { background:#302923; border-color:#302923; color:#fff; }
.afnpg--preset-editorial.afnpg--filters-underline .afnpg-filter.is-active { background:transparent; border-bottom-color:var(--afnpg-accent); color:var(--afnpg-accent); }
.afnpg--preset-midnight .afnpg-item { border-color:#263650; box-shadow:0 14px 32px rgba(11,16,28,.17); }
.afnpg--preset-midnight .afnpg-media { background:#0d1726; }
.afnpg--preset-midnight .afnpg-filters { background:#121c2f; border-radius:15px; border-color:#35415b; padding:13px 18px; }
.afnpg--preset-midnight .afnpg-filter { background:#141d30; border-color:#35415b; color:#dee4f4; }
.afnpg--preset-midnight .afnpg-filter.is-active { background:#7568e8; border-color:#7568e8; color:#fff; }
.afnpg--preset-midnight.afnpg--filters-underline .afnpg-filter { background:transparent; border-color:transparent; }
.afnpg--preset-midnight.afnpg--filters-underline .afnpg-filter.is-active { background:transparent; color:#7568e8; border-bottom-color:#7568e8; }
.afnpg--preset-midnight .afnpg-excerpt { color:#bac4df; }
.afnpg--preset-midnight .afnpg-client, .afnpg--preset-midnight .afnpg-link { color:#b6adff; }
.afnpg--preset-soft .afnpg-item { border-color:#f5dae8; box-shadow:0 10px 28px rgba(161,71,110,.085); }
.afnpg--preset-soft .afnpg-media { background:#fff0f6; }
.afnpg--preset-soft .afnpg-filter.is-active { background:#b74475; border-color:#b74475; color:#fff; }
.afnpg--preset-soft.afnpg--filters-underline .afnpg-filter.is-active { background:transparent; color:#b74475; border-bottom-color:#b74475; }
.afnpg--preset-soft .afnpg-category { background:rgba(112,36,73,.82); }
.afnpg-lb-counter { position:absolute; right:82px; top:29px; font:600 13px/1.5 system-ui,sans-serif; color:#e9e9f4; }
@media(max-width:540px){ .afnpg-lb-counter { right:69px; top:27px; } .afnpg--filters-underline .afnpg-filters { gap:12px; } }

/* v0.5: independently styled category badges and filter buttons. */
.afnpg .afnpg-category-stack{
  position:absolute;left:12px;bottom:12px;z-index:3;display:flex;flex-wrap:wrap;
  align-items:flex-start;gap:6px;max-width:calc(100% - 24px);pointer-events:none;
}
.afnpg.afnpg--badge-top-left .afnpg-category-stack{top:12px;bottom:auto;left:12px;right:auto;}
.afnpg.afnpg--badge-top-right .afnpg-category-stack{top:12px;bottom:auto;right:12px;left:auto;justify-content:flex-end;}
.afnpg.afnpg--badge-bottom-left .afnpg-category-stack{bottom:12px;top:auto;left:12px;right:auto;}
.afnpg.afnpg--badge-bottom-right .afnpg-category-stack{bottom:12px;top:auto;right:12px;left:auto;justify-content:flex-end;}
.afnpg .afnpg-category-stack .afnpg-category{
  position:relative;inset:auto;display:inline-block;max-width:100%;white-space:normal;
  padding:var(--afnpg-badge-y,6px) var(--afnpg-badge-x,11px);
  border-radius:var(--afnpg-badge-radius,99px);background:var(--afnpg-badge-bg,#0c162b);
  background:color-mix(in srgb,var(--afnpg-badge-bg,#0c162b) calc(var(--afnpg-badge-opacity,.78) * 100%),transparent);
  color:var(--afnpg-badge-ink,#fff);font-size:var(--afnpg-badge-size,11px);
  line-height:1.25;letter-spacing:normal;text-align:center;backdrop-filter:blur(8px);
}
.afnpg.afnpg--badge-case-uppercase .afnpg-category{text-transform:uppercase;}
.afnpg.afnpg--badge-case-capitalize .afnpg-category{text-transform:capitalize;}
.afnpg .afnpg-filter-count{display:inline-flex;justify-content:center;align-items:center;min-width:17px;
  border-radius:20px;font-size:10px;margin-left:6px;opacity:.8;}
.afnpg.afnpg--preset-custom .afnpg-filter,
.afnpg.afnpg--preset-editorial .afnpg-filter,
.afnpg.afnpg--preset-midnight .afnpg-filter,
.afnpg.afnpg--preset-soft .afnpg-filter{
  background:var(--afnpg-filter-bg,#fff);color:var(--afnpg-filter-ink,#505a70);
  border-color:var(--afnpg-filter-border,#e8eaf1);
}
.afnpg .afnpg-filter.is-active,
.afnpg.afnpg--preset-custom .afnpg-filter.is-active,
.afnpg.afnpg--preset-editorial .afnpg-filter.is-active,
.afnpg.afnpg--preset-midnight .afnpg-filter.is-active,
.afnpg.afnpg--preset-soft .afnpg-filter.is-active{
  background:var(--afnpg-filter-active-bg,#21263b);
  color:var(--afnpg-filter-active-ink,#fff);border-color:var(--afnpg-filter-active-bg,#21263b);
}
.afnpg.afnpg--filters-underline .afnpg-filter,
.afnpg.afnpg--filters-underline .afnpg-filter.is-active{
  background:transparent;border-color:transparent;border-bottom:3px solid transparent;
}
.afnpg.afnpg--filters-underline .afnpg-filter.is-active{
  border-bottom-color:var(--afnpg-filter-active-bg,#21263b);
  color:var(--afnpg-filter-active-bg,#21263b);
}
@media(max-width:540px){.afnpg .afnpg-category-stack{gap:4px;}.afnpg .afnpg-category-stack .afnpg-category{font-size:min(var(--afnpg-badge-size,11px),14px);}}


/* v0.6: optional instant search. Scoped; neutral defaults preserve existing galleries. */
.afnpg-search-wrap { margin:0 auto 22px; width:min(100%, var(--afnpg-search-width,420px)); }
.afnpg-search-label { display:block; font:600 12px/1.4 system-ui,sans-serif; color:var(--afnpg-ink); margin-bottom:7px; }
.afnpg-search-box { display:flex; align-items:center; gap:8px; min-height:46px; border:1px solid var(--afnpg-search-border,#dce3ef); border-radius:12px; background:var(--afnpg-search-bg,#fff); padding:0 12px; transition:border-color .18s,box-shadow .18s; }
.afnpg-search-box:focus-within { border-color:var(--afnpg-accent,#5f54e8); box-shadow:0 0 0 3px color-mix(in srgb,var(--afnpg-accent,#5f54e8) 14%, transparent); }
.afnpg-search-icon { font:500 24px/1 system-ui,sans-serif; color:var(--afnpg-search-ink,#1d2739); opacity:.65; }
.afnpg .afnpg-search-input { display:block; min-width:0; width:100%; flex:1; border:0 !important; padding:12px 0; outline:0 !important; box-shadow:none !important; background:transparent !important; color:var(--afnpg-search-ink,#1d2739) !important; font:400 14px/1.5 system-ui,sans-serif; }
.afnpg .afnpg-search-input::-webkit-search-cancel-button { display:none; }
.afnpg .afnpg-search-input::placeholder { opacity:.68; color:var(--afnpg-search-ink,#1d2739); }
.afnpg .afnpg-search-clear { flex:0 0 30px; width:30px; height:30px; line-height:1; padding:0; display:grid; place-items:center; background:transparent; border:0; border-radius:50%; color:var(--afnpg-search-ink,#1d2739); font-size:22px; cursor:pointer; }
.afnpg .afnpg-search-clear:hover { background:rgba(116,123,144,.12); }
.afnpg .afnpg-search-clear[hidden] { display:none !important; }
.afnpg-no-match[role="status"] { border:1px dashed var(--afnpg-line,#e9edf3); border-radius:12px; }
@media (max-width:540px) { .afnpg-search-wrap { margin-bottom:18px; } .afnpg-search-box { min-height:44px; } }

/* v0.7 — Media-box-inspired (original) responsive tiles, sort, hover and video preview. */
.afnpg-sort-wrap { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin:-9px 0 19px; }
.afnpg-sort-wrap label { font:600 12px/1.4 system-ui,sans-serif; color:var(--afnpg-ink); }
.afnpg .afnpg-sort { max-width:210px; min-width:165px; min-height:42px; padding:9px 34px 9px 12px; border:1px solid var(--afnpg-filter-border,#e0e5ee); border-radius:10px; background:var(--afnpg-filter-bg,#fff); color:var(--afnpg-filter-ink,#233047); font:500 13px/1.3 system-ui,sans-serif; cursor:pointer; }
.afnpg .afnpg-sort:focus-visible { outline:3px solid var(--afnpg-accent); outline-offset:2px; }
.afnpg--metro .afnpg-grid { display:grid; grid-template-columns:repeat(var(--afnpg-columns), minmax(0,1fr)); grid-auto-flow:row dense; }
.afnpg--metro .afnpg-item:nth-child(7n+1) { grid-column:span 2; grid-row:span 2; }
.afnpg--metro .afnpg-media { height:100%; min-height:230px; aspect-ratio:auto; }
.afnpg--metro .afnpg-image { height:100%; object-fit:cover; }
.afnpg--metro .afnpg-item:nth-child(7n+1) .afnpg-media { min-height:calc(460px + var(--afnpg-gap)); }
.afnpg--justified .afnpg-grid { display:flex; flex-wrap:wrap; align-items:stretch; }
.afnpg--justified .afnpg-item { flex:1 1 calc(var(--afnpg-row-height,230px) * var(--afnpg-proportion,1.3)); min-width:min(100%, 170px); }
.afnpg--justified .afnpg-media { height:var(--afnpg-row-height,230px); aspect-ratio:auto; }
.afnpg--justified .afnpg-image { width:100%; height:100%; object-fit:cover; }
.afnpg--justified.afnpg--natural .afnpg-image { height:100%; }
.afnpg--overlayfx-dark .afnpg-media::after,
.afnpg--overlayfx-accent .afnpg-media::after { position:absolute; inset:0; content:""; z-index:1; opacity:0; pointer-events:none; transition:opacity .28s ease; }
.afnpg--overlayfx-dark .afnpg-media::after { background:linear-gradient(135deg,rgba(5,11,24,.08),rgba(5,11,24,.52)); }
.afnpg--overlayfx-accent .afnpg-media::after { background:color-mix(in srgb,var(--afnpg-accent) 35%,transparent); }
.afnpg--overlayfx-dark .afnpg-item:hover .afnpg-media::after,
.afnpg--overlayfx-accent .afnpg-item:hover .afnpg-media::after { opacity:1; }
.afnpg--overlayfx-dark .afnpg-zoom,
.afnpg--overlayfx-accent .afnpg-zoom { z-index:2; }
.afnpg--overlayfx-dark .afnpg-category-stack,
.afnpg--overlayfx-accent .afnpg-category-stack { z-index:3; }
.afnpg-lb-video { width:min(92vw,1100px); height:min(71vh,620px); max-width:100%; border:0; background:#000; border-radius:8px; }
.afnpg-lb-share { position:absolute; top:20px; left:20px; color:#fff; padding:9px 16px; border:1px solid rgba(255,255,255,.25); border-radius:10px; background:rgba(255,255,255,.12); font:600 13px/1.4 system-ui,sans-serif; cursor:pointer; }
.afnpg-lb-share:hover { background:rgba(255,255,255,.22); }
.afnpg-lb-share[hidden] { display:none !important; }
@media(max-width:850px) {
 .afnpg--metro .afnpg-grid { grid-template-columns:repeat(var(--afnpg-tablet-columns,2),minmax(0,1fr)); }
 .afnpg--justified .afnpg-media { height:min(230px,var(--afnpg-row-height)); }
}
@media(max-width:540px) {
 .afnpg--metro .afnpg-grid { grid-template-columns:repeat(var(--afnpg-mobile-columns,1),minmax(0,1fr)); }
 .afnpg--metro .afnpg-item:nth-child(7n+1) { grid-column:auto;grid-row:auto; }
 .afnpg--metro .afnpg-item:nth-child(7n+1) .afnpg-media { min-height:230px; }
 .afnpg--justified .afnpg-item { flex-basis:100%; }
 .afnpg-sort-wrap { justify-content:stretch; margin:0 0 18px; }
 .afnpg .afnpg-sort { flex:1; max-width:none; }
 .afnpg-lb-share { top:22px; left:12px; }
}

/* v0.8: coordinated, responsive search & sort controls. Scoped to AFN gallery. */
.afnpg .afnpg-controls {display:flex;flex-direction:column;gap:0;margin:0 0 var(--afnpg-toolbar-bottom,24px);min-width:0;}
.afnpg .afnpg-controls .afnpg-filters {order:0;margin:0 0 18px;}
.afnpg .afnpg-controls .afnpg-toolbar {order:1;}
.afnpg .afnpg-controls--toolbar-above .afnpg-toolbar {order:0;margin-bottom:18px;}
.afnpg .afnpg-controls--toolbar-above .afnpg-filters {order:1;margin-bottom:0;}
.afnpg .afnpg-toolbar {display:flex;align-items:flex-end;justify-content:space-between;gap:var(--afnpg-toolbar-gap,20px);width:100%;min-width:0;flex-wrap:nowrap;}
.afnpg .afnpg-toolbar--plain {background:transparent;border:0;padding:0;}
.afnpg .afnpg-toolbar--card {background:var(--afnpg-toolbar-bg,#fff);border:1px solid var(--afnpg-toolbar-border,#e4e9f2);border-radius:var(--afnpg-toolbar-radius,16px);padding:var(--afnpg-toolbar-padding,16px);box-shadow:0 10px 30px rgba(20,29,49,.04);}
.afnpg .afnpg-toolbar .afnpg-search-wrap {flex:1 1 300px;width:min(100%,var(--afnpg-search-width,420px));max-width:var(--afnpg-search-width,420px);min-width:0;margin:0;}
.afnpg .afnpg-toolbar .afnpg-sort-wrap {display:flex;flex:0 1 var(--afnpg-sort-width,220px);min-width:160px;max-width:var(--afnpg-sort-width,220px);flex-direction:column;align-items:stretch;justify-content:flex-end;gap:7px;margin:0;}
.afnpg .afnpg-toolbar .afnpg-sort-wrap label {display:block;line-height:1.4;margin:0;}
.afnpg .afnpg-toolbar .afnpg-sort {flex:none;display:block;width:100%;max-width:none;min-width:0;min-height:46px;margin:0;}
.afnpg .afnpg-toolbar--labels-visually-hidden .afnpg-search-label,
.afnpg .afnpg-toolbar--labels-visually-hidden .afnpg-sort-wrap label {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.afnpg .afnpg-toolbar--centered {justify-content:center;}
.afnpg .afnpg-toolbar--stacked {flex-direction:column;justify-content:center;align-items:center;}
.afnpg .afnpg-toolbar--stacked .afnpg-search-wrap {flex:0 1 auto;width:min(100%,var(--afnpg-search-width,420px));}
.afnpg .afnpg-toolbar--stacked .afnpg-sort-wrap {flex:0 1 auto;width:min(100%,var(--afnpg-sort-width,220px));}
@media (max-width:700px) {
 .afnpg .afnpg-toolbar {flex-direction:column;align-items:stretch;gap:min(var(--afnpg-toolbar-gap,20px),18px);}
 .afnpg .afnpg-toolbar .afnpg-search-wrap,
 .afnpg .afnpg-toolbar .afnpg-sort-wrap,
 .afnpg .afnpg-toolbar--stacked .afnpg-search-wrap,
 .afnpg .afnpg-toolbar--stacked .afnpg-sort-wrap {flex:0 1 auto;width:100%;max-width:100%;min-width:0;}
 .afnpg .afnpg-toolbar--mobile-sort-first .afnpg-sort-wrap {order:0;}
 .afnpg .afnpg-toolbar--mobile-sort-first .afnpg-search-wrap {order:1;}
 .afnpg .afnpg-toolbar--mobile-search-first .afnpg-search-wrap {order:0;}
 .afnpg .afnpg-toolbar--mobile-search-first .afnpg-sort-wrap {order:1;}
 .afnpg .afnpg-toolbar .afnpg-sort {min-height:44px;}
}
