/* KGC Railings page. Brand colors only: #d03b34 #1f2853 #ffffff #e9e9e9. */
.kgc-rail{max-width:1100px;margin:0 auto 48px;padding:0 16px;color:#1f2853;font-family:Helvetica,Arial,sans-serif}
.kgc-rail h1,.kgc-rail h2,.kgc-rail h3{color:#1f2853;font-family:Helvetica,Arial,sans-serif}
.kgc-rail-hero{display:flex;align-items:center;gap:28px;padding:28px 24px;margin:16px 0 28px;background:#e9e9e9;border-radius:12px;border-left:6px solid #d03b34}
.kgc-rail-hero__icon{flex:0 0 160px;width:160px;height:160px;line-height:0}
.kgc-rail-hero__icon svg{width:100%;height:100%;display:block}
.kgc-rail-hero__text h1{margin:0 0 8px;font-size:2.2rem;font-weight:700;line-height:1.15}
.kgc-rail-hero__text p{margin:0 0 14px;font-size:1.05rem;line-height:1.5;color:#1f2853}
.kgc-rail-jump{display:flex;flex-wrap:wrap;gap:8px}
.kgc-rail-jump a{display:inline-block;background:#1f2853;color:#ffffff;text-decoration:none;font-weight:700;font-size:.95rem;padding:8px 14px;border-radius:4px}
.kgc-rail-jump a:hover,.kgc-rail-jump a:focus{background:#d03b34;color:#ffffff}
.kgc-rail-section{margin:0 0 40px;padding:24px 16px;background:#ffffff;border-top:4px solid #1f2853;scroll-margin-top:90px}
.kgc-rail-section h2{margin:0 0 4px;text-align:center;font-size:1.8rem;font-weight:700}
.kgc-rail-kicker{margin:0 0 10px;text-align:center;font-weight:700;color:#d03b34;letter-spacing:.04em;text-transform:uppercase;font-size:.9rem}
.kgc-rail-note{margin:0 auto 18px;max-width:720px;text-align:center;color:#1f2853}
.kgc-rail-sub{margin:26px 0 0;scroll-margin-top:90px}
.kgc-rail-sub h3{margin:0 0 2px;text-align:center;font-size:1.3rem;font-weight:700}
.kgc-rail-subkicker{margin:0 0 12px;text-align:center;color:#1f2853;font-size:.95rem}
.kgc-rail .kgc-photos__item figcaption{padding:8px 10px 10px;background:#ffffff;line-height:1.3;color:#1f2853;font-size:.9rem;text-align:left}
.kgc-rail .kgc-photos__item figcaption strong{display:block;font-weight:700}
.kgc-rail .kgc-photos__item figcaption span{display:block;font-size:.82rem}
.kgc-rail .kgc-photos__item{border:1px solid #e9e9e9;background:#ffffff}
.kgc-rail-products .kgc-photos__item img{object-fit:contain;background:#ffffff;height:200px;padding:8px;box-sizing:border-box;aspect-ratio:auto}
@media (min-width:700px){.kgc-rail-products .kgc-photos__grid{grid-template-columns:repeat(4,1fr)}}
.kgc-rail-glass .kgc-photos__item img{height:220px}
.kgc-rail-more{margin:14px 0 0;text-align:center}
.kgc-rail-more a,.kgc-rail-cta a{color:#d03b34;font-weight:700}
.kgc-rail-cta{text-align:center;margin:8px 0 0;font-size:1.05rem}
@media (max-width:700px){
  .kgc-rail{padding:0 10px}
  .kgc-rail-hero{flex-direction:column;text-align:center;gap:14px;padding:20px 14px}
  .kgc-rail-hero__icon{flex-basis:auto;width:120px;height:120px}
  .kgc-rail-jump{justify-content:center}
  .kgc-rail-hero__text h1{font-size:1.9rem}
  .kgc-rail-section{padding:18px 4px}
  .kgc-rail-products .kgc-photos__grid{grid-template-columns:repeat(2,1fr)}
  .kgc-rail-products .kgc-photos__item img{height:150px}
  .kgc-rail .kgc-photos__item figcaption{font-size:.82rem;padding:6px 8px 8px}
}
/* Long galleries: keep every viewer thumbnail reachable on phones (centered when they fit, scrollable when they don't). */
.kgc-pv__thumbs{justify-content:flex-start;scroll-behavior:smooth}
.kgc-pv__thumbs button:first-child{margin-left:auto}
.kgc-pv__thumbs button:last-child{margin-right:auto}
/* Viewer on this page: keep the photo clear of the N of M bar and the thumbnail strip (white product shots). */
.kgc-pv__stage{padding:60px 0 124px;box-sizing:border-box}
.kgc-pv__img{max-height:100%}
.kgc-rail-jump a,.kgc-rail-jump a:visited{text-decoration:none !important}
@media (max-width:390px){.kgc-pv__stage{padding:60px 0 116px}}
