/* html { 
    overflow-y: auto; 
} */

body { max-width: 900px; margin: auto; color: #1f1f1f; overflow: auto;  }

body, button, input, select, textarea { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
.is-family-primary { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
.is-family-secondary { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
.is-family-sans-serif { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }

h1, h2, h3, h4 {
    font-family: 'Roboto Condensed', sans-serif;
}

h1 {
    font-size: 26px;
    letter-spacing: -1.1px;
    line-height: 30px;
    /* border-bottom: 1px solid #97b0d8; */
    height: 35px;
}

nav.navbar {
    border-bottom: 1px solid #97b0d8;
}

nav .navbar-brand .navbar-item {
    padding-left: 0;
}

nav .navbar-brand .navbar-item img {
    width:365px; height:auto;
}

nav .navbar-brand .navbar-burger {
    top: 12px; /* needed due to larger logo */
}

nav .navbar-item, nav .navbar-link {
    padding: 5px 13.9px;
}

nav .navbar-menu .navbar-item {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    color: #4F4F4F;
    align-self: flex-end;
}

nav .navbar-menu .navbar-item:hover {
    color: #97b0d8;
}

nav .navbar-menu .navbar-item:last-child {
    padding-right: 0;
}

nav .navbar-menu a.navbar-item:hover {
    background-color: transparent;
}

.navbar-item img {
    max-height: inherit;
}

.navbar-end {
    margin-bottom: 2px;
    margin-right: 0;
}

.navbar-end .sep {
    width: 1px;
    align-self: flex-end;
}

.tabs.subnav {
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
}

.tabs.subnav a:hover {
    border-bottom-color: transparent;
    color: #97b0d8;
}

.icon-link {
    margin-right: 5px;
}


/* ********************************************************************* */

.m-col-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.m-one-third {
    width: 31.2%;
}

.m-one-half {
    width: 48.5%;
}

.m-full {
    width: 100%;
}



/* ********************************************************************* */

.m-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.m-column {
    flex: 50%;
    max-width: 50%;
}

.m-column.wide {
    flex: 100%;
    max-width: 100%;
}

.m-column.narrow {
    flex: 33%;
    max-width: 31.3%;
}

.m-column.narrow.left {
    margin-right: 1.5%;
}

.m-column.narrow.middle {
    margin-left: 1.5%;
    margin-right: 1.5%;
}

.m-column.narrow.right {
    margin-left: 1.5%;
}
/* ********************************************************************* */

.m-column .m-box, .m-box {
    border: 1px solid #97b0d8;
    position: relative;
    margin-top: 30px;
    margin-bottom: 0;
    padding: 15px;
}

.portfolio.m-col-container .m-box {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.portfolio.m-col-container .m-box:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}

.m-filter-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e4e4e4;
}

.m-filter-container .left {
    flex: 50%;
}

.m-filter-container .right {
    flex: 50%
}

.m-column .m-box.margin-right {
    margin-right: 15px;
}

.m-column .m-box.margin-left {
    margin-left: 15px;
}

.m-column .m-box .m-box-title, .m-box-title {
    color: #5882ac;
    font-size: 1.2rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    position: absolute;
    top: -16px;
    left: 10px;
    padding: 0 5px;
    background-color: #fff;
    letter-spacing: -0.75px;
}

h2.m-box-title {
    font-size: 1rem;
    top: -12px;
}

.m-column .m-box p, .m-box p {
    font-size: 0.80rem;
    line-height: 1.1rem;
    margin-bottom: 0.5rem;
}

.m-column .m-box p:last-child {
    margin-bottom: 0;
}

.m-column .m-box .slideshow {
    min-height: 310px;
}

.m-column .m-box.featured {
    padding: 7px;
}

.m-column .m-box.contact-us {
    padding-top: 14px;
    padding-bottom: 7px;
    text-align: center;
}

.m-column .m-box.contact-us a {
    display: flex;
}

.m-box img.is-pulled-left, .m-box img.is-pulled-left {
    margin-right:10px;
    width: 115px;
}

.m-box .box-content.news p {
    margin-bottom: 0.75rem;
}

.m-box .box-content.news p a {
    text-decoration: underline;
}


h1.mtitle {
    background-position: right;
    background-repeat: no-repeat;
}

h1.mtitle span {
    padding-right: 20px;
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 75%, rgba(255,255,255,0) 100%);
    padding-top: 1px;
    padding-bottom: 1px;
}

h1.mtitle a {
    color: inherit;
    padding-top: 2px;
    padding-bottom: 5px;
    display: block;
}

h1.mtitle.company {
    background-image: url(/_img/titles/title-company.jpg);
}

h1.mtitle.portfolio {
    background-image: url(/_img/titles/title-portfolio.jpg);
}

h1.mtitle.news {
    background-image: url(/_img/titles/title-news.jpg);
}

h1.mtitle.capabilities {
    background-image: url(/_img/titles/title-capabilities.jpg);
}

h1.mtitle.contact {
    background-image: url(/_img/titles/title-contact.jpg);
}


figure.image.is-405x269 {
    width: 405px;
    /* height: 269px; */
}

figure.image.is-280x186 {
    width: 280px;
    /* height: 186px; */
}

figure.image.is-405w {
    width: 405px;
    height: auto;
}

figure.image.is-280w {
    width: 280px;
    height: auto;
}

figure figcaption {
    font-size: 0.7rem;
    line-height: 0.75rem;
    margin-bottom: 0.5rem;
}

.image.is-pulled-left {
    margin-right: 1rem;
}

.image.is-pulled-right {
    margin-left: 1rem;
}

.portfolio nav.pagination {
    width: 100%;
    margin-bottom: 10px;
}

.portfolio nav.pagination .pagination-link.is-current {
    background-color: #97b0d8;
    border-color: #97b0d8;
}

.portfolio-items {
    display: flex;
    flex-flow: row wrap;
}

.portfolio-items .item {
    padding: 10px 5px;
    border-bottom: 1px solid #97b0d8;
    font-size: 0.75rem;
    width: 50%;
    min-height: 130px;
}

.portfolio-items .item span {
    display: block;
}


#filterform label {
    font-size: 0.85rem;
}

#filterform ul {
    column-count: 3;
}

