.ufco-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--ufco-columns, 3), minmax(0, 1fr));
    gap: 20px;
}

.ufco-gallery-card {
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    background: #fff;
}

.ufco-gallery-media {
    aspect-ratio: 4 / 5;
    background: #f2f2f2;
}

.ufco-gallery-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ufco-gallery-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    font-size: 13px;
}

.ufco-like-button {
    border: 0;
    border-radius: 999px;
    padding: 7px 11px;
    cursor: pointer;
}

.ufco-like-button:disabled {
    cursor: default;
    opacity: .6;
}

.ufco-locked-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}

.ufco-locked-placeholder > span {
    font-size: 34px;
}

.ufco-unlock-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ufco-unlock-form input,
.ufco-unlock-form button {
    padding: 9px 11px;
}

.ufco-gallery-feedback {
    min-height: 18px;
    padding: 0 14px 10px;
    font-size: 12px;
}

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

@media (max-width: 900px) {
    .ufco-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ufco-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.ufco-request-password-button{
  display:inline-block;
  margin-top:9px;
  padding:7px 10px;
  border:1px solid currentColor;
  border-radius:6px;
  text-decoration:none
}
.ufco-access-shell{
  width:min(1180px,calc(100% - 32px));
  margin:32px auto
}
.ufco-access-header{
  margin-bottom:24px
}

/* Build 041 — clean Customer → Request → Artwork single pages */
.ufco-single-shell{
  width:min(1180px,calc(100% - 32px));
  margin:32px auto 64px
}
.ufco-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  margin:0 0 20px;
  font-size:13px
}
.ufco-breadcrumbs a{
  text-decoration:none
}
.ufco-single-hero{
  margin-bottom:30px;
  padding:22px;
  border:1px solid #e3e3e3;
  border-radius:14px;
  background:#fff
}
.ufco-single-eyebrow{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.62
}
.ufco-single-hero h1{
  margin:0 0 10px
}
.ufco-single-hero p{
  max-width:760px;
  margin:0
}
.ufco-single-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:12px
}
.ufco-single-facts>span{
  display:inline-flex;
  gap:4px
}
.ufco-single-badge{
  padding:3px 8px;
  border-radius:999px;
  background:#f0f0f1;
  font-size:12px
}
.ufco-single-section{
  margin:30px 0
}
.ufco-single-section>h2{
  margin-bottom:16px
}
.ufco-request-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.ufco-gallery-pagination{display:flex;justify-content:center;gap:7px;margin:22px 0 4px;flex-wrap:wrap}
.ufco-gallery-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:7px 11px;border:1px solid rgba(255,255,255,.14);border-radius:9px;background:#131b27;color:#e8edf5;text-decoration:none;font-size:13px;font-weight:700}
.ufco-gallery-pagination .page-numbers.current{border-color:#8b6ee2;background:#7454d3;color:#fff}
.ufco-gallery-pagination a.page-numbers:hover,.ufco-gallery-pagination a.page-numbers:focus-visible{border-color:#8b6ee2;background:#1d2736;color:#fff}
.ufco-request-link-card{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:14px;
  border:1px solid #dedede;
  border-radius:10px;
  background:#fff;
  text-decoration:none
}
.ufco-request-link-card span{
  font-size:12px;
  opacity:.68
}
.ufco-single-image-grid{
  max-width:820px;
  margin-inline:auto
}
.ufco-gallery-artwork-link{
  text-decoration:none;
  font-weight:600
}
.ufco-unavailable{
  max-width:620px;
  margin:12vh auto;
  padding:28px;
  border:1px solid #e2e2e2;
  border-radius:14px;
  background:#fff;
  text-align:center
}
@media(max-width:760px){
  .ufco-request-link-grid{
    grid-template-columns:1fr
  }
  .ufco-single-shell{
    width:min(100% - 20px,1180px);
    margin-top:18px
  }
  .ufco-single-hero{
    padding:16px
  }
}

.ufco-gallery-feedback{
  margin-top:8px;
  min-height:0;
  font-size:13px;
  line-height:1.4
}
.ufco-gallery-feedback.is-error{
  font-weight:600
}
.ufco-gallery-feedback[hidden]{
  display:none!important
}

.ufco-single-admin-actions{
  margin-top:16px
}
.ufco-admin-edit-button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border:1px solid #2271b1;
  border-radius:7px;
  background:#2271b1;
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:600
}
.ufco-admin-edit-button:hover,
.ufco-admin-edit-button:focus{
  background:#135e96;
  border-color:#135e96;
  color:#fff!important
}

.ufco-gallery-toolbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 14px
}
.ufco-gallery-sort-form label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px
}
.ufco-gallery-sort-form select{
  min-width:150px;
  padding:6px 28px 6px 9px
}
.ufco-choice-badge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  background:#f0f0f1;
  font-size:11px;
  font-weight:700;
  line-height:1.4
}
.ufco-choice-note{
  display:block;
  width:100%;
  margin-top:4px;
  font-size:10.5px;
  line-height:1.3;
  opacity:.65
}
@media(max-width:600px){
  .ufco-gallery-toolbar{
    justify-content:stretch
  }
  .ufco-gallery-sort-form,
  .ufco-gallery-sort-form label,
  .ufco-gallery-sort-form select{
    width:100%
  }
}

/* =====================================================================
   Build 052 — UFCo Visual Foundation
   Reference direction: minimal dark editorial gallery, artwork-first.
   Component-only. No custom site header/menu/page shell is introduced.
   ===================================================================== */

:root{
  --ufco-ink:#07090d;
  --ufco-panel:#0c1016;
  --ufco-panel-raised:#11161f;
  --ufco-line:rgba(255,255,255,.10);
  --ufco-line-strong:rgba(255,255,255,.16);
  --ufco-text:#f7f8fb;
  --ufco-muted:#9aa3b2;
  --ufco-purple:#9b5cf6;
  --ufco-purple-soft:rgba(155,92,246,.18);
  --ufco-green:#4ade80;
  --ufco-green-soft:rgba(74,222,128,.15);
  --ufco-gold:#f8bf46;
  --ufco-gold-soft:rgba(248,191,70,.15);
  --ufco-danger:#fb7185;
  --ufco-radius:15px;
  --ufco-shadow:0 18px 45px rgba(0,0,0,.24);
}

