/* UID 21's Core backend layout. Centred reading column and original bordered
   right-hand info box, without the legacy absolute positioning. */
.pw-photonlab-overview {
    display: grid;
    grid-template-columns: minmax(0, var(--pw-content-reading)) minmax(0, 1fr);
    gap: calc(var(--pw-content-reading) * 0.0375);
    width: calc(var(--pw-content-reading) * 1.3625);
    max-width: calc((100% + var(--pw-content-reading)) / 2 - 1rem);
    margin-left: calc((100% - var(--pw-content-reading)) / 2);
    margin-block: 2.5rem;
    align-items: start;
}
.pw-photonlab-overview > .pw-content { min-width: 0; }
.pw-photonlab-overview .pw-content > .frame { width: 100%; }
.pw-photonlab-overview .pw-content > .frame:first-child { margin-top: 0; }
.pw-photonlab-overview__heading > .frame { width: min(calc(100% - 2rem), var(--pw-content-normal)); }
.pw-photonlab-overview__heading h1 {
    margin: clamp(2rem, 3.45vw, 3.25rem) 0 1.29rem;
    color: #1d1d1b;
    font-size: clamp(2.1rem, 3.372vw, 3.44rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}
.pw-photonlab-overview__heading.pw-content > .frame-type-header h2 {
    margin: 0 0 .96rem;
    color: #1d1d1b;
    font-size: clamp(1.05rem, 1.633vw, 1.3rem);
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: 0;
    text-align: center;
}
.pw-photonlab-overview__main {
    color: #1d1d1b;
    font-size: calc(1.45 * var(--pw-article-unit));
    font-weight: 400;
    line-height: calc(2.4 * var(--pw-article-unit));
    letter-spacing: calc(.025 * var(--pw-article-unit));
    text-align: left;
}
.pw-photonlab-overview__main.pw-content > .frame-type-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.pw-photonlab-overview__main.pw-content > .frame-type-text p { margin: 0; }
.pw-photonlab-overview__main > .frame-type-text:first-child > div:first-child {
    max-width: 37em;
    margin-inline: auto;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    letter-spacing: 0;
    margin-bottom: calc(2.4 * var(--pw-article-unit));
}
.pw-photonlab-overview__main > .frame-type-text:first-child > div:first-child strong { font-weight: 700; }
/* The migrated RTE keeps the original introduction/normal div boundaries.
   Apply Legacy's normal-text padding to those existing section wrappers. */
.pw-photonlab-overview__main > .frame-type-text:first-child > div:not(:first-child) > div {
    position: relative;
    top: calc(-.3 * var(--pw-article-unit));
    padding: calc(.4 * var(--pw-article-unit)) 0 calc(1.75 * var(--pw-article-unit));
}
.pw-photonlab-overview__main.pw-content > .frame-type-text h3 {
    margin: calc(.5 * var(--pw-article-unit)) 0 0;
    color: #1d1d1b;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    letter-spacing: calc(.05 * var(--pw-article-unit));
}
.pw-photonlab-overview :is(.pw-photonlab-overview__main, .pw-photonlab-overview__aside) a {
    color: #1d1d1b;
    text-decoration: underline;
    text-underline-offset: .12em;
}
.pw-photonlab-overview a:focus-visible,
.pw-photonlab-overview__heading a:focus-visible {
    outline: 2px solid #4e2583;
    outline-offset: 3px;
}
.pw-photonlab-overview__aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .75rem;
    border: 1px solid #9d9c9c;
    background: #fff;
    padding: .6875rem 1rem 1rem;
}
.pw-photonlab-overview__aside.pw-content > .frame {
    font-size: .825rem;
    line-height: 1.3;
    letter-spacing: .025rem;
}
.pw-photonlab-overview__aside.pw-content > .frame:first-child { grid-column: 1 / -1; }
.pw-photonlab-overview__aside.pw-content > .frame + .frame { margin-top: 0; }
.pw-photonlab-overview__aside strong { font-weight: 700; letter-spacing: 0; }
.pw-photonlab-overview__aside .frame-type-text > div > div:first-child,
.pw-photonlab-overview__aside .frame-type-text > div > div:nth-of-type(7) {
    border-bottom: 1px solid #000;
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
/* The two flyer images are separate Core CEs. Their empty Legacy placeholders
   stay hidden; the final separator follows both real FAL images. */
.pw-photonlab-overview__aside .frame-type-text > div > div:nth-of-type(7) ~ * { display: none; }
.pw-photonlab-overview__aside::after {
    content: "";
    display: block;
    grid-column: 1 / -1;
    border-top: 1px solid #9d9c9c;
    margin-top: 1rem;
}
.pw-photonlab-overview__aside .ce-gallery,
.pw-photonlab-overview__aside .ce-column,
.pw-photonlab-overview__aside .ce-gallery img { width: 100%; }
.pw-photonlab-overview__aside .frame-type-image figure { margin: 0; }
.pw-photonlab-overview__aside .frame-type-image img {
    display: block;
    height: auto;
    aspect-ratio: 222 / 176;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .pw-photonlab-overview {
        grid-template-columns: minmax(0, 1fr);
        width: min(calc(100% - 2rem), var(--pw-content-reading));
        max-width: none;
        margin-inline: auto;
    }
    .pw-photonlab-overview__aside {
        order: -1;
        width: min(100%, 20rem);
        margin-inline: auto;
    }
}

/* Original mobile.css enlarged the prose independently of the desktop unit. */
@media (max-width: 600px) {
    .pw-photonlab-overview__main { font-size: 18px; line-height: 24px; }
    .pw-photonlab-overview__main.pw-content > .frame-type-text h3 { font-size: 24px; line-height: 1.75; }
}
