/* St. John Almanac: the living island, the Photographs layer (layers/photos.js). The shell's tokens; the same
   bearing as the Places layer's marks, so the two read as one family. */
.photos-box { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.photos-box > * { pointer-events: auto; }
.photos-pin { position: absolute; left: 0; top: 0; margin: 0; padding: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: visible; cursor: pointer; background: var(--forest); border: 2px solid var(--on-forest); box-shadow: 0 1px 6px rgba(var(--photo-shade), 0.6); }
.photos-pin[hidden] { display: none; }
.photos-pin img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.photos-pin:hover, .photos-pin[aria-pressed="true"] { border-color: var(--gold-bright); z-index: 1; }
.photos-pin:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; z-index: 1; }
/* Several taken close together: the newest stands for them, with their number. */
.photos-pin[data-n]::after { content: attr(data-n); position: absolute; right: -0.35rem; top: -0.35rem; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; display: grid; place-items: center; border-radius: 999px; background: var(--gold-bright); color: var(--forest); font: 700 0.75rem/1 var(--text); font-variant-numeric: lining-nums; border: 1px solid var(--forest); }

.photos-pick { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.7rem max(0.75rem, var(--gutter-l, 0.75rem)); background: var(--sheet); border-top: 1px solid var(--rule); font: 400 0.86rem/1.3 var(--text); color: var(--ink); max-height: 70%; overflow: auto; }
.photos-pick[hidden] { display: none; }
.photos-pick > p { flex-basis: 100%; margin: 0; color: var(--ink-soft); }
.photos-pick-one { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; max-width: 100%; padding: 0.25rem 0.8rem 0.25rem 0.25rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--land); color: var(--ink); font: 600 0.86rem/1.2 var(--text); cursor: pointer; text-align: left; }
.photos-pick-one img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; flex: none; }
.photos-pick-one span { min-width: 0; overflow-wrap: anywhere; }
.photos-pick-shut { margin-left: auto; min-height: 2.75rem; padding: 0.4rem 0.8rem; border: 0; background: none; color: var(--accent); font: 600 0.86rem/1 var(--text); cursor: pointer; text-decoration: underline; }
.photos-pick-one:focus-visible, .photos-pick-shut:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

.photos-ctl { display: flex; flex-direction: column; gap: 0.9rem; width: 100%; min-width: 0; }
.photos-ctl-row { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: end; }
.photos-ctl-place { flex: 1 1 14rem; max-width: 26rem; }
.photos-off { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft); }
.photos-off[hidden] { display: none; }
.photos-card { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--land-edge); border-radius: 12px; overflow: hidden; background: var(--land); color: var(--ink); }
.photos-card[hidden] { display: none; }
.photos-card-pic { margin: 0; min-width: 0; background: var(--forest); }
.photos-card-pic img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: contain; }
.photos-card-in { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.85rem 1rem 1rem; min-width: 0; }
.photos-card-in h3 { margin: 0; font: 600 1.05rem/1.25 var(--text); }
.photos-card-in p { margin: 0; overflow-wrap: anywhere; }
.photos-card-sub, .photos-card-go span { font-size: 0.86rem; color: var(--ink-soft); }
.photos-card-go { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: baseline; }
.photos-card-report { font-size: 0.86rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.15em; }
.photos-card-note { font-size: 1rem; }
@media (min-width: 46rem) { .photos-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
