body>header,body>main{transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .65s;transform-origin:50% 30vh}
body.work-photos-open{overflow:hidden}
body.work-photos-open>header,body.work-photos-open>main{transform:scale(.9);filter:blur(3px)}
#work-photo-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:rgba(240,244,246,.96);overflow:hidden;display:none}
#work-photo-dialog[open]{display:flex;flex-direction:column}
#work-photo-dialog::backdrop{background:rgba(21,32,44,.25)}
.photo-field-head{display:flex;justify-content:space-between;align-items:center;padding:24px 4% 8px;gap:20px;flex-shrink:0}
.photo-field-head .eyebrow{margin:0 0 8px}.photo-field-head h2{font-size:clamp(22px,3vw,34px);margin:0}.photo-field-head .close-dialog{flex-shrink:0;background:white;border-radius:50%}
.photo-field-hint{font-size:14px;color:var(--muted);margin:6px 4% 12px}.photo-field-status{margin:0 4%;color:var(--muted)}.photo-field-status:empty{display:none}
.photo-field-scroll{flex:1;overflow:hidden;min-height:0;padding:12px 2% 20px;perspective:1300px}
.photo-field{position:relative;width:100%;height:100%;pointer-events:none}
.work-photo{position:absolute;width:var(--photo-width);padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;transform:translate(-50%,-50%) rotate(var(--photo-rotation)) scale(1);transition:transform .38s cubic-bezier(.2,.7,.2,1);animation:work-photo-arrive 1.2s cubic-bezier(.16,.68,.18,1) var(--arrival-delay) backwards}
.work-photo img{width:100%;height:auto;object-fit:contain;display:block;box-shadow:0 5px 14px #14223030;border:0;border-radius:6px;transition:box-shadow .35s ease}
.work-photo:hover,.work-photo:focus-visible{transform:translate(-50%,-50%) rotate(0deg) scale(1.13);z-index:200!important;outline:none}
.work-photo:hover img,.work-photo:focus-visible img{box-shadow:0 8px 24px #14223055}
.photo-view{position:absolute;inset:0;z-index:1000;background:#111b25f5;display:flex;align-items:center;justify-content:center;padding:50px 35px 76px}.photo-view[hidden]{display:none}
.photo-view>img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;box-shadow:0 20px 75px #0005;animation:work-photo-reveal .4s ease-out}
.photo-view-close{position:absolute;top:15px;right:20px;width:44px;height:44px;border:0;border-radius:50%;background:white;color:#15202c;font-size:30px;cursor:pointer}
.photo-view-caption{position:absolute;bottom:20px;left:4%;right:4%;display:flex;justify-content:space-between;gap:20px;align-items:center;color:white}.photo-view-caption span{font-size:13px;color:#c7d3dd}
.works-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0}.works-preview img{width:100%;height:270px;object-fit:cover;border-radius:2px}.works-preview img:nth-child(2){object-position:center 35%}
@keyframes work-photo-arrive{from{opacity:0;transform:translate(calc(-50% + var(--fly-x)),calc(-50% + var(--fly-y))) translateZ(900px) scale(2.5) rotate(30deg)}to{opacity:1}}
@keyframes work-photo-reveal{from{opacity:.2;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
@media(max-width:720px){.photo-field-head{padding-top:18px}.photo-field-hint{font-size:12px;line-height:1.5}.photo-view{padding:65px 12px 85px}.photo-view-caption{display:block;font-size:15px}.photo-view-caption span{display:none}.works-preview{gap:8px}.works-preview img{height:170px}}
@media(prefers-reduced-motion:reduce){body>header,body>main,.work-photo{transition:none;animation:none}.photo-view>img{animation:none}body.work-photos-open>header,body.work-photos-open>main{transform:none}}

@media(prefers-reduced-motion:reduce){.work-photo img,.works-preview img{transition:none}}
