/* ServioX Israel's compact product gallery and enlarged screen viewer. */
html[data-serviox-theme="navy-gold"] #screens #screens-grid {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  width:100%; max-width:880px; margin-inline:auto; gap:26px clamp(12px,3vw,48px);
}
html[data-serviox-theme="navy-gold"] #screens-grid .screen-card.gallery-item {
  min-width:0; width:auto; max-width:none; margin:0; padding:0; display:flex;
  flex-direction:column; justify-content:flex-start; align-items:center; gap:9px;
  border:0; background:transparent; border-radius:0; box-shadow:none; overflow:visible; transform:none;
}
#screens-grid .gallery-zoom {display:block; line-height:0; border-radius:12px; cursor:zoom-in}
#screens-grid .gallery-zoom:focus-visible {outline:3px solid #87651c; outline-offset:4px}
html[data-serviox-theme="navy-gold"] #screens-grid .gallery-item .gallery-thumb {
  display:block; padding:0; width:auto; height:auto; min-height:0; max-width:none; background:none; border:0; border-radius:9px; box-shadow:none; overflow:visible;
}
html[data-serviox-theme="navy-gold"] #screens-grid .gallery-item .gallery-thumb img {
  width:clamp(86px,9vw,122px); max-width:100%; height:auto; display:block; object-fit:contain;
  margin:0; border:0; box-shadow:none; border-radius:0;
}
html[data-serviox-theme="navy-gold"] #screens-grid .gallery-item .gallery-caption {
  width:100%; max-width:none; padding:0; margin:0; text-align:center; font:inherit;
  font-size:clamp(14px,1.25vw,17px); font-weight:600; line-height:1.4; color:var(--sx-ink,#15243a);
}
#screen-lightbox {
  position:fixed; inset:0; width:min(810px,calc(100vw - 40px)); max-width:none;
  height:fit-content; max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto;
  overscroll-behavior:contain; color:#f8f8f3; background:#101d2c; border:1px solid #546171;
  border-radius:17px; box-shadow:0 24px 100px #0008; text-align:start;
}
#screen-lightbox:not([open]) {display:none}
#screen-lightbox::backdrop {background:rgb(7 13 21 / .9)}
html:has(#screen-lightbox[open]) {overflow:hidden}
#screen-lightbox .gallery-modal {
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  grid-template-areas:"image tools" "image copy" "image nav"; grid-template-rows:auto 1fr auto;
  gap:16px 26px; align-items:center; padding:20px;
}
#screen-lightbox .gallery-toolbar {grid-area:tools; display:flex; align-items:center; justify-content:space-between; gap:10px}
#screen-lightbox .gallery-position {font-variant-numeric:tabular-nums; font-size:14px; color:#e3d8bb}
#screen-lightbox .gallery-enlarged {grid-area:image; min-width:0; display:flex; justify-content:center; touch-action:pan-y pinch-zoom}
#screen-lightbox .gallery-enlarged img {display:block; max-width:100%; width:auto; height:auto; max-height:min(76dvh,800px); object-fit:contain; border-radius:0}
#screen-lightbox .gallery-copy {grid-area:copy; min-width:0; overflow-wrap:anywhere}
#gallery-lightbox-title {font-size:clamp(23px,2.5vw,33px); font-weight:700; color:#fff; line-height:1.25; margin-block-end:12px}
#screen-lightbox .gallery-description h3 {font:inherit; font-size:17px; font-weight:650; margin:10px 0 6px; color:#f3e7bf}
#screen-lightbox .gallery-description p,#screen-lightbox .gallery-description li {font-size:15px; line-height:1.6; margin:0; color:#e7eaf0}
#screen-lightbox .gallery-description .gallery-audience {color:#f4d681; font-size:14px}
#screen-lightbox .gallery-description ul {margin:8px 0 0; padding-inline-start:1.2em; list-style:disc}
#screen-lightbox .gallery-navigation {grid-area:nav; display:flex; flex-wrap:wrap; align-items:center; gap:8px}
#screen-lightbox button {
  display:inline-flex; justify-content:center; align-items:center; min-height:44px; min-width:44px;
  border:1px solid #798899; color:#f8f8f3; background:transparent; border-radius:9px;
  font:inherit; font-size:14px; font-weight:600; line-height:1.35; padding:7px 12px; cursor:pointer;
}
#screen-lightbox .gallery-close {padding:8px; border-radius:50%}
#screen-lightbox .gallery-close svg {width:22px; height:22px}
#screen-lightbox button:focus-visible {outline:3px solid #f5d37a; outline-offset:3px}
#screen-lightbox button:hover {background:#283b51}
.gallery-sr-only {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  #screens-grid .gallery-zoom img {transition:transform 180ms ease-out}
  #screens-grid .gallery-zoom:hover img {transform:scale(1.035)}
}
@media(max-width:760px) {
  html[data-serviox-theme="navy-gold"] #screens #screens-grid {grid-template-columns:repeat(2,minmax(0,1fr)); max-width:460px; gap:22px 12px}
  html[data-serviox-theme="navy-gold"] #screens-grid .gallery-item .gallery-thumb img {width:clamp(83px,23vw,105px)}
  #screen-lightbox {width:min(530px,calc(100vw - 18px)); max-height:calc(100dvh - 14px); border-radius:12px}
  #screen-lightbox .gallery-modal {grid-template-columns:1fr; grid-template-areas:"tools" "image" "nav" "copy"; gap:11px; padding:12px}
  #screen-lightbox .gallery-toolbar {position:sticky; top:0; z-index:1; background:#101d2c}
  #screen-lightbox .gallery-enlarged img {max-height:60dvh}
  #screen-lightbox .gallery-navigation {justify-content:center}
  #screen-lightbox .gallery-copy {padding:0 3px 5px}
  #gallery-lightbox-title {font-size:21px; margin-block-end:5px}
}
