/* Styles scoped to historic galleries; no global Kadence CSS changes. */
.rb-legacy-gallery{--rb-blue:#123e61;--rb-green:#509a3b;--rb-yellow:#f3c72d;max-width:100%;margin:2rem auto 2.5rem;padding:12px;background:#f0f7f2;border:1px solid #dce9de;border-radius:18px;box-shadow:0 12px 30px rgba(18,62,97,.08);box-sizing:border-box}
.rb-legacy-gallery *{box-sizing:border-box}
.rb-gallery-stage{position:relative;overflow:hidden;border-radius:12px;background:#0b2c49}
.rb-gallery-slide{margin:0;position:relative}
.rb-gallery-slide[hidden]{display:none!important}
.rb-gallery-slide>a{display:flex;align-items:center;justify-content:center;min-height:240px;max-height:680px;aspect-ratio:16/10}
.rb-gallery-slide img{display:block;width:100%;height:100%;max-height:680px;object-fit:contain}
.rb-gallery-slide figcaption{position:absolute;bottom:0;left:0;right:0;padding:15px 20px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.75));font-size:14px}
.rb-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--rb-blue);font-size:23px;line-height:1;cursor:pointer;transition:background .2s,transform .2s}
.rb-gallery-arrow:hover,.rb-gallery-arrow:focus-visible{background:var(--rb-yellow);transform:translateY(-50%) scale(1.07);color:#0b2c49}
.rb-gallery-prev{left:12px}.rb-gallery-next{right:12px}
.rb-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px 10px;color:var(--rb-blue);font-size:13px}
.rb-gallery-count{font-weight:750;color:var(--rb-green);font-variant-numeric:tabular-nums}.rb-gallery-hint{opacity:.8}
.rb-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 7px;scroll-snap-type:x proximity}
.rb-gallery-thumb{flex:0 0 72px;width:72px;height:54px;padding:0;border:2px solid transparent;border-radius:7px;overflow:hidden;background:#fff;cursor:pointer;opacity:.72;scroll-snap-align:center;transition:opacity .2s,border-color .2s}
.rb-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rb-gallery-thumb.is-active,.rb-gallery-thumb:hover,.rb-gallery-thumb:focus-visible{opacity:1;border-color:var(--rb-green)}
.rb-gallery-unavailable{padding:16px;background:#fff8e1;border-left:4px solid #f3c72d;color:#123e61}
.rb-youtube-short{position:relative;aspect-ratio:9/16;width:100%;max-width:420px;margin:28px auto;overflow:hidden;border-radius:14px;background:#0b2c49;box-shadow:0 10px 28px rgba(18,62,97,.14)}
.rb-youtube-short iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:600px){.rb-legacy-gallery{padding:7px;border-radius:12px}.rb-gallery-slide>a{min-height:180px;aspect-ratio:4/3}.rb-gallery-arrow{width:36px;height:36px}.rb-gallery-thumb{flex-basis:60px;width:60px;height:48px}.rb-gallery-hint{display:none}}

/* V3 - Video block only: no impact on legacy galleries or site CSS */
.rb-video{margin:26px auto;max-width:100%;width:100%;}
.rb-video-vertical{max-width:430px;}
.rb-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#0b2c49;box-shadow:0 8px 26px rgba(18,62,97,.12);}
.rb-video-vertical .rb-video-frame{aspect-ratio:9/16;}
.rb-video-frame iframe,.rb-video-frame video{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;}
.rb-video-frame video{object-fit:contain;}
.rb-video figcaption{text-align:center;color:#526b7b;font-size:.9rem;margin-top:10px;}
