.gallery-page[hidden]{display:none}
/* Before the app starts, the gallery fragment selects the gallery shell. */
.storefront-studio:target:not([data-gallery-ready]) #galleryView[hidden]{display:grid!important}
.storefront-studio:is(:target:not([data-gallery-ready]),:has(#galleryView:not([hidden]))) :is(#studioView,#orderTracking){display:none}
.storefront-studio:not(:target:not([data-gallery-ready]),:has(#galleryView:not([hidden]))) .storefront-header{
  height:auto;padding-bottom:clamp(8px,.8vw,14px)
}
.storefront-studio:target:not([data-gallery-ready]) .storefront-header #navGallery{color:var(--violet)}
.storefront-studio.member-editing .storefront-header{display:none}
.gallery-page{display:grid;grid-template-columns:minmax(0,1fr)}
.gallery-page>.gallery-hero{grid-row:1}
.gallery-page>.gallery-toolbar{grid-row:2}
.gallery-page>.gallery-content{grid-row:3;width:100%}
.gallery-hero{grid-row:1}
.gallery-page>.gallery-toolbar{grid-row:2}
.gallery-page>.gallery-content{grid-row:3;width:100%}
.storefront-studio:is(:target:not([data-gallery-ready]),:has(#galleryView:not([hidden]))) .site-header{
  position:relative;z-index:4;border-bottom:0;background:transparent
}
.storefront-studio:is(:target:not([data-gallery-ready]),:has(#galleryView:not([hidden]))) .header-inner{
  background:#fff;border:1px solid #ede8fb;border-radius:18px;
  box-shadow:0 5px 16px #1510251a
}
@media(min-width:661px){
  .storefront-studio:is(:target:not([data-gallery-ready]),:has(#galleryView:not([hidden]))) .site-header{
    height:0
  }
  .storefront-studio:is(:target:not([data-gallery-ready]),:has(#galleryView:not([hidden]))) .header-inner{
    position:relative;top:clamp(8px,.8vw,14px);min-height:54px;padding-inline:clamp(12px,1.8vw,26px)
  }
}
.gallery-hero{position:relative;isolation:isolate;display:grid;align-items:end;overflow:hidden;width:100%;aspect-ratio:210/79;min-height:clamp(350px,40vw,460px);max-height:720px;background:#201722;color:white}
.gallery-hero picture{position:absolute;inset:0;z-index:-2}
.gallery-hero img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 36%}
.gallery-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 30%,#120d1c38 51%,#120d1cbf 76%,#110c17f8 100%);pointer-events:none}
.gallery-hero-copy{display:grid;justify-items:center;text-align:center;padding:1.15rem var(--side) clamp(1.15rem,3.65vw,3.1rem);text-shadow:0 2px 24px #130c1699}
.gallery-hero-copy h1{margin:0;max-width:23ch;color:white;font-family:var(--store-heading,inherit);font-size:clamp(2rem,4.6vw,4.3rem);font-weight:780;line-height:1.07;letter-spacing:-.045em;text-wrap:balance}
.gallery-hero-copy [lang]{display:none}
html:lang(es) .gallery-hero-copy [lang="es-MX"],
html:lang(en) .gallery-hero-copy [lang="en-US"],
.gallery-content{padding-bottom:clamp(24px,4vw,48px)}
.gallery-actions,.gallery-admin-actions,.gallery-admin-filter{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gallery-toolbar{background:#fff}
.gallery-toolbar .gallery-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem 1rem;padding-block:.85rem .5rem}
.gallery-mode-actions{display:flex;align-items:center;gap:.45rem;min-width:0}
.gallery-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#efedf5;border:1px solid #e5e1ec;border-radius:12px}
.gallery-switch button,.gallery-like,.gallery-photo button,.gallery-admin-actions button{background:transparent;border:0;border-radius:8px;cursor:pointer;color:#33294a;padding:8px 12px;font:inherit;font-weight:600}
.gallery-switch button{min-height:44px;line-height:1.2;padding-inline:clamp(.55rem,1.6vw,1.5rem)}
.gallery-switch button:not([aria-pressed=true]):hover{background:#fff}
.gallery-switch button[aria-pressed=true]{color:white;background:var(--purple-dark,#4d2ec1);box-shadow:0 1px 6px #21132c23}
.gallery-mode-note,.gallery-permissions p{color:#625b6d;font-size:.87rem;line-height:1.45}
.gallery-refresh,.gallery-bottom-actions button{min-height:44px;white-space:nowrap}
.gallery-refresh span{font-size:1.15em;line-height:1}
.gallery-permissions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1rem;margin:.35rem 0 .9rem;padding-top:.4rem;border-top:1px solid #e3dfe8}
.gallery-permissions .subbutton{min-height:44px;max-width:100%;margin:0;text-align:center;white-space:normal}
.gallery-like-hint{display:flex;align-items:baseline;gap:.4rem;margin:0 0 .8rem;color:#625b6d;font-size:.9rem;line-height:1.45}
.gallery-like-hint-icon{color:#8b255d;font-size:1.2em;line-height:1}
.gallery-bottom-actions{display:grid;justify-items:center;margin-top:1.15rem}
.gallery-status:empty{display:none}
.gallery-retry{min-height:44px;margin:.35rem 0 .75rem}
.gallery-admin-actions button{border:1px solid #cfc6df;background:#fff}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.5vw,22px)}
.gallery-grid[aria-busy=true]{opacity:.55}
.gallery-admin-pool>p{color:#625b6d;line-height:1.5;margin:10px 0 0}
.gallery-card{min-width:0;overflow:hidden;background:white;border:1px solid #e2dee7;border-radius:16px}.gallery-photo{background:#f7f6f8;position:relative;isolation:isolate}.gallery-photo img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.gallery-photo button,.gallery-rank{position:absolute;line-height:1;background:#fffffff0;box-shadow:0 1px 4px #382c491c;border-radius:20px;font-size:.75rem}.gallery-photo button{right:9px;bottom:9px}.gallery-rank{top:10px;left:10px;padding:7px 10px;color:#40246b}.gallery-card-body{padding:clamp(10px,1.5vw,18px)}.gallery-card-body small,.gallery-case-fields small{color:#736980;font-size:.75rem}.gallery-card h3{font-size:clamp(1rem,1.5vw,1.25rem);margin:5px 0 14px;line-height:1.2}.gallery-like{background:#f6f3f9;border:1px solid #e5dfed;white-space:nowrap}.gallery-like span{font-size:1.15em}.gallery-like[aria-pressed=true]{color:#8b255d}.gallery-use{background:#452786;color:white;text-decoration:none;padding:9px 14px;font-weight:650;font-size:.89rem;border:0;border-radius:8px;cursor:pointer}.gallery-status,.gallery-feedback{color:#514064;min-height:1.2em}.gallery-page button:disabled{opacity:.55}
.gallery-admin-notice{padding-bottom:22px;border-bottom:1px solid #dfdae4}.gallery-admin-notice h2{margin-top:0}.gallery-admin-notice output,.gallery-admin-item output{margin-inline:10px;overflow-wrap:anywhere}.gallery-admin-filter{justify-content:flex-start;margin:18px 0}.gallery-admin-filter input{min-width:0}.gallery-admin-item{border-top:1px solid #e2dce6;padding:16px 0;display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;align-items:center}.gallery-proof{display:flex}.gallery-proof img{width:100%;height:auto;display:block}.gallery-proof a{width:50%}.gallery-fields{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.gallery-fields label{flex:1 1 160px;display:grid;gap:4px;font-size:.83rem}.gallery-fields label:has([name=likes]){flex:0 1 84px}.gallery-fields input,.gallery-fields textarea,.gallery-admin-filter input,.gallery-admin-filter select{box-sizing:border-box;max-width:100%;width:100%;padding:8px;border:1px solid #cfc8d9;border-radius:7px;font:inherit;background:white;color:#30283b}.gallery-admin-filter select,.gallery-admin-filter input{width:auto}.gallery-admin-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:8px}.gallery-case-fields details{font-size:.83rem;color:#64596c}.gallery-case-fields details p{overflow-wrap:anywhere}
@media(max-width:920px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-admin-item{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:660px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-admin-item{grid-template-columns:1fr}.gallery-proof{max-width:200px}.gallery-actions{gap:3px;flex-wrap:wrap}.gallery-use,.gallery-like{padding:8px 9px}.gallery-card{border-radius:10px}}
.gallery-card,.gallery-card-body{display:flex;flex-direction:column}.gallery-card-body{flex:1}.gallery-actions{margin-top:auto}
.pool-page-tools,.pool-pages{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pool-page-tools{justify-content:space-between;margin:14px 0;color:#605769;font-size:.9rem;scroll-margin-top:86px}.pool-page-tools select,.pool-pages button{background:white;color:#40344f;border:1px solid #d3cbdc;border-radius:7px;padding:7px 11px;font:inherit}.pool-pages{justify-content:center;margin:18px 0}.pool-pages[hidden]{display:none}.pool-pages button[aria-current=page]{background:#472d79;color:white}.pool-pages button:disabled{opacity:.45}

.gallery-card .gallery-card-body h3{margin-bottom:4px}.gallery-byline{margin:0 0 14px;color:#645b70;font-size:.8rem;line-height:1.5;overflow-wrap:anywhere}.gallery-admin-filter{flex-wrap:wrap}.gallery-admin-filter label{display:flex;align-items:center;gap:6px}.gallery-case-meta{display:flex;gap:4px 16px;flex-wrap:wrap}.gallery-case-meta time{font-variant-numeric:tabular-nums}
.gallery-submission fieldset{display:grid;gap:.8rem;border:1px solid var(--line);border-radius:10px;padding:.75rem}
.gallery-submission fieldset label{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:.55rem;font-weight:400}
.gallery-submission fieldset input[type=checkbox]{width:18px;height:18px;min-height:0;margin:.18rem 0 0;padding:0;accent-color:var(--purple)}
.gallery-submission fieldset span span{display:block;color:var(--muted)}
.gallery-submission fieldset input,.gallery-review-check input{flex:none}
.gallery-review-check{display:flex;align-items:flex-start;gap:.5rem;margin-top:.65rem}
.gallery-submission [role=status]:empty{display:none}
.gallery-card h3{overflow-wrap:anywhere}
.gallery-unavailable{color:#773f20;font-size:.83rem;font-weight:650}
.gallery-share{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:#44306b;font-size:.82rem;text-underline-offset:3px}

@media(max-width:660px){
  .storefront-studio .storefront-header{height:auto;padding-block:.5rem 0}
  .storefront-studio .storefront-header .top{top:0}
  .gallery-page>.gallery-toolbar{grid-row:1}
  .gallery-page>.gallery-hero{grid-row:2}
  .gallery-toolbar .gallery-tools{padding-block:.48rem .55rem}
  .gallery-mode-actions{width:100%}
  .gallery-mode-actions .gallery-switch{flex:1;width:auto;min-width:0}
  .gallery-switch button{padding-inline:clamp(.2rem,1.6vw,.55rem)}
  .gallery-refresh{padding-inline:.45rem;font-size:.78rem}
  .gallery-mode-note{font-size:.79rem}
  .gallery-permissions{margin-top:.7rem;padding:0;border:0}
  .gallery-hero{min-height:0;max-height:none;aspect-ratio:auto;align-items:stretch}
  .gallery-hero::after{display:none}
  .gallery-hero picture{position:static;aspect-ratio:4/3}
  .gallery-hero img{height:auto;object-fit:contain}
  .gallery-hero-copy{background:#201722;padding:1rem var(--side) 1.2rem}
  .gallery-hero-copy h1{font-size:clamp(2rem,8.7vw,2.85rem);max-width:18ch}
  .gallery-photo button{min-height:44px}
  .gallery-photo button{bottom:5px;right:5px}
  .gallery-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:.3rem;width:100%}
  .gallery-actions :is(.gallery-like,.gallery-use){min-height:44px;text-align:center}
}
@media(max-width:480px){
  .gallery-actions{grid-template-columns:minmax(0,1fr)}
  .gallery-actions .gallery-use{grid-row:1}
  .gallery-actions .gallery-like{width:100%}
}
