#photoPins { position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3; }
.photo-pin { position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;padding:7px;border:2px solid #fff;border-radius:50%;background:#002f6c;color:#fff;box-shadow:0 2px 8px #002f6c40;pointer-events:auto;display:grid;place-items:center;touch-action:manipulation; }
.photo-pin svg,#tgPhotos svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round; }
.photo-pin span { position:absolute;right:-6px;top:-6px;border-radius:10px;background:#b3a369;color:#142439;font-size:9px;font-weight:700;padding:1px 4px;border:1px solid #fff; }
.photo-pin:hover,.photo-pin:focus-visible { background:#0076a8;outline:3px solid #b3a369;outline-offset:2px; }
#tgPhotos { display:inline-flex;align-items:center;gap:5px; }
#tgPhotos.on { background:#e7f0fb;color:#002f6c; }
#tgPhotos kbd { font-size:10px;border:1px solid #cbd5e0;border-radius:3px;padding:0 3px; }
#modalBack.photo-modal { padding:20px;z-index:80; }
#modalBack.photo-modal #modal { width:min(1200px,100%);height:min(960px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;display:flex;flex-direction:column;overflow:hidden; }
.photo-heading { display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 22px 14px;flex:none;border-bottom:1px solid #dde3e9; }
.photo-eyebrow { font-size:11px;color:#5b6774;margin-bottom:5px; }
#modal .photo-heading h2 { color:#002f6c;font-size:20px;margin:0 0 5px; }
#photoCaption { color:#5b6774;font-size:12px; }
.photo-image-wrap { position:relative;flex:1;min-height:0;background:#edf1f6;display:flex;align-items:center;justify-content:center;overflow:hidden; }
#photoImage { display:block;width:100%;height:100%;object-fit:contain;min-height:0; }
#photoPreview { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
#photoImageStatus { position:absolute;bottom:12px;background:#fff;padding:8px 14px;border-radius:6px;color:#4a5568;font-size:13px; }
.photo-footer { padding:12px 22px 14px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #dde3e9; }
.photo-nav { display:flex;align-items:center;gap:12px; }
#photoCount { font-size:12px;color:#5b6774;white-space:nowrap; }
.photo-picker { display:flex;gap:8px;align-items:center;font-size:12px;color:#5b6774;min-width:0; }
#modal .photo-picker select { width:min(440px,40vw);font-size:12px;min-width:0; }
#modal .photo-footer p { width:100%;margin:0;font-size:11px;color:#5b6774;line-height:1.4; }
@media(max-width:760px) {
  #modalBack.photo-modal { padding:8px; }
  #modalBack.photo-modal #modal { height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:10px; }
  .photo-heading { padding:12px;gap:8px; }.photo-heading .btn { font-size:12px;padding:6px 8px; }
  .photo-heading .btn,.photo-nav .btn { min-height:44px; }
  #modal .photo-heading h2 { font-size:17px; }
  .photo-footer { padding:10px 12px;gap:8px; }.photo-nav { width:100%;justify-content:space-between; }
  .photo-picker { width:100%; }#modal .photo-picker select { width:0;flex:1; }
  .photo-pin { width:38px;height:38px; }
}
