/* Explore SEQ Community page, brief 11 (27 Nov 2026): the bigger photo wall, its full-screen viewer and the People section.
   Loaded on /community/ only while the brief 11 switch shows the new version, after comm-page.css. Everything is es-pw-* or es-cx-ppl-*. */

/* ---- the wall: sits inside the navy "From visitors" stage */
.es-cx-sec--wall { padding-bottom: 56px; }
.es-pw { display: grid; gap: 14px; }
.es-pw__feature { margin: 0; }
.es-pw__tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--ink-3); color: #fff; text-decoration: none; outline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.es-pw__tile:focus-visible { outline: 3px solid var(--accent); }
.es-pw__feature .es-pw__tile { aspect-ratio: 21 / 9; }
.es-pw__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.es-pw__cell { min-width: 0; margin: 0; padding: 0; }
.es-pw__cell .es-pw__tile { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.es-pw__cell.is-wide { display: grid; }
.es-pw__cell.is-wide .es-pw__tile { aspect-ratio: auto; height: 100%; min-height: 0; }
.es-pw__cell.is-full .es-pw__tile { aspect-ratio: 21 / 9; }
.es-pw__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.es-pw__tile:hover img, .es-pw__tile:focus-visible img { transform: scale(1.04); }
.es-pw__cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 46px 16px 14px; background: linear-gradient(transparent, rgba(11, 27, 38, .86)); pointer-events: none; }
.es-pw__place { font: 700 15px/1.25 var(--font-body); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.es-pw__by { font: 500 13px/1.3 var(--font-body); color: rgba(255, 255, 255, .84); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.es-pw__feature .es-pw__cap { padding: 90px 28px 26px; gap: 6px; }
.es-pw__feature .es-pw__place { font: 700 clamp(22px, 2.4vw, 32px)/1.12 var(--font-heading); letter-spacing: -.025em; -webkit-line-clamp: 2; }
.es-pw__feature .es-pw__by { font-size: 15px; }
.es-pw__foot { display: grid; justify-items: center; gap: 14px; margin-top: 18px; }
.es-pw__count { margin: 0; font: 600 15px/1.3 var(--font-body); color: var(--on-dark); }
.es-cx .es-pw__more { height: 52px; min-width: 240px; padding: 0 30px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 16px; }
.es-cx .es-pw__more:hover { background: var(--accent-hover); }
.es-cx .es-pw__more[disabled] { opacity: .7; cursor: progress; }
.es-pw__more[hidden] { display: none; }
.es-pw__err { margin: 0; font: 600 15px/1.4 var(--font-body); color: #ffd9a1; text-align: center; }

/* ---- the viewer (a full-screen dialog; looks like the post photo album's) */
html.es-pv-open { overflow: hidden; }
dialog.es-pv { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #071017; color: #fff; overflow: hidden; font-family: var(--font-body); }
dialog.es-pv::backdrop { background: #071017; }
dialog.es-pv[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.es-pv__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 18px; padding-top: max(10px, env(safe-area-inset-top)); }
.es-pv__count { margin: 0; font: 600 15px/1 var(--font-body); color: #c9d6dc; font-variant-numeric: tabular-nums; }
.es-pv button { -webkit-tap-highlight-color: transparent; }
.es-pv__close, .es-pv__nav { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s; }
.es-pv__close:hover, .es-pv__nav:hover { background: rgba(255, 255, 255, .2); }
.es-pv__close:focus-visible, .es-pv__nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.es-pv__close svg, .es-pv__nav svg { width: 24px; height: 24px; }
.es-pv__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 4px 76px; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.es-pv__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .25s, transform .25s; -webkit-user-drag: none; }
.es-pv__img.is-loading { opacity: 0; }
.es-pv__stage.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: es-pv-spin .8s linear infinite; }
@keyframes es-pv-spin { to { transform: rotate(360deg); } }
.es-pv__nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.es-pv__nav--prev { left: 14px; }
.es-pv__nav--next { right: 14px; }
.es-pv__nav[disabled] { opacity: .3; cursor: default; }
.es-pv__cap { width: 100%; max-width: 860px; margin: 0 auto; padding: 10px 18px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); min-height: 64px; max-height: 30vh; overflow-y: auto; }
.es-pv__place { margin: 0; font: 700 18px/1.3 var(--font-heading); letter-spacing: -.01em; color: #fff; }
.es-pv__place a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.es-pv__place a:hover { text-decoration-color: var(--accent); }
.es-pv__who { margin: 4px 0 0; font: 500 14.5px/1.4 var(--font-body); color: #9fb0b8; }
.es-pv__who a { color: #c9d6dc; text-decoration: underline; text-underline-offset: 3px; }
.es-pv__place:empty, .es-pv__who:empty { display: none; }

/* ---- People section */
.es-cx-ppl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.es-cx-ppl__li { min-width: 0; margin: 0; padding: 0; }
.es-cx-ppl__a { display: grid; justify-items: center; align-content: start; gap: 12px; height: 100%; padding: 24px 16px 22px; text-align: center; background: #fff; border-radius: var(--radius-md); color: inherit; text-decoration: none; box-shadow: 0 1px 0 rgba(18, 34, 44, .04), 0 22px 40px -30px rgba(18, 34, 44, .4); transition: transform .25s, box-shadow .25s; }
.es-cx-ppl__a:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(18, 34, 44, .04), 0 28px 44px -28px rgba(18, 34, 44, .5); }
.es-cx-ppl__a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.es-cx-ppl__a .es-prof-av { width: 64px; height: 64px; }
.es-cx-ppl__t { display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.es-cx-ppl__t b { font: 700 18px/1.2 var(--font-heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
.es-cx-ppl__t span { font: 500 14.5px/1.35 var(--font-body); color: var(--muted); }
.es-cx .es-cx-ppl__note { margin: 22px 0 0; font: 500 15.5px/1.5 var(--font-body); color: var(--muted); }
.es-cx-ppl__note a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }

/* the site resets margin-bottom on paragraphs with !important, so the few bottom margins here say so too */
.es-cx .es-cx-ppl__note { margin-bottom: 0 !important; }
.es-pw__count { margin-bottom: 0 !important; }
.es-pv__place, .es-pv__who { margin-bottom: 0 !important; }

@media (max-width: 1149px) {
  .es-pw__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .es-pw__feature .es-pw__tile { aspect-ratio: 2 / 1; }
  .es-cx-ppl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 900px) {
  .es-cx-ppl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .es-pw, .es-pw__grid { gap: 10px; }
  .es-pw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-pw__feature .es-pw__tile { aspect-ratio: 4 / 3; }
  .es-pw__cap { padding: 36px 12px 11px; }
  .es-pw__feature .es-pw__cap { padding: 60px 16px 16px; }
  .es-cx-sec--wall { padding-bottom: 44px; }
  .es-cx .es-pw__more { height: 48px; min-width: min(100%, 260px); }
  .es-pv__stage { padding: 0; }
  .es-pv__img { border-radius: 0; }
  .es-pv__nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(7, 16, 23, .55); }
  .es-pv__nav--prev { left: 8px; }
  .es-pv__nav--next { right: 8px; }
  /* phones: smaller captions on the small tiles (the viewer shows the full words) */
  .es-pw__cell .es-pw__cap { gap: 2px; padding: 32px 10px 9px; }
  .es-pw__cell .es-pw__place { font-size: 13px; line-height: 1.25; }
  .es-pw__cell .es-pw__by { font-size: 12px; }
  /* phones: People is a swipe row with the next card peeking in, like Groups (no lone card on its own line) */
  .es-cx-ppl { display: flex; gap: 12px; margin: 0 -18px; padding: 4px 18px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .es-cx-ppl::-webkit-scrollbar { display: none; }
  .es-cx-sec--people .es-cx-ppl { padding: 4px 18px 16px !important; } /* the site's list reset zeroes ul padding with !important */
  .es-cx-ppl__li { flex: 0 0 42%; scroll-snap-align: start; }
  .es-cx-ppl__a { padding: 20px 12px 18px; }
  .es-cx .es-cx-ppl__note { margin-top: 10px; }
}
@media (hover: none) and (pointer: coarse) { .es-pv__nav:hover { background: rgba(7, 16, 23, .55); } }
@media (prefers-reduced-motion: reduce) {
  .es-pw__tile img, .es-pv__img, .es-cx-ppl__a { transition: none; }
  .es-pw__tile:hover img { transform: none; }
  .es-pv__stage.is-loading::after { animation: none; }
}

/* ===== margin-bottom copies (generated by mirror_comm.py): the site's reset forces margin-bottom:0 !important on h1-h3, p, ul and ol, so every gap this sheet sets is repeated here as !important. Re-run after editing the rules above. ===== */
.es-pw__feature{margin-bottom:0!important}
.es-pw__grid{margin-bottom:0!important}
.es-pw__cell{margin-bottom:0!important}
.es-pw__count{margin-bottom:0!important}
.es-pw__err{margin-bottom:0!important}
dialog.es-pv{margin-bottom:0!important}
.es-pv__count{margin-bottom:0!important}
.es-pv__stage.is-loading::after{margin-bottom:0!important}
.es-pv__cap{margin-bottom:0!important}
.es-pv__place{margin-bottom:0!important}
.es-pv__who{margin-bottom:0!important}
.es-cx-ppl{margin-bottom:0!important}
.es-cx-ppl__li{margin-bottom:0!important}
.es-cx .es-cx-ppl__note{margin-bottom:0!important}
.es-cx .es-cx-ppl__note{margin-bottom:0!important}
.es-pw__count{margin-bottom:0!important}
.es-pv__place, .es-pv__who{margin-bottom:0!important}
@media (max-width: 700px){.es-cx-ppl{margin-bottom:0!important}
}
