/* Blue and white screenshot gallery; loaded after all earlier theme styles. */
#scenery.gallery-showcase{background:#f1f8fc;border-color:#bed7e7;color:#335a72}
#scenery.gallery-showcase .section-heading{border-color:#c9deeb}
#scenery.gallery-showcase .section-heading h2{color:#335a72}
#scenery.gallery-showcase .section-heading p,#scenery.gallery-showcase .section-heading>span{color:#506c7f}
#scenery .painting{background:#fff;border:1px solid #bed7e7;box-shadow:0 2px 7px #567c9410;padding:5px;text-decoration:none}
#scenery .painting img{display:block;width:100%;height:190px;aspect-ratio:auto;object-fit:contain;background:#f8fbfd;transform:none}
#scenery .painting:hover img{transform:none}
#scenery .painting:hover{border-color:#94bdd7;box-shadow:0 4px 14px #567c941b}
#scenery .painting>span{padding:12px 10px;border-top:1px solid #d5e6f0;background:linear-gradient(#fff,#edf6fc);color:#335a72}
#scenery .painting strong{font-size:18px;letter-spacing:1px;color:#335a72}
#scenery .painting small{font-size:11px;color:#436f8b;white-space:nowrap}
#gallery-dialog.gallery-lightbox{width:1180px;width:min(1180px,calc(100% - 40px));max-width:calc(100% - 40px);max-height:95vh;padding:16px;background:#fff;border:1px solid #bdd8e9;color:#335a72;border-radius:4px;overflow:auto;box-shadow:0 12px 36px #486e8b26;color-scheme:light}
#gallery-dialog.gallery-lightbox::backdrop{background:#dfedf6d4}
#gallery-dialog .gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;margin:-16px -16px 13px;background:linear-gradient(120deg,#f0f8fe,#dfedf8);border-bottom:1px solid #c6ddeb}
#gallery-dialog .gallery-heading h2{margin:0;color:#335a72;font:23px var(--serif,"SimSun",serif);letter-spacing:1px}
#gallery-dialog #gallery-caption{margin:4px 0 0;font-size:12px;line-height:1.5;color:#506c7f}
#gallery-dialog .gallery-close,#gallery-dialog .gallery-controls button{position:static;width:auto;height:auto;padding:8px 13px;background:linear-gradient(#f4faff,#e2eff9);border:1px solid #bad4e7;border-radius:3px;color:#335a72;font-size:13px;line-height:1.5;white-space:nowrap;cursor:pointer}
#gallery-dialog .gallery-close:hover,#gallery-dialog .gallery-controls button:hover{background:#dcecf8}
#gallery-dialog .gallery-controls button:disabled{opacity:.5;cursor:default}
#gallery-dialog .gallery-stage{display:flex;justify-content:center;align-items:center;min-height:180px;height:60vh;max-height:620px;padding:7px;background:#f8fbfd;border:1px solid #d7e6ef;touch-action:pan-y}
#gallery-dialog .gallery-stage #gallery-image{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain}
#gallery-dialog #gallery-load-error{display:none;color:#506c7f;padding:25px}
#gallery-dialog .gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0}
#gallery-dialog .gallery-meta{display:flex;align-items:center;gap:15px;color:#506c7f;font-size:12px}
#gallery-dialog #gallery-original{color:#436f8b;text-decoration:underline}
#gallery-dialog #gallery-thumbnails{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}
#gallery-dialog .gallery-thumbnail{width:106px;padding:4px;background:#fff;border:1px solid #c7dce9;border-radius:3px;color:#506c7f;cursor:pointer}
#gallery-dialog .gallery-thumbnail[aria-pressed="true"]{border:2px solid #94bdd7;padding:3px;background:#eaf4fc;color:#335a72}
#gallery-dialog .gallery-thumbnail img{display:block;width:100%;height:58px;object-fit:contain;background:#f5faff}
#gallery-dialog .gallery-thumbnail span{display:block;margin-top:4px;font-size:11px;line-height:1.5}
.gallery-open .compat-modal-backdrop{background:#dfedf6;opacity:.9;filter:alpha(opacity=90)}
.legacy-browser #gallery-dialog.gallery-lightbox{display:none}
.legacy-browser #gallery-dialog.gallery-lightbox.compat-modal-open{display:block;position:fixed;left:50%;top:3%;transform:translateX(-50%);max-height:94%;z-index:1010}
.legacy-browser #scenery .painting img{height:190px}
.legacy-browser #gallery-dialog .gallery-heading,.legacy-browser #gallery-dialog .gallery-controls{display:block;overflow:hidden}
.legacy-browser #gallery-dialog .gallery-close{float:right;margin-top:-40px}
.legacy-browser #gallery-dialog .gallery-stage{display:block;text-align:center}
.legacy-browser #gallery-dialog .gallery-stage #gallery-image{margin:auto}
.legacy-browser #gallery-dialog #gallery-previous{float:left}
.legacy-browser #gallery-dialog #gallery-next{float:right}
.legacy-browser #gallery-dialog .gallery-meta{display:inline-block;margin:8px 20px}
.legacy-browser #gallery-dialog #gallery-thumbnails{text-align:center;display:block}
.legacy-browser #gallery-dialog .gallery-thumbnail{display:inline-block;vertical-align:top;margin:4px}
@media(max-width:850px){#scenery .painting>span{display:block}#scenery .painting small{display:block;margin-top:5px;white-space:normal}}
@media(max-width:620px){#scenery .painting img{height:145px}#scenery .painting strong{font-size:16px}#gallery-dialog.gallery-lightbox{max-width:calc(100% - 18px);width:calc(100% - 18px);padding:10px}#gallery-dialog .gallery-heading{padding:12px 10px;margin:-10px -10px 11px}#gallery-dialog .gallery-heading h2{font-size:19px}#gallery-dialog .gallery-stage{height:46vh;min-height:180px}#gallery-dialog .gallery-meta{display:block;text-align:center;font-size:11px}#gallery-dialog #gallery-count{display:block}#gallery-dialog .gallery-thumbnail{width:88px}#gallery-dialog .gallery-thumbnail img{height:49px}}
@media(pointer:coarse){#gallery-dialog .gallery-close,#gallery-dialog .gallery-controls button{min-height:44px}}

#gallery-dialog #gallery-original[aria-disabled="true"]{color:#7895a9;text-decoration:none;cursor:default}
