/* The same photo box controls the HTML image and the frozen SVG overlays. */
.dv-gallery{min-width:0;color:var(--studio-text,#F6F3FA);background:var(--studio-panel,#15121D);border:1px solid var(--studio-border,#413B4E);border-radius:16px;overflow:hidden}
.dv-gallery>header{display:flex;flex-direction:column;gap:7px;padding:16px}
.dv-gallery>header strong{font-size:15px;line-height:1.4}
.dv-gallery>header span,.dv-gallery small{font-size:12px;color:var(--studio-muted,#BCB7C8);line-height:1.5}
.dv-photo-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 14px 14px;scroll-snap-type:x proximity}
.dv-photo-tabs button{display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:56px;max-width:220px;padding:6px 10px 6px 6px;border:1px solid var(--studio-border,#413B4E);border-radius:10px;background:#1E1B26;color:#F6F3FA;text-align:left;scroll-snap-align:start}
.dv-photo-tabs button[aria-pressed=true]{border-color:var(--studio-lime,#7657FF);background:#27242C}
.dv-photo-tabs button:focus-visible,.dv-photo-error button:focus-visible{outline:2px solid var(--studio-lime,#956FFF);outline-offset:2px}
.dv-photo-tabs button>img{width:38px;height:46px;object-fit:cover;border-radius:5px;flex-shrink:0}
.dv-photo-tabs button>span{font-size:12px;line-height:1.35}
.dv-photo-tabs small{display:block;font-size:11px;margin-top:3px}
.dv-gallery figure{margin:0;min-width:0}
.dv-gallery [hidden],.dv-photo-stage [hidden]{display:none!important}
.dv-photo-stage{position:relative;display:grid;place-items:center;min-height:180px;width:100%;background:#0B0910;overflow:hidden}
.dv-image-frame{position:relative;width:100%;max-width:var(--dv-max-width,100%);min-width:0}
.dv-image-frame>.dv-photo{display:block;width:100%;height:auto;max-height:none;object-fit:contain;padding:0;border:0;border-radius:0}
.dv-image-frame>.dv-overlays{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;pointer-events:none;overflow:hidden}
.dv-photo-stage:not([data-photo-state=ready]) .dv-overlays{visibility:hidden}
.dv-photo-stage[data-photo-state=error] .dv-image-frame{display:none}
.dv-photo-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:180px;padding:24px;color:#f5d7a9;background:#171717;text-align:center;box-sizing:border-box;font-size:14px;line-height:1.6}
.dv-photo-error>span{font-size:12px;color:#C7C4CC}
.dv-photo-error button{min-height:44px;padding:9px 15px;background:#28252F;color:#fff;border:1px solid #55505F;border-radius:8px;font:inherit}
.dv-photo-loading{position:absolute;left:12px;right:12px;bottom:12px;border-radius:7px;padding:8px 10px;background:#0B0910e6;color:#E4E1EB;font-size:12px;text-align:center}
.dv-gallery figcaption{padding:14px 16px;font-size:13px}
.dv-gallery figcaption>strong{font-size:13px}
.dv-gallery figcaption ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.dv-gallery figcaption li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-top:1px solid #ffffff12;padding-top:8px}
.dv-gallery figcaption li>span{overflow-wrap:anywhere}
.dv-gallery figcaption li>small{text-align:right}
.dv-thumbnail .dv-photo-stage,.dv-thumbnail .dv-image-frame{width:100%;height:100%;min-height:0;max-width:none}
.dv-thumbnail .dv-image-frame>.dv-photo{width:100%;height:100%;object-fit:contain}
.dv-thumbnail .dv-photo-error{min-height:0;height:100%;padding:8px;font-size:10px;line-height:1.35}
.dv-thumbnail .dv-photo-loading{font-size:9px;left:4px;right:4px;bottom:4px;padding:4px}
.dv-count{position:absolute;left:5px;bottom:5px;background:#131018e8;color:#E5DEF4;border:1px solid #7657FF55;padding:4px 6px;border-radius:6px;font-size:10px;font-weight:700}
@media(max-width:600px){.dv-gallery>header{padding:13px}.dv-gallery figcaption{padding:12px}.dv-photo-tabs{padding-left:12px;padding-right:12px}.dv-gallery figcaption li{flex-wrap:wrap;gap:4px 12px}}
