/* owl carousel plugin */
@import url('https://ssl.uh.edu/css/refresh/owl.carousel.css');

/* lazy load youtube plugin */
@import url('https://ssl.uh.edu/css/refresh/lazyYT.css');

::selection {
    background: #FFF9D9;
}

::-moz-selection {
    background: #FFF9D9;
}

a, a:focus {
    color: #c8102e;
    text-decoration: none;
}

a:hover, a:visited {
    color: #960C22;
}

a:hover, a:focus {
    text-decoration: none;
}

a:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

/* remove these before going live */
a:visited {
    color: #c8102e;
}
a:visited:hover {
    color: #960C22;
}

h1 {
    font: 4.5rem 'League Gothic', sans-serif; /* 72px */
    line-height: 1;
    margin: 1.125rem 0;
    text-transform: uppercase;
}

h2 {
    font: 3.375rem 'League Gothic', sans-serif; /* 54px */
    line-height: 1;
    margin: 1.125rem 0;
    text-transform: uppercase;
}

h3 {
    font: 2.25rem 'League Gothic', sans-serif; /* 36px */
    line-height: 1.08333333333333em;
    line-height: calc(1em + 3px);
    margin: 1.125rem 0;
    text-transform: none;
}

h4 {
    font: italic bold 1.5rem 'Milo', sans-serif; /* 24px */
    line-height: 1.625em;
    line-height: calc(1em + 3px);
    margin: 1.125rem 0 0;
}

h5 {
    font: bold 1.25rem 'Milo', sans-serif; /* 20px */
    line-height: 1.35em;
    line-height: calc(1.5em - 3px);
    margin: 1.125rem 0 0;
}

p, ul, ol, dl {
    margin: 1.125rem 0;
}


#main-content {
    padding: 0;
    width: auto;
}

/*
 * links and navs
 */

.nav-gateway {
    background: #FFF9D9;
    font: 1rem 'Milo', sans-serif;  /* 16px */
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .5s ease;
}

.active-nav .nav-gateway {
    max-height: 20rem;
}

.nav-gateway h5 {
    /*display: inline-block;*/
    font-size: inherit;
    font-style: italic;
    font-weight: bold;
    line-height: inherit;
    margin: 0 1.33333333em 0 0;
    padding: .5em 0;
}

.nav-gateway ul {
    /*display: inline;*/
    list-style: none;
    padding: 0;
}

.nav-gateway a {
    font-weight: bold;
    padding: .5em 0;
    display: block;
}

@media screen and (min-width: 992px) {
    .nav-gateway {
        font: 1.125rem 'Milo', sans-serif;  /* 18px */
        max-height: none;
        padding: .5em 0;
    }
    .nav-gateway h5 {
        display: inline-block;
        padding: .25em 0;
    }
    .nav-gateway ul > li {
        display: inline-block;
        margin: 0 1.33333333em 0 0;
    }
    .nav-gateway ul {
        display: inline;
    }
    .nav-gateway a {
        padding: .25em 0;
    }
}

.nav-breadcrumb {
    padding: 0;
}

.cta-link,
.section-links {
    font: bold 1.25rem 'Milo', sans-serif; /* 20px */
    line-height: 1.35em;
    line-height: calc(1.5em - 3px);
}

.section-links {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.section-heading + .section-links {
    display: inline-block;
}

.section-links > li {
    display: inline-block;
    margin: calc((1.5em - 3px) / 3) 1.5rem 0 0;
}

.cta-link::after,
.section-links a::after {
    content: ' >';
    display: inline;
}

.links-list {
    font: 1.25rem 'Milo', sans-serif; /* 20px */
    line-height: 1.35em;
    line-height: calc(1.5em - 3px);
    list-style: none;
    margin: calc(1.5em - 3px) 0;
    padding: 0;
}

.links-list > li {
    margin: 0;
    padding-left: 1em;
    padding-bottom: calc((1.5em - 3px) / 3);
    position: relative;
    -webkit-column-break-inside: avoid;
              page-break-inside: avoid;
                   break-inside: avoid;
}

.links-list > li::before {
    color: #c8102e;
    content: '>';
    position: absolute;
    left: 0;
    line-height: 1.35em; /* fixed a bug in Edge */
}

.links-list a {
    font-weight: bold;
}

.news-list {
    font: bold 1.25rem 'Milo', sans-serif; /* 20px */
    line-height: 1.35em;
    line-height: calc(1.5em - 3px);
    list-style: none;
    padding-left: 0;
}

.news-list .news-date,
.news-list .news-source {
    display: block;
    font-size: 1rem; /* 16px */
    font-weight: normal;
    line-height: 1.5;
}

.contact-list {
    font: 1.25rem/1.2 'Milo', sans-serif; /* 20px */
}

.contact-list dt {
    font-weight: bold;
}

.social-media-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    -webkit-align-content: flex-start;
            align-content: flex-start;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
            flex-direction: row;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
}

