/* Browser replacements for embeds and assets absent from the captures. */
#logoLink {
    display: block;
}

/* Game Info sub-page banners (section_gameinfo_*.png) have no Wayback capture: keep the original box size. */
.page-template-template-gameinfo-php .missing-image.section_topper {
    box-sizing: border-box;
    width: 850px;
    height: 87px;
    padding: 0 24px;
    font: bold 45px/87px Lucha, Verdana, sans-serif;
    color: #ce494a;
    text-shadow: 2px 2px 3px #000;
}

#menuOptions a:focus-visible, #logoLink:focus-visible {
    outline: 2px solid #eaa549;
}

.missing-image {
    color: inherit;
}

.missing-image.section_topper {
    display: block;
    padding: 12px 24px;
    font-size: 1.25em;
}

.archive-video {
    display: grid;
    place-items: center;
    width: min(var(--video-width, 500px), 100%);
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    background: #201712;
    border: 1px solid #634a35;
}

.archive-stream {
    display: grid;
    place-items: center;
    width: 200px;
    height: 150px;
}

.archive-notice {
    padding: 1em;
}

.archive-gallery {
    max-width: 500px;
    margin: 0 auto 22px;
}

.archive-gallery-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 500 / 281;
    background: #201712;
}

.archive-gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.archive-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}

.archive-gallery-controls button, .archive-lightbox button {
    cursor: pointer;
}

.archive-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.archive-gallery-thumbs button {
    flex: 0 0 80px;
    padding: 0;
    border: 1px solid transparent;
    background: #201712;
    cursor: pointer;
}

.archive-gallery-thumbs button[aria-current="true"] {
    border-color: #eaa549;
}

.archive-gallery-thumbs img {
    display: block;
    width: 80px;
    height: 45px;
    object-fit: contain;
}

.archive-lightbox {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    border: 0;
    padding: 10px;
    background: #211710;
}

.archive-lightbox::backdrop {
    background: #000c;
}

.archive-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 100px);
}

.archive-lightbox button {
    display: block;
    margin-left: auto;
}

/* Flash countdown widget (cdt_main.swf, 200x100) replaced by a link to the stream. */
.archive-countdown {
    height: 100px;
}
