/* 복음의 길 — 「오늘날 모습」 사진 띠·크게 보기·[위성 사진으로 보기] (js/photos.js)
   지도 화면(css/atlas.css 다음)과 장소 페이지(css/places.css 다음)가 함께 쓴다. 색은 두 파일의 같은 토큰을 쓴다. */
.photos { margin: 0 0 14px; }
.ph-h { margin: 0 0 6px; font-size: var(--t-label); font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.ph-n { font-size: var(--t-caption); font-weight: 500; color: var(--ink-3); }
.ph-guess { margin: 0 0 8px; font-size: var(--t-caption); color: var(--ink-2); background: #FFF6E0; border-radius: 8px; padding: 6px 10px; line-height: 1.45; }

/* 가로로 넘기는 사진 띠: 한 장이면 폭 전체, 여러 장이면 86%씩(다음 사진이 살짝 보이게) */
.ph-strip { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; overscroll-behavior-x: contain; position: relative; border-radius: 12px; }
.ph-strip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ph-item { flex: 0 0 86%; scroll-snap-align: start; min-width: 0; }
.ph-item:only-child { flex-basis: 100%; }
.ph-strip.more-r { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ph-strip.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); }
.ph-strip.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%); mask-image: linear-gradient(90deg, transparent, #000 6%); }
.ph-item figure { margin: 0; }
.ph-open { display: block; width: 100%; padding: 0; border: 0; background: var(--line-soft); border-radius: 12px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 3 / 2; position: relative; }
.ph-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ph-open::after { content: ""; position: absolute; inset: 0; background: transparent; transition: background .15s; }
.ph-open:hover::after { background: var(--hover); }
.ph-open:active::after { background: var(--press); }
.ph-item figcaption { margin: 6px 2px 0; line-height: 1.4; }
.ph-t { display: block; font-size: var(--t-caption); color: var(--ink-2); font-weight: 600; }
.ph-credit { display: block; font-size: .75rem; color: var(--ink-3); overflow-wrap: anywhere; }
.ph-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ph-credit a:hover { color: var(--ink); }

.ph-sat { margin: 8px 0 0; }
.sat-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--t-label); text-decoration: none; line-height: 1.3; }
.sat-link:hover { background: var(--tint); }
.sat-link:active { box-shadow: inset 0 0 0 999px var(--press); }
.sat-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sat-link .ic { color: var(--primary); }
.sat-link .ic.ext { width: .95em; height: .95em; color: var(--ink-3); }
.sat-sub { display: inline-block; font-size: var(--t-caption); font-weight: 500; color: var(--ink-3); }

/* 크게 보기 */
html.ph-lock { overflow: hidden; }
.ph-dlg { padding: 0; border: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #111; color: #fff; }
.ph-dlg::backdrop { background: rgba(0, 0, 0, .85); }
.ph-dlg-in { display: flex; flex-direction: column; height: 100%; }
.ph-dlg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left)); }
.ph-dlg-kick { margin: 0; font-size: var(--t-caption); color: #E6E6E6; }
.ph-x { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-x .ic { width: 24px; height: 24px; }
.ph-x:hover { background: rgba(255,255,255,.22); }
.ph-x:focus-visible, .ph-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ph-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.ph-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-nav .ic { width: 26px; height: 26px; }
.ph-nav:hover { background: rgba(0,0,0,.75); }
.ph-nav.prev { left: max(8px, env(safe-area-inset-left)); }
.ph-nav.next { right: max(8px, env(safe-area-inset-right)); }
.ph-dlg-cap { padding: 10px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); max-width: 900px; width: 100%; margin: 0 auto; }
.ph-dlg-t { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; color: #fff; line-height: 1.4; }
.ph-dlg-c { margin: 0; font-size: var(--t-caption); color: #DADADA; line-height: 1.5; }
.ph-dlg-c .ph-credit { display: inline; font-size: inherit; color: inherit; }
.ph-dlg-c a { color: #fff; }
.ph-sa { display: block; margin-top: 2px; color: #BDBDBD; font-size: .75rem; }
/* 휴대폰 가로(높이 500px 이하): 글을 오른쪽으로 */
@media (orientation: landscape) and (max-height: 500px) {
  .ph-dlg-in { display: grid; grid-template-columns: 1fr minmax(220px, 32%); grid-template-rows: auto 1fr; }
  .ph-dlg-top { grid-column: 1 / -1; padding-top: 4px; padding-bottom: 2px; }
  .ph-dlg-cap { overflow-y: auto; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .ph-open::after { transition: none; } }
@media print { .photos { display: none; } }
