/* Gallery FCO Therapy - pagina Terapie */
.pill.gallery-trigger{font-family:inherit;line-height:1.65;cursor:pointer;appearance:none;-webkit-appearance:none;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.pill.gallery-trigger:hover,.pill.gallery-trigger:focus-visible{background:var(--blue);border-color:var(--blue);color:#fff;transform:translateY(-1px);outline:none}
.gallery-modal{position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(5,20,31,.86);backdrop-filter:blur(8px)}
.gallery-modal.is-open{display:flex}
.gallery-dialog{position:relative;width:min(1120px,100%);max-height:calc(100vh - 56px);display:flex;flex-direction:column;background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.34)}
.gallery-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fff}
.gallery-head h2{margin:0;color:var(--dark);font-size:20px;line-height:1.2}
.gallery-counter{color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}
.gallery-close{width:42px;height:42px;flex:0 0 42px;border:1px solid var(--line);background:var(--soft);color:var(--dark);border-radius:999px;font:inherit;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.gallery-close:hover,.gallery-close:focus-visible{background:var(--blue);border-color:var(--blue);color:#fff;outline:none}
.gallery-stage{position:relative;min-height:0;flex:1;background:#061a29;display:grid;place-items:center;overflow:hidden}
.gallery-main{display:block;max-width:100%;max-height:calc(100vh - 230px);width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:1px solid rgba(255,255,255,.42);border-radius:999px;background:rgba(7,31,51,.72);color:#fff;font:inherit;font-size:31px;line-height:1;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.24)}
.gallery-nav:hover,.gallery-nav:focus-visible{background:var(--blue);outline:none}
.gallery-prev{left:14px}.gallery-next{right:14px}
.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 14px 14px;background:#fff;border-top:1px solid var(--line);scrollbar-width:thin}
.gallery-thumb{flex:0 0 108px;width:108px;height:70px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:var(--soft);cursor:pointer;opacity:.68}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-thumb.is-active{border-color:var(--blue);opacity:1}
.gallery-thumb:focus-visible{outline:3px solid rgba(72,180,199,.35);outline-offset:2px}
body.gallery-open{overflow:hidden}
@media (max-width:700px){.gallery-modal{padding:0}.gallery-dialog{width:100%;height:100%;max-height:none;border-radius:0}.gallery-head{padding:12px 13px}.gallery-head h2{font-size:17px}.gallery-main{max-height:calc(100vh - 190px)}.gallery-nav{width:42px;height:42px;font-size:27px}.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-thumb{flex-basis:88px;width:88px;height:58px}.gallery-counter{font-size:12px}}