/* Gallery component surface */
.ufco-gallery-surface{
  box-sizing:border-box;
  width:100%;
  margin:0 0 28px;
  padding:18px;
  border:1px solid var(--ufco-line);
  border-radius:20px;
  color:var(--ufco-text);
  background:
    radial-gradient(circle at 100% 0,rgba(155,92,246,.08),transparent 24rem),
    linear-gradient(180deg,#0b0e14 0%,#080a0f 100%);
  box-shadow:var(--ufco-shadow);
}

.ufco-gallery-surface *{
  box-sizing:border-box;
}

/* Sorting */
.ufco-gallery-toolbar{
  align-items:center;
  min-height:42px;
  margin:0 0 14px!important;
}

.ufco-gallery-sort-form label{
  gap:9px!important;
  color:var(--ufco-muted);
  font-size:11px!important;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ufco-gallery-sort-form select{
  min-height:36px;
  min-width:156px!important;
  padding:7px 30px 7px 10px!important;
  border:1px solid var(--ufco-line)!important;
  border-radius:9px!important;
  outline:none;
  background:#0b0e14!important;
  color:var(--ufco-text)!important;
  font-size:12px!important;
  text-transform:none;
  letter-spacing:0;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.ufco-gallery-sort-form select:focus{
  border-color:rgba(155,92,246,.65)!important;
  box-shadow:0 0 0 3px rgba(155,92,246,.10);
}

/* Artwork grid */
.ufco-gallery-grid{
  gap:14px!important;
}

.ufco-gallery-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--ufco-line)!important;
  border-radius:var(--ufco-radius)!important;
  background:var(--ufco-panel)!important;
  color:var(--ufco-text);
  box-shadow:0 7px 24px rgba(0,0,0,.18);
  transform:translateZ(0);
  animation:ufco-card-enter .42s ease both;
  transition:
    transform .24s cubic-bezier(.2,.7,.2,1),
    border-color .24s ease,
    box-shadow .24s ease;
}

.ufco-gallery-card:hover{
  transform:translateY(-4px);
  border-color:rgba(155,92,246,.34)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.30),0 0 0 1px rgba(155,92,246,.05);
}

.ufco-gallery-media{
  position:relative;
  overflow:hidden;
  aspect-ratio:4/5;
  background:#10141c!important;
}

.ufco-gallery-media::after{
  content:"";
  pointer-events:none;
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(180deg,transparent,rgba(2,4,8,.22));
  opacity:.6;
}

.ufco-gallery-media img{
  transition:transform .48s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}

.ufco-gallery-card:hover .ufco-gallery-media img{
  transform:scale(1.032);
  filter:saturate(1.035) contrast(1.015);
}

/* Choice badges — reference-matching purple / green / gold */
.ufco-gallery-badges{
  position:absolute;
  z-index:4;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  align-items:flex-start;
  pointer-events:none;
}

.ufco-choice-stack{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}

.ufco-choice-badge{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  margin:0!important;
  padding:5px 9px!important;
  border:1px solid transparent;
  border-radius:999px!important;
  color:#fff;
  font-size:10.5px!important;
  font-weight:750!important;
  line-height:1.25!important;
  letter-spacing:.005em;
  white-space:nowrap;
  box-shadow:0 5px 18px rgba(0,0,0,.24);
  backdrop-filter:blur(7px);
}

.ufco-choice-icon{
  font-size:12px;
  line-height:1;
}

.ufco-choice-badge-editor{
  background:rgba(112,58,190,.88)!important;
  border-color:rgba(196,181,253,.28);
}

.ufco-choice-badge-fan{
  background:rgba(17,125,68,.88)!important;
  border-color:rgba(134,239,172,.25);
}

.ufco-choice-badge-dual{
  background:rgba(157,96,7,.92)!important;
  border-color:rgba(253,230,138,.26);
}

.ufco-choice-note{
  width:auto!important;
  max-width:220px;
  margin:0!important;
  padding:3px 7px;
  border:1px solid rgba(248,191,70,.17);
  border-radius:7px;
  background:rgba(4,6,10,.78);
  color:#e7dfc5;
  font-size:9px!important;
  line-height:1.25!important;
  opacity:.92!important;
  backdrop-filter:blur(6px);
}

/* Metadata */
.ufco-gallery-meta{
  min-height:48px;
  padding:9px 11px!important;
  border-top:1px solid var(--ufco-line);
  background:linear-gradient(180deg,#0d1118,#0a0d13);
}

.ufco-gallery-artwork-link{
  overflow:hidden;
  margin-right:auto;
  color:#c9cfda!important;
  font-size:10.5px!important;
  font-weight:650!important;
  text-overflow:ellipsis;
  white-space:nowrap;
  opacity:.82;
  transition:color .2s ease,opacity .2s ease;
}

.ufco-gallery-artwork-link:hover{
  color:#fff!important;
  opacity:1;
}

/* Votes / likes */
.ufco-like-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center;
  gap:5px!important;
  min-height:30px;
  padding:5px 8px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.045)!important;
  color:#eceef3!important;
  font-size:11px!important;
  line-height:1!important;
  cursor:pointer;
  transition:
    transform .16s ease,
    background .2s ease,
    border-color .2s ease,
    color .2s ease!important;
}

.ufco-like-button:hover:not(:disabled){
  transform:translateY(-1px) scale(1.035);
  border-color:rgba(244,114,182,.20)!important;
  background:rgba(244,114,182,.08)!important;
  color:#f9a8d4!important;
}

.ufco-like-button:disabled{
  opacity:.72!important;
}

.ufco-like-icon{
  font-size:14px;
  line-height:1;
}

.ufco-like-button.is-liked{
  animation:ufco-like-pop .55s ease;
  color:#fb7185!important;
}

