.os-gallery-bleed{position:relative;width:100vw;max-width:100vw;left:50%;margin-left:-50vw;margin-top:1.5rem;margin-bottom:1.5rem;box-sizing:border-box;padding:0 clamp(8px,1.2vw,24px);clear:both}.os-gallery-bleed *, .os-lightbox *{box-sizing:border-box}.os-gallery-bleed > .os-gallery{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(6px,.8vw,14px);width:100%;max-width:none!important}.os-gallery-item{display:block;aspect-ratio:4/3;overflow:hidden;background:#e7e7e7;border:0!important;box-shadow:none!important;line-height:0;cursor:zoom-in}.os-gallery-item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .18s ease}.os-gallery-item:hover img{transform:scale(1.035)}.os-gallery-item:focus-visible{outline:3px solid #ffd54a;outline-offset:3px}@media(max-width:900px){.os-gallery-bleed > .os-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:600px){.os-gallery-bleed > .os-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(prefers-reduced-motion:reduce){.os-gallery-item img{transition:none}}.os-lightbox[hidden]{display:none!important}.os-lightbox{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex;align-items:center;justify-content:center;flex-direction:column;background:rgba(0,0,0,.97);color:#fff;padding:50px 55px 45px;box-sizing:border-box}.os-lightbox-image{max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;object-fit:contain;box-shadow:none!important}.os-lightbox-caption{text-align:center;max-width:85vw;margin:14px auto 0;font:16px/1.4 system-ui,sans-serif;color:#fff}.os-lightbox-count{position:absolute;top:16px;left:20px;font:14px system-ui,sans-serif;color:#eee}.os-lightbox-control{position:absolute;appearance:none;border:0!important;background:rgba(255,255,255,.12)!important;color:#fff!important;border-radius:6px!important;min-height:42px;min-width:42px;cursor:pointer;font:32px/1 system-ui,sans-serif;padding:4px 9px!important;box-shadow:none!important}.os-lightbox-control:focus-visible{outline:3px solid #ffd54a}.os-lightbox-close{top:10px;right:15px}.os-lightbox-prev{left:8px;top:50%;transform:translateY(-50%)}.os-lightbox-next{right:8px;top:50%;transform:translateY(-50%)}body.os-lightbox-open{overflow:hidden!important}@media(max-width:600px){.os-lightbox{padding:55px 8px 50px}.os-lightbox-image{max-height:calc(100dvh - 145px)}.os-lightbox-prev,.os-lightbox-next{top:auto;bottom:9px;transform:none}.os-lightbox-prev{left:15px}.os-lightbox-next{right:15px}}

/* Isolate the gallery from restrictive theme layout defaults. */
.os-gallery-bleed{float:none!important;max-width:100vw!important;min-width:0!important}.os-gallery-bleed > .os-gallery > .os-gallery-item{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;position:relative!important;text-decoration:none!important}.os-gallery-bleed > .os-gallery > .os-gallery-item > img{width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;border:0!important;border-radius:0!important}

/* v1.0.2: Inline styles keep the desktop layout usable even if theme CSS is late. */
@media (max-width:900px){.os-gallery-bleed{--os-gallery-columns:3}}
@media (max-width:600px){.os-gallery-bleed{--os-gallery-columns:2}}
@media (min-width:901px){.os-gallery-bleed{--os-gallery-columns:4}}


/* 1.0.6 – always participate in normal article flow; match text-column width. */
.os-gallery-bleed{
  display:flow-root!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  margin:20px 0!important;
  padding:0!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  float:none!important;
  clear:both!important;
  transform:none!important;
  overflow:visible!important;
}
.os-gallery-bleed > .os-gallery{grid-template-columns:repeat(var(--os-gallery-columns,4),minmax(0,1fr))!important;}
