.ufco-full-gallery,
.ufco-full-gallery *{box-sizing:border-box}

.ufco-full-gallery{
  width:min(1500px,calc(100% - 28px));
  margin:24px auto 56px;
  color:#f7f8fb;
  font-family:inherit;
  scroll-margin-top:94px;
}

.ufco-full-gallery-hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  min-height:220px;
  padding:34px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px 24px 0 0;
  background:
    radial-gradient(circle at 80% 20%,rgba(124,58,237,.22),transparent 27rem),
    radial-gradient(circle at 18% 120%,rgba(56,189,248,.10),transparent 24rem),
    linear-gradient(135deg,#111722,#080b11 72%);
}

.ufco-full-gallery-hero::after{
  content:"";
  position:absolute;
  right:-70px;
  top:-110px;
  width:320px;
  height:320px;
  border:1px solid rgba(196,181,253,.10);
  border-radius:50%;
  box-shadow:
    0 0 0 42px rgba(196,181,253,.025),
    0 0 0 84px rgba(196,181,253,.018);
  pointer-events:none;
}

.ufco-full-gallery-hero-copy{
  position:relative;
  z-index:1;
  max-width:790px;
}

.ufco-full-gallery-eyebrow{
  display:block;
  margin-bottom:11px;
  color:#b99cf6;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ufco-full-gallery-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(38px,5vw,66px);
  font-weight:850;
  line-height:.98;
  letter-spacing:-.055em;
}

.ufco-full-gallery-hero p{
  max-width:720px;
  margin:18px 0 0;
  color:#a5adba;
  font-size:13px;
  line-height:1.7;
}

.ufco-full-gallery-hero-stat{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  min-width:138px;
  padding:17px 20px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(5,8,13,.48);
  text-align:right;
  backdrop-filter:blur(12px);
}

.ufco-full-gallery-hero-stat strong{
  display:block;
  color:#fff;
  font-size:31px;
  line-height:1;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}

.ufco-full-gallery-hero-stat span{
  display:block;
  margin-top:6px;
  color:#8f99a9;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.ufco-full-gallery-controls{
  padding:20px 22px 18px;
  border-right:1px solid rgba(255,255,255,.09);
  border-left:1px solid rgba(255,255,255,.09);
  background:#0b0f16;
}

.ufco-full-gallery-search-row{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto auto;
  gap:10px;
  align-items:center;
}

.ufco-full-gallery-search{
  position:relative;
  display:flex;
  align-items:center;
  min-height:44px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  background:#080b10;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.ufco-full-gallery-search:focus-within{
  border-color:rgba(155,92,246,.58);
  box-shadow:0 0 0 3px rgba(155,92,246,.09);
}

.ufco-full-gallery-search>span{
  padding-left:13px;
  color:#8c96a5;
  font-size:17px;
}

.ufco-full-gallery-search input{
  width:100%;
  min-width:0;
  height:42px;
  padding:0 42px 0 9px;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:12px;
}

.ufco-full-gallery-search input::placeholder{color:#657082}

.ufco-full-gallery-search button{
  position:absolute;
  right:7px;
  top:50%;
  width:29px;
  height:29px;
  padding:0;
  border:0;
  border-radius:8px;
  background:rgba(255,255,255,.05);
  color:#aab1bd;
  font-size:17px;
  cursor:pointer;
  transform:translateY(-50%);
}

.ufco-full-gallery-sort,
.ufco-full-gallery-advanced label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#8791a2;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.055em;
}

.ufco-full-gallery-sort select,
.ufco-full-gallery-advanced select{
  min-height:44px;
  padding:0 34px 0 11px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  outline:0;
  background:#080b10;
  color:#f5f6f8;
  font-size:11px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}

.ufco-full-gallery-filter-toggle,
.ufco-full-gallery-reset{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:#10151e;
  color:#dce0e7;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.ufco-full-gallery-filter-toggle[aria-expanded="true"]{
  border-color:rgba(155,92,246,.42);
  background:rgba(155,92,246,.11);
  color:#ddd1ff;
}

.ufco-full-gallery-filter-group{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:12px;
  align-items:start;
  margin-top:16px;
}

