.close:focus,
.close:hover,
button.close {
    opacity: 1;
    color: #9dbaca
}

.nav-pills>li>a,
.work-1st-img {
    transition: all .3s ease
}

html {
    position: relative;
    min-height: 100%
}

body {
    margin-bottom: 195px;
    margin-top: 90px
}

body.modal-open {
    margin-top: 0
}

.main-content {
    margin-top: 120px
}

.active-navbar {
    background: -moz-linear-gradient(top, rgba(157, 186, 202, .52) 0, rgba(255, 255, 255, 0) 70%);
    background: -webkit-linear-gradient(top, rgba(157, 186, 202, .52) 0, rgba(255, 255, 255, 0) 70%);
    background: linear-gradient(to bottom, rgba(157, 186, 202, .52) 0, rgba(255, 255, 255, 0) 70%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#859dbaca', endColorstr='#00ffffff', GradientType=0);
    pointer-events: none
}

.nav-pills {
    text-align: center;
    margin-bottom: 20px
}

.nav-pills>li {
    float: none;
    display: inline-block
}

.nav-pills>li+li {
    margin-left: 0
}

.nav-pills>li>a {
    border-radius: 0;
    border: 1px solid #0f2f3e;
    color: #fff;
    padding: 7px 15px
}

.nav-pills>li>a.first {
    border-radius: 4px 0 0 4px;
    border-width: 1px 0 1px 1px
}

.nav-pills>li>a.center {
    margin: 0 -4px
}

.nav-pills>li>a.center.med {
    margin-right: 0;
    border-right: none
}

.nav-pills>li>a.last {
    border-radius: 0 4px 4px 0;
    border-width: 1px 1px 1px 0
}

.nav>li>a:focus,
.nav>li>a:hover {
    background-color: #9dbaca
}

.modal-content,
.nav-pills>li.active>a,
.nav-pills>li.active>a:focus,
.nav-pills>li.active>a:hover,
button.close {
    background-color: #0f2f3e
}

.portfolio .no-pad {
    padding: 0px
}

.modal-open .modal {
    overflow-y: hidden
}

.modal-content {
    border: none;
    color: #9dbaca;
    height: 100%
}

.modal-header {
    border-bottom: none;
    position: absolute;
    width: 100%;
    padding: 30px;
    font-size: 30px
}

button.close {
    font-size: 50px;
    text-shadow: none;
    border-radius: 50%;
    width: 57px;
    padding-bottom: 5px
}

.footer,
.legend-img {
    position: absolute;
    width: calc(100% - 10px);
}

.detail-holder {
    height: 100%

}

.detail-holder img.img-responsive {
   height: 93%;
    width: 100%;
    object-fit: contain; /* This ensures the image fits without cropping */
    margin: 30px auto 0;
}

.legend-img {
    display: none;
    bottom: -1px;
    line-height: 1;
    padding: 7px;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    font-weight: 200
}

.work-1st-img:hover .legend-img {
    display: block;
    background-color: #0f2f3e
}

.about {
    text-shadow: 0 1px 1px rgba(0, 0, 0, .82)
}
.about .fa.fa-university {
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.82);
}

.about p {
    font-size: 18px;
    font-weight: 200
}

.contactos {
    margin: 30px 0
}

.contactos a {
    color: #fff;
}

.contactos h3 {
    margin-bottom: 0;
}

.contactos h4 {
    margin-top: 0;
}

.contactos hr {
    display: none
}

.footer {
    bottom: 0;
    height: 190px
}

@media screen and (max-width:767px) {
    .we-do {
        margin-bottom: 60px
    }
    .contactos {
        margin-top: 0
    }
    .contactos .contacto {
        margin-bottom: 30px
    }
    .contactos hr {
        display: block
    }
}

@media screen and (max-width:480px) {
    .about h2 {
        font-size: 18px
    }
    .about .fa-3x {
        font-size: 2em
    }
    footer [class*=col-] {
        height: 95px
    }
    .nav-pills>li>a,
    .nav-pills>li>a.center,
    .nav-pills>li>a.center.med,
    .nav-pills>li>a.first,
    .nav-pills>li>a.last {
        border-radius: 4px!important;
        border: 1px solid #0f2f3e!important;
        margin: 0 5px 5px!important
    }
}