/*
 * Guide screenshot viewer (Steven 2026-12-05). Same dialog and ad slot as the
 * review viewer (review-v2.css "viewer" + os-review.css ad rules), copied here
 * so guides do not load the review stylesheets.
 */
.g2-shot img[data-g2-shot] { cursor: zoom-in; }
.g2-shot img[data-g2-shot]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.g2-lb { border: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: color-mix(in oklch, var(--bg) 98%, transparent); color: var(--ink); }
.g2-lb::backdrop { background: rgb(0 0 0 / 0.6); }
.g2-lb .rv2-lb__in { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem) 1.5rem; box-sizing: border-box; }
.g2-lb .rv2-lb__bar { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.g2-lb .rv2-lb__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 0; }
.g2-lb .rv2-lb__stage img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.g2-lb .rv2-lb__btn { width: 3rem; height: 3rem; display: grid; place-items: center; padding: 0; background: var(--surface); color: var(--ink); border: 0; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.g2-lb .rv2-lb__btn:hover { background: var(--accent); color: var(--accent-ink); }
.g2-lb .rv2-lb__btn svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2; }
.g2-lb .rv2-lb__cap { text-align: center; margin: 0 auto; max-width: 48rem; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.g2-lb[data-single] .rv2-lb__stage > .rv2-lb__btn, .g2-lb[data-single] #g2-lb-count { visibility: hidden; }
@media (max-width: 600px) {
	.g2-lb .rv2-lb__stage { grid-template-columns: minmax(0, 1fr); }
	.g2-lb .rv2-lb__stage .rv2-lb__btn { display: none; }
}

/* Ad slot: 300x250 column beside the image on wide screens, 320x50 under the caption on phones. */
.g2-lb .rv2-lb__in:has(.rv2-lb__ad) { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 2rem; }
.g2-lb .rv2-lb__in:has(.rv2-lb__ad) .rv2-lb__bar { grid-column: 1 / -1; }
.g2-lb .rv2-lb__in:has(.rv2-lb__ad) .rv2-lb__stage, .g2-lb .rv2-lb__in:has(.rv2-lb__ad) .rv2-lb__cap { grid-column: 1; }
.g2-lb .rv2-lb__ad { grid-column: 2; grid-row: 2 / span 2; align-self: center; display: grid; gap: 8px; }
.g2-lb .rv2-lb__ad-w { width: 300px; }
.g2-lb .rv2-lb__ad-m { display: none; }
@media (max-width: 1000px) {
	.g2-lb .rv2-lb__in:has(.rv2-lb__ad) { grid-template-columns: minmax(0, 1fr); }
	.g2-lb .rv2-lb__ad { grid-column: 1; grid-row: auto; justify-self: center; }
	.g2-lb .rv2-lb__ad-w { display: none; }
	.g2-lb .rv2-lb__ad-m { display: block; }
	.g2-lb .rv2-lb__ad:not(:has(.rv2-lb__ad-m)) { display: none; }
}
.osx .g2-lb { background: color-mix(in oklch, var(--o-ground) 97%, transparent); }
