/* Scoped to the two restored gallery pages; original site styles are unchanged. */
.gallery-page #main_bg {width:min(1014px,100%);padding:0;background:#fff;box-shadow:0 0 20px #202a42;}
.gallery-page #main,.gallery-page #content,.gallery-page #left2,.gallery-page #space,.gallery-page #header.site-header {width:100%;}
.gallery-page #left2 {float:none;}
.gallery-page #space {height:28px;background-size:100% 64px;}
.gallery-page #header.site-header {height:auto;overflow:visible;}
.gallery-page .site-hero {height:275px;}
.gallery-page #html-menu {height:auto;min-height:58px;box-sizing:border-box;}
.gallery-page #html-menu ul {display:flex;flex-wrap:wrap;padding-left:20px;}
.gallery-page #html-menu li {float:none;}
.gallery-page #html-menu a {padding:20px 22px;}
.gallery-language {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:10px 24px 0;font:13px/1.4 Arial,sans-serif;}
.gallery-language a {display:inline-flex;align-items:center;gap:7px;min-height:44px;box-sizing:border-box;padding:6px 10px;color:#343f59;border:1px solid transparent;border-radius:3px;text-decoration:none;}
.gallery-language a[aria-current="page"] {background:#f1f2ed;border-color:#d9ddd6;}
.gallery-language a:hover {background:#e8ede6;text-decoration:underline;}
.gallery-language a:focus-visible {outline:2px solid #343f59;outline-offset:2px;}
.gallery-flag {display:block;width:30px;height:20px;flex:none;overflow:hidden;border:1px solid #d9ddd6;}
.gallery-page .tit_bot {background:none;padding:0 24px;}
.gallery-page .tit_bot h1:first-child,.gallery-page .tit_bot h2 {display:none;}
.gallery-page .panoramaH1 {font-size:27px;line-height:1.3;padding-bottom:12px;}
.pv-gallery {max-width:720px;margin:0 auto;padding:0 24px 28px;text-align:left;box-sizing:border-box;}
.pv-gallery [hidden] {display:none!important;}
.gallery-intro {font:14px/1.7 Arial,sans-serif;color:#555d67;margin:0 0 20px;}
.gallery-viewer figure {margin:0;}
.gallery-expand {display:block;position:relative;width:100%;padding:0;background:#f1f2ed;cursor:zoom-in;}
.gallery-main-image {display:block;width:100%;height:auto;aspect-ratio:500/333;object-fit:contain;}
.gallery-enlarge-label {position:absolute;right:8px;bottom:8px;background:#263246e8;padding:6px 10px;color:#fff;font:12px/1.4 Arial,sans-serif;border-radius:3px;}
.gallery-caption {font:15px/1.5 Arial,sans-serif;color:#343f59;padding:12px 0 5px;min-height:23px;}
.gallery-controls {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 20px;font:14px/1.4 Arial,sans-serif;}
.gallery-controls button,.gallery-close {background:#343f59;color:#fff;min-height:44px;min-width:44px;padding:10px 16px;font:14px/1.4 Arial,sans-serif;cursor:pointer;border-radius:3px;}
.gallery-controls button:hover,.gallery-close:hover {background:#294d01;}
.pv-gallery :focus-visible {outline:3px solid #bd8d19;outline-offset:4px;}
.gallery-thumbnails {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;}
.gallery-thumbnails a {display:block;border:3px solid transparent;border-radius:2px;box-sizing:border-box;}
.gallery-thumbnails a:hover {border-color:#89996e;}
.gallery-thumbnails a[aria-current="true"] {border-color:#294d01;box-shadow:0 0 0 1px #294d01;}
.gallery-thumbnails img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;}
.gallery-dialog {position:fixed;inset:0;margin:auto;width:min(840px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:20px;box-sizing:border-box;background:#fff;border-radius:6px;overflow:auto;}
.gallery-dialog::backdrop {background:#121925e8;}
.gallery-close {display:block;margin:0 0 14px auto;}
.gallery-dialog-image {display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain;background:#f1f2ed;}
.gallery-dialog-caption {font:15px/1.5 Arial,sans-serif;color:#343f59;margin:12px 0;}
.gallery-dialog .gallery-controls {margin-bottom:0;}
.gallery-page #footer {box-sizing:content-box;background-size:cover;}
@media(max-width:680px) {
 .gallery-page .site-hero {height:210px;}
 .gallery-page .site-title {left:22px;right:16px;bottom:24px;}
 .gallery-page .site-title a {font-size:32px;line-height:1.2;}
 .gallery-page .site-title span {font-size:13px;line-height:1.5;}
 .gallery-page #html-menu ul {padding:4px 7px;justify-content:center;}
 .gallery-page #html-menu a {padding:14px 11px;font-size:12px;letter-spacing:0;}
 .gallery-page #space {height:20px;}
 .pv-gallery {padding:0 16px 24px;}
 .gallery-page .tit_bot {padding:0 16px;}
 .gallery-thumbnails {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
 .gallery-dialog {padding:12px;width:calc(100% - 20px);max-height:calc(100dvh - 20px);}
}