/* Locked content */
.ufco-locked-placeholder{
  position:relative;
  min-height:100%;
  padding:34px 22px!important;
  color:var(--ufco-text);
  background:
    radial-gradient(circle at 50% 14%,rgba(155,92,246,.13),transparent 12rem),
    linear-gradient(180deg,#11151d,#090c12)!important;
}

.ufco-locked-placeholder>span{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin-bottom:3px;
  border:1px solid rgba(155,92,246,.26);
  border-radius:50%;
  background:rgba(155,92,246,.10);
  font-size:20px!important;
  box-shadow:0 0 28px rgba(155,92,246,.10);
}

.ufco-locked-placeholder strong{
  color:#fff;
  font-size:15px;
}

.ufco-locked-placeholder small{
  max-width:310px;
  color:var(--ufco-muted);
  line-height:1.5;
}

.ufco-unlock-form{
  width:min(100%,330px);
  margin-top:6px;
}

.ufco-unlock-form input{
  min-width:0;
  min-height:38px;
  border:1px solid var(--ufco-line)!important;
  border-radius:9px!important;
  outline:none;
  background:#070a10!important;
  color:#fff!important;
}

.ufco-unlock-form input:focus{
  border-color:rgba(155,92,246,.58)!important;
  box-shadow:0 0 0 3px rgba(155,92,246,.09);
}

.ufco-unlock-form button,
.ufco-request-password-button{
  min-height:38px;
  border:1px solid rgba(155,92,246,.34)!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,rgba(124,58,237,.72),rgba(155,92,246,.72))!important;
  color:#fff!important;
  font-size:11px;
  font-weight:700;
  text-decoration:none!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}

.ufco-unlock-form button:hover,
.ufco-request-password-button:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(124,58,237,.17);
}

/* Feedback / empty states */
.ufco-gallery-feedback{
  color:var(--ufco-muted);
}

.ufco-gallery-feedback.is-error{
  color:#fecdd3;
}

.ufco-gallery-empty{
  margin:0;
  padding:32px 20px;
  border:1px dashed var(--ufco-line);
  border-radius:12px;
  color:var(--ufco-muted);
  text-align:center;
  background:rgba(255,255,255,.018);
}

/* Existing controlled single pages — same visual language, no new shell */
.ufco-single-page{
  background:
    radial-gradient(circle at 12% 8%,rgba(155,92,246,.08),transparent 22rem),
    #080a0f;
  color:var(--ufco-text);
}

.ufco-single-shell{
  color:var(--ufco-text);
}

.ufco-breadcrumbs,
.ufco-breadcrumbs a{
  color:#8f98a8!important;
}

.ufco-breadcrumbs a:hover{
  color:#c4b5fd!important;
}

.ufco-single-hero{
  border:1px solid var(--ufco-line)!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 100% 0,rgba(155,92,246,.08),transparent 18rem),
    linear-gradient(180deg,#0e1219,#0a0d13)!important;
  color:var(--ufco-text);
  box-shadow:var(--ufco-shadow);
}

.ufco-single-eyebrow{
  color:#b8a5ec;
  opacity:1!important;
}

.ufco-single-hero h1,
.ufco-single-section h2{
  color:#fff;
  letter-spacing:-.02em;
}

.ufco-single-hero p,
.ufco-single-facts{
  color:var(--ufco-muted);
}

.ufco-single-facts strong{
  color:#d9dde6;
}

.ufco-single-badge{
  border:1px solid rgba(155,92,246,.25);
  background:var(--ufco-purple-soft)!important;
  color:#ddd1ff;
}

.ufco-request-link-card{
  border:1px solid var(--ufco-line)!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#10141c,#0b0e14)!important;
  color:#fff!important;
  box-shadow:0 7px 24px rgba(0,0,0,.16);
  transition:transform .2s ease,border-color .2s ease;
}

.ufco-request-link-card:hover{
  transform:translateY(-2px);
  border-color:rgba(155,92,246,.32)!important;
}

.ufco-request-link-card strong{
  color:#fff;
}

.ufco-request-link-card span{
  color:var(--ufco-muted);
  opacity:1!important;
}

.ufco-admin-edit-button{
  border:1px solid rgba(155,92,246,.34)!important;
  background:rgba(155,92,246,.12)!important;
  color:#ddd1ff!important;
}

.ufco-admin-edit-button:hover{
  border-color:rgba(155,92,246,.54)!important;
  background:rgba(155,92,246,.20)!important;
}

.ufco-unavailable{
  border:1px solid var(--ufco-line)!important;
  background:#0d1118!important;
  color:var(--ufco-text);
  box-shadow:var(--ufco-shadow);
}

