/* Beach Street Arts — V4 inner pages (gallery, beaches, temples). Loads after v4.css and reuses its scenes. */

.bar-nav a[aria-current="page"] { color: var(--yellow); text-decoration: underline; text-underline-offset: 6px; }
.page-hero .sec-title { font-size: clamp(40px, 6vw, 76px); }

/* ─── guide entries: one beach / temple per row, picture on one side, notes on the other ─── */
.guide { padding-block: clamp(56px, 8vw, 96px); }
.guide-beach { background: radial-gradient(rgba(107,63,34,0.16) 1px, transparent 1.4px) 0 0 / 6px 6px, var(--sand); }
.guide-temple {
  color: var(--paper);
  background:
    repeating-linear-gradient(90deg, rgba(252,166,0,0.1) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(180deg, rgba(252,166,0,0.1) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, #4a0900, #3a0700);
}
.place {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 1160px; margin: 0 auto clamp(56px, 7vw, 96px); padding-inline: var(--gutter); scroll-margin-top: calc(var(--bar-h) + 16px);
}
.place:last-child { margin-bottom: 0; }
.place-flip .place-media { order: 2; }
.place-media { position: relative; display: grid; justify-items: center; }
.place-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.photo-credit { margin: 14px 0 -8px; font-size: 11px; letter-spacing: 0.03em; opacity: 0.65; text-align: center; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.place-pills span {
  font-family: var(--type); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; background: var(--yellow); color: var(--red); box-shadow: 0 0 0 2px #fff, 2px 3px 6px rgba(0,0,0,0.25); transform: rotate(-2deg);
}
.place-pills span:nth-child(even) { background: var(--pink); transform: rotate(2deg); }
.place-meta { font-family: var(--type); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.place-meta b { color: var(--wood-dk); }
.place-name { font-family: var(--slab); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; color: var(--sign-red); margin-top: 8px; }
.place-thai { margin-top: 6px; font-size: 15px; color: rgba(27,17,11,0.6); }
.place-story { margin-top: 16px; font-size: 16px; line-height: 1.7; color: rgba(27,17,11,0.82); }
.place-board { /* the wooden notes board, like the lifeguard sign */
  margin-top: 22px; padding: 6px 20px; color: var(--paper);
  background: repeating-linear-gradient(180deg, #8a5532 0 30px, #6b3f22 30px 32px);
  border: 5px solid var(--wood-dk); box-shadow: 0 14px 22px -12px rgba(0,0,0,0.55);
}
.place-board div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed rgba(255,250,240,0.35); }
.place-board div:first-child { border-top: 0; }
.place-board dt { font-family: var(--type); font-weight: 700; font-size: 13px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }
.place-board dd { font-size: 14px; line-height: 1.55; }
.place-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; padding: 0; }
.place-tags li { font-family: var(--type); font-size: 12px; padding: 3px 9px; border: 1px solid rgba(27,17,11,0.35); color: rgba(27,17,11,0.7); }
/* on the dark temple courtyard */
.guide-temple .place-meta b, .guide-temple .place-thai, .guide-temple .place-story, .guide-temple .place-tags li { color: rgba(255,246,227,0.85); }
.guide-temple .place-name { color: var(--yellow); }
.guide-temple .place-meta { color: var(--gold); }
.guide-temple .place-tags li { border-color: rgba(252,166,0,0.45); }

/* beach photo as a taped polaroid */
.snap {
  position: relative; width: min(100%, 440px); padding: 12px 12px 0; background: var(--paper);
  box-shadow: 0 18px 30px -14px rgba(27,17,11,0.6); transform: rotate(-2deg);
}
.place-flip .snap { transform: rotate(2deg); }
.snap::before { /* tape */
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; translate: -50% 0; rotate: -3deg;
  background: rgba(250,171,254,0.75); box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.snap figcaption { padding: 12px 4px 14px; text-align: center; font-family: var(--type); font-weight: 700; font-size: 14px; color: var(--wood-dk); }
.snap-note { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; letter-spacing: 0.04em; opacity: 0.6; }

/* six temple gates: one even row on wide screens, then 3 + 3, then 2 + 2 + 2, never a lone gate */
.arches-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1320px; justify-items: center; }
@media (max-width: 1180px) { .arches-six { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; } }
@media (max-width: 560px) { .arches-six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* temple picture in the same round moon gate as the home page, bigger */
.place-gate.arch-frame { width: min(100%, 340px); }

/* ─── temple page: motifs ─── */
.motifs { padding-block: clamp(56px, 8vw, 96px); background: radial-gradient(rgba(107,63,34,0.16) 1px, transparent 1.4px) 0 0 / 6px 6px, var(--sand); }
.motif-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.motif {
  padding: 28px 24px; background: linear-gradient(180deg, var(--deep), #5e0b00); color: var(--paper);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--deep), 0 18px 28px -14px rgba(0,0,0,0.6);
}
.motif h3 { font-family: var(--slab); font-weight: 400; font-size: 22px; color: var(--yellow); margin-bottom: 10px; }
.motif p { font-size: 15px; line-height: 1.65; }
.motif strong { color: var(--yellow); font-weight: 600; }

/* ─── closing call to action: a pinned paper notice on planks ─── */
.page-cta { padding: clamp(56px, 8vw, 96px) var(--gutter); background: var(--planks); }
.page-cta-card {
  position: relative; max-width: 780px; margin-inline: auto; text-align: center; display: grid; justify-items: center;
  padding: clamp(32px, 5vw, 56px); background: var(--paper) var(--noise); box-shadow: 0 26px 40px -16px rgba(0,0,0,0.6); transform: rotate(-0.6deg);
}
.page-cta-card::before { content: ''; position: absolute; top: 14px; left: 50%; width: 18px; height: 18px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6a4d, var(--red) 60%, #5e0b00); box-shadow: 0 3px 4px rgba(0,0,0,0.4); }
.page-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ─── gallery page ─── */
.gallery-page .hang { margin-bottom: clamp(70px, 8vw, 96px); }
.g-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 1100px; margin: 0 auto 18px; padding-inline: var(--gutter); }
.g-filter {
  font-family: var(--type); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 14px; background: var(--paper); color: var(--wood-dk); border: 2px solid var(--wood-dk);
  box-shadow: 3px 3px 0 var(--wood-dk); cursor: pointer; transition: transform 0.15s;
}
.g-filter:nth-child(odd) { transform: rotate(-1.5deg); }
.g-filter:nth-child(even) { transform: rotate(1.5deg); }
.g-filter:hover { transform: rotate(0) translateY(-2px); }
.g-filter[aria-pressed="true"] { background: var(--red); color: var(--yellow); border-color: var(--red); box-shadow: 3px 3px 0 var(--deep); }
.g-n { margin-left: 6px; opacity: 0.6; font-size: 11px; }
.g-status { text-align: center; font-family: var(--type); font-size: 13px; color: rgba(27,17,11,0.6); margin-bottom: 22px; }
.g-frames.frames { max-height: none; overflow: visible; -webkit-mask: none; mask: none; columns: 4 220px; }
.g-frames .pic { width: 100%; cursor: zoom-in; text-align: left; font: inherit; }
.g-frames .pic-in img { height: auto; display: block; }

.g-frames .pic-tag { bottom: 10px; z-index: 2; }
.g-multi { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 2px 7px; background: var(--ink); color: var(--paper); font-family: var(--type); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.g-more-wrap { text-align: center; margin-top: 28px; }
#g-img { width: 100%; max-height: 68vh; object-fit: contain; background: var(--ink); transition: opacity 0.2s; cursor: pointer; }
.g-badge { display: inline-block; margin-bottom: 4px; padding: 2px 8px; background: var(--yellow); color: var(--red); font-family: var(--type); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
#g-title { font-family: var(--slab); font-weight: 400; color: var(--sign-red); font-size: 20px; line-height: 1.15; }
#g-desc { font-size: 13px; opacity: 0.75; margin-top: 4px; max-width: 64ch; }
.g-side { display: grid; justify-items: end; gap: 8px; flex-shrink: 0; }
#g-count { font-family: var(--type); font-weight: 700; white-space: nowrap; }

@media (max-width: 820px) {
  .place { grid-template-columns: 1fr; }
  .place-flip .place-media { order: 0; }
  .motif-row { grid-template-columns: 1fr; }
  .lightbox-caption-bar { flex-direction: column; align-items: flex-start; }
  .g-side { justify-items: start; }
}
@media (max-width: 560px) {
  .place-board div { grid-template-columns: 1fr; gap: 2px; }
  .g-frames.frames { columns: 2; }
  .g-filter { font-size: 11px; padding: 6px 10px; }
}
