/* ----------------------------------------
CSS specific to the Major Project module
---------------------------------------- */

/* Hide the page title */
#column-main > h1:first-child {
    display: none;
}

/* ---- Page header ---- */
.project__page-header {
    box-sizing: border-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex: 0 1 auto;
    -webkit-box-flex: 0;
    flex: 0 1 auto;
    -ms-flex-direction: row;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Title */
.project__page-header .section-title {
    box-sizing: border-box;
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;

    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    max-width: 100%;
}

@media only screen and (min-width: 48em) {
    .project__page-header .section-title {
        -ms-flex: 1 1 auto;
        -webkit-box-flex: 1;
        flex: 1 1 auto;
    }
}

/* Social share bar */
.project__page-header .share-bar {
    border-bottom: none;
    box-sizing: border-box;
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;

    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    max-width: 100%;

    display: none;
}

@media only screen and (min-width: 48em) {
    #column-main .share-bar {
        display: none;
    }

    #column-main .project__page-header .share-bar {
        display: flex;
    }

    .project__page-header .share-bar {
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
        max-width: 33.333%;
    }
}

.project__page-header .share-btn:nth-child(1n + 3) {
    display: none;
}

.project__page-header .share-btn {
    margin-right: 20px;
}



/* ---- Template / view layout ---- */
.project__page-layout {

}

/*
The client observed there's was a "black line" to the right of the active slide
This is a pixel rounding issue that shows .34 of a pixel of the next slide, causing the line.
The fix is to make the flex columns whole numbers.
This is a near superfluous hack.
*/
@media only screen and (min-width: 48em) {
    .project__mainbar.col-sm-8 {
        -ms-flex-preferred-size: 66%;
        flex-basis: 66%;
        max-width: 66%;
    }
}

@media only screen and (min-width: 48em) {
    .project__sidebar.col-sm-4 {
        -ms-flex-preferred-size: 34%;
        flex-basis: 34%;
        max-width: 34%;
    }
}

.project__more-information {
    flex: 0 0 100%;
}

/* ---- Sidebar ---- */
@media screen and (min-width: 48em) {
    .project__page-layout .project__sidebar {
        padding-left: calc(18px + 1rem);
    }
}

@media only screen and (min-width: 62em) {
    .project__page-layout .project__sidebar {
        padding-left: calc(30px + 1rem);
    }
}

.project__sidebar-title {
    margin-bottom: 1.6rem;
}

/* ---- Highlight ---- */
.project__page-layout .highlight {
    padding: 40px 30px;
}

/* ---- Banner / media slider ---- */
.project__page-layout .banner--slider.slick-dotted.slick-slider {
    margin-bottom: 20px;
}

.project__page-layout .slick-slider .slick-dots {
    bottom: 56px;
}

/* Project banner image slider  */
@media only screen and (min-width: 62em) {
    .project__page-layout .banner--slider.slick-slider .slick-dots {
        bottom: 56px;
    }
}

.banner__image-caption {
    background-color: #fff;
    color: #525252;
    font-weight: bold;
    font-size: 75%;
    padding: 8px 0;
    margin-bottom: 0;
}

/* ---- Timeline ---- */
.project__page-layout .timeline__content__list {
    margin: 0;
}

.project__page-layout .timeline-list__item,
div.mainbar .project__page-layout .timeline-list__item {
    margin-bottom: 0;
}

.project__page-layout .timeline-list__item__status {
    margin: 0 0 20px;
}

div.mainbar .project__page-layout .timeline-list__item__title {
    margin-bottom: 0.4em;
}

.project__page-layout .timeline-list__item__description {
    margin-bottom: 0.5em;
}

/* ---- Expandos ---- */
.project__page-layout .expando-opener-heading {
    margin-bottom: 12px;
    background-color: #F2F2F2;
    padding: 8px;
    padding-left: 40px;
    border: 1px solid #F2F2F2;
    font-weight: normal;
}

@media screen and (max-width: 29.9375em) {
    .project__page-layout .expando-opener-heading {
        font-size: 1.8rem;
        line-height: normal;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.project__page-layout .expando-opener-heading:hover,
.project__page-layout .expando-opener-heading:focus {
    color: #111;
}

.project__page-layout .expando-opener-heading.expanded {
    margin-bottom: 0;
}

.project__page-layout .expando-opener-heading:after {
    left: 19.5px;
}

.project__page-layout .expando-opener-heading:before {
    left: 11px;
}

.project__page-layout .expando-opener-heading:hover:after,
.project__page-layout .expando-opener-heading:hover:before,
.project__page-layout .expando-opener-heading:focus:after,
.project__page-layout .expando-opener-heading:focus:before {
    background-color: #111;
}

.project__page-layout .expando {
    margin-top: 0;
    margin-bottom: 1em;
    display: block;
    border: 1px solid #F2F2F2;
    padding: 16px 16px 16px 32px;
}

.project__page-layout .expando-closer-para {
    margin-bottom: 0;
}

.project__page-layout .expando-closer-link {
    color: #26A2B3;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
}

/* ---- Project Key Dates ---- */
.project__documents {
    list-style-type: none;
    padding: 0;
}

.project__documents__item {
    display: block;
    margin-bottom: 1em;
}

/* ---- Project Key Dates ---- */
.project__date-item {
    margin-bottom: 1em;
}

.project__date-item__description {
    display: block;
}


/* ---- Project Contact ---- */
.project__contact-item {
    margin-bottom: 1em;
}

.project__contact-item__title,
.project__date-item__date {
    display: block;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 75%;
}

.project__contact-item__value {
    display: block;
}

/* ---- Enews ---- */
.project__enews {
    border-bottom: 4px solid #028293;
}
.project__enews__title {
    text-align: center;
}

.project__enews__cta {
    text-align: center;
}


/* ---- Map ---- */
.project__map.highlight {
    padding: 0;
}

.project__map__widget__img {
    width: 100%;
    height: auto;
}

.project__map__content {
    margin: 0 0 1.5rem;
    background: #F2F2F2;
	padding: 30px;
	margin-bottom: 15px;
    clear: both;
}

.project__map__content .project__sidebar-title {
    line-height: 1;
}

/* ---- Slider Banner ---- */
.project__page-layout .banner__item__video video {
    display: block;
}

.project__page-layout .slick-prev,
.project__page-layout .slick-next {
    background-color: rgba(00, 00, 00, 0.5) !important;
    height: 48px !important;
    display: none !important;
}

@media screen and (min-width: 48em) { /* 768px */
    .project__page-layout .banner--slider .slick-prev:after {
        content: none !important;
    }

    .project__page-layout .slick-prev,
    .project__page-layout .slick-next {
        display: block !important;
    }
}

@media screen and (min-width: 100em) {/* 1600px */
    .project__page-layout .banner--slider .slick-prev,
    .project__page-layout .banner--slider .slick-next {
        bottom: calc(50% + 10px) !important;
    }
}



/* -- Tile -- */
.project-tile__img.project-tile__archived:after {
    content: "Archived";
    background-color: #484848;
    padding: 0.5em;
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
}
.project-tile__img.project-tile__completed:after {
    content: "Completed";
    background-color: #484848;
    padding: 0.5em;
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
}

.project-tile__img.project-tile__consultation:after {
    content: "Consultation Closed";
}