/* Micro-animation */
@keyframes ufco-card-enter{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes ufco-like-pop{
  0%{transform:scale(1)}
  35%{transform:scale(1.14)}
  70%{transform:scale(.97)}
  100%{transform:scale(1)}
}

/* Responsive rhythm matching the design guide */
@media(max-width:900px){
  .ufco-gallery-surface{
    padding:14px;
    border-radius:17px;
  }

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

@media(max-width:560px){
  .ufco-gallery-surface{
    padding:10px;
    border-radius:14px;
  }

  .ufco-gallery-toolbar{
    margin-bottom:10px!important;
  }

  .ufco-gallery-sort-form label{
    align-items:stretch!important;
    gap:5px!important;
  }

  .ufco-gallery-sort-form label>span{
    font-size:10px;
  }

  .ufco-gallery-card{
    border-radius:13px!important;
  }

  .ufco-gallery-badges{
    top:8px;
    left:8px;
    right:8px;
  }

  .ufco-choice-badge{
    max-width:calc(100vw - 54px);
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .ufco-gallery-meta{
    padding:8px 9px!important;
  }
}

/* Motion accessibility */
@media(prefers-reduced-motion:reduce){
  .ufco-gallery-card,
  .ufco-gallery-media img,
  .ufco-like-button,
  .ufco-request-link-card,
  .ufco-unlock-form button,
  .ufco-request-password-button{
    animation:none!important;
    transition:none!important;
  }
}

/* Build 053 — homepage gallery components */
.ufco-home-gallery{
  position:relative;
  margin:0 0 42px;
  transition:background .28s ease,transform .28s ease;
}
.ufco-home-gallery-actions{
  display:flex;
  justify-content:flex-end;
  min-height:34px;
  margin-bottom:10px;
}
.ufco-gallery-expand,
.ufco-infinite-fallback{
  border:1px solid var(--ufco-line);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:var(--ufco-text);
  padding:7px 12px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.ufco-gallery-expand:hover,
.ufco-infinite-fallback:hover{
  transform:translateY(-1px);
  border-color:rgba(155,92,246,.42);
  background:rgba(155,92,246,.09);
}
.ufco-infinite-sentinel{
  width:100%;
  height:2px;
  margin-top:4px;
}
.ufco-home-gallery.is-loading .ufco-infinite-sentinel::after{
  content:"";
  display:block;
  width:22px;height:22px;
  margin:14px auto;
  border:2px solid rgba(255,255,255,.12);
  border-top-color:var(--ufco-purple);
  border-radius:50%;
  animation:ufco-feed-spin .7s linear infinite;
}
.ufco-card-arrival{
  animation:ufco-feed-arrival .38s ease both!important;
  animation-delay:var(--ufco-arrival-delay,0ms)!important;
}
body.ufco-gallery-expanded{
  overflow:hidden;
}
.ufco-home-gallery.is-expanded{
  position:fixed;
  z-index:99980;
  inset:0;
  overflow:auto;
  margin:0;
  padding:22px max(18px,calc((100vw - 1320px)/2));
  background:
    radial-gradient(circle at 85% 5%,rgba(155,92,246,.10),transparent 25rem),
    #07090d;
  animation:ufco-gallery-expand-in .28s ease both;
}
.ufco-home-gallery.is-expanded .ufco-home-gallery-actions{
  position:sticky;
  top:0;
  z-index:10;
  padding:8px 0 12px;
  background:linear-gradient(180deg,#07090d 70%,transparent);
}
.ufco-home-gallery.is-expanded .ufco-gallery-expand{
  margin-right:auto;
}
@keyframes ufco-feed-spin{to{transform:rotate(360deg)}}
@keyframes ufco-feed-arrival{
  from{opacity:0;transform:translateY(10px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes ufco-gallery-expand-in{
  from{opacity:0;transform:scale(.992)}
  to{opacity:1;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .ufco-card-arrival,
  .ufco-home-gallery.is-expanded,
  .ufco-home-gallery.is-loading .ufco-infinite-sentinel::after{
    animation:none!important;
  }
}

/* Build 054 — explicit per-gallery Load More */
.ufco-load-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:16px;
}
.ufco-gallery-load-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:132px;
  min-height:38px;
  padding:7px 14px;
  border:1px solid var(--ufco-line);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:var(--ufco-text);
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,opacity .18s ease;
}
.ufco-gallery-load-more:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:rgba(155,92,246,.42);
  background:rgba(155,92,246,.09);
}
.ufco-gallery-load-more:disabled{
  cursor:wait;
  opacity:.55;
}
.ufco-gallery-load-more[hidden]{
  display:none!important;
}
.ufco-home-gallery.is-loading .ufco-gallery-load-more::after{
  content:"";
  width:12px;
  height:12px;
  border:2px solid rgba(255,255,255,.18);
  border-top-color:var(--ufco-purple);
  border-radius:50%;
  animation:ufco-feed-spin .7s linear infinite;
}

/* Build 055 — make View All unmistakable */
.ufco-home-gallery-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center;
  min-height:42px!important;
  margin-bottom:12px!important;
}

.ufco-home-gallery .ufco-gallery-expand{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:38px!important;
  padding:8px 14px!important;
  border:1px solid rgba(155,92,246,.46)!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,rgba(124,58,237,.22),rgba(155,92,246,.15))!important;
  color:#ede9fe!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  opacity:1!important;
  visibility:visible!important;
  cursor:pointer!important;
  box-shadow:0 5px 16px rgba(124,58,237,.08)!important;
}

.ufco-home-gallery .ufco-gallery-expand:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(167,139,250,.72)!important;
  background:linear-gradient(135deg,rgba(124,58,237,.32),rgba(155,92,246,.22))!important;
  color:#fff!important;
}

.ufco-load-more-wrap{
  gap:9px;
  flex-wrap:wrap;
}

.ufco-gallery-expand-bottom{
  display:inline-flex!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-expand-bottom{
  display:none!important;
}

@media(max-width:560px){
  .ufco-home-gallery-actions{
    justify-content:stretch!important;
  }

  .ufco-home-gallery-actions .ufco-gallery-expand{
    width:100%!important;
  }

  .ufco-load-more-wrap{
    align-items:stretch;
  }

  .ufco-load-more-wrap .ufco-gallery-load-more,
  .ufco-load-more-wrap .ufco-gallery-expand-bottom{
    flex:1 1 140px;
  }
}

/* Build 056 — choice identity + expanded gallery navigation */

/* UFCo Editor's Choice: sky blue */
.ufco-choice-badge-editor{
  background:rgba(2,132,199,.90)!important;
  border-color:rgba(125,211,252,.34)!important;
  color:#f0f9ff!important;
  box-shadow:0 5px 20px rgba(14,165,233,.16)!important;
}

/* Dual Pick - Top Choice: red */
.ufco-choice-badge-dual{
  background:rgba(185,28,28,.92)!important;
  border-color:rgba(252,165,165,.32)!important;
  color:#fff7f7!important;
  box-shadow:0 5px 20px rgba(239,68,68,.16)!important;
}

.ufco-choice-note{
  border-color:rgba(248,113,113,.18)!important;
  color:#fee2e2!important;
}

/* Floating expanded-gallery escape controls */
.ufco-gallery-back-floating{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:fixed!important;
  z-index:100020!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:42px!important;
  padding:9px 15px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:999px!important;
  background:rgba(10,13,19,.90)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:
    0 10px 32px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.04)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-floating:not([hidden]){
  display:inline-flex!important;
}

.ufco-gallery-back-floating:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(155,92,246,.58)!important;
  background:rgba(27,20,45,.94)!important;
}

.ufco-gallery-back-top{
  top:18px!important;
  right:20px!important;
}

.ufco-gallery-back-bottom{
  left:50%!important;
  bottom:22px!important;
  transform:translateX(-50%)!important;
  min-width:154px!important;
  background:linear-gradient(
    135deg,
    rgba(124,58,237,.94),
    rgba(155,92,246,.94)
  )!important;
  border-color:rgba(196,181,253,.38)!important;
  box-shadow:
    0 14px 38px rgba(76,29,149,.28),
    0 0 0 1px rgba(255,255,255,.04)!important;
}

.ufco-gallery-back-bottom:hover{
  transform:translateX(-50%) translateY(-2px)!important;
  background:linear-gradient(
    135deg,
    rgba(109,40,217,.98),
    rgba(147,51,234,.98)
  )!important;
}

/* Once expanded, the regular in-flow View All controls are redundant. */
.ufco-home-gallery.is-expanded > .ufco-home-gallery-actions .ufco-gallery-expand,
.ufco-home-gallery.is-expanded .ufco-gallery-expand-bottom{
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Slight section-specific visual hint for homepage components. */
.ufco-home-gallery[data-gallery-type="editors"].is-expanded{
  background:
    radial-gradient(circle at 85% 4%,rgba(14,165,233,.12),transparent 27rem),
    #07090d!important;
}

.ufco-home-gallery[data-gallery-type="dual"].is-expanded{
  background:
    radial-gradient(circle at 85% 4%,rgba(239,68,68,.11),transparent 27rem),
    #07090d!important;
}

@media(max-width:600px){
  .ufco-gallery-back-top{
    top:12px!important;
    right:12px!important;
    width:42px!important;
    min-width:42px!important;
    padding:0!important;
  }

  .ufco-gallery-back-top span:last-child{
    display:none!important;
  }

  .ufco-gallery-back-bottom{
    bottom:14px!important;
    min-width:166px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .ufco-gallery-back-floating{
    transition:none!important;
  }
}

/* Build 057 — simplified expanded-gallery navigation */
.ufco-gallery-back-top{
  top:18px!important;
  right:20px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  border-radius:50%!important;
  font-size:24px!important;
  font-weight:400!important;
  line-height:1!important;
}
.ufco-gallery-back-top span{
  display:block!important;
  transform:translateY(-1px);
}
@media(max-width:600px){
  .ufco-gallery-back-top{
    top:12px!important;
    right:12px!important;
  }
}

/* Build 058 — keep expanded-gallery floating controls viewport-fixed.
   A transformed ancestor creates a new containing block for position:fixed,
   which caused the × and Back to Home controls to scroll with gallery content. */
.ufco-home-gallery.is-expanded{
  transform:none!important;
  animation:ufco-gallery-expand-fade .22s ease both!important;
}

@keyframes ufco-gallery-expand-fade{
  from{opacity:0}
  to{opacity:1}
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-floating{
  position:fixed!important;
  transform:none;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom{
  transform:translateX(-50%)!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom:hover{
  transform:translateX(-50%) translateY(-2px)!important;
}

@media(prefers-reduced-motion:reduce){
  .ufco-home-gallery.is-expanded{
    animation:none!important;
  }
}

/* Build 059 — artwork discovery card hierarchy */
.ufco-gallery-media-link{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  color:inherit!important;
  text-decoration:none!important;
}
.ufco-gallery-media-link img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ufco-gallery-badges,
.ufco-category-pill{
  z-index:5!important;
}
.ufco-category-pill{
  position:absolute;
  top:10px;
  right:10px;
  max-width:46%;
  overflow:hidden;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(5,8,13,.72);
  color:#eef2f7;
  font-size:9px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:.055em;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
  backdrop-filter:blur(8px);
}
.ufco-view-artwork{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:3;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(5,8,13,.76);
  color:#fff;
  font-size:9.5px;
  font-weight:700;
  opacity:0;
  transform:translateY(5px);
  backdrop-filter:blur(8px);
  transition:opacity .2s ease,transform .2s ease;
}
.ufco-gallery-card:hover .ufco-view-artwork{
  opacity:1;
  transform:translateY(0);
}
.ufco-gallery-meta{
  display:block!important;
  min-height:0!important;
  padding:0!important;
}
.ufco-gallery-card-copy{
  width:100%;
  padding:11px 12px 10px;
}
.ufco-gallery-title{
  display:block;
  overflow:hidden;
  margin:0 0 4px;
  color:#f8fafc!important;
  font-size:13px;
  font-weight:750;
  line-height:1.3;
  letter-spacing:-.012em;
  text-decoration:none!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ufco-gallery-title:hover{
  color:#fff!important;
}
.ufco-gallery-taxonomy{
  overflow:hidden;
  min-height:15px;
  margin-bottom:8px;
  color:#929cab;
  font-size:9.5px;
  font-weight:550;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ufco-gallery-card-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.07);
}
.ufco-gallery-artwork-link{
  margin:0!important;
  color:#717b8b!important;
  font-size:9px!important;
  font-weight:650!important;
  letter-spacing:.035em;
}
@media(hover:none){
  .ufco-view-artwork{display:none}
}
@media(max-width:560px){
  .ufco-category-pill{top:8px;right:8px}
  .ufco-gallery-card-copy{padding:10px}
  .ufco-gallery-title{font-size:12.5px}
}

/* Build 060 — keep expanded navigation clear of Load More */
.ufco-home-gallery.is-expanded{
  padding-bottom:92px!important;
}

/* Bottom Back to Home is left-adjusted instead of covering centered Load More. */
.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom{
  left:22px!important;
  right:auto!important;
  bottom:22px!important;
  transform:none!important;
  min-width:154px!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom:hover{
  transform:translateY(-2px)!important;
}

@media(max-width:600px){
  .ufco-home-gallery.is-expanded{
    padding-bottom:82px!important;
  }

  .ufco-home-gallery.is-expanded .ufco-gallery-back-bottom{
    left:12px!important;
    bottom:14px!important;
    min-width:150px!important;
  }
}

/* Build 061 — full-screen Artwork Viewer */
body.ufco-viewer-open{
  overflow:hidden!important;
}

.ufco-artwork-viewer{
  position:fixed;
  z-index:120000;
  inset:0;
  opacity:0;
  transition:opacity .18s ease;
}

.ufco-artwork-viewer.is-open{
  opacity:1;
}

.ufco-artwork-viewer[hidden]{
  display:none!important;
}

.ufco-viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,4,8,.96);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.ufco-viewer-dialog{
  position:absolute;
  inset:0;
  overflow:hidden;
}

.ufco-viewer-stage{
  position:absolute;
  inset:0;
  overflow:hidden;
  touch-action:none;
  user-select:none;
  cursor:default;
}

.ufco-viewer-stage.is-pannable{
  cursor:grab;
}

.ufco-viewer-stage.is-dragging{
  cursor:grabbing;
}

.ufco-viewer-image{
  position:absolute;
  left:50%;
  top:50%;
  max-width:none!important;
  max-height:none!important;
  width:auto!important;
  height:auto!important;
  transform-origin:center center;
  will-change:transform;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

.ufco-viewer-close{
  appearance:none;
  position:fixed;
  z-index:120010;
  top:16px;
  right:18px;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(13,17,24,.82);
  color:#fff;
  font-size:27px;
  font-weight:300;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(12px);
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}

.ufco-viewer-close:hover{
  transform:scale(1.05);
  border-color:rgba(255,255,255,.34);
  background:rgba(31,41,55,.94);
}

.ufco-viewer-title{
  position:fixed;
  z-index:120008;
  top:19px;
  left:20px;
  display:flex;
  align-items:baseline;
  gap:8px;
  max-width:min(60vw,560px);
  overflow:hidden;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(7,10,15,.64);
  color:#eef2f7;
  font-size:11px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
  backdrop-filter:blur(10px);
}

.ufco-viewer-title small{
  flex:0 0 auto;
  color:#b9a6ff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.ufco-viewer-title strong{
  min-width:0;
  overflow:hidden;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ufco-viewer-toolbar{
  position:fixed;
  z-index:120010;
  left:50%;
  bottom:20px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(8,11,17,.86);
  box-shadow:0 12px 36px rgba(0,0,0,.32);
  transform:translateX(-50%);
  backdrop-filter:blur(14px);
}

.ufco-viewer-toolbar button{
  appearance:none;
  min-width:36px;
  height:34px;
  padding:0 10px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#f8fafc;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  transition:background .16s ease,color .16s ease;
}

.ufco-viewer-toolbar button:hover{
  background:rgba(155,92,246,.17);
  color:#fff;
}

.ufco-viewer-toolbar [data-viewer-zoom-in],
.ufco-viewer-toolbar [data-viewer-zoom-out]{
  width:34px;
  min-width:34px;
  padding:0;
  font-size:20px;
  font-weight:400;
}

.ufco-viewer-zoom-value{
  display:inline-flex;
  justify-content:center;
  min-width:48px;
  color:#aeb6c3;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}

.ufco-viewer-help{
  position:fixed;
  z-index:120008;
  right:18px;
  bottom:22px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(7,10,15,.52);
  color:#8f99a8;
  font-size:9px;
  pointer-events:none;
  backdrop-filter:blur(8px);
}

@media(max-width:720px){
  .ufco-viewer-title{
    top:14px;
    left:12px;
    max-width:calc(100vw - 76px);
  }

  .ufco-viewer-close{
    top:10px;
    right:10px;
    width:42px;
    height:42px;
  }

  .ufco-viewer-toolbar{
    bottom:14px;
    max-width:calc(100vw - 20px);
  }

  .ufco-viewer-toolbar button{
    min-width:32px;
    padding:0 8px;
  }

  .ufco-viewer-help{
    display:none;
  }
}

@media(max-width:430px){
  .ufco-viewer-toolbar [data-viewer-reset]{
    display:none;
  }

  .ufco-viewer-toolbar{
    gap:2px;
  }
}

@media(prefers-reduced-motion:reduce){
  .ufco-artwork-viewer,
  .ufco-viewer-close,
  .ufco-viewer-toolbar button{
    transition:none!important;
  }
}

/* Build 062 — true viewer centering.
   JS owns transform for zoom/pan, so centering must not depend on transform. */
.ufco-viewer-stage{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.ufco-viewer-image{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  flex:0 0 auto;
  transform-origin:center center!important;
}

/* Build 063 — explicit single-page artwork viewer trigger */
.ufco-single-viewer-action{
  display:flex;
  justify-content:flex-end;
  margin:0 0 10px;
}

.ufco-open-viewer-button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:8px 13px;
  border:1px solid rgba(155,92,246,.38);
  border-radius:999px;
  background:rgba(155,92,246,.10);
  color:#ede9fe;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

.ufco-open-viewer-button:hover{
  transform:translateY(-1px);
  border-color:rgba(167,139,250,.68);
  background:rgba(155,92,246,.18);
}

.ufco-open-viewer-button>span:first-child{
  font-size:15px;
  line-height:1;
}

@media(max-width:560px){
  .ufco-open-viewer-button{
    width:100%;
  }
}

/* Build 087 — badge/category separation + stronger View All */

/* Choice badge stays in a left-side lane. */
.ufco-gallery-badges{
  left:10px!important;
  right:auto!important;
  width:auto!important;
  max-width:calc(100% - 155px)!important;
}

.ufco-choice-stack{
  max-width:100%!important;
}

.ufco-choice-badge,
.ufco-choice-note{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.ufco-choice-badge{
  max-width:100%!important;
  padding:5px 8px!important;
  font-size:10px!important;
}

.ufco-choice-note{
  max-width:210px!important;
}

/* Category/type pill stays independently anchored to the right. */
.ufco-category-pill{
  top:10px!important;
  right:10px!important;
  left:auto!important;
  z-index:7!important;
  max-width:38%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* View All gets clear CTA hierarchy. */
.ufco-home-gallery .ufco-gallery-expand{
  min-width:136px!important;
  min-height:42px!important;
  padding:9px 18px!important;
  border:1px solid rgba(124,58,237,.65)!important;
  background:linear-gradient(135deg,#7c3aed,#9b5cf6)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(124,58,237,.20)!important;
}

.ufco-home-gallery .ufco-gallery-expand:hover{
  transform:translateY(-2px)!important;
  border-color:#c4b5fd!important;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;
  box-shadow:0 15px 32px rgba(124,58,237,.30)!important;
}

.ufco-home-gallery .ufco-gallery-expand:focus-visible{
  outline:3px solid rgba(167,139,250,.28)!important;
  outline-offset:3px!important;
}

@media(max-width:720px){
  .ufco-gallery-badges{
    max-width:calc(100% - 120px)!important;
  }
  .ufco-category-pill{
    max-width:34%!important;
  }
}

/* Build 091 — expanded gallery respects global header + refined Back to Home */

body{
  --ufco-public-header-height:72px;
}

body.admin-bar{
  --ufco-public-header-height:104px;
}

@media(max-width:782px){
  body.admin-bar{
    --ufco-public-header-height:118px;
  }
}

/* View All expands below the unified global header rather than behind it. */
.ufco-home-gallery.is-expanded{
  top:var(--ufco-public-header-height)!important;
  bottom:0!important;
  height:auto!important;
  padding-top:26px!important;
  scroll-padding-top:26px!important;
}

/* Give the first row a little visual breathing room when expansion opens. */
.ufco-home-gallery.is-expanded > .ufco-gallery-grid{
  padding-top:4px!important;
}

/* Top close remains a clean escape control. */
.ufco-home-gallery.is-expanded .ufco-gallery-back-top{
  top:14px!important;
  right:18px!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(16,20,28,.82)!important;
  color:#fff!important;
  box-shadow:0 10px 28px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-top:hover{
  border-color:rgba(255,255,255,.32)!important;
  background:rgba(31,37,50,.94)!important;
  transform:translateY(-1px)!important;
}

/* Back to Home: quiet glass button, fixed bottom-left, no longer a large purple pill. */
.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom{
  left:20px!important;
  right:auto!important;
  bottom:20px!important;
  min-width:0!important;
  min-height:42px!important;
  padding:9px 14px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:12px!important;
  background:rgba(15,19,27,.88)!important;
  color:#f8fafc!important;
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  box-shadow:
    0 12px 32px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transform:none!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom span:first-child{
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.08)!important;
  color:#c4b5fd!important;
  font-size:13px!important;
  line-height:1!important;
  transform:rotate(90deg)!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom:hover{
  border-color:rgba(167,139,250,.42)!important;
  background:rgba(30,25,45,.94)!important;
  color:#fff!important;
  box-shadow:
    0 15px 38px rgba(0,0,0,.34),
    0 0 0 1px rgba(124,58,237,.08)!important;
  transform:translateY(-2px)!important;
}

.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom:focus-visible,
.ufco-home-gallery.is-expanded .ufco-gallery-back-top:focus-visible{
  outline:3px solid rgba(167,139,250,.28)!important;
  outline-offset:3px!important;
}

@media(max-width:600px){
  .ufco-home-gallery.is-expanded{
    padding-top:18px!important;
  }

  .ufco-home-gallery.is-expanded .ufco-gallery-back-top{
    top:10px!important;
    right:10px!important;
  }

  .ufco-home-gallery.is-expanded .ufco-gallery-back-bottom{
    left:12px!important;
    bottom:12px!important;
    min-width:0!important;
    padding:8px 12px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .ufco-home-gallery.is-expanded .ufco-gallery-back-bottom,
  .ufco-home-gallery.is-expanded .ufco-gallery-back-top{
    transition:none!important;
  }
}

/* Build 092 — View All is a true overlay above the UFCo header */

/* Normal visitors: overlay covers the entire viewport including the site header. */
body:not(.admin-bar) .ufco-home-gallery.is-expanded{
  position:fixed!important;
  z-index:160000!important;
  inset:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
  padding:
    76px
    max(18px,calc((100vw - 1320px)/2))
    88px!important;
  overflow:auto!important;
  scroll-padding-top:76px!important;
}

/* Logged-in admins keep the WP admin bar visible; UFCo header is covered. */
body.admin-bar .ufco-home-gallery.is-expanded{
  position:fixed!important;
  z-index:160000!important;
  top:32px!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100vw!important;
  height:calc(100dvh - 32px)!important;
  max-height:calc(100dvh - 32px)!important;
  padding:
    72px
    max(18px,calc((100vw - 1320px)/2))
    88px!important;
  overflow:auto!important;
  scroll-padding-top:72px!important;
}

/* Close button is now always inside the overlay's visible top-right corner. */
.ufco-home-gallery.is-expanded .ufco-gallery-back-top{
  position:fixed!important;
  z-index:160020!important;
  top:18px!important;
  right:20px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:50%!important;
  background:rgba(17,21,30,.90)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* WP admin bar offset for close control. */
body.admin-bar .ufco-home-gallery.is-expanded .ufco-gallery-back-top{
  top:50px!important;
}

/* Keep Back to Home inside the same overlay. */
.ufco-home-gallery.is-expanded .ufco-gallery-back-bottom{
  z-index:160020!important;
}

/* Header should never visually bleed through the full-screen gallery. */
body.ufco-gallery-expanded .ufco-global-home-header{
  visibility:hidden!important;
  pointer-events:none!important;
}

@media(max-width:782px){
  body.admin-bar .ufco-home-gallery.is-expanded{
    top:46px!important;
    height:calc(100dvh - 46px)!important;
    max-height:calc(100dvh - 46px)!important;
    padding-top:64px!important;
  }

  body.admin-bar .ufco-home-gallery.is-expanded .ufco-gallery-back-top{
    top:58px!important;
  }
}

@media(max-width:600px){
  body:not(.admin-bar) .ufco-home-gallery.is-expanded{
    padding:64px 12px 78px!important;
  }

  body.admin-bar .ufco-home-gallery.is-expanded{
    padding:58px 12px 78px!important;
  }

  .ufco-home-gallery.is-expanded .ufco-gallery-back-top{
    top:12px!important;
    right:12px!important;
  }

  body.admin-bar .ufco-home-gallery.is-expanded .ufco-gallery-back-top{
    top:56px!important;
  }
}

/* Build 097 — recognition badges must never be visually clipped */
.ufco-gallery-media{
  --ufco-category-reserve:112px;
}

/* The badge lane can grow naturally, while preserving a right-side category lane. */
.ufco-gallery-badges{
  left:10px!important;
  right:auto!important;
  width:auto!important;
  max-width:calc(100% - var(--ufco-category-reserve) - 22px)!important;
  overflow:visible!important;
}

.ufco-choice-stack{
  width:auto!important;
  max-width:100%!important;
  overflow:visible!important;
}

.ufco-choice-badge{
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  flex-shrink:0!important;
}

.ufco-choice-badge .ufco-choice-icon{
  flex:0 0 auto!important;
}

.ufco-choice-note{
  width:max-content!important;
  max-width:min(220px,100%)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Category gives way before the recognition badge does. */
.ufco-category-pill{
  right:10px!important;
  left:auto!important;
  max-width:var(--ufco-category-reserve)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Slightly more breathing room on larger cards. */
@media(min-width:1100px){
  .ufco-gallery-media{
    --ufco-category-reserve:126px;
  }
}

/* On compact cards, keep recognition readable and truncate category more. */
@media(max-width:760px){
  .ufco-gallery-media{
    --ufco-category-reserve:92px;
  }

  .ufco-choice-badge{
    font-size:9.5px!important;
    padding:5px 8px!important;
  }

  .ufco-category-pill{
    font-size:9px!important;
  }
}

/* Extremely narrow one-column/card contexts can place category below the badge row. */
@media(max-width:430px){
  .ufco-gallery-badges{
    max-width:calc(100% - 20px)!important;
  }

  .ufco-category-pill{
    top:44px!important;
    max-width:calc(100% - 20px)!important;
  }
}

/* Build 099 — card overlay layering + stable horizontal like control */
.ufco-gallery-media-link{
  position:relative;
  z-index:8;
}

.ufco-gallery-media-link .ufco-view-artwork{
  position:absolute;
  z-index:14;
}

.ufco-category-pill{
  z-index:6!important;
}

.ufco-like-button{
  flex:0 0 auto!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  min-width:max-content!important;
  writing-mode:horizontal-tb!important;
}

.ufco-like-button .ufco-like-icon,
.ufco-like-button .ufco-like-count{
  flex:0 0 auto!important;
  display:inline-block!important;
  width:auto!important;
  white-space:nowrap!important;
}


/* Build 114 — artwork purchase intent CTA */
.ufco-gallery-purchase-row{
  margin-top:9px;
}
.ufco-want-this-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:34px;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:10px;
  background:rgba(255,255,255,.075);
  color:#f8fafc!important;
  font-size:10px;
  font-weight:750;
  line-height:1;
  letter-spacing:.015em;
  text-decoration:none!important;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.ufco-want-this-button:hover{
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.13);
  color:#fff!important;
  transform:translateY(-1px);
}
.ufco-want-this-button span{
  transition:transform .18s ease;
}
.ufco-want-this-button:hover span{
  transform:translateX(2px);
}
@media(max-width:560px){
  .ufco-want-this-button{min-height:36px;font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
  .ufco-want-this-button,.ufco-want-this-button span{transition:none!important}
}


/* Build 124 — gallery/home artwork card polish */
.ufco-gallery-grid{
  align-items:stretch;
}

.ufco-gallery-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  isolation:isolate;
}

.ufco-gallery-card:focus-within{
  border-color:rgba(155,92,246,.48)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 0 3px rgba(155,92,246,.09);
}

.ufco-gallery-media-link{
  display:block;
  width:100%;
  height:100%;
}

.ufco-gallery-media-link img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.ufco-gallery-meta{
  display:flex;
  flex:1 1 auto;
  min-width:0;
}

.ufco-gallery-card-copy{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
}

.ufco-gallery-title{
  display:-webkit-box;
  min-height:2.55em;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}

.ufco-gallery-taxonomy{
  min-height:1.35em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ufco-gallery-card-bottom{
  margin-top:auto;
}

.ufco-gallery-purchase-row{
  padding-top:10px;
  margin-top:10px!important;
  border-top:1px solid rgba(255,255,255,.08);
}

.ufco-want-this-button{
  min-height:40px!important;
  border-color:rgba(155,92,246,.28)!important;
  background:linear-gradient(180deg,rgba(155,92,246,.14),rgba(155,92,246,.075))!important;
  font-size:11px!important;
  letter-spacing:.025em!important;
}

.ufco-want-this-button:hover,
.ufco-want-this-button:focus-visible{
  border-color:rgba(155,92,246,.52)!important;
  background:linear-gradient(180deg,rgba(155,92,246,.23),rgba(155,92,246,.12))!important;
  outline:none;
}

.ufco-gallery-title:focus-visible,
.ufco-gallery-artwork-link:focus-visible,
.ufco-gallery-media-link:focus-visible,
.ufco-like-button:focus-visible{
  outline:2px solid rgba(180,130,255,.82)!important;
  outline-offset:3px;
}

.ufco-gallery-media-link .ufco-view-artwork{
  opacity:0;
  transform:translateY(5px);
  transition:opacity .2s ease,transform .2s ease;
}

.ufco-gallery-card:hover .ufco-view-artwork,
.ufco-gallery-media-link:focus-visible .ufco-view-artwork{
  opacity:1;
  transform:translateY(0);
}

@media(hover:none){
  .ufco-gallery-card:hover{
    transform:none;
  }

  .ufco-gallery-card:hover .ufco-gallery-media img{
    transform:none;
    filter:none;
  }

  .ufco-gallery-media-link .ufco-view-artwork{
    opacity:1;
    transform:none;
  }
}

@media(max-width:680px){
  .ufco-gallery-grid{
    gap:11px!important;
  }

  .ufco-gallery-card{
    border-radius:14px!important;
  }

  .ufco-gallery-purchase-row{
    padding-top:8px;
    margin-top:8px!important;
  }

  .ufco-want-this-button{
    min-height:42px!important;
    font-size:11px!important;
  }
}

@media(max-width:430px){
  .ufco-gallery-title{
    min-height:auto;
  }
}
