/*
 * Chemistry REU Joomla 5 branding
 */

.reu-branding {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem 0;
}

.reu-branding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reu-branding-logo img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.reu-branding-title {
    text-align: center;
    line-height: 1.3;
}

.reu-branding-main {
    font-size: 1.55rem;
    font-weight: 700;
}

.reu-branding-department {
    margin-top: .45rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.reu-branding-university {
    margin-top: .15rem;
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .reu-branding {
        grid-template-columns: 72px minmax(0, 1fr) 72px;
        gap: .75rem;
    }

    .reu-branding-logo img {
        width: 72px;
        height: 72px;
    }

    .reu-branding-main {
        font-size: 1.1rem;
    }

    .reu-branding-department {
        font-size: .95rem;
    }

    .reu-branding-university {
        font-size: 1rem;
    }
}

/*
 * Migrated Chemistry REU article content
 */

.com-content-article.item-page img {
    max-width: 100%;
    height: auto;
}

.com-content-article.item-page table {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    border-collapse: collapse;
}

.com-content-article.item-page th,
.com-content-article.item-page td {
    height: auto !important;
    vertical-align: top;
}

@media (max-width: 767.98px) {
    .com-content-article.item-page table {
        font-size: .95rem;
    }

    .com-content-article.item-page th,
    .com-content-article.item-page td {
        padding: .4rem;
    }
}

/*
 * Clean REU article presentation
 */

.reu-home-intro {
    margin-bottom: 1.75rem;
    text-align: center;
}

.reu-home-intro h2 {
    margin-bottom: .35rem;
}

.reu-program-dates {
    font-size: 1.2rem;
}

.reu-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.reu-photo-grid figure {
    margin: 0;
}

.reu-photo-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.reu-photo-grid figcaption {
    margin-top: .4rem;
    font-style: italic;
}

.reu-deadline {
    font-size: 1.1rem;
    font-weight: 700;
}

.reu-faculty-list {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.25rem;
}

.reu-faculty-list li {
    margin-bottom: .65rem;
    break-inside: avoid;
}

@media (max-width: 767.98px) {
    .reu-photo-grid {
        grid-template-columns: 1fr;
    }

    .reu-faculty-list {
        columns: 1;
    }
}

/*
 * Apply and contact content
 */

.reu-application-steps li {
    margin-bottom: 1rem;
}

.reu-application-note {
    margin-top: 1.5rem;
}

.reu-contact {
    display: grid;
    gap: 2rem;
}

.reu-contact section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid currentColor;
}

.reu-contact section:last-child {
    border-bottom: 0;
}

.reu-contact address {
    font-style: normal;
}
