/* ---- Alignment ---- */

.title-only-header.align-left   { text-align: left; }
.title-only-header.align-center { text-align: center; }
.title-only-header.align-right  { text-align: right; }

.title-only-header.align-center .page-title { margin-left: auto; margin-right: auto; }
.title-only-header.align-right  .page-title { margin-left: auto; }


/* ---- Spacing ---- */

.title-only-header.spacing-tight  { padding: 20px 20px; }
.title-only-header.spacing-normal { padding: 40px 20px; }
.title-only-header.spacing-loose  { padding: 72px 20px; }



.title-only-header .page-title {
    padding:30px 0px 30px 0px;
    font-weight:500;
    letter-spacing:-0.01em;
    max-width: 60rem;
    margin:0px;
}

/* ---- Responsive ---- */
@media screen and (max-width: 480px) {
    .title-only-header {
        padding: 24px 20px;
    }
}

/* ================================================================
   IMAGE BANNER
   ================================================================ */

.banner-image-wrapper,
.banner-image-wrapper-color {
    position: relative;
    overflow: hidden;
    width: 100%;
}


/* ----------------------------------------------------------------
   UMSL Color Block
   ---------------------------------------------------------------- */

.banner-image-wrapper-color::after {
    content: "";
    display: block;
    width: 100%;
    height: 11px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
    background:
        url(https://www.umsl.edu/files/images/umsl-colorblock.jpg);

    background-position: 50px -4px;
}


/* ----------------------------------------------------------------
   Image
   ---------------------------------------------------------------- */

.banner-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* ----------------------------------------------------------------
   Image Overlay
   ---------------------------------------------------------------- */

.image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        60deg,
        #121212,
        hsla(0,0%,7%,.97087) 14.29%,
        hsla(0,0%,7%,.9103) 25.32%,
        hsla(0,0%,7%,.82477) 33.77%,
        hsla(0,0%,7%,.72074) 40.26%,
        hsla(0,0%,7%,.6047) 45.45%,
        hsla(0,0%,7%,.48313) 50%,
        hsla(0,0%,7%,.36249) 54.55%,
        hsla(0,0%,7%,.24926) 59.74%,
        hsla(0,0%,7%,.14992) 66.23%,
        hsla(0,0%,7%,.07095) 74.68%,
        hsla(0,0%,7%,.01882) 85.71%,
        hsla(0,0%,7%,0)
    );

    opacity: .3;
    pointer-events: none;
}


/* ----------------------------------------------------------------
   Image Banner Content
   ---------------------------------------------------------------- */

.image-hero--content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    min-height: 300px;
    margin: 0 auto;
    padding: 0 20px 20px;
    color: #fff;
    text-align: left;
    text-shadow:
        0 0 5px rgba(0, 0, 0, .4);
}


/*
 * When a CTA is present, move image-header content
 * to the same left-center position used by video.
 */

.image-hero--content.has-cta {
    justify-content: center;
}


.image-hero--content h1 {
    position: static;
    margin: 0;
    padding: 0;
    line-height: 1;
}


.image-hero--content p {
    width: 100%;
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #fff;
    line-height: 1.4;
    font-size: calc(1.1rem + .2vw);
    text-align: left;
}


.image-hero--content.align-center {
    align-items: center;
    text-align: center;
}

.image-hero--content.align-center p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.image-hero--content.align-center .header-cta-group {
    justify-content: center;
}


.image-hero--content.align-right {
    align-items: flex-end;
    text-align: right;
}

.image-hero--content.align-right p {
    margin-left: auto;
    text-align: right;
}

.image-hero--content.align-right .header-cta-group {
    justify-content: flex-end;
}


.image-hero--content.valign-top {
    justify-content: flex-start;
    padding-top: 40px;
}

.image-hero--content.valign-center {
    justify-content: center;
}

.image-hero--content.valign-bottom {
    justify-content: flex-end;
}



/* ================================================================
   SHARED CTA GROUP / BUTTONS
   ================================================================ */

.header-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}


.header-cta-group .btn {
    margin-top: 0;

    text-shadow: none;
}

.header-cta-group .btn-primary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 3px;
    background: #eab000;
    color: #1a1305;
    font-weight: 600;
    text-decoration: none;
}

.header-cta-group .btn-secondary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
    text-decoration: none;
}



/* ================================================================
   VIDEO BANNER BASE
   ================================================================ */

.video-banner-wrapper {
    position: relative;
    width: 100%;
}

.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner__video,
.banner__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* ================================================================
   Desktop Video / Mobile Poster
   ================================================================ */

.video-banner-desktop {
    display: block;
}

.video-banner-mobile {
    display: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #212121;
}

.banner--video {
    background: #212121;
}

.video-banner-mobile .banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.video-banner-mobile .banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}


@media (max-width: 991px) {

    .video-banner-desktop {
        display: none;
    }

    .video-banner-mobile {
        display: block;
        height: 400px;
    }
}