.ufco-full-gallery-filter-label{
  padding-top:8px;
  color:#6f7989;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.ufco-full-gallery-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.ufco-full-gallery-chips button{
  min-height:30px;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:#0e131b;
  color:#a6aeba;
  font-size:9.5px;
  font-weight:700;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

.ufco-full-gallery-chips button:hover{
  transform:translateY(-1px);
  border-color:rgba(155,92,246,.25);
  color:#fff;
}

.ufco-full-gallery-chips button.is-active{
  border-color:rgba(155,92,246,.48);
  background:linear-gradient(135deg,rgba(124,58,237,.26),rgba(155,92,246,.14));
  color:#f2edff;
}

.ufco-full-gallery-chips.is-recognition button[data-value="editors"].is-active{
  border-color:rgba(56,189,248,.42);
  background:rgba(14,165,233,.14);
  color:#bae6fd;
}

.ufco-full-gallery-chips.is-recognition button[data-value="fans"].is-active{
  border-color:rgba(74,222,128,.38);
  background:rgba(34,197,94,.13);
  color:#bbf7d0;
}

.ufco-full-gallery-chips.is-recognition button[data-value="dual"].is-active{
  border-color:rgba(248,113,113,.40);
  background:rgba(239,68,68,.13);
  color:#fecaca;
}

.ufco-full-gallery-advanced{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px 22px;
  margin-top:16px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(255,255,255,.018);
}

.ufco-full-gallery-advanced[hidden]{display:none!important}

.ufco-full-gallery-density{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  color:#8791a2;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.ufco-full-gallery-density>div{display:flex;gap:4px}

.ufco-full-gallery-density button{
  min-width:34px;
  height:34px;
  padding:0 6px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:#080b10;
  color:#697485;
  font-size:7px;
  letter-spacing:2px;
  cursor:pointer;
}

.ufco-full-gallery-density button.is-active{
  border-color:rgba(155,92,246,.42);
  background:rgba(155,92,246,.12);
  color:#c4b5fd;
}

.ufco-full-gallery-reset{
  min-height:36px;
  margin-left:auto;
  border-color:rgba(248,113,113,.13);
  background:rgba(248,113,113,.035);
  color:#d9a5ad;
}

.ufco-full-gallery-statusbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:48px;
  padding:9px 22px;
  border:1px solid rgba(255,255,255,.09);
  border-top:1px solid rgba(255,255,255,.055);
  background:#080b10;
}

.ufco-full-gallery-statusbar p{
  margin:0;
  color:#838d9d;
  font-size:10px;
  font-weight:650;
}

.ufco-full-gallery-active-filters{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:5px;
}

.ufco-full-gallery-active-filters span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border:1px solid rgba(155,92,246,.14);
  border-radius:999px;
  background:rgba(155,92,246,.055);
  color:#b7a7dd;
  font-size:8.5px;
}

.ufco-full-gallery-active-filters small{
  color:#746a91;
  font-size:7px;
  text-transform:uppercase;
}

.ufco-full-gallery-stage{
  position:relative;
  min-height:360px;
  padding:20px;
  border-right:1px solid rgba(255,255,255,.09);
  border-left:1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 50% 0,rgba(155,92,246,.035),transparent 25rem),
    #07090d;
}

.ufco-full-gallery-grid{
  gap:15px!important;
}

.ufco-full-gallery-loading{
  position:absolute;
  z-index:20;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  padding-top:36px;
  background:linear-gradient(180deg,rgba(7,9,13,.88),rgba(7,9,13,.45),transparent);
  pointer-events:none;
}

.ufco-full-gallery-loading[hidden]{display:none!important}

.ufco-full-gallery-loading span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#9b5cf6;
  animation:ufco-full-gallery-dot .9s ease-in-out infinite alternate;
}

.ufco-full-gallery-loading span:nth-child(2){animation-delay:.13s}
.ufco-full-gallery-loading span:nth-child(3){animation-delay:.26s}

@keyframes ufco-full-gallery-dot{
  from{transform:translateY(0);opacity:.35}
  to{transform:translateY(-6px);opacity:1}
}

.ufco-full-gallery-empty{
  max-width:540px;
  margin:56px auto;
  padding:36px 22px;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.018);
  text-align:center;
}

