.jsdc{--jsdc-red:#cf1925;background:#101114;color:#fff;padding:clamp(20px,4vw,48px);border-radius:16px;font-family:Arial,sans-serif;line-height:1.6;max-width:1200px;margin:24px auto;color-scheme:dark;box-sizing:border-box}.jsdc *{box-sizing:border-box}.jsdc h2,.jsdc h3,.jsdc h4{color:#fff;line-height:1.25}.jsdc h2{font-size:clamp(26px,4vw,40px)}.jsdc a{color:#fff}.jsdc nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:24px}.jsdc button,.jsdc .jsdc-btn,.jsdc summary{display:inline-block;background:#cf1925;color:#fff;border:1px solid #cf1925;border-radius:6px;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.4;margin:4px 0}.jsdc button:hover,.jsdc .jsdc-btn:hover{background:#a7111b;color:#fff}.jsdc :focus-visible{outline:3px solid #fff;outline-offset:3px}.jsdc button:disabled{opacity:.45;cursor:default}.jsdc label{display:block;margin:14px 0}.jsdc input:not([type=checkbox]):not([type=hidden]),.jsdc select,.jsdc textarea{display:block;width:100%;background:#fff;color:#171717;border:1px solid #bbb;border-radius:5px;padding:12px;font:inherit;margin-top:6px}.jsdc input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.jsdc form{margin:16px 0}.jsdc .jsdc-inline{display:inline;margin:0}.jsdc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:22px;margin-top:24px}.jsdc-work{padding:20px;background:#1c1e23;border:1px solid #383a40;border-radius:10px;margin:16px 0;overflow:hidden}.jsdc img{max-width:100%;height:auto;border-radius:6px}.jsdc-work>img{width:100%;aspect-ratio:4/3;object-fit:cover}.jsdc-service{color:#ff7b82;font-weight:700}.jsdc-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.jsdc-thumbs img{width:90px;height:90px;object-fit:cover}.jsdc-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px}.jsdc-photo{padding:12px;background:#23252b;border-radius:8px}.jsdc-photo>img{width:100%;height:200px;object-fit:contain}.jsdc-photo-controls{display:flex;flex-wrap:wrap;gap:6px}.jsdc-photo-controls button{font-size:13px;padding:8px}.jsdc .jsdc-cover[aria-pressed=true]{background:#fff;color:#111;border-color:#fff}.jsdc .jsdc-danger{background:transparent;border-color:#ff7b82;color:#ffb7bb}.jsdc-delete{border-top:1px solid #484a50;padding-top:12px}.jsdc-public-photos{display:grid;gap:12px;margin-top:14px}.jsdc-public-photos img{width:100%;height:auto}.jsdc-feedback{color:#ffd0d3}.jsdc-pagination{margin-top:24px}@media(max-width:520px){.jsdc{padding:18px;border-radius:8px}.jsdc nav .jsdc-btn{width:100%;text-align:center}.jsdc-work{padding:12px}}

/* Public gallery: stable card dimensions, including incomplete rows. */
.jsdc .jsdc-grid{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:22px;align-items:flex-start}
.jsdc .jsdc-grid>.jsdc-work{display:flex;flex-direction:column;flex:0 0 calc((100% - 44px) / 3);min-width:0;width:calc((100% - 44px) / 3);height:520px;margin:0;padding:16px}
.jsdc .jsdc-grid>.jsdc-work>img{display:block;flex:0 0 200px;width:100%;height:200px;min-height:200px;object-fit:contain;object-position:center;background:#101114}
.jsdc .jsdc-card-content{flex:1;min-height:0;overflow:auto;overflow-wrap:anywhere;padding:0 4px 4px 0;margin-top:12px;scrollbar-width:thin}
.jsdc .jsdc-card-content h3{font-size:22px;margin:12px 0}
.jsdc .jsdc-card-content .jsdc-service{margin:0 0 12px}
@media(max-width:1024px){.jsdc .jsdc-grid>.jsdc-work{flex-basis:calc((100% - 22px) / 2);width:calc((100% - 22px) / 2)}}
@media(max-width:640px){.jsdc .jsdc-grid>.jsdc-work{flex-basis:100%;width:100%}}

/* Each card opens a dedicated work view; no nested scrolling. */
.jsdc .jsdc-grid>.jsdc-work{height:420px;padding:16px}
.jsdc .jsdc-work-link{display:flex;flex-direction:column;height:100%;min-width:0;text-decoration:none;color:#fff}
.jsdc .jsdc-work-link>img{display:block;flex:0 0 200px;width:100%;height:200px;min-height:200px;object-fit:contain;object-position:center;background:#101114}
.jsdc .jsdc-work-link .jsdc-card-content{display:flex;flex-direction:column;overflow:hidden;padding:0;margin-top:12px}
.jsdc .jsdc-work-link h3{font-size:19px;line-height:1.3;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.jsdc .jsdc-work-link .jsdc-service{font-size:15px;line-height:1.4;margin-bottom:8px}
.jsdc .jsdc-work-link .jsdc-btn{align-self:flex-start;margin-top:auto}
.jsdc .jsdc-work-link:hover>img{filter:brightness(1.08)}
.jsdc .jsdc-detail-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0;align-items:start}
.jsdc .jsdc-detail-photos img{display:block;width:100%;height:auto;object-fit:contain}
.jsdc .jsdc-description{white-space:normal;overflow-wrap:anywhere}
@media(max-width:640px){.jsdc .jsdc-detail-photos{grid-template-columns:minmax(0,1fr)}}


/* Local photo crop dialog: scoped independently from the Elementor theme. */
.jsdc-crop{box-sizing:border-box;width:min(94vw,780px);max-height:92vh;overflow:auto;background:#17191e;color:#fff;border:1px solid #555;border-radius:14px;padding:22px;font:16px/1.5 Arial,sans-serif;color-scheme:dark}
.jsdc-crop::backdrop{background:rgba(0,0,0,.85)}
.jsdc-crop h2{color:#fff;font-size:24px;margin:0 0 8px}
.jsdc-crop p{margin:8px 0 14px}
.jsdc-crop label{display:block;margin:12px 0}
.jsdc-crop select{display:block;width:100%;padding:10px;background:#fff;color:#111;border-radius:5px;font:inherit}
.jsdc-crop input[type=range]{display:block;width:100%;accent-color:#cf1925}
.jsdc-crop canvas{display:block;max-width:100%;max-height:48vh;width:auto;height:auto;margin:14px auto;background:#08090b;touch-action:none;cursor:grab;border:1px solid #ddd}
.jsdc-crop canvas:active{cursor:grabbing}
.jsdc-crop-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.jsdc-crop button{padding:10px 14px;background:#34363d;color:#fff;border:1px solid #777;border-radius:6px;font:inherit;cursor:pointer}
.jsdc-crop button[data-action=apply]{background:#cf1925;border-color:#cf1925;font-weight:bold}
.jsdc-crop button:disabled{opacity:.5;cursor:wait}
.jsdc-crop :focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:640px){.jsdc-crop{padding:16px}.jsdc-crop-actions button{flex:1 1 40%}}