#filterform ul li {
    padding: 5px 0;
}

#filterform ul li input[type=checkbox] {
    transform: scale(1.25);
    -webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.record-count {
    font-size: 0.75rem;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    padding: 8px;
}

.thumb-grid a { 
    display: flex;
}

.thumb-grid a img { 
    width: 100%;
    height: 100%; 
}

.year {
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.year:first-child {
    margin-top: 0;
}


.carousel-title, .carousel-title a {
    font-size: 12px;
    color: black;
}

.carousel-title .date {
    font-weight: bold;
}

.carousel .caption {
    font-size: 12px;
    text-align: center;
    height: 34px;
}

.carousel .item {
    cursor: pointer;
}

.carousel-history {
    width: 405px;
    margin-left: 1rem;
}

.carousel-history .caption {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.carousel-people {
    width: 405px;
    margin-left: 1rem;
}

.carousel-people .caption {
    font-size: 0.7rem;
}

.carousel.details {
    width: 420px;
}

.carousel.details .slick-carousel-nav .item {
    outline: none;
}

.carousel.details .slick-carousel-nav .item .image {
    border: 1px solid #ccc;
    margin-left: 3px;
    margin-right: 3px;
}

.carousel.details .slick-carousel-nav .item.slick-current .image {
    border: 3px solid rgba(255, 0, 0, 0.5);
}


.related-links h2 {
    margin-bottom: 0.25rem;
}

.related-links ul {
    margin-bottom: 1rem;
}

.related-links li {
    font-size: 0.85rem;
    padding: 4px;
    border-bottom: 1px dotted #ccc;
}

.related-links li:last-child {
    border-bottom: none;
}

#footer {
    font-size: 0.7rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}



.pswp * {
    color: #000 !important;
}

.pswp__bg {
    background-color: #fff;
}

.pswp__logo {
    position: absolute;
    top: 5px;
    left: 5px;    
    z-index: 20;
}

.pswp__title {
    position: absolute;
    /* bottom: 55px; */
    top: 44px;
    text-align: center;
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px;
}

.pswp__button--close, .pswp__button--share, .pswp__button--fs, .pswp__button--zoom {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

.pswp__ui--fit .pswp__top-bar, .pswp__ui--fit .pswp__caption {
    background-color: rgba(255, 255, 255, 0.7);
}

/*
.pswp__button--arrow--left, .pswp__button--arrow--right {
    top: auto;
    bottom: 30px
}
*/

.pswp-ui .pswp__caption .pswp__counter {
    bottom: 0;
    left: auto;
    right: 0;
    color: #000;
}

.pswp__ui--fit .pswp__top-bar, .pswp__ui--fit .pswp__caption {
    color: #000;
}

.pswp__caption__center {
    text-align: center;
    max-width: 80%;
}

.pswp__counter {
    left: auto;
    transform: none;
    bottom: 5px;
    top: auto;
    right: 4px;
    z-index: 10;
}

.pswp__caption {
    background-color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: 40px;
}

.pswp__top-bar {
    background-color: #fff !important;
}


button.silver {
    border: solid 1px #d6d6d6;
    background-color: #f4f5f5;
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#f4f5f5),color-stop(100%,#dfdddd));
    background-image: -webkit-linear-gradient(top,#f4f5f5,#dfdddd);
    background-image: -moz-linear-gradient(top,#f4f5f5,#dfdddd);
    background-image: -ms-linear-gradient(top,#f4f5f5,#dfdddd);
    background-image: -o-linear-gradient(top,#f4f5f5,#dfdddd);
    background-image: linear-gradient(top,#f4f5f5,#dfdddd);
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5,endColorstr=#dfdddd);
}

@media (max-width: 1024px) {
    nav .navbar-item, nav .navbar-link {
        padding-top: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #EAEAEA;
    }

    nav .navbar-brand .navbar-item {
        border-bottom: none;
    }

    nav .navbar-item:last-child, nav .navbar-link:last-child {
        border-bottom: none;
    }

}


@media (max-width: 768px) {

    body {
        margin-left: 10px;
        margin-right: 10px;
    }

    nav .navbar-brand .navbar-item {
        padding-top: 0;
        padding-bottom: 0;
    }

    nav .navbar-brand .navbar-item img {
        width:280px;
    }

    nav .navbar-brand .navbar-burger {
        top: 0; /* needed due to larger logo */
    }
    
    .navbar-end {
        margin-bottom: 0;
        margin-right: 0;
    }

    .tabs.subnav li a:first-child {
        padding-left: 0;
    }

    .m-one-third, .m-one-half {
        flex: 100%;
    }

    /* ********************************************** */

    .m-column {
        flex: 100%;
        max-width: 100%;
    }

    .m-column .m-box {
        margin-bottom: 0;
    }

    .m-column .m-box.margin-right {
        margin-right: 0;
    }
    
    .m-column .m-box.margin-left {
        margin-left: 0;
    }

    .m-column.narrow {
        max-width: none;
        flex: 100%;
    }

    /* ********************************************** */

    .portfolio-items .item {
        width: 100%;
    }

    .carousel-people {
        width: auto;
        margin-left: 0;
    }

    .carousel-people.is-pulled-right {
        float: none!important;
    }

    .carousel-history {
        width: auto;
        margin-left: 0;
    }

    .carousel-history.is-pulled-right {
        float: none!important;
    }

    .carousel.details {
        width: auto;
    }

    figure.image.is-405x269 {
        width: auto;
    }

    figure.image.is-280w, figure.image.is-405w {
        width: 100%;
    }

    .image.is-pulled-left {
        margin-right: 0;
    }
    
    .image.is-pulled-right {
        margin-left: 0;
    }

    #footer .m-column.left {
        width: 100%;
        display: block;
        flex: none;
        text-align: center;
    }

    #footer .m-column.has-text-right {
        margin-top: 8px;
        width: 100%;
        display: block;
        flex: none;
        text-align: center !important;
    }

}


@media (max-width: 500px) {

    .thumb-grid img {
        width: 153px;
    }

}