.gallery-share-host{position:relative}
.gallery-share-rail{position:absolute;z-index:12;left:clamp(10px,1.5vw,24px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:9px;align-items:center}
.gallery-share-button{position:relative;width:42px;height:42px;border:1px solid rgba(177,143,67,.7);border-radius:50%;padding:0;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#8d6b25;box-shadow:0 5px 18px rgba(30,22,8,.12);cursor:pointer;transition:transform .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease}
.gallery-share-button:hover,.gallery-share-button:focus-visible{transform:translateY(-2px);background:#0a0a0a;color:#d8bd89;box-shadow:0 8px 22px rgba(0,0,0,.22);outline:none}
.gallery-share-button svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gallery-share-button[data-share-kind="facebook"] svg{fill:currentColor;stroke:none}
.gallery-share-button .gallery-share-label{position:absolute;left:calc(100% + 9px);top:50%;transform:translateY(-50%);white-space:nowrap;background:#0a0a0a;color:#f2dfb6;font:500 13px/1.2 Arial,sans-serif;padding:7px 10px;border-radius:3px;opacity:0;pointer-events:none;transition:opacity .16s ease}
.gallery-share-button:hover .gallery-share-label,.gallery-share-button:focus-visible .gallery-share-label{opacity:1}
.gallery-share-mobile{display:none}
.gallery-share-toast{position:fixed;z-index:100000;left:50%;bottom:24px;transform:translate(-50%,12px);padding:10px 16px;border:1px solid #b18f43;background:#0a0a0a;color:#f2dfb6;border-radius:4px;font:500 14px/1.3 Arial,sans-serif;opacity:0;transition:opacity .2s ease,transform .2s ease;pointer-events:none}
.gallery-share-toast.is-visible{opacity:1;transform:translate(-50%,0)}
#kg-viewer.gallery-share-host .gallery-share-rail{position:fixed;left:18px;top:50%;z-index:10001}
#kg-viewer .gallery-share-button{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;font-size:inherit!important}
#galleryDialog .gallery-share-rail{left:18px}
@media(max-width:680px){
  .gallery-share-rail{left:10px;top:10px;transform:none;gap:0}
  .gallery-share-button:not(.gallery-share-mobile){display:none}
  .gallery-share-button.gallery-share-mobile{display:grid;width:38px;height:38px;background:rgba(10,10,10,.84);color:#e7cc98;border-color:rgba(216,189,137,.8);box-shadow:0 4px 14px rgba(0,0,0,.2)}
  .gallery-share-button .gallery-share-label{display:none}
  #kg-viewer.gallery-share-host .gallery-share-rail{position:fixed;left:10px;top:10px;transform:none}
  #galleryDialog .gallery-share-rail{left:10px;top:72px}
}
@media(prefers-reduced-motion:reduce){.gallery-share-button,.gallery-share-toast{transition:none}}

/* Mobile sharing: transparent hit area and a fine gold symbol. */
@media(max-width:680px){
  .gallery-share-button.gallery-share-mobile,
  .gallery-share-button.gallery-share-mobile:hover,
  .gallery-share-button.gallery-share-mobile:active,
  .gallery-share-button.gallery-share-mobile:focus-visible{background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;color:#b89a60;transform:none}
  .gallery-share-button.gallery-share-mobile svg{width:20px;height:20px;stroke-width:1.35}
  .gallery-share-button.gallery-share-mobile:focus-visible{outline:2px solid #b89a60;outline-offset:2px}
}
