/* Independent popup studies. The locked hero and collection grid are untouched. */
.collection-popup{color:#253f33;background:#f4f2ec;border:0;padding:0;width:min(1240px,92vw);max-width:none;max-height:90dvh;margin:auto;box-shadow:0 24px 100px #182a2430;overflow:auto;overscroll-behavior:contain}
.collection-popup::backdrop{background:#15282066;backdrop-filter:blur(5px)}
.collection-popup[open]{animation:popup-arrive 260ms cubic-bezier(.2,.7,.2,1)}
@keyframes popup-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.popup-shell{padding:22px 42px 20px}
.popup-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px}
/* Trim the SVG's empty artboard margins without distorting the wordmark. */
.popup-brand{display:block;width:160px;height:24px;object-fit:cover;object-position:50% 57%;flex:none}
.popup-close{width:44px;height:44px;display:grid;place-items:center;border:1px solid #81908466;border-radius:50%;position:relative;background:transparent}
.popup-close span::before,.popup-close span::after{content:"";position:absolute;width:14px;height:1px;left:14px;top:21px;background:currentColor;transform:rotate(45deg)}
.popup-close span::after{transform:rotate(-45deg)}
.popup-close:hover{background:#e4e8df}
.popup-introduction{margin:0 0 30px}
.popup-count{font-size:10px;letter-spacing:.07em;color:#526657;margin:0 0 8px}
.popup-introduction h2{font:400 clamp(34px,4vw,54px)/1.1 Gilda,Georgia,serif;letter-spacing:-.04em;margin:0 0 10px}
.popup-description{font-size:12px;line-height:1.6;margin:0;max-width:45ch;color:#526657}
.popup-preview-note{font-size:11px;line-height:1.5;margin:10px 0 0;color:#526657}
.popup-pieces{display:grid;grid-template-columns:repeat(var(--piece-count),minmax(0,1fr));gap:26px}
.popup-piece-title{display:flex;gap:13px;align-items:baseline;min-height:68px}
.popup-piece-index{font-size:9px;color:#526657}
.popup-piece-title h3{font:400 24px/1.18 Gilda,Georgia,serif;letter-spacing:-.02em;margin:0 0 6px}
.popup-piece-title p{font-size:10px;margin:0 0 15px;color:#526657}
.popup-image-pair{display:grid;grid-template-columns:1.15fr 1fr;gap:6px}
.popup-photo{position:relative;background:#e9e9e0;margin:0;min-width:0;height:clamp(215px,31vh,330px);overflow:hidden}
.popup-photo img{display:block;width:100%;height:100%;object-fit:contain;padding:8px 6px 32px}
.popup-photo figcaption{position:absolute;bottom:0;left:0;right:0;margin:0;padding:9px 10px;font-size:9px;letter-spacing:.025em;color:#324b3c;background:#edece5eb}
.worn-photo{background:#deded4}
.worn-photo img{object-fit:cover;padding:0;filter:saturate(.4);object-position:center 35%}
.worn-photo.approved-worn img{filter:none;object-position:center}
.popup-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #bdc5b8;margin-top:32px;padding-top:14px}
.popup-footer>span{font-size:9px;color:#526657;line-height:1.5}
.popup-designs{display:flex;flex-wrap:wrap;gap:14px}
.popup-designs button{font-size:10px;min-height:40px;padding:6px 0;border-bottom:1px solid transparent;background:transparent;white-space:nowrap;color:#526657}
.popup-designs button span{font-size:8px;margin-right:4px}
.popup-designs button[aria-pressed=true]{color:#233e2d;border-color:currentColor}
.collection-popup :focus-visible{outline:2px solid #647960;outline-offset:4px}
/* A folio dedicates the spread to one piece while all names remain visible. */
.collection-popup[data-design=folio]{width:min(1320px,94vw)}
[data-design=folio] .popup-introduction{margin-bottom:20px}
.folio-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:42px}
.folio-index{align-self:start}
.folio-index button{display:flex;align-items:baseline;gap:13px;width:100%;padding:20px 0;border-top:1px solid #bdc5b8;color:#607364;text-align:left;background:transparent;font:19px Gilda,Georgia,serif}
.folio-index button>span:first-child{font:9px Arial,sans-serif}
.folio-index button>span:last-child{margin-left:auto;font:15px Arial,sans-serif}
.folio-index button[aria-pressed=true]{color:#243e2f;border-top-color:#314d38}
.folio-index small{display:block;font:10px Arial,sans-serif;margin-top:7px}
.folio-spread{display:grid;grid-template-columns:1.1fr 1fr;gap:8px 12px}
.folio-spread .popup-photo{height:clamp(250px,40vh,440px)}
.folio-caption{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;padding-top:12px}
.folio-caption>span{font-size:10px;color:#526657}
.folio-caption .popup-piece-title{min-height:0}
[data-design=folio] .popup-footer{margin-top:15px}
/* The drawer keeps the underlying collection visible, with compact rows. */
.collection-popup[data-design=drawer]{width:min(680px,92vw);height:100dvh;max-height:100dvh;margin:0 0 0 auto;animation-name:drawer-arrive}
@keyframes drawer-arrive{from{transform:translateX(24px);opacity:0}to{transform:translateX(0);opacity:1}}
[data-design=drawer] .popup-shell{padding:22px 36px;min-height:100%;display:flex;flex-direction:column}
[data-design=drawer] .popup-content{flex:1}
[data-design=drawer] .popup-pieces{display:block}
[data-design=drawer] .popup-introduction{margin-bottom:20px}
[data-design=drawer] .popup-piece{display:grid;grid-template-columns:145px minmax(0,1fr);gap:15px;border-top:1px solid #bdc5b8;padding:18px 0}
[data-design=drawer] .popup-piece-title{padding-top:12px;gap:8px}
[data-design=drawer] .popup-piece-title h3{font-size:21px}
[data-design=drawer] .popup-photo{height:160px}
[data-design=drawer] .popup-footer{display:block;margin-top:18px}
[data-design=drawer] .popup-designs{margin-top:8px;justify-content:space-between;gap:8px}
@media(max-width:760px){
 .collection-popup,.collection-popup[data-design=folio]{width:94vw;max-height:94dvh}
 .popup-shell{padding:15px 20px}.popup-header{margin-bottom:15px}
 .popup-introduction{margin-bottom:22px}.popup-pieces{grid-template-columns:1fr;gap:24px}
 .popup-photo{height:240px}.popup-piece-title{min-height:55px}
 .popup-footer{display:block}.popup-designs{margin-top:12px;gap:12px}
 .folio-layout{grid-template-columns:1fr;gap:14px}.folio-index{display:flex;gap:12px}
 .folio-index button{font-size:14px;gap:6px;padding:12px 0}.folio-index button>span:last-child{display:none}
 .folio-spread .popup-photo{height:250px}
 [data-design=drawer] .popup-shell{padding:20px}
 [data-design=drawer] .popup-piece{grid-template-columns:1fr;gap:0}
 [data-design=drawer] .popup-photo{height:210px}
}
@media(prefers-reduced-motion:reduce){.collection-popup[open]{animation:none}}
body[data-reduced=true] .collection-popup[open]{animation:none}

/* 04–06: thumbnail-driven product views. No carousel autoplay or purchase UI. */
.collection-popup[data-design=pdp],.collection-popup[data-design=showcase]{width:min(1320px,94vw)}
[data-design=pdp] .popup-introduction,[data-design=showcase] .popup-introduction{margin-bottom:20px}
[data-design=pdp] .popup-introduction h2,[data-design=showcase] .popup-introduction h2{font-size:38px}
[data-design=pdp] .popup-description,[data-design=showcase] .popup-description{display:none}
.pdp-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:48px}
.pdp-main .popup-photo{height:clamp(280px,39vh,400px)}
.pdp-main{min-width:0;position:relative}
.pdp-main-photo{height:100%}
.image-view-controls{position:absolute;z-index:1;bottom:8px;left:12px;right:12px;display:flex;justify-content:center;gap:18px;background:#f4f2ecf2;padding:0 8px}
.image-view-controls button{min-height:44px;padding:8px 0;font-size:11px;color:#526657;border-bottom:1px solid transparent}
.image-view-controls button[aria-pressed=true]{color:#0b4a3b;border-color:currentColor}
.image-view-controls button:focus-visible{outline:2px solid #24563e;outline-offset:3px}
.pdp-main-toggle{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.pdp-main-toggle:not(button){cursor:default}
.pdp-main .popup-photo figcaption{padding-right:42px}
.pdp-main .image-dots{z-index:1}
.pdp-main [data-view=worn] .image-dots i:first-child{background:transparent}
.pdp-main [data-view=worn] .image-dots i:last-child{background:#466247}
.pdp-main svg{display:block;width:100%;height:100%;padding:22px 24px 45px}
.pdp-thumbnails{display:flex;gap:10px;margin-top:12px}
.pdp-thumbnails button{width:74px;flex:0 0 74px;border:1px solid transparent;padding:3px;background:transparent;display:flex;flex-direction:column;gap:5px;text-align:center;color:#526657}
.pdp-thumbnails button[aria-pressed=true]{border-color:#526657}
.pdp-thumbnails img{width:66px;height:58px;object-fit:contain;background:#e9e9e0}
.pdp-thumbnails img.thumb-worn{object-fit:cover;object-position:50% 25%;filter:saturate(.4)}
.pdp-thumbnails span{font-size:8px;line-height:1.3;min-height:20px;display:grid;place-items:center}
.pdp-details{padding:22px 0 0}
.pdp-detail-intention{font-size:10px;color:#526657;margin:0 0 15px}
.pdp-details .popup-piece-title h3{font-size:38px}
.pdp-details .popup-piece-index{display:none}
.pdp-detail-copy{font-size:13px;line-height:1.7;max-width:29ch;margin:15px 0 22px}
.selection-position{font-size:10px;line-height:1.5;color:#526657;display:block}
.pdp-product-navigation{margin-top:22px;display:flex;gap:24px}
.pdp-product-navigation button{display:flex;align-items:baseline;gap:13px;background:transparent;border-top:1px solid #bdc5b8;color:#607364;padding:15px 0;text-align:left;font:18px/1.3 Gilda,Georgia,serif;flex:1;min-width:0}
.pdp-product-navigation button>span:first-child{font:9px Arial,sans-serif}
.pdp-product-navigation button>span:last-child{margin-left:auto;font:15px Arial,sans-serif}
.pdp-product-navigation button[aria-pressed=true]{color:#243e2f;border-top-color:#314d38}
.pdp-product-navigation small{display:block;font:10px Arial,sans-serif;margin-top:6px}
.pdp-details .pdp-product-navigation{display:block;margin-top:22px}
.pdp-details .pdp-product-navigation button{width:100%}
[data-design=pdp] .popup-footer,[data-design=showcase] .popup-footer,[data-design=pdp-all] .popup-footer{margin-top:20px}
.pdp-all-layout{display:grid;grid-template-columns:repeat(var(--piece-count),minmax(0,1fr));gap:26px}
.pdp-all-layout .pdp-main .popup-photo{height:clamp(250px,32vh,340px)}
.pdp-all-caption{display:flex;justify-content:space-between;gap:12px;padding-top:14px}
.pdp-all-caption .popup-piece-title{min-height:0;padding-top:8px}
.pdp-all-caption .popup-piece-title h3{font-size:22px}
.pdp-all-caption .pdp-thumbnails{margin:0;gap:5px;flex-shrink:0}
.pdp-all-caption .pdp-thumbnails button{width:54px;flex-basis:54px}
.pdp-all-caption .pdp-thumbnails img{width:46px;height:45px}
.pdp-all-caption .popup-piece-index{display:none}
.showcase-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:22px;align-items:center}
.showcase-layout .pdp-thumbnails{flex-direction:column;margin:0;align-self:start}
.showcase-layout .pdp-main .popup-photo{height:clamp(300px,43vh,440px)}
.showcase-caption .popup-piece-title h3{font-size:32px}
.showcase-caption .popup-piece-index{display:none}
.showcase-caption>p{font-size:12px;line-height:1.7;margin:20px 0 25px;max-width:25ch}
.popup-designs{justify-content:flex-end;gap:8px 14px}
[data-design=drawer] .popup-footer>span{display:block}
@media(max-width:1000px){
 .pdp-layout{gap:25px;grid-template-columns:minmax(0,1.5fr) minmax(225px,1fr)}
 .pdp-all-caption{display:block}.pdp-all-caption .pdp-thumbnails{margin-top:10px}
 .showcase-layout{grid-template-columns:minmax(0,1fr) 170px;gap:14px}
}
@media(max-width:760px){
 .pdp-layout{grid-template-columns:1fr;gap:10px}.pdp-details{padding-top:10px}
 .pdp-details .popup-piece-title h3{font-size:30px}
 .pdp-main .popup-photo{height:290px}
 .pdp-product-navigation{gap:12px}.pdp-product-navigation button{font-size:14px;gap:6px}
 .pdp-product-navigation button>span:last-child{display:none}
 .pdp-all-layout{grid-template-columns:1fr;gap:30px}
 .pdp-all-caption{display:flex}.pdp-all-caption .pdp-thumbnails{margin:0}
 .showcase-layout{grid-template-columns:1fr}.showcase-layout .pdp-main{grid-row:1}
 .showcase-layout .pdp-thumbnails{flex-direction:row;grid-row:2}
 .showcase-layout .pdp-main .popup-photo{height:320px}
 .showcase-caption .popup-piece-title{min-height:0}.showcase-caption>p{margin:10px 0}
 .popup-designs{justify-content:flex-start}
}

/* 07–09: square main photography with a photographic product selector. */
.collection-popup[data-square=true]{width:min(1250px,94vw)}
[data-square=true] .popup-introduction{margin-bottom:20px}
[data-square=true] .popup-introduction h2{font-size:36px}
[data-square=true] .popup-description{display:none}
[data-square=true] .popup-header{margin-bottom:8px}
[data-square=true] .popup-footer{margin-top:20px}
.square-visual{width:min(100%,50vh);min-width:0}
.square-visual .pdp-main{width:100%;aspect-ratio:1}
.square-visual .pdp-main-toggle{height:100%}
.square-visual .pdp-main .popup-photo{width:100%;height:100%;aspect-ratio:1}
.square-visual .pdp-main svg{padding:26px 25px 45px}
.square-visual .pdp-thumbnails{justify-content:center}
.square-visual .pdp-thumbnails button{width:62px;flex-basis:62px}
.square-visual .pdp-thumbnails img{width:54px;height:48px}
.square-details .popup-piece-index{display:none}
.square-details .popup-piece-title h3{font-size:34px}
.square-details .popup-piece-title{min-height:0}
.square-details{padding-top:20px;min-width:0}
.square-details .pdp-detail-copy{margin:20px 0;max-width:29ch}
.square-nav-label{font-size:10px;color:#526657;margin:0 0 12px}
.pictured-products{display:flex;gap:14px;min-width:0}
.pictured-products button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex:1;min-width:0;max-width:138px;background:transparent;color:#526657;text-align:left;padding:0 0 8px;border-bottom:1px solid transparent}
.pictured-products button[aria-pressed=true]{color:#233e2d;border-bottom-color:#526657}
.pictured-product-image{display:block;background:#e9e9e0;aspect-ratio:1;border:1px solid transparent}
.pictured-products button[aria-pressed=true] .pictured-product-image{border-color:#71816a}
.pictured-product-image img{display:block;width:100%;height:100%;object-fit:contain;padding:4px}
.pictured-product-name{font:16px/1.2 Gilda,Georgia,serif;display:block;margin-top:8px}
.pictured-product-name small{display:block;font:9px/1.4 Arial,sans-serif;margin-top:5px}
.square-rail-layout{display:grid;grid-template-columns:155px minmax(0,1fr) 260px;gap:34px;align-items:start}
.square-rail-layout .square-visual{justify-self:center}
.square-product-rail .pictured-products{display:grid;gap:12px}
.square-product-rail .pictured-products button{display:grid;grid-template-columns:68px 1fr;align-items:center;gap:10px;max-width:none;padding-bottom:8px}
.square-product-rail .pictured-product-name{font-size:15px;margin:0}
.square-shelf-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:55px;max-width:1020px;margin:auto}
.square-shelf-layout .square-visual{justify-self:end}
.square-shelf-info{display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding-bottom:15px}
.square-product-shelf{margin-top:25px}
.collection-popup[data-design=square-drawer]{width:min(730px,94vw);height:100dvh;max-height:100dvh;margin:0 0 0 auto;animation-name:drawer-arrive}
[data-design=square-drawer] .popup-shell{padding:20px 36px}
[data-design=square-drawer] .popup-header{position:sticky;top:-20px;z-index:2;background:#f4f2ec;padding:10px 0}
.square-drawer-layout .square-visual{width:min(100%,39vh);margin:0 auto}
.square-drawer-layout .square-details{padding-top:24px}
.square-drawer-layout .square-details .pdp-detail-intention{display:none}
.square-drawer-layout .square-details .pdp-detail-copy{margin:8px 0 12px;max-width:none}
.square-drawer-layout .pictured-products button{max-width:150px}
[data-design=square-drawer] .popup-footer{display:block}
[data-design=square-drawer] .popup-designs{justify-content:flex-start;margin-top:10px}
@media(max-width:1000px){
 .square-rail-layout{grid-template-columns:115px minmax(0,1fr) 200px;gap:20px}
 .square-product-rail .pictured-products button{display:block;max-width:90px}
 .square-product-rail .pictured-product-name{margin-top:6px}
 .square-details .popup-piece-title h3{font-size:29px}
 .square-shelf-layout{gap:25px}
}
@media(max-width:760px){
 .square-rail-layout,.square-shelf-layout{display:flex;flex-direction:column;gap:20px}
 .square-visual,.square-rail-layout .square-visual,.square-shelf-layout .square-visual{width:min(100%,50vh);align-self:center;order:0}
 .square-details,.square-shelf-info{order:1;width:100%;padding:0}
 .square-product-rail{order:2;width:100%}
 .square-product-rail .pictured-products{display:flex;gap:12px}
 .square-product-rail .pictured-products button{max-width:120px}
 .pictured-product-name{font-size:14px}
 [data-design=square-drawer] .popup-shell{padding:15px 20px}
}


/* Approved shelf: the square takes 64% of the content width. Size the dialog
   from available height too, so desktop photography never needs a scrollbar. */
@media(min-width:761px){
 .collection-popup[data-design=square-shelf]{
  width:min(94vw,calc((94dvh - 116px) / .64 + 88px));max-height:94dvh;
 }
 [data-design=square-shelf] .popup-shell{padding:16px 28px 12px}
 [data-design=square-shelf] .popup-header{margin-bottom:10px}
 [data-design=square-shelf] .square-shelf-layout{
  grid-template-columns:minmax(0,64fr) minmax(0,36fr);gap:32px;max-width:none;
 }
 [data-design=square-shelf] .square-visual{width:100%;justify-self:stretch}
 [data-design=square-shelf] .square-shelf-info{padding:4px 0 0;gap:18px;justify-content:flex-start}
 [data-design=square-shelf] .popup-introduction{margin:0;padding-bottom:18px;border-bottom:1px solid #bdc5b8}
 [data-design=square-shelf] .popup-introduction h2{font-size:clamp(30px,3vw,42px);margin-bottom:8px}
 [data-design=square-shelf] .popup-preview-note{margin:0;max-width:35ch}
 [data-design=square-shelf] .square-details{padding:0}
 [data-design=square-shelf] .pdp-detail-intention{display:none}
 [data-design=square-shelf] .square-details .popup-piece-title h3{font-size:clamp(26px,2.7vw,38px)}
 [data-design=square-shelf] .popup-piece-title p{margin-bottom:0}
 [data-design=square-shelf] .square-details .pdp-detail-copy{margin:14px 0 10px}
 [data-design=square-shelf] .selection-position{margin:0}
 [data-design=square-shelf] .square-product-shelf{margin-top:auto;padding-top:4px}
 [data-design=square-shelf] .pictured-products{gap:12px}
 [data-design=square-shelf] .pictured-products button{max-width:130px}
 [data-design=square-shelf] .pictured-product-name{font-size:15px}
 [data-design=square-shelf] .popup-footer{margin-top:10px;padding-top:8px}
}
@media(min-width:761px) and (max-height:740px){
 [data-design=square-shelf] .square-shelf-info{gap:12px}
 [data-design=square-shelf] .popup-introduction{padding-bottom:12px}
 [data-design=square-shelf] .popup-introduction h2{font-size:30px}
 [data-design=square-shelf] .square-details .popup-piece-title h3{font-size:26px}
 [data-design=square-shelf] .square-details .pdp-detail-copy{margin:10px 0 8px;font-size:12px}
 [data-design=square-shelf] .pictured-products button{max-width:100px}
 [data-design=square-shelf] .square-nav-label{margin-bottom:8px}
 [data-design=square-shelf] .pictured-product-name{font-size:13px}
}
