/* Workshop photo archive. All images retain their complete frame. */
.workshop-gallery{margin-top:64px;padding-top:46px;border-top:1px solid var(--line);min-width:0}
.ew-workshop-gallery-heading{max-width:740px;margin-bottom:30px}
.ew-workshop-gallery-heading .eyebrow{margin-bottom:12px;color:var(--accent)}
.ew-workshop-gallery-heading h3{font-size:clamp(29px,3.2vw,43px);line-height:1.16;margin:0 0 15px}
.ew-workshop-gallery-intro{max-width:620px;color:var(--muted);font-size:15px;line-height:1.85}
.ew-workshop-gallery-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px;align-items:start}
.ew-workshop-card{grid-column:span 2;min-width:0;overflow:clip;border:1px solid #c7ded324;border-radius:12px;background:linear-gradient(145deg,#1b2f33,#101e23);box-shadow:0 10px 30px #02090c22}
.ew-workshop-card--featured,.ew-workshop-card--wide{grid-column:span 3}
.ew-workshop-photo{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:270px;min-width:0;border:0;border-radius:11px 11px 0 0;padding:14px;background:radial-gradient(ellipse at 50% 44%,#263d3c,#0c171b 80%);color:var(--ink);isolation:isolate}
.ew-workshop-card--featured .ew-workshop-photo{height:400px;padding:18px}
.ew-workshop-card--wide .ew-workshop-photo{height:330px}
.ew-workshop-photo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 15px #02070955);transition:filter .3s ease}
.ew-workshop-photo-open{position:absolute;right:13px;bottom:13px;display:grid;place-items:center;width:39px;height:39px;border:1px solid #e6d4bb66;border-radius:50%;background:#102126e8;color:var(--ink);font-size:22px;line-height:1;transition:background .2s,color .2s,transform .25s;box-shadow:0 3px 12px #02090c55}
.ew-workshop-photo:hover .ew-workshop-photo-open{background:var(--accent);color:var(--paper);transform:translate(2px,-2px)}
.ew-workshop-photo:hover img{filter:drop-shadow(0 12px 17px #02070977) brightness(1.035)}
.ew-workshop-photo:focus-visible{outline:3px solid var(--accent);outline-offset:-5px}
.ew-workshop-card-caption{padding:21px 22px 25px;border-top:1px solid #c7ded319}
.ew-workshop-card-caption h4{margin:0 0 8px;font-family:var(--sans);font-size:16px;line-height:1.5;letter-spacing:-.015em;font-weight:550;overflow-wrap:anywhere}
.ew-workshop-card-caption p{margin:0;color:var(--muted);font-size:13px;line-height:1.85;overflow-wrap:anywhere}
.ew-workshop-card--featured .ew-workshop-card-caption h4{font-size:19px}
.ew-workshop-card--closing{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:stretch}
.ew-workshop-card--closing .ew-workshop-photo{height:450px;border-radius:11px 0 0 11px;padding:22px}
.ew-workshop-card--closing .ew-workshop-card-caption{display:flex;flex-direction:column;justify-content:center;padding:38px;border-top:0;border-left:1px solid #c7ded319}
.ew-workshop-card--closing .ew-workshop-card-caption h4{font-size:clamp(26px,3vw,38px);line-height:1.25;margin-bottom:19px}
.ew-workshop-card--closing .ew-workshop-card-caption p{font-size:15px;max-width:320px}
.ew-workshop-load-error{color:var(--muted);margin-bottom:12px}
.ew-workshop-retry{border:1px solid var(--line);border-radius:25px;background:var(--sand);color:var(--ink);padding:10px 18px;min-height:44px}

.ew-workshop-dialog{position:fixed;inset:0;width:min(1180px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow:auto;border:1px solid #c7ded33b;border-radius:15px;background:#0c181d;color:var(--ink);box-shadow:0 30px 130px #0009;overscroll-behavior:contain;scrollbar-color:var(--line) #0c181d}
.ew-workshop-dialog::backdrop{background:#02090de8;backdrop-filter:blur(12px)}
.ew-workshop-dialog[open]{display:block;animation:ew-workshop-dialog-enter .3s cubic-bezier(.16,1,.3,1)}
.ew-workshop-dialog[open]::backdrop{animation:ew-workshop-backdrop-enter .3s ease-out}
.ew-workshop-dialog-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 15px 12px 25px;border-bottom:1px solid #c7ded321}
.ew-workshop-dialog-label{font-family:var(--sans);font-size:12px;line-height:1.5;text-transform:uppercase;letter-spacing:.13em;color:var(--accent)}
.ew-workshop-dialog-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:#1a2c32;color:var(--ink);font-size:29px;line-height:1}
.ew-workshop-dialog-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:180px;padding:18px 26px;background:radial-gradient(ellipse at 50% 42%,#1a2b2c,#071115)}
.ew-workshop-dialog-image{display:block;width:100%;height:min(62dvh,690px);min-height:180px;object-fit:contain;object-position:center}
.ew-workshop-dialog-error{position:absolute;inset:auto 20px 20px;padding:13px 18px;background:#0c181df2;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.7;text-align:center}
.ew-workshop-dialog-bottom{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 26px 26px;border-top:1px solid #c7ded321}
.ew-workshop-dialog-text{min-width:0;max-width:780px}
.ew-workshop-dialog-text h3{font-size:clamp(21px,2.4vw,29px);line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}
.ew-workshop-dialog-text p{margin:0;color:var(--muted);font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.ew-workshop-original{display:inline-block;margin-top:13px;color:var(--accent);font-size:12px;line-height:1.6;text-underline-offset:4px}
.ew-workshop-dialog-navigation{display:flex;flex:0 0 auto;gap:8px}
.ew-workshop-dialog-arrow{display:grid;place-items:center;width:48px;height:48px;border:1px solid #c7ded34d;border-radius:50%;background:#1a2c32;color:var(--ink);font-size:23px;line-height:1}
.ew-workshop-dialog-arrow:hover,.ew-workshop-dialog-close:hover{border-color:var(--accent);background:var(--accent);color:var(--paper)}
.ew-workshop-dialog :focus-visible,.ew-workshop-retry:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@keyframes ew-workshop-dialog-enter{from{opacity:.8;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@keyframes ew-workshop-backdrop-enter{from{opacity:.65}to{opacity:1}}

@media(max-width:900px){
  .ew-workshop-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .ew-workshop-card,.ew-workshop-card--featured,.ew-workshop-card--wide{grid-column:span 1}
  .ew-workshop-photo,.ew-workshop-card--featured .ew-workshop-photo,.ew-workshop-card--wide .ew-workshop-photo{height:300px;padding:13px}
  .ew-workshop-card--closing{grid-column:1/-1}
  .ew-workshop-card--closing .ew-workshop-photo{height:360px}
  .ew-workshop-card-caption{padding:19px}
  .ew-workshop-card--closing .ew-workshop-card-caption{padding:25px}
}
@media(max-width:560px){
  .workshop-gallery{margin-top:42px;padding-top:31px}
  .ew-workshop-gallery-heading{margin-bottom:23px}
  .ew-workshop-gallery-heading h3{font-size:30px;line-height:1.2}
  .ew-workshop-gallery-intro{font-size:14px}
  .ew-workshop-gallery-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .ew-workshop-card,.ew-workshop-card--featured,.ew-workshop-card--wide,.ew-workshop-card--closing{grid-column:1;display:block}
  .ew-workshop-photo,.ew-workshop-card--featured .ew-workshop-photo,.ew-workshop-card--wide .ew-workshop-photo,.ew-workshop-card--closing .ew-workshop-photo{height:350px;padding:14px;border-radius:11px 11px 0 0}
  .ew-workshop-card--closing .ew-workshop-card-caption{padding:22px;border-left:0;border-top:1px solid #c7ded319}
  .ew-workshop-card-caption h4,.ew-workshop-card--featured .ew-workshop-card-caption h4{font-size:17px}
  .ew-workshop-card--closing .ew-workshop-card-caption h4{font-size:26px;margin-bottom:12px}
  .ew-workshop-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:11px}
  .ew-workshop-dialog-topbar{padding:9px 10px 9px 17px;gap:12px}
  .ew-workshop-dialog-stage{padding:12px 10px}
  .ew-workshop-dialog-image{height:52dvh;min-height:160px}
  .ew-workshop-dialog-bottom{align-items:flex-start;padding:18px 17px max(21px,env(safe-area-inset-bottom,0px));gap:14px;flex-wrap:wrap}
  .ew-workshop-dialog-text{flex:1 1 100%}
  .ew-workshop-dialog-text h3{font-size:23px}
  .ew-workshop-dialog-text p{font-size:13px}
  .ew-workshop-dialog-navigation{margin-left:auto}
}
@media(max-width:360px){
  .ew-workshop-photo,.ew-workshop-card--featured .ew-workshop-photo,.ew-workshop-card--wide .ew-workshop-photo,.ew-workshop-card--closing .ew-workshop-photo{height:305px}
  .ew-workshop-card-caption{padding:18px}
  .ew-workshop-dialog-topbar{padding-left:13px}
  .ew-workshop-dialog-bottom{padding-left:13px;padding-right:13px}
}
@media(prefers-reduced-motion:reduce){
  .ew-workshop-photo img,.ew-workshop-photo-open{transition:none}
  .ew-workshop-photo:hover .ew-workshop-photo-open{transform:none}
  .ew-workshop-dialog[open],.ew-workshop-dialog[open]::backdrop{animation:none}
}
