.rgc{position:relative;width:100%}
.rgc-empty{padding:30px;text-align:center;border:1px dashed #bbb;color:#777}
.rgc-stage{position:relative}
.rgc-viewport{overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.rgc-track{display:flex;will-change:transform;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}
.rgc-dragging .rgc-track{transition:none!important}
.rgc-dragging .rgc-slide{cursor:grabbing}
.rgc-slide{border-radius:20px;flex:0 0 100%;min-width:0;overflow:hidden;cursor:zoom-in;position:relative;outline-offset:3px}
.rgc-slide img{display:block;max-width:none;-webkit-user-drag:none;pointer-events:none}
/* fixed-height mode (old behaviour, crops the picture) */
.rgc-mode-fixed .rgc-slide img{width:100%;height:600px;object-fit:cover}
/* fit-to-screen mode: whole picture visible, never taller than the screen below the header.
   JS sets exact px sizes; the max-height here is only a no-JS / pre-load fallback. */
.rgc-mode-fit .rgc-slide{display:flex;align-items:center;justify-content:center;overflow:visible;background:transparent}
.rgc-mode-fit .rgc-slide img{flex:none;width:100%;height:auto;max-width:100%;max-height:calc(100vh - 160px);max-height:calc(100svh - 160px);object-fit:contain;border-radius:inherit}
.rgc-mode-fit .rgc-slide[style*="height"] img{max-height:none}

.rgc .rgc-arrow{box-shadow:none;min-width:0;min-height:0}
.rgc-arrow{width:46px;height:46px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;padding:0;border:0;cursor:pointer;transition:background-color .2s,color .2s,opacity .2s}
.rgc-arrow svg{width:22px;height:22px}
.rgc-arrow:hover{background:#F26522}
.rgc-arrow-prev{left:16px}.rgc-arrow-next{right:16px}
.rgc-arrow.is-disabled{opacity:.35;cursor:default;pointer-events:none}
.rgc-hide-nav .rgc-arrow,.rgc-hide-nav .rgc-dots{display:none}

.rgc-dots{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin-top:18px}
.rgc .rgc-dot{box-shadow:none;min-width:0;min-height:0}
.rgc-dot{width:14px;height:14px;padding:0;border:0;border-radius:50%;background:#eee;cursor:pointer;transition:background-color .2s}
.rgc-dot.is-active,.rgc-dot:hover{background:#F26522}

/* ---------- Lightbox ---------- */
.rgc-lb{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:var(--rgc-lb-bg,#4d4d4d);opacity:0;transition:opacity .2s;overflow:hidden}
.rgc-lb.is-open{opacity:1}
.rgc-lb-body{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;padding:28px 110px 20px;box-sizing:border-box}
/* the stage takes all the height left after dots + counter; the image is fitted into it by JS */
.rgc-lb-stage{flex:1 1 0;min-height:0;width:100%;max-width:var(--rgc-lb-mw,100%);display:flex;align-items:center;justify-content:center}
.rgc-lb-img{display:block;flex:none;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:var(--rgc-lb-radius,16px);opacity:0;transition:opacity .25s}
.rgc-lb-img.is-loaded{opacity:1}
.rgc-lb-dots{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:16px;max-width:90%}
.rgc-lb button.rgc-lb-dot{width:var(--rgc-lb-dot-size,14px);height:var(--rgc-lb-dot-size,14px);min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:50%;background:var(--rgc-lb-dot,#fff);box-shadow:none;cursor:pointer;transition:background-color .2s}
.rgc-lb button.rgc-lb-dot:hover{background:var(--rgc-lb-dot-h,var(--rgc-lb-dot-active,#F26522))}
.rgc-lb button.rgc-lb-dot:focus{background:var(--rgc-lb-dot-f,var(--rgc-lb-dot,#fff));outline:2px solid var(--rgc-lb-f-outline,#F26522);outline-offset:3px}
.rgc-lb button.rgc-lb-dot.is-active,.rgc-lb button.rgc-lb-dot.is-active:hover,.rgc-lb button.rgc-lb-dot.is-active:focus{background:var(--rgc-lb-dot-active,#F26522)}
.rgc-lb-counter{flex:none;display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:12px 14px;border-radius:6px;background:var(--rgc-lb-counter-bg,#fff);color:var(--rgc-lb-counter-color,#4d4d4d);font-size:var(--rgc-lb-counter-size,16px);font-weight:600;line-height:1}
.rgc-lb-counter svg{width:24px;height:24px}

/* buttons: specificity is deliberately high so theme / Elementor-kit button hover+focus styles cannot override */
.rgc-lb button.rgc-lb-btn{position:absolute;display:flex;align-items:center;justify-content:center;width:50px;height:50px;min-width:0;min-height:0;padding:0;margin:0;border:2px solid currentColor;border-radius:50%;background:var(--rgc-lb-arrow-bg,transparent);color:var(--rgc-lb-arrow,#fff);box-shadow:none;text-shadow:none;line-height:1;cursor:pointer;transition:opacity .2s,background-color .2s,color .2s,border-color .2s}
.rgc-lb button.rgc-lb-btn svg{width:26px;height:26px;fill:none;stroke:currentColor}
.rgc-lb button.rgc-lb-close{top:36px;right:40px;width:42px;height:42px;color:var(--rgc-lb-close,#fff);background:var(--rgc-lb-close-bg,transparent)}
.rgc-lb button.rgc-lb-close svg{width:22px;height:22px}
.rgc-lb button.rgc-lb-prev{left:40px;top:50%;margin-top:-35px}
.rgc-lb button.rgc-lb-next{right:40px;top:50%;margin-top:-35px}

/* hover */
.rgc-lb button.rgc-lb-btn:hover{color:var(--rgc-lb-h-color,var(--rgc-lb-arrow,#fff));background:var(--rgc-lb-h-bg,rgba(255,255,255,.15));border-color:var(--rgc-lb-h-border,currentColor)}
.rgc-lb button.rgc-lb-close:hover{color:var(--rgc-lb-h-color,var(--rgc-lb-close,#fff))}
/* focus */
.rgc-lb button.rgc-lb-btn:focus{color:var(--rgc-lb-f-color,var(--rgc-lb-arrow,#fff));background:var(--rgc-lb-f-bg,var(--rgc-lb-arrow-bg,transparent));border-color:var(--rgc-lb-f-border,currentColor);outline:2px solid var(--rgc-lb-f-outline,transparent);outline-offset:3px}
.rgc-lb button.rgc-lb-close:focus{color:var(--rgc-lb-f-color,var(--rgc-lb-close,#fff));background:var(--rgc-lb-f-bg,var(--rgc-lb-close-bg,transparent))}
/* hover wins over focus while the pointer is on the button */
.rgc-lb button.rgc-lb-btn:focus:hover{color:var(--rgc-lb-h-color,var(--rgc-lb-f-color,var(--rgc-lb-arrow,#fff)));background:var(--rgc-lb-h-bg,var(--rgc-lb-f-bg,rgba(255,255,255,.15)));border-color:var(--rgc-lb-h-border,var(--rgc-lb-f-border,currentColor))}
.rgc-lb button.rgc-lb-close:focus:hover{color:var(--rgc-lb-h-color,var(--rgc-lb-f-color,var(--rgc-lb-close,#fff)))}
.rgc-lb button.rgc-lb-btn.is-disabled{opacity:.3;pointer-events:none}
.rgc-lb:focus{outline:none}

@media (max-width:1024px){
 .rgc-lb-body{padding:72px 20px 20px}
 .rgc-lb button.rgc-lb-prev{left:12px}.rgc-lb button.rgc-lb-next{right:12px}
 .rgc-lb button.rgc-lb-close{top:16px;right:16px}
}
@media (max-width:767px){
 .rgc-lb button.rgc-lb-btn{width:40px;height:40px}
 .rgc-lb button.rgc-lb-prev,.rgc-lb button.rgc-lb-next{top:auto;bottom:18px;margin-top:0}
 .rgc-lb button.rgc-lb-prev{left:16px}.rgc-lb button.rgc-lb-next{right:16px}
 .rgc-lb-body{padding:64px 8px 72px}
 .rgc-lb-dots{margin-top:12px}
 .rgc-lb-counter{margin-top:12px;padding:8px 12px}
}
/* short screens (phone in landscape, small laptop windows): give the picture almost all of the height */
@media (max-height:520px){
 .rgc-lb-body{padding:10px 72px 10px}
 .rgc-lb-dots{display:none}
 .rgc-lb-counter{margin-top:8px;padding:6px 10px}
 .rgc-lb button.rgc-lb-btn{width:40px;height:40px}
 .rgc-lb button.rgc-lb-prev,.rgc-lb button.rgc-lb-next{top:50%;bottom:auto;margin-top:-20px}
 .rgc-lb button.rgc-lb-prev{left:14px}.rgc-lb button.rgc-lb-next{right:14px}
 .rgc-lb button.rgc-lb-close{top:10px;right:14px}
}