.ufco-full-gallery-empty[hidden]{display:none!important}

.ufco-full-gallery-empty>span{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin:0 auto 14px;
  border:1px solid rgba(155,92,246,.18);
  border-radius:14px;
  background:rgba(155,92,246,.08);
  color:#b89df4;
  font-size:22px;
}

.ufco-full-gallery-empty h2{
  margin:0;
  color:#fff;
  font-size:20px;
}

.ufco-full-gallery-empty p{
  margin:8px auto 15px;
  color:#8791a0;
  font-size:11px;
  line-height:1.6;
}

.ufco-full-gallery-empty button{
  min-height:38px;
  padding:7px 13px;
  border:1px solid rgba(155,92,246,.32);
  border-radius:10px;
  background:rgba(155,92,246,.10);
  color:#d8ccfa;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.ufco-full-gallery-footer{
  display:flex;
  justify-content:center;
  gap:9px;
  padding:17px 20px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:0 0 24px 24px;
  background:#0b0f16;
}

.ufco-full-gallery-load,
.ufco-full-gallery-top{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:41px;
  padding:8px 15px;
  border-radius:11px;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .18s ease,background .18s ease;
}

.ufco-full-gallery-load{
  border:1px solid rgba(155,92,246,.46);
  background:linear-gradient(135deg,#7c3aed,#9b5cf6);
  color:#fff;
  box-shadow:0 9px 22px rgba(124,58,237,.18);
}

.ufco-full-gallery-load:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg,#6d28d9,#8b5cf6);
  box-shadow:0 13px 28px rgba(124,58,237,.26);
}

.ufco-full-gallery-load[hidden]{display:none!important}
.ufco-full-gallery-load:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}

.ufco-full-gallery-top{
  border:1px solid rgba(255,255,255,.09);
  background:#10151e;
  color:#aeb6c2;
}

.ufco-full-gallery-top:hover{
  transform:translateY(-1px);
  color:#fff;
}

.ufco-full-gallery.is-loading .ufco-full-gallery-load{opacity:.55;cursor:wait}

@media(max-width:1000px){
  .ufco-full-gallery-search-row{
    grid-template-columns:1fr auto;
  }

  .ufco-full-gallery-search{
    grid-column:1 / -1;
  }

  .ufco-full-gallery-filter-group{
    grid-template-columns:1fr;
    gap:7px;
  }

  .ufco-full-gallery-filter-label{padding-top:0}

  .ufco-full-gallery-grid{
    --ufco-columns:3!important;
  }
}

@media(max-width:700px){
  .ufco-full-gallery{
    width:calc(100% - 16px);
    margin-top:14px;
  }

  .ufco-full-gallery-hero{
    align-items:flex-start;
    flex-direction:column;
    min-height:0;
    padding:26px 20px;
    border-radius:18px 18px 0 0;
  }

  .ufco-full-gallery-hero-stat{
    min-width:0;
    text-align:left;
  }

  .ufco-full-gallery-controls{padding:15px 13px}

  .ufco-full-gallery-search-row{
    grid-template-columns:1fr;
  }

  .ufco-full-gallery-sort,
  .ufco-full-gallery-sort select,
  .ufco-full-gallery-filter-toggle{
    width:100%;
  }

  .ufco-full-gallery-sort{
    align-items:flex-start;
    flex-direction:column;
  }

  .ufco-full-gallery-filter-toggle{justify-content:center}

  .ufco-full-gallery-chips{
    flex-wrap:nowrap;
    overflow:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }

  .ufco-full-gallery-chips button{flex:0 0 auto}

  .ufco-full-gallery-advanced{
    align-items:stretch;
    flex-direction:column;
  }

  .ufco-full-gallery-advanced label{
    align-items:flex-start;
    flex-direction:column;
  }

  .ufco-full-gallery-advanced select{width:100%}

  .ufco-full-gallery-density{margin-left:0}
  .ufco-full-gallery-reset{margin-left:0}

  .ufco-full-gallery-statusbar{
    align-items:flex-start;
    flex-direction:column;
    padding:10px 13px;
  }

  .ufco-full-gallery-active-filters{justify-content:flex-start}

  .ufco-full-gallery-stage{padding:10px}

  .ufco-full-gallery-grid{
    --ufco-columns:2!important;
    gap:10px!important;
  }

  .ufco-full-gallery-footer{
    border-radius:0 0 18px 18px;
  }
}

