
.screenshot-gallery{border:1px solid #c9c9bf;border-radius:18px;background:#fff;overflow:hidden}
.gallery-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid #deded8;font-size:14px;color:#50504b}
.gallery-tools{display:flex;align-items:center;gap:23px;flex-shrink:0}
.gallery-preview-note{font-size:12px;color:#62625b}
.gallery-count{font-size:14px;font-variant-numeric:tabular-nums;color:#111;white-space:nowrap}
.gallery-count span{color:#62625b}
.gallery-stage{position:relative;background:#0b0c0e;overflow:hidden}
.gallery-open{display:block;width:100%;border:0;padding:0;background:none;position:relative;cursor:zoom-in}
.gallery-stage img{display:block;width:100%;height:auto;user-select:none}
.gallery-open-hint{position:absolute;bottom:18px;right:20px;padding:11px 17px;border-radius:100px;background:#fff;color:#111;font-size:13px;box-shadow:0 2px 15px #0005}
.gallery-caption{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 22px;border-top:1px solid #deded8}
.gallery-caption strong{display:block;font-size:16px;font-weight:600;line-height:1.4}
.gallery-caption>div>span{display:block;margin-top:5px;color:#62625b;font-size:12px;line-height:1.6}
.gallery-arrows{display:flex;gap:9px;flex-shrink:0}
.gallery-arrow{display:grid;place-items:center;width:46px;height:46px;border:1px solid #bdbdb4;border-radius:50%;background:#fff;font-size:31px;line-height:1;color:#111;transition:background .15s}
.gallery-arrow:hover{background:var(--ys-yellow);border-color:#111}
dialog.image-dialog:has(.gallery-full){width:min(1540px,calc(100% - 40px));padding:52px 12px 12px;max-height:96vh;overflow:hidden;border-radius:18px}
dialog.image-dialog:has(.gallery-full) #dialog-title{max-width:calc(100% - 50px);font-size:14px;line-height:1.5;margin:0 0 13px;letter-spacing:0}
.gallery-full{max-height:calc(96vh - 95px);display:flex;flex-direction:column;border-radius:9px}
.gallery-full .gallery-bar{padding:11px 16px;flex-shrink:0;font-size:13px}
.gallery-full .gallery-stage{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-color:#555 #111}
.gallery-full .gallery-stage img{width:100%;height:auto;max-height:none;object-fit:contain;object-position:top}
.gallery-full .gallery-stage.is-zoomed img{width:auto;max-width:none;max-height:none;height:auto}
.gallery-full .gallery-caption{padding:12px 16px;flex-shrink:0}
.gallery-full .gallery-caption strong{font-size:14px}
.gallery-full .gallery-arrow{width:41px;height:41px}
.gallery-zoom{background:#fff;border:1px solid #bdbdb4;border-radius:100px;color:#111;padding:9px 15px;font-size:13px;min-height:40px}
.gallery-zoom:hover,.gallery-zoom[aria-pressed=true]{background:var(--ys-yellow);border-color:#111}
.screenshot-gallery:not(.gallery-full) .gallery-stage{aspect-ratio:var(--gallery-ratio);touch-action:pan-y pinch-zoom}
.screenshot-gallery:not(.gallery-full) .gallery-open{height:100%}
.screenshot-gallery:not(.gallery-full) .gallery-stage img{height:100%;object-fit:contain}
.gallery-caption>div:first-child{flex:1;min-width:0}
.gallery-caption strong{min-height:2.8em}
.gallery-full .gallery-stage{flex:0 0 auto}
@media(max-width:800px){.gallery-preview-note{display:none}}
@media(max-width:600px){.screenshot-gallery{border-radius:10px}.gallery-bar{padding:12px 14px;font-size:13px;gap:10px}.gallery-tools{gap:10px}.gallery-caption{padding:15px 14px;gap:12px}.gallery-caption strong{font-size:14px}.gallery-caption>div>span{font-size:12px}.gallery-arrow{width:42px;height:42px;font-size:29px}.gallery-open-hint{bottom:9px;right:9px;padding:8px 12px;font-size:12px}dialog.image-dialog:has(.gallery-full){width:calc(100% - 12px);padding:49px 6px 6px;max-height:95vh;border-radius:12px}.gallery-full{max-height:calc(95vh - 94px)}.gallery-full .gallery-bar{padding:10px;font-size:12px}.gallery-full .gallery-caption{padding:10px}.gallery-full .gallery-caption>div>span{font-size:11px}.gallery-full .gallery-caption strong{font-size:13px}.gallery-zoom{font-size:12px;padding:8px 11px}.gallery-full .gallery-context{max-width:110px;line-height:1.5}.gallery-full .gallery-count{font-size:13px}}
