.projects-section .project-grid.compact-photos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(10px,1.6vw,22px);max-width:1120px;margin-inline:auto}
.projects-section .compact-photos .project-card:nth-child(n){margin:0;grid-column:auto;height:auto;aspect-ratio:3/4;min-width:0;cursor:zoom-in}
.projects-section .compact-photos .project-card .project-frame,.projects-section .compact-photos .project-card img{width:100%;height:100%;object-fit:contain;transform:none!important}
.projects-section .compact-photos .project-card figcaption{display:none}
.compact-photos .preview-source .project-frame{visibility:hidden}
@media(max-width:850px){.projects-section .project-grid.compact-photos{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){.projects-section .project-grid.compact-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
.work-photo-dialog{position:fixed;inset:0;margin:auto;border:0;padding:0;background:transparent;color:white;width:min(78vw,calc(69vh * .75),570px);max-height:none;overflow:visible}
.work-photo-dialog::backdrop{background:rgba(8,13,17,.84)}
.work-photo-dialog img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;box-shadow:0 16px 60px #0008}
.work-photo-dialog p{margin:0;padding:.7rem 0;text-align:center;font:600 clamp(1rem,2vw,1.35rem)/1.25 system-ui,sans-serif}
.work-photo-dialog button{position:absolute;right:.5rem;top:.5rem;width:44px;height:44px;border:1px solid #ffffff80;border-radius:50%;background:#141a1fee;color:white;font:24px/1 system-ui;cursor:pointer}

.work-photo-dialog::backdrop{opacity:1;transition:opacity .38s ease}
@starting-style{.work-photo-dialog[open]::backdrop{opacity:0}}
.work-photo-dialog.closing::backdrop{opacity:0;transition-duration:.29s}
.work-photo-dialog[open] :is(p,button){animation:preview-details-in .35s .1s both}
.work-photo-dialog.closing :is(p,button){animation:none;opacity:0;transition:opacity .15s}
@keyframes preview-details-in{from{opacity:0}to{opacity:1}}
.work-photo-dialog.still::backdrop,.work-photo-dialog.still :is(p,button){transition:none;animation:none}
@media(prefers-reduced-motion:reduce){.work-photo-dialog::backdrop,.work-photo-dialog[open] :is(p,button){transition:none;animation:none}}

.projects-section.preview-active .energy-pulse{animation-play-state:paused}
.projects-section .compact-photos .project-card:hover img{filter:none}