@media(max-width:460px){
  .ufco-full-gallery-grid{
    --ufco-columns:1!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .ufco-full-gallery-loading span,
  .ufco-full-gallery-chips button,
  .ufco-full-gallery-load,
  .ufco-full-gallery-top{
    animation:none!important;
    transition:none!important;
  }
}

/* Build 095 — deterministic filter state feedback */
.ufco-full-gallery[aria-busy="true"] .ufco-full-gallery-chips button{
  cursor:wait;
  opacity:.58;
}

.ufco-full-gallery-chips button[aria-pressed="true"]{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}

.ufco-full-gallery-chips button:disabled{
  pointer-events:none;
}

/* Build 098 — five-column gallery cards use a two-row metadata header.
   This avoids recognition/category collisions without clipping recognition text. */
.ufco-full-gallery-grid[style*="--ufco-columns:5"] .ufco-gallery-media{
  --ufco-category-reserve:0px;
}

.ufco-full-gallery-grid[style*="--ufco-columns:5"] .ufco-gallery-badges{
  left:10px!important;
  right:10px!important;
  width:auto!important;
  max-width:none!important;
}

.ufco-full-gallery-grid[style*="--ufco-columns:5"] .ufco-choice-stack{
  max-width:100%!important;
}

.ufco-full-gallery-grid[style*="--ufco-columns:5"] .ufco-choice-badge{
  max-width:100%!important;
  font-size:9px!important;
  padding:5px 8px!important;
}

.ufco-full-gallery-grid[style*="--ufco-columns:5"] .ufco-choice-note{
  max-width:100%!important;
  font-size:8.5px!important;
}

.ufco-full-gallery-grid[style*="--ufco-columns:5"] .ufco-category-pill{
  top:auto!important;
  right:10px!important;
  bottom:10px!important;
  left:auto!important;
  max-width:calc(100% - 20px)!important;
  font-size:8.5px!important;
}

/* JS also sets a semantic class so the rule remains reliable if style serialization changes. */
.ufco-full-gallery-grid.is-density-5 .ufco-gallery-media{
  --ufco-category-reserve:0px;
}
.ufco-full-gallery-grid.is-density-5 .ufco-gallery-badges{
  left:10px!important;right:10px!important;width:auto!important;max-width:none!important;
}
.ufco-full-gallery-grid.is-density-5 .ufco-choice-badge{
  max-width:100%!important;font-size:9px!important;padding:5px 8px!important;
}
.ufco-full-gallery-grid.is-density-5 .ufco-choice-note{
  max-width:100%!important;font-size:8.5px!important;
}
.ufco-full-gallery-grid.is-density-5 .ufco-category-pill{
  top:auto!important;right:10px!important;bottom:10px!important;left:auto!important;
  max-width:calc(100% - 20px)!important;font-size:8.5px!important;
}

/* Build 099 — five-column card refinements */
.ufco-full-gallery-grid.is-density-5 .ufco-gallery-media{
  position:relative!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-gallery-badges{
  z-index:9!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-category-pill{
  z-index:6!important;
  top:auto!important;
  right:8px!important;
  bottom:8px!important;
  left:auto!important;
  max-width:56%!important;
  pointer-events:none!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-gallery-media-link{
  position:relative!important;
  z-index:8!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-gallery-media-link .ufco-view-artwork{
  z-index:14!important;
  left:10px!important;
  right:auto!important;
  bottom:10px!important;
  max-width:40%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-gallery-meta{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-gallery-artwork-link{
  min-width:0!important;
  flex:1 1 auto!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-like-button{
  display:inline-flex!important;
  flex:0 0 auto!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:48px!important;
  width:auto!important;
  max-width:none!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-like-button>*{
  display:inline-block!important;
  width:auto!important;
  white-space:nowrap!important;
}

.ufco-full-gallery-grid.is-density-5 .ufco-like-count{
  min-width:1.3em!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums;
}
