:root {
    --red: #dc2626;
}

.ps-window.wide {
    width: min(1100px, calc(100% - 28px));
}

a.tab.is-back {
    color: var(--dim);
    background: transparent;
}

a.tab.is-back:hover {
    color: var(--bright);
    background: var(--tab);
}

.output p {
    max-width: 72ch;
}

.output p + p {
    margin-top: 10px;
}

.output h2 {
    margin-top: 34px;
}

.promo {
    margin: 18px 0 22px;
    border: 1px solid var(--line);
    background: #0a0a0a;
}

.promo iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.facts {
    display: grid;
    gap: 2px;
}

.facts div {
    display: grid;
    grid-template-columns: 9ch 1fr;
    gap: 12px;
}

.facts dt {
    color: var(--green);
}

.shots {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.shots.web {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shots.web .wide-shot {
    grid-column: 1 / -1;
}

.shots.phones {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .shots.phones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.shot img,
.shot .slot {
    width: 100%;
    border: 1px solid var(--line);
    background: #111;
}

.shot figcaption {
    margin-top: 6px;
    color: var(--comment);
    font-size: 0.85em;
}

.phone-shot img,
.phone-shot .slot {
    border-radius: 18px;
}

.shot img {
    display: block;
    height: auto;
}

.shot .slot {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    padding: 12px;
    color: var(--dim);
    font-size: 0.8em;
    text-align: center;
    border-style: dashed !important;
}

.phone-shot .slot {
    aspect-ratio: 9 / 19.5;
}

.notes {
    display: grid;
    gap: 8px;
    max-width: 80ch;
}

.notes li {
    position: relative;
    padding-left: 2ch;
}

.notes li::before {
    position: absolute;
    left: 0;
    color: var(--red);
    content: ">";
}

@media (max-width: 560px) {
    .shots.web {
        grid-template-columns: 1fr;
    }

    .shots.phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts div {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.shot img {
    cursor: zoom-in;
    transition: border-color 0.15s;
}

.shot img:hover,
.shot img:focus-visible {
    border-color: var(--dim);
}

.viewer {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--text);
    background: transparent;
}

.viewer::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.viewer figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 48px 64px;
}

.viewer img {
    max-width: 100%;
    max-height: calc(100% - 32px);
    object-fit: contain;
    border: 1px solid var(--line);
    background: #111;
}

.viewer img.tall {
    border-radius: 18px;
}

.viewer figcaption {
    color: var(--comment);
    font-size: 0.85em;
}

.v-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--bright);
    background: var(--bar);
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.v-btn:hover {
    background: var(--tab);
}

.v-prev {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.v-next {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.v-close {
    top: 12px;
    right: 12px;
}

.v-close:hover {
    background: var(--close);
}

@media (max-width: 560px) {
    .viewer figure {
        padding: 56px 12px 72px;
    }

    .v-prev,
    .v-next {
        top: auto;
        bottom: 16px;
        transform: none;
    }
}
