/* Gallery-only additions; retain the original site's orange/blue palette and typography. */
.rb-gallery-page .container{max-width:100%}
.rb-gallery-index{padding-bottom:80px}
.rb-gallery-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
.rb-gallery-list .blog-to{float:none;width:auto;margin:0;min-width:0}
.rb-gallery-list .blog-to>a{display:block}
.rb-gallery-list .sin-on{width:100%;height:auto}
.rb-gallery-list .top-blog{float:none;width:auto;margin-left:0;clear:both;padding-top:12px}
.rb-gallery-list .blog-top{padding-top:12px}
.rb-gallery-list .blog-left{padding-right:22px;margin-bottom:4px}
.rb-gallery-list .blog-left span{font-size:16px}
.rb-gallery-list .sed span{font-size:13px}
.rb-gallery-archive{border-top:1px solid #eee;padding-top:45px;margin-top:40px}
.rb-gallery-archive h4{font-size:21px;color:#00a0e9;margin:0 0 30px;line-height:1.6}
.rb-gallery-archive h4 span{font-size:15px;color:#777}
.rb-album{padding-top:34px;padding-bottom:80px}
.rb-album-nav{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:14px;line-height:1.7}
.rb-album a{color:#00a0e9;text-decoration:none}
.rb-album a:hover{color:#ea5514}
.rb-album-header{text-align:center;margin:34px 0 32px}
.rb-album-header h1{font-size:42px;font-weight:400;line-height:1.3;color:#ea5514;margin:0 0 14px}
.rb-album-header p{font-size:14px;line-height:1.8;color:#777;margin:0}
.rb-photo-grid{--photo-gap:14px;--photo-height:255px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--photo-gap)}
.rb-photo{display:block;flex:0 0 calc((100% - 28px)/3);min-width:0;cursor:zoom-in;background:transparent}
.rb-photo img{display:block;width:100%;height:auto}
.rb-photo-grid[data-layout="justified"] .rb-photo{flex:none}
.rb-photo-grid[data-layout="justified"] .rb-photo img{width:100%;height:100%;object-fit:contain}
.rb-photo:focus-visible{outline:3px solid #00a0e9;outline-offset:3px}
.rb-album-bottom{text-align:center;margin:40px 0 0;font-size:14px}
body.rb-photo-open{overflow:hidden}
.rb-photo-viewer{position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#171717;color:#fff;overflow:hidden}
.rb-photo-viewer::backdrop{background:#171717}
.rb-photo-viewer[open]{display:flex;flex-direction:column}
.rb-photo-toolbar{display:flex;align-items:center;gap:24px;padding:12px 25px;min-height:64px;flex-shrink:0}
.rb-photo-year{color:#fff;font-size:17px;letter-spacing:1px}
.rb-photo-counter{color:#ccc;font-size:14px;margin-left:auto}
.rb-photo-viewer button{background:transparent;border:1px solid #666;color:#fff;cursor:pointer;line-height:1;font-family:Arial,sans-serif;flex-shrink:0}
.rb-photo-viewer button:hover{background:#333;border-color:#00a0e9}
.rb-photo-viewer button:focus-visible{outline:3px solid #00a0e9;outline-offset:3px}
.rb-photo-close{width:44px;height:44px;font-size:30px}
.rb-photo-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 85px}
.rb-photo-full{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.rb-photo-prev,.rb-photo-next{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:64px;font-size:42px;z-index:1}
.rb-photo-prev{left:20px}
.rb-photo-next{right:20px}
.rb-photo-help{text-align:center;color:#aaa;font-size:12px;line-height:1.7;margin:12px 16px 18px;flex-shrink:0}
@media(max-width:991px){.rb-photo-grid{--photo-gap:12px;--photo-height:215px}.rb-album-header h1{font-size:36px}}
@media(max-width:700px){.rb-gallery-list{grid-template-columns:1fr;gap:24px}.rb-gallery-index{padding-bottom:50px}.rb-gallery-archive{margin-top:20px}.rb-album{padding-top:24px;padding-bottom:50px}.rb-album-header{margin-top:26px}.rb-album-header h1{font-size:30px}.rb-album-header p span{display:block}.rb-photo-grid{--photo-gap:10px;--photo-height:190px}.rb-photo{flex-basis:calc((100% - 10px)/2)}.rb-photo-toolbar{padding:10px 14px;gap:12px}.rb-photo-year{font-size:14px}.rb-photo-stage{padding:0 10px 64px}.rb-photo-prev,.rb-photo-next{top:auto;bottom:0;transform:none;height:44px;width:60px;font-size:34px}.rb-photo-prev{left:calc(50% - 70px)}.rb-photo-next{right:calc(50% - 70px)}.rb-photo-help span{display:block}}
@media(max-width:420px){.rb-photo-grid{--photo-gap:8px;--photo-height:180px}.rb-album-nav{font-size:12px;gap:12px}}
