.works-grid{grid-auto-rows:260px}
.work-photo{cursor:pointer}
.work-photo:focus-visible{outline:3px solid #08a8d8;outline-offset:3px}
.work-photo figcaption{gap:5px}
.work-photo figcaption strong{font-size:14px;font-weight:600;line-height:1.35}
.work-photo figcaption>span:not(.work-open-label){font:9px var(--mono);letter-spacing:.1em;color:#ccdae0}
.work-photo figcaption p{margin:0;color:#eff5f8;font:11px/1.45 var(--sans);letter-spacing:.01em}
.work-photo .work-open-label{display:inline-flex;align-self:flex-start;margin-top:3px;padding:4px 8px;border:1px solid rgba(235,246,251,.62);border-radius:2px;color:#fff;font:9px var(--sans);letter-spacing:.04em;background:rgba(18,50,72,.36)}
.works-empty{grid-column:1/-1;padding:36px 20px;color:#657b88;text-align:center}
.works-gallery-dialog{width:min(980px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:5px;background:#102f46;color:#fff;overflow:visible}
.works-gallery-dialog::backdrop{background:rgba(5,17,27,.82);backdrop-filter:blur(3px)}
.works-gallery-shell{position:relative;display:flex;flex-direction:column;max-height:calc(100dvh - 28px)}
.works-gallery-close{position:absolute;z-index:2;top:12px;right:12px;width:42px;height:42px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(13,34,49,.72);color:white;font-size:28px;line-height:1;cursor:pointer}
.works-gallery-media{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px;flex:1;background:#071927}
.works-gallery-image{display:block;width:100%;height:min(70dvh,760px);object-fit:contain}
.works-gallery-prev,.works-gallery-next{position:absolute;top:50%;z-index:1;transform:translateY(-50%);width:42px;height:54px;justify-self:center;border:1px solid rgba(255,255,255,.46);border-radius:3px;background:rgba(255,255,255,.12);color:white;font-size:34px;line-height:1;cursor:pointer}
.works-gallery-prev{left:10px}.works-gallery-next{right:10px}.works-gallery-caption{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding:17px 20px 19px}
.works-gallery-caption strong{display:block;font:600 16px var(--sans)}
.works-gallery-description{display:block;margin-top:5px;color:#cfdee6;font:12px/1.5 var(--sans)}
.works-gallery-caption p{display:flex;flex:0 0 auto;gap:14px;margin:0;color:#c7d7e0;font:10px var(--mono)}
@media(max-width:680px){.works-grid{grid-auto-rows:172px}.work-photo figcaption strong{font-size:11px}.work-photo figcaption p{font-size:9px}.work-photo figcaption>span:not(.work-open-label){font-size:8px}.work-photo .work-open-label{font-size:8px;padding:3px 6px}.works-gallery-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}.works-gallery-shell{max-height:calc(100dvh - 18px)}.works-gallery-image{height:min(65dvh,680px)}.works-gallery-prev,.works-gallery-next{width:32px;height:44px;font-size:28px}.works-gallery-caption{padding:13px 14px;align-items:flex-start;flex-direction:column;gap:8px}.works-gallery-caption strong{font-size:14px}}

html.works-gallery-open,body.works-gallery-open{overflow:hidden;overscroll-behavior:none}
.works-gallery-dialog[open]{overscroll-behavior:contain}
.works-gallery-media{touch-action:none;user-select:none;-webkit-user-select:none}
.works-gallery-image{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
