.lost , .lost h5, .lost h1, .lost h3, .lost h2, .lost a {
    color: grey !important;
}

h3.lost {
    border-bottom: 1px solid var(--jinks-colors-accent);
}

:root {
    --jinks-layout-before-width: 600px !important;
}

/* pb-tify is a custom element (display:inline by default); give it a box so
   OpenSeadragon can measure a real height inside the after panel. */
pb-tify {
    display: block;
    width: 100%;
    height: 100%;
}

/*
 * Inactive after-tabs use the `hidden` attribute (display:none). That gives
 * pb-tify a 0×0 container at init, so TIFY opens extremely zoomed out and the
 * scan is invisible until Reset / mouse interaction. Keep inactive panels in
 * layout (invisible, non-interactive) so the viewer gets real dimensions.
 */
.after.after-tabs {
    position: relative;
}

.after-tabs > .tab-panel[hidden] {
    display: block !important;
    visibility: hidden;
    position: absolute;
    inset: 0;
    top: 2.5rem; /* leave room for .after-tab-nav */
    pointer-events: none;
    z-index: -1;
}