@media (max-width: 767px) {

    .video-banner-mobile {
        height: 370px;
    }
}


@media (max-width: 480px) {

    .video-banner-mobile {
        height: 300px;
    }
}


/* ----------------------------------------------------------------
   Video Overlay
   ---------------------------------------------------------------- */

.banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        51deg,
        rgba(33, 33, 33, 1) 0%,
        rgba(33, 33, 33, .85) 15%,
        rgba(33, 33, 33, .4) 40%,
        rgba(255, 255, 255, 0) 70%
    );
}


/* ----------------------------------------------------------------
   Video Content
   ---------------------------------------------------------------- */

.banner__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    color: #fff;
    text-align: left;
}


.banner__content h1 {
    margin: 0;
    line-height: 1;
}


.banner__content p {
    width: 60%;
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #fff;
    line-height: 1.3;
    font-size: calc(1.1rem + .2vw);
}


/* ----------------------------------------------------------------
   Horizontal / vertical layout modifiers (video banner,
   desktop element — .banner__content)
   ---------------------------------------------------------------- */

.banner__content.align-center .container {
    text-align: center;
}

.banner__content.align-center p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.banner__content.align-center .header-cta-group {
    justify-content: center;
}


.banner__content.align-right .container {
    text-align: right;
}

.banner__content.align-right p {
    margin-left: auto;
    text-align: right;
}

.banner__content.align-right .header-cta-group {
    justify-content: flex-end;
}


.banner__content.valign-top {
    justify-content: flex-start;
    padding-top: 40px;
}

.banner__content.valign-center {
    justify-content: center;
}

.banner__content.valign-bottom {
    justify-content: flex-end;
    padding-bottom: 40px;
}



/* ================================================================
   VIDEO CONTROLS
   ================================================================ */

.banner__controls {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
}


.banner__control {
    min-width: 42px;
    min-height: 42px;
    padding: 4px 10px;
    border: 2px solid #fff;
    border-radius: 100%;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}


.banner__control:hover,
.banner__control:focus {
    border-color: #eab000;
    color: #eab000;
}


.banner-image-wrapper,
.banner-image-wrapper-color,
.image-hero--content,
.banner {
    min-height: 300px;
}

.banner {
    height: 300px;
}


@media (min-width: 576px) {

    .banner-image-wrapper,
    .banner-image-wrapper-color,
    .image-hero--content,
    .banner {
        min-height: 340px;
    }

    .banner {
        height: 340px;
    }
}


@media (min-width: 768px) {

    .banner-image-wrapper,
    .banner-image-wrapper-color,
    .image-hero--content,
    .banner {
        min-height: 380px;
    }
    .banner {
        height: 380px;
    }
}


@media (min-width: 992px) {

    .banner-image-wrapper,
    .banner-image-wrapper-color,
    .image-hero--content,
    .banner {
        min-height: 440px;
    }
    .banner {
        height: 440px;
    }
}


@media (min-width: 1200px) {

    .banner-image-wrapper,
    .banner-image-wrapper-color,
    .image-hero--content,
    .banner {
        min-height: 480px;
    }
    .banner {
        height: 480px;
    }
}


@media (min-width: 1600px) {

    .banner-image-wrapper,
    .banner-image-wrapper-color,
    .image-hero--content,
    .banner {
        min-height: 520px;
    }

    .banner {
        height: 520px;
    }
}



/* ================================================================
   RESPONSIVE — IMAGE
   (layout tweaks only — height now comes from the scale above)
   ================================================================ */

@media screen and (max-width: 480px) {

    .image-hero--content {
        padding: 40px 20px 50px;
    }

    .image-hero--content.has-cta {
        justify-content: center;
    }

    .image-hero--content h1 {
        font-size: calc(3vw + 20px);
    }

    .image-hero--content p,
    .image-hero--content .btn {
        font-size: 16px;
    }

    .header-cta-group {
        gap: .75rem;
    }
}

@media (min-width: 576px) {
    .image-hero--content {
       /* max-width: 470px;*/
    }
}

@media (min-width: 768px) {
    .image-hero--content {
        max-width: 840px;
    }
}

@media (min-width: 992px) {
    .image-hero--content {
        max-width: 992px;
    }
}

@media (min-width: 1200px) {

    .image-hero--content {
        max-width: 1200px;
    }
}


/* ================================================================
   RESPONSIVE — VIDEO
   ================================================================ */

@media (max-width: 991px) {

    .banner__content p {
        width: 75%;
    }
}

@media (max-width: 767px) {

    .banner__content p {
        width: 100%;
        font-size: 16px;
    }


    .header-cta-group {
        margin-top: 1.25rem;
    }
}


@media (max-width: 480px) {

    .banner__controls {
        right: 1rem;
        bottom: 1rem;
    }

    .header-cta-group {
        gap: .75rem;
    }
}
