/* One stretch of colored paper for the wardrobe, including the site chrome. */
body.sw-archive-page, body.sw-archive-page #main {
  background-color: var(--sw-field, #e8e2df);
  transition: background-color .46s ease;
}
body:is(.sw-exploring,.sw-archive-page) #header.sa-mast,
body:is(.sw-exploring,.sw-archive-page) #header.sa-mast.sg-scrolled,
body:is(.sw-exploring,.sw-archive-page) .hn-bottom {
  background-color: color-mix(in srgb, var(--sw-field, #e8e2df) 74%, rgb(255 252 247 / .92));
}
body.sw-exploring.has-merch-field { --sa-merch-field:var(--sw-field)!important; }
body.sw-archive-page .sa-footer.hn-footer {
  background-color: color-mix(in srgb, var(--sw-field, #e8e2df) 67%, #f6f2eb);
  color:#292626;
  transition: background-color .46s ease;
}
body.sw-archive-page .hn-footer nav h3 { color:inherit; }
body.sw-archive-page .hn-footer .sa-foot-meta { border-color:#29262638; }
body.sw-archive-page .hn-footer .sa-footer-logo img { filter:brightness(0); }
.sw-gallery {
  --sw-pad:clamp(1rem, 5.2vw, 6rem);
  color:#262529;
  font-family:var(--sa-sans);
  max-width:1720px;
  margin:0 auto;
  padding:clamp(2rem,4vw,5rem) var(--sw-pad) clamp(2rem,5.5vw,5.5rem);
}
.sw-gallery *, .sw-gallery *::before, .sw-gallery *::after { box-sizing:border-box; }
.sw-gallery .sw-mast {
  display:flex; align-items:baseline; justify-content:space-between;
  gap:1rem; margin:0 0 clamp(1.2rem,2.8vw,3.3rem);
}
.sw-gallery .sw-mast :is(h1,h2) {
  color:inherit; font-weight:550; font-size:clamp(3rem,7.2vw,7rem);
  line-height:.96; letter-spacing:-.055em; margin:0;
}
.sw-gallery.sw-featured .sw-mast h2 { font-size:clamp(2.65rem,5.3vw,5.5rem); }
.sw-gallery a { color:inherit; text-decoration:none; }
.sw-gallery .sw-all {
  display:inline-flex; min-height:44px; align-items:center; gap:.4rem;
  font-size:clamp(.9rem,1.2vw,1.1rem); font-weight:650; white-space:nowrap;
}
.sw-gallery .sw-all:hover, .sw-gallery .sw-footer a:hover { text-decoration:underline; text-underline-offset:.22em; }
.sw-gallery :is(a,button,select,input,summary):focus-visible {outline:2px solid currentColor; outline-offset:4px;}
.sw-gallery .sw-browse {
  display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.5rem 2rem;
}
.sw-gallery .sw-categories { display:flex; flex-wrap:wrap; gap:0 clamp(.8rem,1.6vw,1.7rem); }
.sw-gallery .sw-categories a,
.sw-gallery .sw-filters summary,
.sw-gallery .sw-footer a {
  display:inline-flex; align-items:center; min-height:44px;
  font-size:clamp(.9rem,1.05vw,1rem); font-weight:560;
}
.sw-gallery .sw-categories a:hover,
.sw-gallery .sw-categories a[aria-current] {text-decoration:underline; text-decoration-thickness:.12em; text-underline-offset:.28em;}
.sw-gallery .sw-filters { margin-left:auto; }
.sw-gallery .sw-filters[open] { flex:1 0 100%; margin:0; }
.sw-gallery .sw-filters summary { cursor:pointer; list-style:none; gap:.5rem; }
.sw-gallery summary::-webkit-details-marker { display:none; }
.sw-gallery summary::after { content:'+'; font-weight:400; }
.sw-gallery details[open] summary::after { content:'−'; }
.sw-gallery form {
  display:flex; align-items:flex-end; flex-wrap:wrap; gap:.65rem 1rem; padding:.4rem 0 .8rem;
}
.sw-gallery form label {display:grid;gap:.2rem;font-size:.85rem;font-weight:600;}
.sw-gallery form input, .sw-gallery form select, .sw-gallery form button {
  min-height:44px; font:inherit; color:inherit; background:rgba(255,255,255,.25);
  border:1px solid #29262655; border-radius:6px; padding:.45rem .7rem; max-width:100%;
}
.sw-gallery form button { border-color:#262529; background:#262529; color:#fff; cursor:pointer; }
.sw-gallery .sw-grid {
  list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0; padding:clamp(1rem,2.3vw,3rem) 0;
  gap:clamp(2.1rem,5vw,6rem) clamp(1.5rem,4.4vw,5rem);
}
.sw-gallery .sw-place {
  --sw-angle:-3deg; --sw-scale:.97;
  align-self:start; min-width:0; padding:0; margin:0;
}
.sw-gallery .sw-place:nth-child(6n+2){ --sw-angle:5deg; --sw-scale:.88; margin-top:clamp(2.2rem,6vw,6.5rem); }
.sw-gallery .sw-place:nth-child(6n+3){ --sw-angle:-6deg; --sw-scale:.91; margin-top:clamp(.7rem,2vw,2rem); }
.sw-gallery .sw-place:nth-child(6n+4){ --sw-angle:4deg; --sw-scale:.93; }
.sw-gallery .sw-place:nth-child(6n+5){ --sw-angle:-2deg; --sw-scale:.98; margin-top:clamp(2.4rem,4.5vw,4rem); }
.sw-gallery .sw-place:nth-child(6n){ --sw-angle:3deg; --sw-scale:.9; }
.sw-gallery .sw-piece {
  display:grid; position:relative; grid-template-rows:minmax(0,1fr) auto; justify-items:center;
  text-align:center; font-size:clamp(.86rem,1.3vw,1.15rem); font-weight:620;
}
.sw-gallery .sw-piece img {
  display:block; width:100%; max-width:100%; height:clamp(220px,26vw,460px);
  padding:clamp(.4rem,.8vw,1rem); object-fit:contain;
  transform:rotate(var(--sw-angle)) scale(var(--sw-scale));
  transition:transform .4s cubic-bezier(.22,.7,.3,1);
}
.sw-gallery .sw-piece .sw-twist-finish {
  padding:0;
  -webkit-mask:url('/assets/twist/silhouette.svg') center / contain no-repeat;
  mask:url('/assets/twist/silhouette.svg') center / contain no-repeat;
}
.sw-gallery .sw-name { padding:.25rem .2rem; line-height:1.25; opacity:0; transition:opacity .2s; }
.sw-gallery .sw-current img, .sw-gallery .sw-piece:focus-visible img { transform:rotate(0deg) scale(1); }
.sw-gallery .sw-current .sw-name, .sw-gallery .sw-piece:focus-visible .sw-name { opacity:1; }
.sw-gallery .sw-empty { margin:4rem 0 1rem; }
.sw-gallery .sw-footer { display:flex; flex-wrap:wrap; gap:.6rem 2rem; margin-top:1rem; }

@media(max-width:760px) {
  .sw-gallery .sw-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.6rem .8rem;}
  .sw-gallery .sw-place:nth-child(n){margin-top:0;}
  .sw-gallery .sw-place:nth-child(even){margin-top:clamp(1.2rem,8vw,3.5rem);}
  .sw-gallery .sw-piece img {height:clamp(142px,38vw,270px);}
  .sw-gallery .sw-filters {margin-left:0;}
  .sw-featured .sw-grid {grid-template-columns:repeat(6,minmax(0,1fr));}
  .sw-featured .sw-place:nth-child(1) {grid-column:1 / 4; grid-row:1;}
  .sw-featured .sw-place:nth-child(2) {grid-column:4 / 7; grid-row:1; margin-top:3.4rem;}
  .sw-featured .sw-place:nth-child(3) {grid-column:2 / 6; grid-row:2; margin-top:-1rem;}
}
@media (hover:none) {
  .sw-gallery .sw-name {opacity:1;}
}
@media (prefers-reduced-motion:reduce) {
  body.sw-archive-page, body.sw-archive-page #main, body.sw-archive-page .sa-footer.hn-footer,
  .sw-gallery .sw-piece img, .sw-gallery .sw-name {transition:none;}
  .sw-gallery .sw-current img, .sw-gallery .sw-piece:focus-visible img {transform:rotate(var(--sw-angle)) scale(var(--sw-scale));}
}
