.g-gallery{padding:22px;border-top:1px solid #dce3dd;color:#1d3945}.g-gallery h4{font:22px Georgia,serif;margin:0 0 12px}.g-gallery p{font:14px/1.6 system-ui;color:#617780}.g-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.g-thumbs img{width:100%;aspect-ratio:1;object-fit:contain;background:#edf0e4;border-radius:12px}.g-gallery a{font:14px system-ui}.gallery-page{max-width:1000px;margin:auto;padding:28px 20px;color:#1d3945;font:16px/1.6 system-ui}.gallery-page h1,.gallery-page h2{font-family:Georgia,serif}.gallery-page nav{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.gallery-page button,.gallery-page .g-button{display:inline-block;min-height:44px;padding:12px 18px;border:1px solid #c3d1d3;border-radius:10px;background:#1d3945;color:white;text-decoration:none;cursor:pointer;font:15px system-ui}.gallery-page .g-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px}.g-card{border:1px solid #d8e2df;background:white;border-radius:18px;padding:16px}.g-card img{width:100%;height:240px;object-fit:contain;background:#edf0e4;border-radius:10px}.g-card h2{font-size:23px}.g-card a{color:#1d3945}.g-card button{margin:8px 8px 0 0}.g-view-image{display:block;width:100%;max-height:65vh;object-fit:contain;background:#edf0e4;border-radius:18px;margin:24px 0}.gallery-page [hidden]{display:none!important}.g-dialog{max-width:470px;width:calc(100% - 30px);border:1px solid #ccd8dc;border-radius:18px;padding:24px;background:#f7faf8;color:#1d3945;font:15px/1.6 system-ui}.g-dialog::backdrop{background:#132e3bb0}.g-dialog img{width:100%;height:180px;object-fit:contain;background:#edf0e4}.g-dialog input[type=text]{box-sizing:border-box;width:100%;padding:12px;font:16px system-ui;border:1px solid #bbcacc;border-radius:8px}.g-dialog button{padding:12px 16px;min-height:44px;border:1px solid #bbcacc;border-radius:8px;background:#1d3945;color:white;margin:12px 8px 0 0;cursor:pointer}.g-dialog label{display:block;margin:14px 0}.g-dialog input[type=checkbox]{width:20px;height:20px;vertical-align:middle}.g-dialog [hidden]{display:none!important}.g-dialog a{color:inherit}.g-gallery a:focus-visible,.gallery-page :focus-visible,.g-dialog :focus-visible{outline:3px solid #cda527;outline-offset:4px}
