/* Photo gallery, lightbox and review page (phone-first) */
.gal { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gal li { position: relative; aspect-ratio: 1; background: var(--yellow); border-radius: 6px; overflow: hidden; }
.gal button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.play { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: var(--black); color: var(--yellow); font-size: .8rem; font-weight: 800; pointer-events: none; }
.more-wrap { text-align: center; margin: 8px 0 18px; }
.more-wrap .btn { width: 100%; max-width: 320px; font: inherit; font-weight: 700; cursor: pointer; }
.more-wrap[hidden], #g-empty[hidden] { display: none; }
@media (min-width: 600px) { .gal { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(6, 1fr); } }

#lightbox { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #000; color: #fff; }
#lightbox::backdrop { background: #000; }
#lightbox[open] { display: flex; flex-direction: column; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-cap { margin: 0; padding: 6px 14px; text-align: center; min-height: 1.5em; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); }
.lb-bar button { min-width: 52px; min-height: 52px; border-radius: 12px; border: 1.5px solid #fff; background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
.lb-bar button:focus-visible { outline: 3px solid var(--yellow); }

/* review */
.rv { margin-bottom: 18px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; }
.rv h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.rv .meta { margin: 0; }
.rv details summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.rvgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rvgrid li { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--yellow); }
.rvgrid .open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.rvgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rvgrid .pick { position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 8px; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.rvgrid .pick input { width: 22px; height: 22px; accent-color: var(--yellow); }
.rvgrid .ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; pointer-events: none; }
.rvbar { display: grid; gap: 8px; }
.rvbar label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.rvbar input[type="text"] { min-height: var(--tap); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.rvbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rvbtns button { min-height: var(--tap); border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; border: 2px solid var(--ink); }
.rvbtns .yes { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rvbtns .no { background: transparent; color: var(--ink); }
.rvbtns button:disabled { opacity: .6; cursor: wait; }
.rv .msg { margin: 0; color: var(--muted); font-size: .9rem; min-height: 1.2em; }
