/* The photo ribbon scrolls independently without taking over page gestures. */
.jq-photo-ribbon{--ribbon-card:clamp(166px,19vw,246px);--ribbon-gap:16px;padding:24px 0 28px;background:#f3f2ed;color:#29312b;border-bottom:1px solid #dddcd5}
.jq-photo-ribbon__toolbar{max-width:1440px;margin:0 auto 14px;padding:0 max(24px,5.45vw);display:flex;align-items:center;justify-content:center;gap:16px}
.jq-photo-ribbon__heading{margin:0;font-size:12px;line-height:1.4;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.jq-photo-ribbon__controls{display:flex;gap:6px;align-items:center}
.jq-photo-ribbon button{font:inherit;color:inherit;background:#fff;border:1px solid #d8dbd4;border-radius:999px;min-width:44px;min-height:44px;padding:8px 12px;cursor:pointer}
.jq-photo-ribbon button:disabled{cursor:default;color:#69736b}
.jq-photo-ribbon__track{position:relative;display:flex;gap:var(--ribbon-gap);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:auto;scrollbar-width:thin;scrollbar-color:#aab4a9 transparent;padding:4px 0 13px;cursor:grab;scroll-behavior:auto;overflow-anchor:none}
.jq-photo-ribbon__track[data-dragging=true]{cursor:grabbing;user-select:none}
.jq-photo-ribbon__group{display:flex;flex:0 0 auto;gap:var(--ribbon-gap);padding:0;margin:0;list-style:none}
.jq-photo-ribbon__group>li{width:var(--ribbon-card);flex:0 0 var(--ribbon-card)}
.jq-photo-ribbon__card{display:block;box-sizing:border-box;padding:0;overflow:hidden;background:#fff;border:1px solid #e4e5df;border-radius:17px;text-decoration:none;color:inherit;touch-action:auto!important;-webkit-user-drag:none}
.jq-photo-ribbon__photo{display:block;aspect-ratio:1;overflow:hidden}
.jq-photo-ribbon__card img{display:block;width:100%;height:100%;object-fit:cover;background:#fff;-webkit-user-drag:none}
.jq-photo-ribbon__caption{display:block;padding:10px 12px}
.jq-photo-ribbon__title{display:block;font-size:14px;line-height:1.35;font-weight:500}
.jq-photo-ribbon :is(button,a,.jq-photo-ribbon__track):focus-visible{outline:2px solid #405c47;outline-offset:3px}
.jq-photo-ribbon-dialog{max-width:420px;width:calc(100% - 48px);box-sizing:border-box;border:1px solid #d4dad3;border-radius:18px;background:#fafaf6;color:#27322b;padding:28px;font-family:Arial,Helvetica,sans-serif;box-shadow:0 18px 80px #0003}
.jq-photo-ribbon-dialog::backdrop{background:#17201c88}
.jq-photo-ribbon-dialog h2{font-size:24px;font-weight:400;line-height:1.2;margin:0 32px 14px 0}
.jq-photo-ribbon-dialog p{font-size:15px;line-height:1.6;margin:0 0 22px}
.jq-photo-ribbon-dialog__actions{display:grid;gap:10px}
.jq-photo-ribbon-dialog button{font:inherit;min-height:46px;padding:10px 16px;border:1px solid #cbd3c9;border-radius:8px;cursor:pointer;background:#fff;color:#29392e}
.jq-photo-ribbon-dialog [data-ribbon-confirm]{background:#294436;color:#fff;border-color:#294436}
.jq-photo-ribbon-dialog [data-ribbon-dialog-cancel]{position:absolute;top:10px;right:10px;min-width:40px;min-height:40px;padding:4px;border:0;background:transparent;font-size:24px}
.jq-photo-reference{position:fixed;z-index:60;bottom:16px;left:16px;box-sizing:border-box;display:flex;gap:10px;align-items:center;width:210px;padding:8px 30px 8px 8px;border:1px solid #d5dcd3;border-radius:12px;background:#fffffff2;color:#29362c;box-shadow:0 3px 20px #0002;font:12px/1.35 Arial,Helvetica,sans-serif}
.jq-photo-reference[hidden],body[data-review-open=true] .jq-photo-reference{display:none!important}
.jq-photo-reference img{width:62px;height:62px;object-fit:contain;flex:0 0 auto;background:white;border-radius:7px}
.jq-photo-reference__label{display:block;font-size:10px;color:#6b756c;margin-bottom:4px}
.jq-photo-reference__name{display:block;font-weight:500}
.jq-photo-reference button{position:absolute;top:3px;right:3px;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:inherit;font:22px/1 Arial,sans-serif;cursor:pointer}
.jq-photo-reference button:focus-visible,.jq-photo-ribbon-dialog button:focus-visible{outline:2px solid #405c47;outline-offset:3px}
.jq-photo-ribbon-error{position:fixed;z-index:70;left:16px;bottom:16px;max-width:min(340px,calc(100vw - 32px));box-sizing:border-box;padding:16px;border:1px solid #c6cfc3;border-radius:12px;background:#fffffff5;color:#28372c;box-shadow:0 3px 20px #0002;font:14px/1.5 Arial,Helvetica,sans-serif}
.jq-photo-ribbon-error[hidden],body[data-review-open=true] .jq-photo-ribbon-error{display:none!important}
.jq-photo-ribbon-error p{margin:0 0 12px}.jq-photo-ribbon-error button{font:inherit;min-height:44px;background:#294436;color:#fff;border:0;border-radius:7px;padding:10px 14px;cursor:pointer}
@media(max-width:650px){.jq-photo-ribbon{--ribbon-gap:12px;padding-top:18px;padding-bottom:18px}.jq-photo-ribbon__toolbar{padding:0 20px;margin-bottom:10px}.jq-photo-ribbon__heading{font-size:11px}.jq-photo-ribbon__title{font-size:13px}.jq-photo-reference{left:10px;bottom:10px;width:168px;padding-right:26px;gap:7px;font-size:11px}.jq-photo-reference img{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.jq-photo-ribbon__track{scroll-behavior:auto}}

/* Two explicit choices share the existing ribbon, with motion controls intact. */
.jq-photo-ribbon__tabs{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #cbd1c7;border-radius:999px;background:#e9ece4;box-shadow:inset 0 1px 2px #26352b08}
.jq-photo-ribbon .jq-photo-ribbon__tabs button{min-height:44px;padding:10px 20px;border-color:transparent;background:transparent;font-size:13px;font-weight:500;line-height:1.3;white-space:nowrap;transition:background-color .15s,color .15s,box-shadow .15s}
.jq-photo-ribbon .jq-photo-ribbon__tabs button[aria-selected=true]{background:#294436;border-color:#294436;color:#fff;box-shadow:0 2px 5px #1b352b20}
.jq-photo-ribbon .jq-photo-ribbon__tabs button[aria-selected=false]{background:#f8f9f5;border-color:#d5dcd1;color:#344b3b}
.jq-photo-ribbon .jq-photo-ribbon__tabs button[aria-selected=false]:hover{background:#fff;border-color:#8e9d89}
@media(max-width:650px){.jq-photo-ribbon__toolbar{flex-wrap:wrap;gap:10px}.jq-photo-ribbon__tabs{flex:1;max-width:360px}.jq-photo-ribbon .jq-photo-ribbon__tabs button{flex:1;padding:10px 14px;font-size:12px}.jq-photo-ribbon__controls{margin-left:auto}.jq-photo-ribbon__controls button{min-height:44px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.jq-photo-ribbon__tabs button{transition:none!important}}

/* Match JQ Works captions to the approved single-line concept card format. */
.jq-photo-ribbon[data-ribbon-set="works"] .jq-photo-ribbon__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Supplied landscape originals keep their complete composition; existing square cards retain their dimensions. */
.jq-photo-ribbon__group>li.jq-photo-ribbon__landscape{width:calc(var(--ribbon-card)*1.5);flex-basis:calc(var(--ribbon-card)*1.5)}
.jq-photo-ribbon__landscape .jq-photo-ribbon__photo{aspect-ratio:3/2}
