/* Header: logo and journal title side by side */
.pkp_head_wrapper .pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    height: auto;
}

/* Visible journal title */
.pkp_head_wrapper h1.pkp_screen_reader {
    position: static !important;
    order: 2;

    /* title flushed left: */
    flex: 0 1 auto; 
    padding-left: 3rem;

    /* centered title: */
    /* 
    flex: 1 1 auto;
    text-align: center;
    padding: 0 !important;
    */

    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    border: 0 !important;

    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

/* Display journal title on pages without the original h1 */
.pkp_site_name_wrapper:not(:has(h1.pkp_screen_reader))::after {
    content: "CS MSc Dissertations";
    flex: 0 1 auto;
    padding-left: 3rem;
    order: 2;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

/* Smaller title on mobile */
@media (max-width: 768px) {
    .pkp_site_name_wrapper:not(:has(h1.pkp_screen_reader))::after {
        font-size: 1.25rem;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    .pkp_head_wrapper .pkp_site_name_wrapper {
        gap: 0.75rem;
    }

    .pkp_head_wrapper h1.pkp_screen_reader {
        font-size: 1.25rem;
    }
}

