/* Lonsmen Gallery Style 1.0.0 - modelled on the Counterra Kitchen Project Gallery
   (counterra.com/kitchen/#project-gallery) + Counterra Gallery Copy Link 1.0.0.
   Lonsmen colours: navy #11152a / #1c2342, gold #f2b544, white. Twenty Seventeen untouched.
   Every rule is scoped to .lmgs-* classes that only the plugin's JS adds, so
   deactivating the plugin restores the previous look exactly. */
.lmgs-gal.lmgs-gal{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(15rem,100%),1fr))!important;gap:18px!important;
  margin:0 0 8px!important;padding:0!important;list-style:none!important;box-sizing:border-box;flex-wrap:initial!important;scroll-margin-top:110px}
.lmgs-gal.lmgs-gal>.lmgs-item{width:auto!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important;position:relative;
  aspect-ratio:4/3;background:#11152a;border-radius:4px;overflow:hidden;cursor:zoom-in;display:block!important}
.lmgs-gal.lmgs-gal>.lmgs-item>a{display:block!important;width:100%!important;height:100%!important;margin:0!important}
/* Uncropped: the whole photo always shows (letterboxed on navy), so nobody is ever cut out */
.lmgs-gal.lmgs-gal>.lmgs-item img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;transition:opacity .35s ease,transform .35s ease}
.lmgs-gal.lmgs-gal>.lmgs-item:hover img{opacity:.88}
.lmgs-gal.lmgs-gal>.lmgs-item:focus-within,.lmgs-gal.lmgs-gal>.lmgs-item:focus-visible{outline:3px solid #f2b544;outline-offset:2px}
.lmgs-gal.lmgs-gal>.lmgs-item figcaption{position:absolute!important;left:0;right:0;bottom:0;margin:0!important;padding:18px 8px 6px!important;
  background:linear-gradient(0deg,rgba(17,21,42,.85),rgba(17,21,42,0))!important;color:#fff!important;font-size:12px!important;text-align:center}
/* The core WP lightbox "expand" button is replaced by our own lightbox */
.lmgs-gal .lightbox-trigger{display:none!important}
/* Two-column pages (Twenty Seventeen): the gallery uses the full page width under the title column.
   The JS measures the real columns (works with or without Lonsmen Wide Text) and sets these vars. */
.lmgs-gal.lmgs-wide-on{width:var(--lmgs-w)!important;max-width:none!important;margin-left:var(--lmgs-ml)!important}
.lmgs-bar.lmgs-wide-on{width:var(--lmgs-w)!important;max-width:none!important;margin-left:var(--lmgs-ml)!important}
@media (max-width:600px){
  .lmgs-gal.lmgs-gal{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
}
/* Copy link pill (same as Counterra Gallery Copy Link, Lonsmen colours) */
.lmgs-bar.lmgs-bar{display:flex!important;justify-content:flex-end;align-items:center;width:100%;box-sizing:border-box;margin:8px 0 24px;padding:0;clear:both}
.lmgs-btn.lmgs-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:auto!important;min-height:32px!important;
  box-sizing:border-box!important;border:1px solid #c5c9d6!important;background:#fff!important;color:#11152a!important;border-radius:999px!important;padding:4px 12px!important;margin:0!important;
  font-family:inherit!important;font-size:12.5px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;
  text-shadow:none!important;box-shadow:none!important;cursor:pointer!important;white-space:nowrap!important;-webkit-tap-highlight-color:transparent}
.lmgs-btn.lmgs-btn:hover{border-color:#f2b544!important;color:#11152a!important;background:#fff7e6!important}
.lmgs-btn.lmgs-btn:focus{outline:none}
.lmgs-btn.lmgs-btn:focus-visible{outline:2px solid #f2b544!important;outline-offset:2px!important}
.lmgs-btn.lmgs-btn.is-copied,.lmgs-btn.lmgs-btn.is-copied:hover{background:#11152a!important;border-color:#11152a!important;color:#fff!important}
.lmgs-btn.lmgs-btn svg{display:block!important;width:14px!important;height:14px!important;flex:0 0 auto}
.lmgs-focus{outline:3px solid #f2b544!important;outline-offset:6px;transition:outline-color .2s ease}
.lmgs-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;padding:0!important}
@media (max-width:600px){.lmgs-bar.lmgs-bar{justify-content:flex-start}}
/* Lightbox */
html.lmgs-lock,html.lmgs-lock body{overflow:hidden!important}
.lmgs-lb{position:fixed;inset:0;z-index:2147482000;background:rgba(10,12,26,.96);display:none;touch-action:pan-y pinch-zoom;color:#fff;font-family:inherit}
.lmgs-lb.is-open{display:block}
.lmgs-lb .lmgs-stage{position:absolute;inset:56px 64px 64px;display:flex;align-items:center;justify-content:center}
.lmgs-lb .lmgs-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none;transition:opacity .2s ease}
.lmgs-lb .lmgs-nav,.lmgs-lb .lmgs-close{position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;margin:0;border:0;border-radius:50%;
  background:rgba(28,35,66,.85);color:#fff;cursor:pointer;font-size:0;line-height:1;box-shadow:none}
.lmgs-lb .lmgs-nav:hover,.lmgs-lb .lmgs-close:hover,.lmgs-lb .lmgs-nav:focus-visible,.lmgs-lb .lmgs-close:focus-visible{background:#f2b544;color:#11152a;outline:none}
.lmgs-lb .lmgs-nav svg,.lmgs-lb .lmgs-close svg{width:22px;height:22px;display:block}
.lmgs-lb .lmgs-prev{left:8px;top:50%;transform:translateY(-50%)}
.lmgs-lb .lmgs-next{right:8px;top:50%;transform:translateY(-50%)}
.lmgs-lb .lmgs-close{right:8px;top:4px}
.lmgs-lb .lmgs-btn.lmgs-dlg{position:absolute!important;top:12px!important;left:12px!important;background:rgba(255,255,255,.96)!important}
.lmgs-lb .lmgs-meta{position:absolute;left:0;right:0;bottom:0;min-height:56px;padding:8px 16px 12px;box-sizing:border-box;text-align:center;font-size:14px;line-height:1.35}
.lmgs-lb .lmgs-count{display:block;color:#f2b544;font-weight:700;letter-spacing:.06em;font-size:12px;margin-bottom:2px}
@media (max-width:600px){
  .lmgs-lb .lmgs-stage{inset:56px 0 72px}
  .lmgs-lb .lmgs-nav{top:auto;bottom:10px;transform:none;width:44px;height:44px}
  .lmgs-lb .lmgs-meta{padding:8px 60px 12px;font-size:13px}
  .lmgs-lb .lmgs-btn.lmgs-dlg{top:10px!important;left:10px!important}
}
