.gallery-image-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:18px;box-sizing:border-box;max-width:1200px;margin:0 auto}.gallery-image-cell{margin:0;min-width:0;padding:12px;background:white;border-radius:7px;box-sizing:border-box}.gallery-image-cell img{display:block;width:100%;height:clamp(150px,28vw,340px);object-fit:contain;cursor:zoom-in}.gallery-image-cell figcaption{font-size:16px;line-height:1.5;margin-top:10px;color:#333;word-break:break-word}.gallery-image-set{grid-column:1/-1;background:#fff;border:1px solid #dce6ef;border-radius:7px;padding:12px}.gallery-set-heading{font-size:16px;font-weight:600;color:#364d60;padding:2px 10px 10px}.gallery-set-images{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.gallery-image-cell video{width:100%;max-height:240px;margin-top:10px}.gallery-image-grid .gallery-empty{grid-column:1/-1;padding:40px;text-align:center;font-size:16px;color:#888}@media(max-width:500px){.gallery-image-grid{gap:10px;padding:12px}.gallery-image-cell{padding:8px}.gallery-image-set{padding:7px}.gallery-set-images{gap:6px}}

body.experience .stage.custom-frame .gallery-image-cell>a{display:block;aspect-ratio:var(--gallery-frame-ratio);height:auto;min-height:0;overflow:hidden}body.experience .stage.custom-frame .gallery-image-cell>a img{display:block;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain}

body.experience .stage.single-column .gallery-image-grid,body.experience .stage.single-column .gallery-set-images{grid-template-columns:minmax(0,1fr)}

.gallery-item-label{display:flex;flex-direction:column;gap:3px;min-width:0}.gallery-item-label small{font-size:11px;letter-spacing:0;color:#9b8467;font-weight:400}.gallery-pick{flex-shrink:0;border:1px solid #bca47f;border-radius:5px;padding:5px 8px;color:#70502d;background:#faf3e5;font-size:11px;cursor:pointer}.gallery-pick[aria-pressed=true]{background:#705333;color:#fff8ea}.selection-launch{position:fixed;right:18px;bottom:22px;z-index:80;padding:12px 18px;border:1px solid #bda078;border-radius:24px;background:#654b2e;color:#fff9ed;box-shadow:0 4px 18px #3f2d2433;cursor:pointer}.selection-dialog{width:min(560px,calc(100vw - 26px));max-height:80dvh;border:1px solid #d5c2a2;border-radius:14px;background:#fffcf6;color:#503b26;margin:auto;padding:20px;box-sizing:border-box}.selection-dialog::backdrop{background:#241b1677}.selection-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.selection-head h2{font-size:21px}.selection-dialog button{border:1px solid #cbb899;border-radius:5px;padding:7px 11px;background:#f5ecdc;color:#694c2c;cursor:pointer}.selection-list{margin:16px 0;max-height:48dvh;overflow:auto}.selection-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5d9c6}.selection-row a{display:flex;align-items:center;gap:12px;min-width:0}.selection-row img{width:70px;height:64px;object-fit:contain;background:#eee7db}.selection-row span{display:flex;flex-direction:column;gap:6px}.selection-row small{color:#9b8467}.selection-actions{display:flex;gap:12px}.selection-status,.selection-empty{font-size:13px;line-height:1.8;color:#937957}.selection-dialog textarea{width:100%;min-height:140px}.selection-dialog button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.gallery-image-cell figcaption{flex-wrap:wrap;gap:6px}.gallery-pick{padding:4px 7px}.selection-launch{right:12px;bottom:16px;font-size:12px}.selection-dialog{padding:16px}}

/* Leave room beneath the last card for the floating selection control. */
body.experience{padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px));scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px))}
.selection-launch{bottom:calc(22px + env(safe-area-inset-bottom, 0px))}@media(max-width:600px){.selection-launch{bottom:calc(16px + env(safe-area-inset-bottom, 0px))}}
