/* Project choices use Jessa's photographed wooden tray. */
.project-cabinet-dialog{width:min(1120px,95vw);max-width:95vw;max-height:92svh;padding:22px 28px 26px;border:0;border-radius:24px;background:radial-gradient(ellipse at 25% 0,#47543855,transparent 65%),#141a11;box-shadow:0 28px 100px #000b;overscroll-behavior:contain;scrollbar-gutter:stable}
.project-cabinet-dialog>h2{font-size:48px;line-height:1.05;margin:8px 0 16px}
.project-cabinet-dialog .project-tray-contents{display:block;padding:0;background:none;border:0;box-shadow:none}
.project-cabinet-dialog .cabinet-dialog-top{min-height:44px}
.project-back{color:#f1e3ce;background:#b99b5830;border:0;border-radius:24px;padding:10px 17px;min-height:44px;cursor:pointer;font:inherit;font-size:13px}
.project-back[hidden],.project-cabinet-dialog [hidden],.workshop-project-page [hidden]{display:none!important}
.project-cabinet-dialog.has-project>h2{font-family:inherit;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#c9bc98;margin:5px 0 16px}
.project-tray{position:relative;isolation:isolate;container-type:inline-size;aspect-ratio:1.46;width:min(100%,calc((83svh - 165px)*1.46));margin:0 auto;filter:drop-shadow(0 17px 17px #0008)}
.tray-material{position:absolute;inset:0;overflow:hidden;border-radius:6px;z-index:-1}
.tray-material:before{content:'';position:absolute;left:52.4%;top:52%;width:99.5%;height:193.8%;transform:translate(-50%,-50%) rotate(90deg);background:url('workshop-projects/project-tray-3034.jpg') center/100% 100% no-repeat}
.tray-compartments{position:absolute;inset:3.5% 3.3% 4.2% 3.3%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:2.5% 1.8%;align-items:center}
.tray-project{grid-column:var(--column);grid-row:var(--row);display:flex;align-items:center;justify-content:center;height:100%;min-width:0;text-decoration:none;border:0;box-shadow:none;border-radius:6px;position:relative;z-index:2}
.tray-paper{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:68%;width:88%;padding:10px 7px;color:#3a3020;background:repeating-linear-gradient(0deg,#7f714009 0 1px,transparent 1px 4px),linear-gradient(110deg,#f1e3ce,#edd8b4);border-radius:2px 4px 3px 2px;transform:rotate(-2deg);box-shadow:1px 3px 4px #331b1760,inset 0 0 16px #b4954922;text-align:center;transition:transform .22s,box-shadow .22s}
.tray-paper>span{font-family:Allura,cursive;font-size:clamp(18px,3.3cqw,33px);line-height:1.04;overflow-wrap:normal}
.tray-paper small{font:10px/1.2 var(--font-body);letter-spacing:.03em;opacity:.75;margin-top:5px}
.tray-project:nth-child(even) .tray-paper{transform:rotate(2deg)}
.tray-project:hover .tray-paper,.tray-project:focus-visible .tray-paper{transform:translateY(-4px) rotate(0);box-shadow:2px 8px 10px #331b1760}
.tray-project:focus-visible{outline:3px solid #57432c;outline-offset:0}
.tray-object{grid-column:var(--column);grid-row:var(--row);height:100%;display:flex;justify-content:center;align-items:flex-end;pointer-events:none;padding-bottom:4%;filter:drop-shadow(4px 4px 2px #4a301c66)}
.pottery-piece{display:block;background-image:url('workshop-projects/miniature-collection-3032.jpg');background-repeat:no-repeat;height:83%;max-width:78%;transform:translateY(17%)}
.pottery-blue{aspect-ratio:64/104;background-size:2137.5% 1753.85%;background-position:43.4049% 33.4884%;clip-path:polygon(40% 7%,59% 7%,63% 13%,59% 18%,72% 23%,86% 33%,90% 53%,85% 76%,82% 95%,23% 97%,16% 78%,10% 55%,10% 41%,19% 29%,34% 20%,37% 14%)}
.pottery-green{aspect-ratio:88/106;background-size:1554.55% 1720.75%;background-position:48.9844% 33.4109%;clip-path:polygon(49% 5%,65% 5%,65% 21%,77% 37%,82% 49%,86% 67%,83% 82%,79% 97%,27% 97%,22% 85%,21% 66%,26% 51%,35% 39%,43% 27%,48% 19%)}
.pottery-pink{aspect-ratio:60/128;background-size:2280% 1425%;background-position:64.52599% 32.42925%;clip-path:polygon(44% 9%,58% 9%,58% 20%,64% 30%,81% 41%,86% 60%,87% 83%,82% 98%,14% 98%,9% 81%,10% 56%,18% 42%,32% 31%,39% 23%)}
.tray-hint{font-size:13px;text-align:center;color:#c9bc98;margin:18px 0 0}
.workshop-project{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:clamp(25px,4vw,58px);min-width:0;padding:0}
.project-visual,.project-writing{min-width:0}
.project-stage{height:clamp(240px,53svh,570px);position:relative;touch-action:pan-y;isolation:isolate;outline-offset:5px;border-radius:18px}
.project-slide{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start}
.workshop-project .project-photo{width:auto;max-width:100%;height:100%;max-height:100%;padding:0;background:transparent;border:0;border-radius:18px;overflow:hidden;box-shadow:none;touch-action:pan-y}
.workshop-project .project-photo img{display:block;width:auto;height:100%;max-width:100%;object-fit:contain;border-radius:18px;box-shadow:none;margin:0}
.project-slide video{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;border-radius:18px;background:#100f0c}
.project-paging{display:flex;align-items:center;gap:13px;margin-top:15px;min-height:44px;color:#edd8b4}
.project-paging button{width:46px;min-width:46px;height:44px;border:0;border-radius:50%;background:#b297573b;box-shadow:inset 0 1px #e3c18722;color:#f1e3ce;font-size:22px;cursor:pointer}
.project-paging button:hover{background:#ba9b5859}.project-paging button:disabled{opacity:.35;cursor:default}
.project-paging [data-project-count]{font-size:13px;font-variant-numeric:tabular-nums;min-width:53px;text-align:center}
.project-swipe-hint{font-size:11px;color:#bdae87;margin-left:auto}
.project-writing{padding-top:6px;max-height:calc(53svh + 65px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#92734c transparent;padding-right:5px}
.project-writing>.eyebrow{font-size:11px;letter-spacing:.14em;margin:0 0 14px;color:#c9bc98}
.project-writing>h2{font-family:Allura,cursive;font-size:clamp(39px,4.3vw,60px);line-height:1.08;margin:0 0 20px;font-weight:400}
.project-writing p{font-size:16px;line-height:1.75;color:#ded4b9;margin:0 0 18px}
.project-step{padding:18px 20px 1px;background:#b5a06713;border-radius:15px;margin-top:22px}
.project-step h3{font-family:inherit;font-size:15px;font-weight:500;line-height:1.4;color:#f1e3ce;margin:0 0 10px}.project-step p{font-size:14px;line-height:1.7}
.project-writing .project-credit{font-size:12px;color:#bdae87;margin-top:20px}
.project-background{margin-top:16px;padding:0;border:0;box-shadow:none;background:none}
.project-background summary{font-size:14px;cursor:pointer;color:#decfa8;padding:10px 0;min-height:44px;border:0;list-style:disclosure-closed}
.project-background[open] summary{list-style:disclosure-open;margin-bottom:10px}
.project-background p{font-size:14px}.project-thesis-history img{width:120px;height:auto;border-radius:10px;float:left;margin:0 16px 12px 0}
.project-thesis-history .gh-coda-photo{display:block}.project-thesis-history .gh-coda-caption{font-size:12px}
.workshop-project-page{width:min(1320px,91vw);margin:16px auto 35px;padding:0;min-height:calc(100svh - 215px)}
.project-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}
.project-page-heading .eyebrow{font-size:10px;margin:0 0 2px}.project-page-heading h1{font:400 48px/1.1 Allura,cursive;margin:0}
.project-page-heading .text-link{font-size:12px;border:0;padding:9px 0}
.project-selections{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 24px}
.project-selections a{display:block;min-height:44px;padding:10px 17px;background:#d6c89918;color:#edd8b4;font-size:14px;text-decoration:none;border-radius:12px;border:0;transition:background .2s,color .2s}
.project-selections a[aria-current]{background:#edd8b4;color:#4a3320;box-shadow:0 5px 14px #0003}
.project-page-panel{scroll-margin-top:155px}.project-page-panel+.project-page-panel{margin-top:65px}
.projects-ready .project-page-panel{margin-top:0}
.project-load-error{position:absolute;inset:25% 0 auto;background:#22291b;padding:22px;border-radius:14px;color:#edd8b4;z-index:3;font-size:14px}
.project-load-error button{margin-top:10px;display:block;padding:9px 14px;border:0;border-radius:20px;background:#ba9b5859;color:inherit;cursor:pointer}
@media(max-width:720px){
 .project-cabinet-dialog{width:95vw;max-height:94svh;padding:16px 17px 21px;border-radius:20px}.project-cabinet-dialog>h2{font-size:39px;margin-bottom:18px}.project-cabinet-dialog .cabinet-dialog-top{gap:8px}
 .project-back{font-size:11px;padding:8px 11px}.project-tray{width:100%;aspect-ratio:.685}
 .tray-material:before{left:52%;top:48%;width:145%;height:132.6%;transform:translate(-50%,-50%)}
 .tray-compartments{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));inset:3.3% 4.2% 3.3% 3.5%;gap:1.8% 2.5%}
 .tray-project,.tray-object{grid-column:calc(5 - var(--row));grid-row:var(--column)}
 .tray-paper{width:93%;padding:10px 3px}.tray-paper>span{font-size:clamp(17px,5.6cqw,22px)}.tray-paper small{font-size:8px}
 .workshop-project{grid-template-columns:1fr;gap:19px}.project-stage{height:clamp(210px,38svh,355px)}
 .project-writing{max-height:none;overflow:visible;padding:0}.project-writing>h2{font-size:39px;margin-bottom:11px}.project-writing>.eyebrow{font-size:10px;margin-bottom:9px}.project-writing p{font-size:14px;line-height:1.7}
 .project-paging{margin-top:10px}.project-swipe-hint{font-size:10px}.project-step{padding:15px 17px 1px;margin-top:15px}.project-step p{font-size:13px}
 .workshop-project-page{width:90vw;margin-top:12px}.project-page-heading{align-items:flex-end;margin-bottom:17px}.project-page-heading h1{font-size:40px}.project-page-heading .text-link{max-width:110px;text-align:right}
 .project-selections{gap:7px;margin-bottom:20px}.project-selections a{font-size:12px;padding:10px 12px}
}
@media(max-height:600px) and (min-width:721px){.project-stage{height:230px}.project-writing{max-height:295px}.project-tray{width:min(100%,600px)}}
@media(prefers-reduced-motion:reduce){.tray-paper,.project-selections a{transition:none}.tray-project:hover .tray-paper{transform:none}}

/* Square the photographed tray in display space; leave the source image untouched. */
.project-cabinet-dialog .project-tray{aspect-ratio:1.5;width:min(100%,calc((92svh - 200px)*1.5))}
.tray-material{border-radius:0}
.tray-material.tray-framed:before{left:0;top:0;width:100%;height:100%;transform-origin:0 0;transform:var(--tray-transform);background-size:100% 100%}
@media(max-width:720px){.project-cabinet-dialog .project-tray{aspect-ratio:2/3;width:min(100%,calc((94svh - 185px)*2/3))}}

/* Navigation between occupied tray slots and projects, without closing the dialog. */
.drawer-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 14px;padding:10px 0;border-block:1px solid #b99b5838}
.drawer-picker{display:flex;align-items:center;gap:10px;color:#c9bc98;font-size:12px}
.drawer-picker select{max-width:210px;min-height:44px;padding:8px 12px;border:1px solid #b99b5866;border-radius:10px;background:#252a1e;color:#f1e3ce;font:inherit;font-size:14px}
.drawer-project-controls{display:grid;grid-template-columns:44px 250px 44px;align-items:center;gap:12px;width:362px;min-width:362px}
.drawer-project-controls button{width:44px;height:44px;flex:0 0 44px;border:1px solid #b99b5866;border-radius:50%;background:#b99b5826;color:#f1e3ce;font-size:22px;cursor:pointer}
.drawer-project-controls button:disabled{opacity:.35;cursor:default}
.drawer-project-position{width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#edd8b4;font-size:12px;line-height:1.4}
.drawer-navigation :focus-visible{outline:2px solid #f1e3ce;outline-offset:3px}
.project-cabinet-dialog:not(.has-project) .project-tray{width:min(100%,calc((92svh - 275px)*1.5))}
@media(max-width:720px){.drawer-navigation{gap:8px}.drawer-picker{width:100%;justify-content:space-between}.drawer-picker select{flex:1;max-width:none}.drawer-project-controls{grid-template-columns:44px minmax(0,1fr) 44px;width:100%;min-width:0}.drawer-project-position{width:auto;max-width:none}.project-cabinet-dialog:not(.has-project) .project-tray{width:min(100%,calc((94svh - 300px)*2/3))}}

/* Readable counts and a plain list alternative to the photographed tray. */
.project-cabinet-dialog .tray-paper small{font-size:12px;line-height:1.3;opacity:1;color:#493923}
.tray-view-toggle{min-height:44px;padding:9px 15px;border:1px solid #b99b5866;border-radius:10px;background:#b99b5826;color:#f1e3ce;font:inherit;font-size:14px;cursor:pointer}
.tray-view-toggle[hidden],.lightbox-drawer-tools[hidden]{display:none!important}
.project-cabinet-dialog .tray-list-view .project-tray{width:100%;aspect-ratio:auto;filter:none}
.tray-list-view .tray-material,.tray-list-view .tray-object{display:none}
.tray-list-view .tray-compartments{position:static;display:flex;flex-direction:column;gap:10px}
.tray-list-view .tray-project{display:block;width:100%;height:auto;min-height:56px}
.tray-list-view .tray-paper,.tray-list-view .tray-project:nth-child(even) .tray-paper{width:100%;min-height:56px;box-sizing:border-box;padding:12px 16px;transform:none;border-radius:8px;flex-direction:row;align-items:center;justify-content:space-between;gap:14px;text-align:left}
.tray-list-view .tray-paper>span{font-family:inherit;font-size:17px;line-height:1.4}
.tray-list-view .tray-paper small{font-size:14px;white-space:nowrap;margin:0}
.lightbox-drawer-tools{position:absolute;z-index:5;top:72px;left:16px;right:16px;margin:0;padding:10px 12px;border:1px solid #b99b5866;border-radius:12px;background:#171b16f2}
.lightbox.has-drawer-navigation .lightbox-stage img{max-height:calc(100svh - 165px)}
@media(max-width:720px){.lightbox-drawer-tools{top:72px;left:10px;right:10px}.lightbox.has-drawer-navigation .lightbox-stage{padding-top:150px;box-sizing:border-box}.lightbox.has-drawer-navigation .lightbox-stage img{max-height:calc(100svh - 240px)}}