.social-media-list li {
    margin: 0 10px 10px 0;
}

.social-media-list a {
    background: #c8102e;
    border-radius: 50%;
    display: block;
    height: 40px;
    padding: 8px;
    transition: background .25s ease;
    width: 40px;
}

.social-media-list a:hover {
    background: #960C22;
}

.social-media-list svg {
    fill: white;
}

/* table of contents */

.page-contents {
    background: #960C22;
    border: none;
    box-shadow: none;
    color: white;
    font: 1rem 'Milo', sans-serif; /* 16px */
    line-height: 1.3125em;
    line-height: calc(1.5em - 3px);
    margin: 0;
    opacity: 1;
    padding: .5em 0;
    position: static;
    transition: top .25s ease;
    width: 100%;
    z-index: 99;
}

.page-contents.affix {
    top: 0;
}

.page-contents h5 {
    font-size: inherit;
    font-style: italic;
    font-weight: bold;
    line-height: inherit;
    margin: 0;
    padding: .5em 0;
}

.page-contents .parents {
    margin: 0;
}

.page-contents .parents > li > a {
    color: #FFF9D9;
    display: block;
    margin: 0;
    padding: .5em 0;
}

.page-contents .parents > li > a:hover {
    color: white;
}

@media screen and (min-width: 992px) {
    .page-contents {
        box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, .125);
        /* https://www.smashingmagazine.com/2016/05/fluid-typography/#controlling-the-rate-of-scale */
        font-size: calc(14px + (18 - 14) * (100vw - 992px)/(1280 - 992)); /* scale between 14px and 18px (see above link) */
        left: 0;
        padding: 0;
        position: fixed;
        right: 0;
        top: -3rem;
    }
    .page-contents h5 {
        display: inline-block;
        padding: .75rem .75rem .75rem 0;
    }
    .page-contents .parents {
        display: inline-block;
    }
    .page-contents .parents > li {
        display: inline-block;
    }
    .page-contents .parents > li:hover {
        background: rgba(0,0,0,.25);
        -webkit-transition: background .25s ease;
                transition: background .25s ease;
    }
    .page-contents .parents > li > a {
        padding: .75rem .75em;
    }
}

@media screen and (min-width: 1280px) {
    .page-contents {
        font-size: 1.125rem; /* 18px */
    }
}

/*
 * page sections
 */

.page-header {
    background-color: #c8102e;
    border: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.page-header.cover-photo .caption-wrapper {
    background: none;
}

.page-header h1 {
    color: white;
    display: inline-block;
    letter-spacing: 0;
    margin: 0;
    padding: .625rem 1.25rem .625rem 0;
    position: relative;
    z-index: 1;
}

@media screen and (min-width: 768px) {
    .page-header {
        background-color: white;
    }
    .page-header h1 {
        background: #c8102e;
    }
    .page-header h1::before {
        background: #c8102e;
        content: '';
        display: block;
        height: 100%;
        width: 1920px;
        position: absolute;
        top: 0;
        right: 0;
        z-index: -1;
    }
}

@media screen and (max-width: 1199px) {
    .page-header {
        background-image: none !important;
    }
}

@media screen and (min-width: 1200px) {
    .no-touch .page-header {
        background-color: white;
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 100%;
        background-attachment: fixed;
        transition: background-position .25s ease;
    }
    .no-touch .active-search .page-header {
        background-position: center 3rem;
    }
    .no-touch .page-header > img {
        height: calc(40vw - 134px - 20px);
        visibility: hidden;
    }
}

@media screen and (min-width: 1920px) {
    .no-touch .page-header {
        background-size: 1920px auto;
    }
    .no-touch .page-header > img {
        height: calc(768px - 134px - 20px);
    }
}

@media print {
    .page-header {
        background-image: none !important;
    }
    .page-header > img {
        visibility: visible !important;
    }
}

.page-section {
    padding: 3.375rem 0;
}

.page-section::after {
    clear: both;
    content: '';
    display: table;
}

.page-section:first-of-type {
    padding-top: 2.25rem;
}

.page-section-double {
    padding-top: calc(1.5em - 3px);
    padding-bottom: calc(1.5em - 3px);
}

.page-section-double section {
    padding-top: calc(1.5em - 3px);
    padding-bottom: calc(1.5em - 3px);
}

.page-section .container > *:last-child {
    margin-bottom: 0;
}

.page-section .section-image {
    margin-bottom: 2.25rem;
}

@media screen and (min-width: 992px){
    .page-section .section-image {
        margin-bottom: 0;
    }
}

.page-section .section-heading {
    display: inline-block;
    margin: 0 1.5rem 0 0;
}

.page-section .section-heading + p {
    margin-top: 1.125rem;
}

.page-section * + .embed-responsive {
    margin-top: 2.5rem;
}

.page-section:first-of-type .section-heading {
    font-size: 3.75rem; /* 60px */
    line-height: 1;
}

.page-section:first-of-type .col-xs-12 > p,
.page-section:first-of-type .container > p {
    font-size: 1.375rem; /* 22px */
    line-height: 1.36363636363636em;
    line-height: calc(1.5em - 3px);
    margin: 1.25rem 0;
}

.page-footer,
#page-footer {
    background-color: #FFF9D9;
    padding: 1.25rem 0;
    z-index: 100;
}

