/* IM gallery viewer 1.9.0 — shared by the specialist page and the booking app.
   Grid mode is light (the site's paper tone); a single photo sits on a dark ground. */
.im-gv,.im-gv-strip,.im-profile-gallery__albums{--gv-ink:#2d241f;--gv-muted:#6a5d54;--gv-line:#e6dcd3;--gv-paper:#f8f5f1;--gv-accent:#5d382b;--gv-night:#1f1915;--gv-night-ink:#f3ece5}
.im-gv *,.im-gv-strip *{box-sizing:border-box}
.im-gv button,.im-gv-strip button,.im-profile-gallery__albums button{font:inherit;text-transform:none;letter-spacing:normal;box-shadow:none;cursor:pointer;margin:0}

/* Dialog shell */
.im-gv{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--gv-paper);color:var(--gv-ink);z-index:2147483000;overflow:hidden}
.im-gv[open]{display:flex;flex-direction:column}
.im-gv::backdrop{background:rgba(31,25,21,.55)}
.im-gv [hidden]{display:none!important}
.im-gv__bar{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:calc(12px + env(safe-area-inset-top,0px)) clamp(14px,3vw,32px) 12px;border-bottom:1px solid var(--gv-line)}
.im-gv__heading{grid-column:1;min-width:0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.im-gv__heading strong{font-size:clamp(17px,2vw,21px);font-weight:700;letter-spacing:-.015em;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.im-gv__heading span{font-size:13px;color:var(--gv-muted);white-space:nowrap}
.im-gv .im-gv__close{grid-column:2;width:44px;height:44px;min-width:44px;padding:0;border:1px solid var(--gv-line);border-radius:50%;background:#fff;color:inherit;font-size:24px;line-height:1;display:grid;place-items:center}
.im-gv button:focus-visible,.im-gv-strip button:focus-visible,.im-profile-gallery__albums button:focus-visible{outline:3px solid #b98356;outline-offset:3px}

/* Album tabs */
.im-gv__tabs{flex:none;display:flex;gap:8px;overflow-x:auto;padding:12px clamp(14px,3vw,32px);scrollbar-width:none;border-bottom:1px solid var(--gv-line)}
.im-gv__tabs::-webkit-scrollbar{display:none}
.im-gv .im-gv__tab{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 14px;border:1px solid var(--gv-line);border-radius:999px;background:#fff;color:var(--gv-ink);font-size:14px;font-weight:600;white-space:nowrap}
.im-gv .im-gv__tab small{font-size:12px;font-weight:600;color:var(--gv-muted)}
.im-gv .im-gv__tab[aria-pressed="true"]{background:var(--gv-accent);border-color:var(--gv-accent);color:#fff}
.im-gv .im-gv__tab[aria-pressed="true"] small{color:#f1ddd2}

/* Proportional grid — portraits stay portraits */
.im-gv__body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:clamp(14px,2.4vw,28px) clamp(14px,3vw,32px) calc(28px + env(safe-area-inset-bottom,0px))}
.im-gv__grid{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:repeat(var(--gv-cols,3),minmax(0,1fr));gap:12px;align-items:start}
.im-gv__grid[data-cols="1"]{max-width:760px}
.im-gv__grid[data-cols="2"][data-count="2"]{max-width:1000px}
.im-gv__col{display:grid;gap:12px;min-width:0;align-content:start}
.im-gv .im-gv__tile{position:relative;display:block;width:100%;margin:0;padding:0;border:0;border-radius:12px;overflow:hidden;background:#ece4dc;break-inside:avoid;cursor:zoom-in}
.im-gv .im-gv__tile img{display:block;width:100%;height:auto;max-width:none;transition:transform .25s ease}
.im-gv .im-gv__tile:hover img{transform:scale(1.02)}
.im-gv__tile-caption{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 10px;background:linear-gradient(transparent,rgba(31,25,21,.72));color:#fff;font-size:13px;line-height:1.4;text-align:left;opacity:0;transition:opacity .2s}
.im-gv .im-gv__tile:hover .im-gv__tile-caption,.im-gv .im-gv__tile:focus-visible .im-gv__tile-caption{opacity:1}

/* Single photo — same light frame and album filters as the grid (1.9.3) */
.im-gv__stage{flex:1;min-height:0;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:8px;padding:16px clamp(8px,2vw,24px) calc(16px + env(safe-area-inset-bottom,0px));touch-action:pan-y}
.im-gv__figure{grid-column:2;margin:0;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.im-gv__figure img{display:block;max-width:100%;max-height:calc(100dvh - 230px);width:auto;height:auto;object-fit:contain;border-radius:12px;user-select:none;-webkit-user-drag:none;box-shadow:0 18px 40px rgba(45,36,31,.16)}
.im-gv__figure figcaption{max-width:70ch;text-align:center;font-size:14px;line-height:1.55;color:var(--gv-muted);overflow-wrap:anywhere}
.im-gv .im-gv__step{width:52px;height:52px;padding:0;border:1px solid var(--gv-line);border-radius:50%;background:#fff;color:var(--gv-ink);font-size:30px;line-height:1;display:grid;place-items:center;justify-self:center}
.im-gv .im-gv__step:hover{border-color:var(--gv-accent);color:var(--gv-accent)}
.im-gv .im-gv__step[data-gv-step="-1"]{grid-column:1;grid-row:1}
.im-gv .im-gv__step[data-gv-step="1"]{grid-column:3;grid-row:1}

@media (max-width:700px){
  .im-gv__grid,.im-gv__col{gap:8px}
  .im-gv .im-gv__tile{border-radius:9px}
  .im-gv__tile-caption{display:none}
  .im-gv__heading{flex-direction:column;gap:2px}
  .im-gv__stage{grid-template-columns:minmax(0,1fr);padding:8px 0 calc(12px + env(safe-area-inset-bottom,0px));position:relative}
  .im-gv__figure{grid-column:1;padding:0 4px}
  .im-gv__figure figcaption{padding:0 16px}
  .im-gv .im-gv__step{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;font-size:26px;background:rgba(255,255,255,.92);z-index:1}
  .im-gv .im-gv__step[data-gv-step="-1"]{left:8px}
  .im-gv .im-gv__step[data-gv-step="1"]{right:8px}
}
@media (prefers-reduced-motion:reduce){.im-gv .im-gv__tile img,.im-gv__tile-caption{transition:none}}

/* Album shortcuts under the profile preview */
.im-profile-gallery__albums{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.im-profile-gallery__albums button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 13px;border:1px solid var(--gv-line);border-radius:999px;background:#fff;color:var(--gv-ink);font-size:13px;font-weight:600;line-height:1.3}
.im-profile-gallery__albums button small{font-size:12px;color:var(--gv-muted);font-weight:600}
.im-profile-gallery__albums button:hover{border-color:var(--gv-accent)}

/* Compact strip in the booking app */
.im-gv-strip{margin:14px 0 2px;max-width:440px}
.im-gv-strip__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.im-gv-strip__list>li{margin:0;padding:0;min-width:0}
.im-gv-strip__list>li[hidden]{display:none!important}
.im-gv-strip__list button{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:10px;overflow:hidden;background:#ece4dc;cursor:zoom-in}
.im-gv-strip__list img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;object-position:50% 30%}
.im-gv-strip__more{position:absolute;inset:0;display:grid;place-items:center;background:rgba(31,25,21,.58);color:#fff;font-size:18px;font-weight:700;pointer-events:none}
.im-gv-strip .im-gv-strip__all{display:inline-block;margin-top:8px;padding:4px 0;min-height:0;border:0;background:none;color:var(--gv-accent);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}

@media (max-width:700px){.im-gv__figure img{max-height:calc(100dvh - 210px);border-radius:8px}}
