.bdo-library [data-elementor-type="wp-page"] header {
    isolation: isolate;
    position: relative;
    overflow: hidden;
}
.bdo-library [data-elementor-type="wp-page"] header img {
    display: block;
    object-fit: contain;
}
.bdo-library [data-elementor-type="wp-page"] :focus-visible {
    outline: 3px solid #71924a;
    outline-offset: 3px;
}
.bdo-library [data-elementor-type="wp-page"] nav { scrollbar-width: thin; scrollbar-color: #c8d6b9 transparent; }

@media (prefers-reduced-motion: no-preference) {
    @keyframes bdo-library-unfold {
        from { opacity: .45; transform: translateY(7px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes bdo-library-illustration {
        from { opacity: .4; transform: translateY(9px) rotate(-2deg); }
        to { opacity: 1; transform: translateY(0) rotate(0); }
    }
    .bdo-library [data-elementor-type="wp-page"] header img {
        animation: bdo-library-illustration .42s ease-out both;
    }
    .bdo-library [data-elementor-type="wp-page"] details[open] > :last-child {
        animation: bdo-library-unfold .18s ease-out;
    }
    .bdo-library [data-elementor-type="wp-page"] a {
        transition: background-color .16s ease, color .16s ease, transform .16s ease;
    }
    @media (hover: hover) {
        .bdo-library [data-elementor-type="wp-page"] section a:hover,
        .bdo-library [data-elementor-type="wp-page"] nav a:hover {
            transform: translateX(2px);
        }
    }
}
@media (max-width: 767px) {
    .bdo-library [data-elementor-type="wp-page"] article > header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 5.5rem;
        align-items: center;
    }
    .bdo-library [data-elementor-type="wp-page"] article > header > div:first-child { display: contents; }
    .bdo-library [data-elementor-type="wp-page"] article > header > div:last-child { grid-column: 2; grid-row: 1; }
    .bdo-library [data-elementor-type="wp-page"] article > header h1 { grid-column: 1 / -1; grid-row: 2; }
    .bdo-library [data-elementor-type="wp-page"] article > header > div:first-child > p:last-child { grid-column: 1 / -1; grid-row: 3; }
}
/* Match the Astra header on the service and industry templates. */
body.bdo-library #masthead .site-title { display: none; }
body.bdo-library #masthead .custom-logo-link img { width: 200px; max-width: 200px; height: auto; }
@media (max-width: 767px) {
    body.bdo-library #masthead .custom-logo-link img { width: 150px; max-width: 150px; }
}

/* Keep the Astra logo within the error-page navigation on mobile. */
body.error404 #masthead .site-title { display:none; }
body.error404 #masthead .custom-logo-link img { width:200px; max-width:200px; height:auto; }
@media (max-width:767px) { body.error404 #masthead .custom-logo-link img { width:150px; max-width:150px; } }