.cover-photo {
    position: relative;
    padding: 0;
}

.video-container {
    background-color: #888B8D;
}

.cover-photo .caption-wrapper {
    background: rgba(255, 249, 217, 1);
    opacity: 1;
    padding: 0;
    pointer-events: none;
    transition: opacity .25s cubic-bezier(0, 0, .2, 1);
}

.cover-photo .caption-wrapper .container {
    position: relative;
}

.cover-photo .caption {
    font-size: 1.125rem; /* 18px */
    line-height: 1.33333333333333em;
    line-height: calc(1.5em - 3px);
    padding: calc(1.5em - 3px) 0;
    pointer-events: all;
    width: 100%;
}

.cover-photo .caption p {
    margin: 0 0 1.125rem;
}

.cover-photo .caption > *:first-child {
    margin-top: 0;
}

.cover-photo .caption > *:last-child {
    margin-bottom: 0;
}

.cover-photo .caption > p:last-child {
    margin-bottom: .375rem;
}

@media screen and (min-width: 768px) {
    .cover-photo .caption-wrapper {
        background: none;
        bottom: 2.5rem;
        left: 0;
        position: absolute;
        width: 100%;
        z-index: 13;
    }
    .cover-photo .caption-wrapper.disabled {
        opacity: 0;
    }
    .cover-photo .caption {
        background: rgba(255, 249, 217, .85);
        padding: 1.125rem 1.25rem;
        width: calc(50% - 1.25rem);
    }
    .cover-photo .caption-wrapper.disabled .caption {
        pointer-events: none;
    }
}

/* section blocks */

.section-block .section-content-wrapper > *:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .section-block {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: row;
                flex-direction: row;
    }
    .section-block .section-image-wrapper {
        -webkit-order: 99;
                order: 99;
    }
    .section-block-reverse .section-image-wrapper {
        -webkit-order: 0;
                order: 0;
    }
}

/* grids and carousels */

.section-grid {
    list-style: none;
    margin: 2.25rem -1.25rem -1.125rem;
    padding: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
            flex-direction: row;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
}

.section-grid:last-child,
.page-section .container > .section-grid:last-child {
    margin-bottom: -2.25rem;
}

.section-grid > li {
    margin-bottom: 2.25rem;
}

.section-grid .grid-image-wrapper {
    overflow: visible;
    position: relative;
    z-index: auto;
}

.section-grid .grid-image-wrapper:before {
    box-shadow: 0 15px 25px -10px rgba(84, 88, 90, 0.5);
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.25s ease;
    width: 100%;
}

.section-grid .grid-anchor:hover .grid-image-wrapper:before {
    opacity: 1;
}

.section-grid .grid-image {
    transition: transform 0.25s ease;
    -webkit-transform: perspective(1000px) translate3d(0, 0, 0);
            transform: perspective(1000px) translate3d(0, 0, 0);
}

.section-grid .grid-anchor:hover .grid-image {
    -webkit-transform: perspective(1000px) translate3d(0, 0, 15px);
            transform: perspective(1000px) translate3d(0, 0, 15px);
}

.section-grid img {
    display: block;
}

.section-grid h3 {
    line-height: 2.5rem;
    margin: 1rem 0 .5rem;
}

.section-grid h4 {
    line-height: 1.75rem;
    margin: 1rem 0 .25rem;
}

.section-grid h5 {
    line-height: 1.5rem;
    margin: .75rem 0 .25rem;
}

.section-grid p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.33333333333333em;
    line-height: calc(1.5em - 3px);
    margin: 0;
}

.section-grid .icon {
    height: 4.5rem;
    width: 4.5rem;
}

.section-grid a:hover + h3 a,
.section-grid a:hover + h4 a {
    color: #960C22;
}


/* owl carousel */

.owl-carousel {
    width: auto;
}

.owl-carousel.owl-loaded li {
    float: none;
    padding-bottom: 2.25rem;
    margin-bottom: 0;
    position: relative;
    width: auto;
}

