/* gm-photos.css — trail photos (gm-photos.js): the viewer, the gallery strip and the "tap the track" banner, on both
   me.html and map.html. Painted only with the frame's tokens (--a-*), so day and night both follow the design law.
   Photo pins and the strip's marker use GeoMundra's sea-green accent #1E9E8F (canon 40e), never the track's hi-vis.
   Touch targets 44px; spacing 4/8/12/16/24. */
.gph-back{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(10,24,38,.62)}
.gph-back[hidden]{display:none}
.gph-box{width:min(720px,100%);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;
  padding:12px 16px 16px;background:var(--a-surface,#FFFFFF);color:var(--a-tx,#143C5D);border-radius:var(--a-rd,12px);box-shadow:var(--a-sh3,0 12px 40px rgba(0,0,0,.3));
  font:400 14px/1.45 var(--sans,system-ui,sans-serif)}
.gph-box *{box-sizing:border-box}
.gph-head{display:flex;align-items:center;gap:8px}
.gph-head h2{margin:0;font:700 18px/1.25 "Archivo",var(--sans,sans-serif);outline:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gph-n{color:var(--a-tx2,#4A5D70);font-size:13px;font-variant-numeric:tabular-nums}
.gph-x{margin-left:auto;width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:var(--a-r,6px);color:var(--a-tx2,#4A5D70);cursor:pointer}
.gph-x:hover{background:var(--a-hover,rgba(0,0,0,.06));color:var(--a-tx,#143C5D)}
.gph-pic{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px;background:var(--a-sunk,#EEF1F3);border-radius:var(--a-rl,8px);overflow:hidden}
.gph-pic img{display:block;max-width:100%;max-height:min(60dvh,560px);width:auto;height:auto;object-fit:contain}
.gph-pic img[hidden]{display:none}
.gph-miss{margin:0;padding:24px 64px;text-align:center;color:var(--a-tx2,#4A5D70)}
.gph-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(10,24,38,.55);color:#FFFFFF;font:400 28px/1 var(--sans,sans-serif);cursor:pointer}
.gph-nav[hidden]{display:none}
.gph-prev{left:8px}.gph-next{right:8px}
.gph-form{display:grid;grid-template-columns:1fr 180px auto;grid-template-rows:auto auto;column-gap:8px;align-items:end}
.gph-l{grid-row:1;font:600 12px/1.3 var(--sans,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:var(--a-mut,#5B6B7B);margin:4px 0}
.gph-form .gph-in{grid-row:2;height:44px;padding:0 12px;border:1px solid var(--a-line2,#C9D2DA);border-radius:var(--a-r,6px);background:var(--a-surface,#FFFFFF);color:var(--a-tx,#143C5D);font:400 15px var(--sans,sans-serif);min-width:0}
.gph-form .gph-save{grid-row:2;min-height:44px;height:44px}
.gph-meta,.gph-priv{margin:0;font-size:13px;color:var(--a-tx2,#4A5D70)}
.gph-priv{padding:8px 12px;border-radius:var(--a-r,6px);background:var(--a-sunk,#EEF1F3)}
.gph-act{display:flex;flex-wrap:wrap;gap:8px}
.gph-act .btn{min-height:44px;height:44px}
.gph-act .btn[hidden]{display:none}
.gph-del{color:var(--a-bad-tx,#B42318)!important}
.gph-msg{min-height:1.2em;font-size:13px;color:var(--a-tx2,#4A5D70)}
.gph-msg.bad{color:var(--a-bad-tx,#B42318)}
@media (max-width:560px){
  .gph-back{padding:0;align-items:flex-end}
  .gph-box{max-height:100dvh;border-radius:var(--a-rd,12px) var(--a-rd,12px) 0 0}
  .gph-form{grid-template-columns:1fr auto}
  .gph-form .gph-l[for="gphKind"],.gph-form #gphKind{grid-column:1/-1}
  .gph-form .gph-l[for="gphKind"]{grid-row:3}.gph-form #gphKind{grid-row:4}
  .gph-form .gph-l[for="gphTitle"]{grid-column:1/-1}
}

/* the gallery strip: one row of thumbnails in track order, scrolled sideways */
.gph-strip{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.gph-strip:empty{display:none}
.gph-th{flex:0 0 auto;position:relative;width:96px;height:96px;padding:0;border:2px solid transparent;border-radius:var(--a-r,6px);overflow:hidden;background:var(--a-sunk,#EEF1F3);cursor:pointer;scroll-snap-align:start}
.gph-th:hover,.gph-th:focus-visible{border-color:#1E9E8F}
.gph-th img{display:block;width:100%;height:100%;object-fit:cover}
.gph-th .gph-th-n{position:absolute;left:4px;top:4px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#1E9E8F;color:#FFFFFF;font:700 12px/20px var(--sans,sans-serif);text-align:center}
.gph-th .gph-th-u{position:absolute;left:0;right:0;bottom:0;padding:2px 4px;background:rgba(10,24,38,.7);color:#FFFFFF;font-size:11px;line-height:1.3}
.gph-quota{font-size:13px;color:var(--a-tx2,#4A5D70)}
.gph-banner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0;padding:8px 12px;border-radius:var(--a-r,6px);background:#1E9E8F;color:#FFFFFF;font-weight:600}
.gph-banner[hidden]{display:none}
.gph-banner .btn{margin-left:auto;min-height:36px;height:36px}
.gph-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
html.gph-open{overflow:hidden}

/* My GeoMundra (me.html): the photos block inside an activity, and photos not on an activity */
.gm-me .me-photos{margin-top:16px}
.gm-me .me-ph-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.gm-me .me-ph-act{margin-top:8px}
.gm-me .me-loose{margin-top:24px}
