/* Photo galleries (/photos/) + shared lightbox (zaku-lightbox.js) + bio gallery card. Loaded only where used. */

/* page */
.zph-page { max-width: 1240px; padding-top: 18px; padding-bottom: 40px; }
.zph-head h1 { margin-bottom: 6px; }
.zph-meta { color: #6b665e !important; font-size: 14px !important; font-weight: 600; }
.zph-meta .zaku-views { margin-left: 8px; font-weight: 400; }
.zph-head .zph-meta .zaku-views { margin-left: 0; }
.zph-intro { max-width: 760px; margin: 6px 0 18px; font-size: 17px; line-height: 1.6; color: #2a2a2a; }
.zph-intro p { margin: 0 0 10px; }
.zph-intro a { color: #c8102e; }

/* link back to the biography */
.zph-bio { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 0 22px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #f5f1ea; color: #111; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.zph-bio:hover { background: #ece5d8; color: #111; transform: translateY(-1px); }
.zph-bio-face { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #ddd; }
.zph-bio-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zph-bio-text { flex: 1; min-width: 0; }
.zph-bio-text small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c8102e; }
.zph-bio-text b { display: block; font-size: 16px; line-height: 1.3; }
.zph-bio-go { font-size: 22px; color: #c8102e; }

/* grid: row order kept (so the lightbox follows what you see), wide photos take two columns */
.zph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 6px; margin: 0 -10px; }
@media (min-width: 700px) { .zph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; } }
@media (min-width: 1100px) { .zph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
.zph-tile { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #ece7de; }
.zph-tile.zph-wide { grid-column: span 2; aspect-ratio: auto; }
.zph-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zph-open img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .35s ease; }
.zph-open:hover img { transform: scale(1.03); }
.zph-open:focus-visible { outline: 3px solid #c8102e; outline-offset: -3px; }
.zph-like { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; min-width: 36px; height: 34px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(17, 17, 17, .55); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.zph-like svg, .zlb-like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.zph-like.on svg, .zlb-like.on svg { fill: #ff3355; stroke: #ff3355; }
.zph-like span:empty { display: none; }
.zph-like:active svg, .zlb-like:active svg { transform: scale(1.25); }

/* cards: hub + related */
.zph-related { margin-top: 38px; }
.zph-more { margin: 22px 0 36px; }
.zph-more-main { display: inline-block; margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #c8102e !important; text-decoration: none; }
.zph-more-main:hover { text-decoration: underline; }
.zph-related h2, .zph-section h2 { margin: 0 0 14px; font-size: 22px; }
.zph-section { margin: 0 0 30px; }
.zph-section h2 a { color: inherit !important; text-decoration: none; }
.zph-section h2 a:hover { color: #c8102e !important; }
.zph-section-more { margin: 14px 0 0; }
.zph-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .zph-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .zph-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.zph-card { display: block; color: #111; text-decoration: none; }
.zph-card-img { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #ece7de; box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.zph-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .35s ease; }
.zph-card:hover .zph-card-img img { transform: scale(1.04); }
.zph-card-body { display: block; padding: 8px 2px 0; }
.zph-card-body b { display: block; font-size: 15px; line-height: 1.25; }
.zph-card-body small { color: #6b665e; font-size: 13px; }
.zph-card:hover b { color: #c8102e; }
.zph-all { margin: 16px 0 0; font-weight: 700; }
.zph-all a { color: #c8102e; }

/* bio card on /people/ profiles */
.zph-biocard { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 14px 10px 10px; border-radius: 16px; background: #111; color: #fff; text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); transition: transform .15s ease, box-shadow .15s ease; }
.zph-biocard:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }
.zph-biotype { display: inline-block; margin: 10px 0 0 4px; font-size: 14px; font-weight: 700; color: #c8102e !important; text-decoration: none; }
.zph-biotype:hover { text-decoration: underline; }
.zph-hubcard { max-width: 520px; margin: 4px 0 26px; }
.zph-newsbox { display: grid; gap: 10px; max-width: 520px; margin: 26px 0 8px; }
.zph-newsbox .zph-biocard { margin: 0; }
.zph-newsbox .zph-biocard img { max-width: none; }
.zph-biocard-stack { display: flex; flex: 0 0 auto; }
.zph-biocard-stack img { width: 40px; height: 50px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 2px #111; }
.zph-biocard-stack img + img { margin-left: -14px; }
.zph-biocard-text { flex: 1; min-width: 0; }
.zph-biocard-text b { display: block; font-size: 15px; line-height: 1.25; }
.zph-biocard-text small { color: #f5a524; font-size: 13px; font-weight: 700; }
.zph-biocard-go { font-size: 22px; color: #f5a524; }

/* lightbox */
html.zlb-lock { overflow: hidden; }
.zlb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0b; color: #fff; overflow: hidden; }
.zlb[open] { display: block; }
.zlb::backdrop { background: #0b0b0b; }
.zlb-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.zlb-count { font-size: 14px; font-weight: 700; opacity: .85; }
.zlb-tools { display: flex; gap: 6px; }
.zlb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.zlb-btn:hover, .zlb-btn:focus-visible { background: rgba(255, 255, 255, .24); color: #fff; }
.zlb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zlb-like span:empty { display: none; }
.zlb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 58px 8px 64px; }
.zlb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity .2s ease; user-select: none; -webkit-user-drag: none; }
.zlb-stage img.zlb-loading { opacity: .35; }
.zlb-nav { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.zlb-nav:hover { background: rgba(255, 255, 255, .24); }
.zlb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zlb-prev { left: 14px; }
.zlb-next { right: 14px; }
@media (max-width: 700px) {
	.zlb-nav { top: auto; bottom: 10px; margin-top: 0; }
	.zlb-prev { left: calc(50% - 60px); }
	.zlb-next { right: calc(50% - 60px); }
}
.zlb-toast { position: absolute; left: 50%; bottom: 76px; z-index: 3; margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; color: #111; font-size: 14px; font-weight: 700; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .2s ease; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zlb-toast.on { opacity: 1; }
