.work-gallery-dialog{padding:0;border:1px solid #3e454c;border-radius:12px;width:min(1040px,calc(100% - 40px));max-width:1040px;max-height:calc(100dvh - 40px);overflow:auto;background:#202326;color:#fff;box-shadow:0 20px 80px #0005}
.work-gallery-dialog::backdrop{background:#10151be6;backdrop-filter:blur(5px)}
.work-gallery-header{display:flex;align-items:center;gap:18px;padding:18px 22px;border-bottom:1px solid #ffffff24}
.work-gallery-header h2{margin:0;font-size:20px;line-height:1.4;letter-spacing:-.35px;color:#fff}
.work-gallery-count{margin-left:auto;color:#c9ced3;font-size:14px;white-space:nowrap}
.work-gallery-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border:1px solid #ffffff40;border-radius:7px;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.work-gallery-close:hover{background:#ffffff15}
.work-gallery-stage{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;position:relative;margin:0;padding:12px 22px;height:min(66dvh,660px);min-height:200px;background:#15191d}
.work-gallery-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.work-gallery-status{margin:0;max-width:420px;text-align:center;color:#d6dce1;font-size:15px;line-height:1.7}
.work-gallery-original{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;background:var(--yellow);color:#202326;border-radius:7px;font-size:14px;font-weight:700}
.work-gallery-footer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:18px;padding:18px 22px;border-top:1px solid #ffffff24}
.work-gallery-caption{margin:0;text-align:center;color:#f1f3f5;font-size:15px;line-height:1.6}
.work-gallery-arrow{width:44px;height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #ffffff40;border-radius:7px;background:transparent;color:#fff;font-size:25px;line-height:1;cursor:pointer}
.work-gallery-arrow:hover{background:#ffffff15}
.work-gallery-dialog button:focus-visible,.work-gallery-dialog a:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
@media(max-width:650px){.work-gallery-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:9px}.work-gallery-header{gap:12px;padding:12px 14px}.work-gallery-header h2{font-size:17px}.work-gallery-count{font-size:12px}.work-gallery-stage{padding:10px;height:min(64dvh,560px)}.work-gallery-footer{gap:12px;padding:14px}.work-gallery-caption{font-size:13px}.work-gallery-status{font-size:14px;padding:0 12px}}