.owl-carousel li:nth-child(n+2) {
    display: none;
}

.owl-carousel.owl-loaded li:nth-child(n+2) {
    display: block;
}

.owl-carousel .owl-nav {
    color: #888B8D;
    font: bold 3.5rem 'Milo', sans-serif; /* 56px */
    line-height: 1;
    position: absolute;
    top: calc(50% - 1em);
    width: 100%;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    opacity: .5;
    position: absolute;
    text-align: center;
    transition: opacity .25s ease;
    width: 2.5rem;
}

.owl-carousel .owl-nav .owl-prev {
    left: -1.25rem;
}

.owl-carousel .owl-nav .owl-next {
    right: -1.25rem;
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
    opacity: 1;
}

.owl-carousel .owl-nav .owl-prev.disabled,
.owl-carousel .owl-nav .owl-next.disabled,
.owl-carousel .owl-nav .owl-prev.disabled:hover,
.owl-carousel .owl-nav .owl-next.disabled:hover {
    cursor: default;
    opacity: 0;
}

@media screen and (min-width: 768px) {
    .owl-carousel li:nth-child(n+2) {
        display: block;
    }
    .owl-carousel li:nth-child(n+3) {
        display: none;
    }
    .owl-carousel.owl-loaded li:nth-child(n+3) {
        display: block;
    }
}

@media screen and (min-width: 992px) {
    .owl-carousel li:nth-child(n+2) {
        display: block;
    }
    .owl-carousel li:nth-child(n+4) {
        display: none;
    }
    .owl-carousel.owl-loaded li:nth-child(n+4) {
        display: block;
    }
}

/* .section-grid-social */

.section-grid-social {
    margin-top: 0;
    margin-bottom: 0;
    padding: 1.25rem 0;
}

.section-grid-social .social-header {
    font: 1rem 'Milo'; /* 16px */
    line-height: 1.3125em;
    line-height: calc(1.5em - 3px);
    margin-bottom: calc(1.5em - 3px)
}

.section-grid-social .social-header * {
    margin: 0;
}

.section-grid-social h4 {
    margin: 0;
}

.section-grid-social .social-account,
.section-grid-social .social-timestamp {
    display: block;
}

.section-grid-social .social-timestamp {
    color: #54585a;
}

.section-grid-social .social-message {
    font: 200 3rem/1.125 'Milo', sans-serif; /* 48px */
    letter-spacing: -.025em;
}

.section-grid-social .social-header img,
.section-grid-social .social-header svg {
    fill: currentColor;
    float: left;
    height: 3.75rem;
    margin: 0 .75rem 0 0;
    width: 3.75rem;
}

/* .section-grid-stats */

.section-grid-stats {
    margin-top: 2.5rem;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
            flex-direction: row;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-justify-content: center;
            justify-content: center;
}

.section-grid-stats .stats-number {
    display: block;
    font: 6.5rem 'League Gothic', sans-serif; /* 104px */
    line-height: 1;
    text-align: center;
}

.section-grid-stats .stats-number sup {
    font-size: 60%;
}

.section-grid-stats .stats-item {
    display: block;
    font: bold italic 1.25rem 'Milo', sans-serif; /* 20px */
    line-height: 1.35em;
    line-height: calc(1.5em - 3px);
    text-align: center;
}

/* .section-grid-resources */

.section-grid-resources {
    margin-left: 0;
    margin-right: 0;
    -webkit-flex-direction: column;
            flex-direction: column;
    -webkit-flex-wrap: nowrap;
            flex-wrap: nowrap;
}

.section-grid-resources > li > p {
    font-size: 1.25rem; /* 20px */
    margin: 0 0 calc(1.5em - 3px);
}

.section-grid-resources img {
    display: inline-block;
}

.section-grid-resources .links-list {
    font-size: 1.125rem; /* 18px */
    margin: calc((1.5em - 3px) - ((1.5em - 3px) / 3)) 0;
}

@media screen and (min-width: 420px) {
    .section-grid-resources .links-list {
        -webkit-column-count: 2;
           -moz-column-count: 2;
                column-count: 2;
        -webkit-column-gap: 2.5rem;
           -moz-column-gap: 2.5rem;
                column-gap: 2.5rem;
    }
}

@media screen and (min-width: 768px) {
    .section-grid-resources .links-list {
        -webkit-column-count: 3;
           -moz-column-count: 3;
                column-count: 3;
    }
}

.section-grid-resources .icon {
    margin-bottom: 1.5rem;
}

.section-grid-resources h3 {
    display: inline-block;
    margin-left: 1.125rem;
    margin-bottom: 1rem;
    vertical-align: bottom;
}
