/* One close control, independent of icon fonts, emoji rendering or gallery sprites. */
:root{--rgh-close-size:var(--rgh-close-desktop-size,44px);--rgh-close-gap:var(--rgh-close-desktop-gap,18px);--rgh-close-stroke:18px;--rgh-close-surface:#fcfaf7;--rgh-close-ink:#72383d;--rgh-close-hover:#72383d}
@media(max-width:1024px){:root{--rgh-close-size:var(--rgh-close-tablet-size,46px);--rgh-close-gap:var(--rgh-close-tablet-gap,16px);--rgh-close-stroke:19px}}
@media(max-width:640px){:root{--rgh-close-size:var(--rgh-close-phone-size,48px);--rgh-close-gap:var(--rgh-close-phone-gap,12px);--rgh-close-stroke:20px}}
body .rgh-close-control{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:var(--rgh-close-size)!important;height:var(--rgh-close-size)!important;min-width:var(--rgh-close-size)!important;min-height:var(--rgh-close-size)!important;
 max-width:var(--rgh-close-size)!important;max-height:var(--rgh-close-size)!important;aspect-ratio:1/1!important;flex:0 0 var(--rgh-close-size)!important;
 margin:0!important;padding:0!important;border:1px solid #72383d26!important;border-radius:50%!important;
 background:var(--rgh-close-surface)!important;color:var(--rgh-close-ink)!important;box-shadow:0 4px 16px #322d2926!important;
 font-size:0!important;line-height:0!important;letter-spacing:0!important;text-indent:0!important;text-shadow:none!important;
 opacity:1!important;visibility:visible!important;overflow:visible!important;filter:none!important;mix-blend-mode:normal!important;transform:none!important;
 appearance:none!important;-webkit-appearance:none!important;cursor:pointer!important;pointer-events:auto!important;touch-action:manipulation;
 -webkit-tap-highlight-color:transparent;z-index:1050!important;
 transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
body .rgh-close-control>*{display:none!important}
body .rgh-close-control::before,body .rgh-close-control::after{
 content:''!important;display:block!important;position:absolute!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;
 width:var(--rgh-close-stroke)!important;height:2px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:2px!important;background:currentColor!important;box-shadow:none!important;opacity:1!important;
 transform:translate(-50%,-50%) rotate(45deg)!important;pointer-events:none!important;
}
body .rgh-close-control::after{transform:translate(-50%,-50%) rotate(-45deg)!important}
@media(hover:hover){body .rgh-close-control:hover{background:var(--rgh-close-hover)!important;color:#fff!important;box-shadow:0 7px 22px #322d2933!important;transform:translateY(-1px)!important}}
body .rgh-close-control:active{transform:scale(.94)!important}
body .rgh-close-control:focus-visible{outline:2px solid var(--rgh-close-ink)!important;outline-offset:4px!important;box-shadow:0 0 0 4px var(--rgh-close-surface)!important}
body .rgh-close-control:focus:not(:focus-visible){outline:none!important}
body .rgh-close-control[hidden]{display:none!important}

/* Theme lightboxes: safety margin for generic overlays; product quick view anchors to its panel. */
.mfp-wrap .mfp-close.rgh-close-control{position:fixed!important;top:max(var(--rgh-close-gap),env(safe-area-inset-top,0px))!important;right:max(var(--rgh-close-gap),env(safe-area-inset-right,0px))!important;left:auto!important;bottom:auto!important}
.mfp-wrap.rgh-product-lightbox .product-lightbox{position:relative;padding-top:0!important}
.mfp-wrap.rgh-product-lightbox .product-lightbox>.rgh-modal-toolbar{position:sticky;top:0;z-index:1050;min-height:calc(var(--rgh-close-size) + var(--rgh-close-gap)*2);padding:var(--rgh-close-gap)}
.mfp-wrap.rgh-product-lightbox .rgh-modal-toolbar .mfp-close.rgh-close-control{position:relative!important;inset:auto!important;flex-shrink:0!important}
.admin-bar .mfp-wrap.rgh-product-lightbox .rgh-modal-toolbar{top:32px}
@media(max-width:782px){.admin-bar .mfp-wrap.rgh-product-lightbox .rgh-modal-toolbar{top:46px}}
.rgh-modal-toolbar{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#72383d;background:#fcfaf7;border-bottom:1px solid #72383d16;font:500 13px/1.4 Arial,sans-serif;letter-spacing:.035em}

/* Homepage dialogs keep their native close events and reserve a real header row. */
#rgh-home .film-dialog .dialog-heading{position:sticky;top:0;z-index:2;background:#1c1b1a;gap:20px;min-height:var(--rgh-close-size)}
#rgh-home .film-dialog [data-rgh-close]{position:relative!important;inset:auto!important;flex-shrink:0!important}
#rgh-home .product-dialog{padding:0!important;max-height:calc(100dvh - var(--rgh-close-gap)*2)}
#rgh-home .rgh-native-toolbar{position:sticky;top:0;z-index:5;padding:var(--rgh-close-gap);min-height:calc(var(--rgh-close-size) + var(--rgh-close-gap)*2);font-family:RGHomeGeist,Arial,sans-serif}
#rgh-home .rgh-native-toolbar [data-rgh-close]{position:relative!important;inset:auto!important}

/* PhotoSwipe gallery: keep close visible and reserve space beside zoom/fullscreen. */
.pswp .pswp__top-bar{box-sizing:border-box;height:calc(var(--rgh-close-size) + var(--rgh-close-gap)*2)!important;padding-right:calc(var(--rgh-close-size) + var(--rgh-close-gap)*2)!important;opacity:1!important}
.pswp .pswp__button--close.rgh-close-control{position:absolute!important;top:max(var(--rgh-close-gap),env(safe-area-inset-top,0px))!important;right:max(var(--rgh-close-gap),env(safe-area-inset-right,0px))!important;left:auto!important;bottom:auto!important}
.pswp .pswp__top-bar>.pswp__button:not(.pswp__button--close){margin-top:var(--rgh-close-gap);margin-right:4px}
.pswp .pswp__counter{top:var(--rgh-close-gap)}

/* Additional supported lightbox libraries retain their own placement/close lifecycle. */
.fancybox-button--close.rgh-close-control,.fancybox__button.rgh-close-control,.f-button.rgh-close-control,.lg-close.rgh-close-control,.elementor-lightbox .rgh-close-control{position:absolute!important;top:max(var(--rgh-close-gap),env(safe-area-inset-top,0px))!important;right:max(var(--rgh-close-gap),env(safe-area-inset-right,0px))!important}
@media(prefers-reduced-motion:reduce){body .rgh-close-control{transition:none!important}body .rgh-close-control:hover,body .rgh-close-control:active{transform:none!important}}
@media(forced-colors:active){body .rgh-close-control{background:ButtonFace!important;color:ButtonText!important;border:1px solid ButtonText!important;box-shadow:none!important}}

/* Modal surfaces must receive input above the WordPress admin toolbar. */
.mfp-bg{z-index:1000000!important}
.mfp-wrap{z-index:1000001!important}
.pswp{z-index:1000010!important}
