/* v1.9.67: Share as image */
.dth-shimg-row { margin: 18px 0 4px; display: flex; justify-content: center; }
button.dth-shimg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #E5E5EA; border-radius: 999px; background: #fff; color: #131117; font: 500 14px 'Outfit', sans-serif; cursor: pointer; line-height: 1.2; min-height: 0; text-transform: none; letter-spacing: normal; box-shadow: none; }
button.dth-shimg-btn:hover { border-color: #fb5858; color: #fb5858; background: #fff; }
.dth-shimg-wrap { position: fixed; inset: 0; z-index: 2147483010 !important; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(19, 17, 23, .6); box-sizing: border-box; }
.dth-shimg-wrap[hidden] { display: none; }
.dth-shimg-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 20px; box-sizing: border-box; font-family: 'Outfit', sans-serif; color: #131117; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dth-shimg-box h3 { margin: 0 34px 12px 0; font: 600 19px 'Outfit', sans-serif; color: #131117; }
.dth-shimg-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f2f5; color: #131117; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.dth-shimg-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin: 0 0 12px; }
.dth-shimg-tabs button { padding: 8px 4px; border: 1px solid #E5E5EA; border-radius: 10px; background: #fff; color: #131117; font: 500 13px/1.25 'Outfit', sans-serif; cursor: pointer; text-transform: none; letter-spacing: normal; min-height: 0; }
.dth-shimg-tabs button small { display: block; color: #687279; font-size: 11px; font-weight: 400; }
.dth-shimg-tabs button.is-on { border-color: #fb5858; background: #fff1f1; color: #fb5858; }
.dth-shimg-prev { display: flex; align-items: center; justify-content: center; min-height: 180px; background: #f4f4f6; border-radius: 10px; overflow: hidden; }
.dth-shimg-prev img { display: block; max-width: 100%; max-height: 52vh; height: auto; width: auto; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.dth-shimg-prev .dth-shimg-wait { color: #687279; font-size: 14px; padding: 20px; }
.dth-shimg-acts { display: flex; gap: 8px; margin-top: 14px; }
.dth-shimg-acts a, .dth-shimg-acts a:visited, .dth-shimg-acts button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; font: 500 15px 'Outfit', sans-serif; text-decoration: none; cursor: pointer; border: 0; text-transform: none; letter-spacing: normal; }
.dth-shimg-acts .dth-shimg-dl { background: #fb5858; color: #fff; }
.dth-shimg-acts .dth-shimg-share { background: #131117; color: #fff; }
.dth-shimg-acts [hidden] { display: none; }
.dth-shimg-err { margin: 10px 0 0; color: #d63638; font-size: 13px; }
body.dth-shimg-open { overflow: hidden; }
/* v1.9.69: never wider than the phone screen (tall Story preview) */
.dth-shimg-box { min-width: 0; }
.dth-shimg-prev { min-width: 0; }
.dth-shimg-prev img { min-width: 0; max-width: 100%; height: auto; object-fit: contain; }
