.lab-tile {
    display: block;
}

.lab-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-tile::before {
    z-index: 1;
}

.lab-tile .tile-title {
    width: min(90%, 32rem);
    margin: 0;
    line-height: 1.5;
    z-index: 2;
}

.lab-tile:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.lab-category {
    color: var(--accent);
    font-size: .875rem;
    font-weight: 600;
}

.lab-detail {
    margin-inline: auto;
    max-width: 60rem;
}

.lab-detail h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 4rem);
}

.lab-detail img {
    display: block;
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 1rem;
}

.lab-copy {
    max-width: 65ch;
    margin-block: 1.5rem;
    font-size: 1.15rem;
}

.lab-detail[data-layout="story"] {
    max-width: 48rem;
}

.lab-detail[data-layout="story"] .lab-copy {
    font-family: Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .lab-detail[data-layout="split"]:not([hidden]) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 1.5rem 3rem;
    }

    .lab-detail[data-layout="split"] header {
        grid-column: 1 / -1;
    }

    .lab-detail[data-layout="split"] .lab-copy {
        margin-block: 0;
    }
}
