
/* © Gonzalo Emanuel Castillo */

body {
    font-family: 'SF Pro Text', Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #121212;
}

body.black-skin {
    background: #1a1a1a;
    color: #fff;
}

a {
    color: #121212;
    text-decoration: none;
    -webkit-transition: .4s ease-in;
    -moz-transition: .4s ease-in;
    -ms-transition: .4s ease-in;
    -o-transition: .4s ease-in;
    transition: .4s ease-in;
}

a:hover,
body.black-skin a:hover {
    color: #808080;
    text-decoration: none;
    -webkit-transition: .4s ease-out;
    -moz-transition: .4s ease-out;
    -ms-transition: .4s ease-out;
    -o-transition: .4s ease-out;
    transition: .4s ease-out;
}

body.black-skin a {
    color: #fff;
}

::-moz-selection {
    color: #fff;
    background-color: #000;
}

::selection {
    color: #fff;
    background-color: #000;
}

body.black-skin ::-moz-selection {
    color: #000;
    background-color: #fff;
}

body.black-skin ::selection {
    color: #000;
    background-color: #fff;
}

small,
.small {
    color: #808080;
}

.text-serif {
    font-family: "Bodoni MT", Didot, "Didot LT STD", "Book Antiqua", Garamond, "Times New Roman", serif;
}


/* PRELOADER */

body {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
}

body.black-skin #preloader {
    background-color: #1a1a1a;
}

#status {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -20px;
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 100%;  
    -webkit-animation: sk-scaleout 2s infinite ease;
    animation: sk-scaleout 2s infinite ease;
}

body.black-skin #status {
    background-color: #fff;
}

@-webkit-keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0)
    }
    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    100% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
        opacity: 0;
    }
}


/* TYPOGRAPHY */

@font-face {
    font-family: 'SF Pro Display';
    font-weight: 200;
    font-style: normal;
    src: url('../fonts/thin/sf-pro-display-thin.eot');
    src: url('../fonts/thin/sf-pro-display-thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/thin/sf-pro-display-thin.woff2') format('woff2'),
         url('../fonts/thin/sf-pro-display-thin.woff') format('woff'),
         url('../fonts/thin/sf-pro-display-thin.ttf') format('truetype'),
         url('../fonts/thin/sf-pro-display-thin.svg#sf-pro-display-thin') format('svg');
}

@font-face {
    font-family: 'SF Pro Display';
    font-weight: 300;
    font-style: normal;
    src: url('../fonts/light/sf-pro-display-light.eot');
    src: url('../fonts/light/sf-pro-display-light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/light/sf-pro-display-light.woff2') format('woff2'),
         url('../fonts/light/sf-pro-display-light.woff') format('woff'),
         url('../fonts/light/sf-pro-display-light.ttf') format('truetype'),
         url('../fonts/light/sf-pro-display-light.svg#sf-pro-display-light') format('svg');
}

@font-face {
    font-family: 'SF Pro Display';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/regular/sf-pro-display-regular.eot');
    src: url('../fonts/regular/sf-pro-display-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/regular/sf-pro-display-regular.woff2') format('woff2'),
         url('../fonts/regular/sf-pro-display-regular.woff') format('woff'),
         url('../fonts/regular/sf-pro-display-regular.ttf') format('truetype'),
         url('../fonts/regular/sf-pro-display-regular.svg#sf-pro-display-regular') format('svg');
}

@font-face {
    font-family: 'SF Pro Display';
    font-weight: 700;
    font-style: normal;
    src: url('../fonts/bold/sf-pro-display-bold.eot');
    src: url('../fonts/bold/sf-pro-display-bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/bold/sf-pro-display-bold.woff2') format('woff2'),
         url('../fonts/bold/sf-pro-display-bold.woff') format('woff'),
         url('../fonts/bold/sf-pro-display-bold.ttf') format('truetype'),
         url('../fonts/bold/sf-pro-display-bold.svg#sf-pro-display-bold') format('svg');
}

@font-face {
    font-family: 'SF Pro Text';
    font-weight: 300;
    font-style: normal;
    src: url('../fonts/light/sf-pro-text-light.eot');
    src: url('../fonts/light/sf-pro-text-light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/light/sf-pro-text-light.woff2') format('woff2'),
         url('../fonts/light/sf-pro-text-light.woff') format('woff'),
         url('../fonts/light/sf-pro-text-light.ttf') format('truetype'),
         url('../fonts/light/sf-pro-text-light.svg#sf-pro-text-light') format('svg');
}

@font-face {
    font-family: 'SF Pro Text';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/regular/sf-pro-text-regular.eot');
    src: url('../fonts/regular/sf-pro-text-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/regular/sf-pro-text-regular.woff2') format('woff2'),
         url('../fonts/regular/sf-pro-text-regular.woff') format('woff'),
         url('../fonts/regular/sf-pro-text-regular.ttf') format('truetype'),
         url('../fonts/regular/sf-pro-text-regular.svg#sf-pro-text-regular') format('svg');
}

@font-face {
    font-family: 'SF Pro Text';
    font-weight: 700;
    font-style: normal;
    src: url('../fonts/bold/sf-pro-text-bold.eot');
    src: url('../fonts/bold/sf-pro-text-bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/bold/sf-pro-text-bold.woff2') format('woff2'),
         url('../fonts/bold/sf-pro-text-bold.woff') format('woff'),
         url('../fonts/bold/sf-pro-text-bold.ttf') format('truetype'),
         url('../fonts/bold/sf-pro-text-bold.svg#sf-pro-display-bold') format('svg');
}


/* HEADER */

header {
    position: fixed;
    vertical-align: top;
    margin-top: 50px;
}

header .logo {
    margin-bottom: 50px;
    display: block;
    width: 90px;
    height: 90px;
    background-size: 90px 90px;
    background-repeat: no-repeat;
    background-image: url("../img/logo.svg");
    opacity: 1;
    -webkit-transition: .4s ease-in;
    -moz-transition: .4s ease-in;
    -ms-transition: .4s ease-in;
    -o-transition: .4s ease-in;
    transition: .4s ease-in;
}

body.black-skin header .logo {
    background-image: url("../img/logo-white.svg");
}

header .logo:hover {
    opacity: 0.6;
    -webkit-transition: .4s ease-out;
    -moz-transition: .4s ease-out;
    -ms-transition: .4s ease-out;
    -o-transition: .4s ease-out;
    transition: .4s ease-out;
}

header .nav .nav-item {
    padding-bottom: 13px;
}

header .nav .nav-item .nav-link {
    padding: 0;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 300;
}

header .nav .nav-item .nav-link:focus,
header .nav .nav-item .nav-link:hover {
    text-decoration: none;
}

header .nav .nav-item .nav-link.active {
    font-weight: 700;
}

header .nav .nav-item .collapse-content {
    padding-top: 13px;
    padding-left: 10px;
    max-width: 140px;
    border: none;
}

header .nav .nav-item .collapse-content .collapse-item {
    padding-bottom: 6px;
    font-size: 0.88rem;
}

header .nav .nav-item .collapse-content > .collapse-item:last-child {
    padding-bottom: 0;
}


/* TOGGLE MENU */

.overlay { 
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    height: 100%;
    width: 0;
    overflow-x: hidden;
    background-color: rgba(255,255,255,.9);
    -webkit-transition: .6s ease-out;
    -moz-transition: .6s ease-out;
    -ms-transition: .6s ease-out;
    -o-transition: .6s ease-out;
    transition: .6s ease-out;
}

body.black-skin .overlay {
    background-color: rgba(26,26,26,.9);
}

.overlay .overlay-content {
    position: relative;
    top: 30%;
    width: 100%;
    text-align: center;
}

.overlay .overlay-content .nav .nav-item {
    padding-top: 10px;
    padding-bottom: 10px;
}


.overlay .overlay-content .nav .nav-item a {
    font-size: 1.8rem;
    font-weight: 400;
}

.overlay .overlay-content .nav .nav-item .collapse-content .collapse-item a {
    font-size: 1.4rem;
    font-weight: 200;
}

.overlay .close-menu-btn {
    position: absolute;
    top: 60px;
    right: 30px;
    font-family: 'SF Pro Display', Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
}

.open-menu-btn {
    margin-top: 86px;
    display: none;
    width: 25px;
    height: 18px;
    background-size: 25px 18px;
    background-repeat: no-repeat;
    background-image: url("../img/menu.svg");
}

body.black-skin .open-menu-btn {
    background-image: url("../img/menu-white.svg");
}


/* FOOTER */

footer {
    position: fixed;
    vertical-align: bottom;
    bottom: 46px;
}

footer p {
    margin-bottom: 0;
    font-size: 0.75rem;
}

footer .social-networks {
    margin-bottom: 10px;
}

footer .social-networks i {
    margin-right: 6px;
}


/* MAIN */

main {
    margin-top: 50px;
}

main .card {
    background: none;
    border: none;
    border-radius: 0;
}

main .card-columns {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 50px;
    -moz-column-gap: 50px;
    column-gap: 50px;
}

main .card-columns .card {
    margin-bottom: 50px;
}

main .about {
    margin-bottom: 50px;
}

main .about .row {
    margin-top: 30px;
}

main .about .h2 {
    margin-bottom: 1rem;
    font-family: 'SF Pro Display', Helvetica Neue, Helvetica, Arial, sans-serif;
}

main .about p,
main .about ul {
    margin-bottom: 0;
}

main .project {
    margin-bottom: 50px;
}

main .project .project-text {
    padding-top: 70px;
    padding-bottom: 70px;
}

main .project .project-text p {
    margin-bottom: 0;
    font-family: 'SF Pro Display', Helvetica Neue, Helvetica, Arial, sans-serif;
    font-weight: 200;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 2px;
}


/* CONTACT FORM */

.contact {
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 0;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
    margin-bottom: 30px;
}

textarea {
    height: 100%;
    min-height: 120px;
    max-height: 250px;
}

.form-control {
    padding: 14px 14px 12px 14px;
    color: #121212;
    background-color: #fff;
    border: 3px solid rgba(0,0,0,.5);
    border-radius: 0;
}

.form-control:focus {
    color: #121212;
    background-color: #fff;
    border-color: #121212;
}

.form-control::-webkit-input-placeholder {
    color: #121212;
    opacity: .5;
}

.form-control::-moz-placeholder {
    color: #121212;
    opacity: .5;
}

.form-control:-ms-input-placeholder {
    color: #121212;
    opacity: .5;
}

.form-control::placeholder {
    color: #121212;
    opacity: .5;
}

.btn-custom {
    padding: 14px 14px 12px 14px;
    color: #121212;
    background-color: #fff;
    border-radius: .0em;
    border: 3px solid #121212;
}

.btn-custom:hover {
    color: #fff;
    background-color: #121212;
}

.btn-custom.focus,
.btn-custom:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.btn-primary.active,
.btn-primary:active,
.show > .btn-primary.dropdown-toggle {
    color: #121212;
    background-color: #fff;
    border: 3px solid #121212;
}

.btn.disabled,
.btn:disabled {
    opacity: .5;
}

.alert {
    margin-top: 25px;
    border-radius: .0em;
}

.alert-success {
    background-color: #72c663;
    color: #fff;
    border: none;
}

.alert-danger {
    background-color: #d9534f;
    color: #fff;
    border: none;
}

.close {
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    text-shadow: none;
    opacity: 1;
}

.close:focus, .close:hover {
    color: #fff;
    opacity: .8;
}

button.close {
    margin-top: -1.8px;
}


/* PHOTO HOVER */

.image a {
    position: relative;
    z-index: 1;
    display: block;
    border: none;
}

.image img {
    width: 100%;
    height: auto;
}

.image a:before {
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    display: block;
    height: 100%;
    background-color: rgba(255,255,255,.9);
}

.image a:after {
    content: "...";
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -47px;
    margin-top: -47px;
    display: block;
    height: 94px;
    width: 94px;
    text-align: center;
    -webkit-transform: scale(.5);
    -moz-transform: scale(.5);
    -ms-transform: scale(.5);
    -o-transform: scale(.5);
    transform: scale(.5);
}

.image a:before,
.image a:after {
    visibility: hidden;
    opacity: 0;
    -webkit-transition: .25s .15s ease-in, visibility 0s .4s;
    -moz-transition: .25s .15s ease-in, visibility 0s .4s;
    -ms-transition: .25s .15s ease-in, visibility 0s .4s;
    -o-transition: .25s .15s ease-in, visibility 0s .4s;
    transition: .25s .15s ease-in, visibility 0s .4s;
}

.image:hover a:before,
.image:hover a:after,
.image.hover a:before {
    visibility: visible;
    opacity: 1;
    -webkit-transition: .3s .01s ease-out, visibility 0s 0s;
    -moz-transition: .3s .01s ease-out, visibility 0s 0s;
    -ms-transition: .3s .01s ease-out, visibility 0s 0s;
    -o-transition: .3s .01s ease-out, visibility 0s 0s;
    transition: .3s .01s ease-out, visibility 0s 0s;
}

.image:hover a:after {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.image a:after {
    display: none;
}

.image-text {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 30px 35px 35px;
}

.image-text:hover .image-header .title,
.image-text:hover .image-footer,
.image:hover + .image-text .image-header .title,
.image:hover + .image-text .image-footer {
    opacity: 1;
}

.image-text:hover .image-header .title,
.image:hover + .image-text .image-header .title {
    top: 0;
}

.image-text:hover .image-footer > p,
.image:hover + .image-text .image-footer > p {
    bottom: 0;
}

.image-text:hover .image-header .title,
.image:hover + .image-text .image-header .title {
    -webkit-transition: .2s, top .3s .2s, opacity .2s .25s;
    -moz-transition: .2s, top .3s .2s, opacity .2s .25s;
    -ms-transition: .2s, top .3s .2s, opacity .2s .25s;
    -o-transition: .2s, top .3s .2s, opacity .2s .25s;
    transition: .2s, top .3s .2s, opacity .2s .25s;
}

.image-text:hover .image-footer,
.image:hover + .image-text .image-footer,
.image-text:hover .image-footer > p,
.image:hover + .image-text .image-footer > p {
    -webkit-transition: .2s, bottom .3s .1s, opacity .2s .15s;
    -moz-transition: .2s, bottom .3s .1s, opacity .2s .15s;
    -ms-transition: .2s, bottom .3s .1s, opacity .2s .15s;
    -o-transition: .2s, bottom .3s .1s, opacity .2s .15s;
    transition: .2s, bottom .3s .1s, opacity .2s .15s;
}

.image-header {
    display: inline-block;
    background-color: transparent;
}

.image-header .title,
.image-footer {
    position: relative;
    z-index: 1;
    float: left;
}

.image-header .title {
    top: -20px;
    font-family: 'SF Pro Display', Helvetica Neue, Helvetica, Arial, sans-serif;
    font-weight: 700;
    -webkit-transition: .2s, top .4s 0s, opacity .3s 0s;
    -moz-transition: .2s, top .4s 0s, opacity .3s 0s;
    -ms-transition: .2s, top .4s 0s, opacity .3s 0s;
    -o-transition: .2s, top .4s 0s, opacity .3s 0s;
    transition: .2s, top .4s 0s, opacity .3s 0s;
}

.image-footer > p {
    position: relative;
    bottom: -20px;  
}

.image-footer,
.image-footer > p {
    -webkit-transition: .2s, bottom .4s 0s, opacity .3s 0s;
    -moz-transition: .2s, bottom .4s 0s, opacity .3s 0s;
    -ms-transition: .2s, bottom .4s 0s, opacity .3s 0s;
    -o-transition: .2s, bottom .4s 0s, opacity .3s 0s;
    transition: .2s, bottom .4s 0s, opacity .3s 0s;
}

.image-header .title,
.image-footer {
    position: relative;
    opacity: 0;
}

.image-footer {
    position: absolute;
    bottom: 15px;
    padding-right: 35px;
}

.image-footer p {
    color: #121212;
    font-size: 0.9rem;
}

body.black-skin .image-footer p {
    font-weight: 300;
    color: #fff;
}


/* FANCYBOX SKIN */

.fancybox-bg {
    background: #fff;
    transition-timing-function: ease-in;
}

body.black-skin .fancybox-bg {
    background: #1a1a1a;
}

.fancybox-is-open .fancybox-bg {
    opacity: .9;
    transition-timing-function: ease-out;
}

.fancybox-button {
    color: #fff;
}

.fancybox-error,
.fancybox-iframe {
    border: 3px solid #000;
}

.fancybox-error p {
    color: #121212;
    text-align: center;
}

.fancybox-button,
.fancybox-infobar__body {
    background: rgba(0,0,0,1);
    -webkit-transition: .4s ease-in;
    -moz-transition: .4s ease-in;
    -ms-transition: .4s ease-in;
    -o-transition: .4s ease-in;
    transition: .4s ease-in;
}

.fancybox-button:hover:not([disabled]) {
    color: #fff;
    background: rgba(0,0,0,.8);
    -webkit-transition: .4s ease-out;
    -moz-transition: .4s ease-out;
    -ms-transition: .4s ease-out;
    -o-transition: .4s ease-out;
    transition: .4s ease-out;
}

body.black-skin .fancybox-button:hover:not([disabled]) {
    background: rgba(0,0,0,.2);
}

.fancybox-button:after,
.fancybox-button:before,
.fancybox-show-nav .fancybox-arrow {
    opacity: 1;
}

.fancybox-show-nav .fancybox-arrow[disabled] {
    opacity: .8;
}

body.black-skin .fancybox-show-nav .fancybox-arrow[disabled] {
    opacity: .2;
}

.fancybox-arrow:after {
    background-color: rgba(0,0,0,1);
    -webkit-transition: .4s ease-in;
    -moz-transition: .4s ease-in;
    -ms-transition: .4s ease-in;
    -o-transition: .4s ease-in;
    transition: .4s ease-in;
}

.fancybox-arrow:not([disabled]):hover:after {
    background-color: rgba(0,0,0,.8);
    -webkit-transition: .4s ease-out;
    -moz-transition: .4s ease-out;
    -ms-transition: .4s ease-out;
    -o-transition: .4s ease-out;
    transition: .4s ease-out;
}

body.black-skin .fancybox-arrow:not([disabled]):hover:after {
    background-color: rgba(0,0,0,.2);
}

.fancybox-arrow--right {
    right: 34px;
}

.fancybox-arrow--left {
    left: 34px;
}


/* BACK TO TOP */

.back-to-top {
    position: fixed;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    bottom: 50px;
    right: 0;
    left: 0;
    margin-right: auto;
    margin-left: auto;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    cursor: pointer;
    opacity: 0;
    -webkit-transition: opacity .8s ease-out;
    -moz-transition: opacity .8s ease-out;
    -ms-transition: opacity .8s ease-out;
    -o-transition: opacity .8s ease-out;
    transition: opacity .8s ease-out;
}

body.black-skin .back-to-top {
    background-color: #fff;
}

.back-to-top .icon-top {
    width: 13px;
    height: 8px;
    background-size: 13px 8px;
    background-repeat: no-repeat;
    background-image: url("../img/top.svg");
}

body.black-skin .back-to-top .icon-top {
    background-image: url("../img/top-black.svg");
}

.back-to-top.show {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: opacity .8s ease-in, transform .4s ease-out;
    -moz-transition: opacity .8s ease-in, transform .4s ease-out;
    -ms-transition: opacity .8s ease-in, transform .4s ease-out;
    -o-transition: opacity .8s ease-in, transform .4s ease-out;
    transition: opacity .8s ease-in, transform .4s ease-out;
}

.back-to-top.show:hover, .back-to-top.show:focus, .back-to-top.show:active {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: transform .4s ease-in;
    -moz-transition: transform .4s ease-in;
    -ms-transition: transform .4s ease-in;
    -o-transition: transform .4s ease-in;
    transition: transform .4s ease-in;
}


/* MEDIA QUERIES */

@media (max-width: 767px) {
    .container {
        padding-right: 30px;
        padding-left: 30px;
    }

    p,
    ul {
        font-size: .95rem;
    }

    .h2 {
        font-size: 1.8rem;
    }

    header {
        position: static;
    }

    header .logo {
        margin-bottom: 0px;
    }

    header .nav {
        display: none;
    }

    footer {
        position: static;
    }

    footer p {
        margin-bottom: 50px;
        font-size: 0.75rem;
        text-align: center;
    }

    .open-menu-btn,
    .open-menu-btn-white {
        display: block;
    }

    main .about .row,
    main .about .h2 {
        margin-top: 20px;
    }

    main .project .project-text {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .back-to-top {
        display: none;
    }
}

@media (max-width: 991px) {
    main .card-columns {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
    }

    main .card-columns .card {
        margin-bottom: 50px;
    }
    .image a:before,
    .image a:after,
    .image-text {
        display: none;
    }
}

@media (min-width: 768px) {
    .no-mt {
        margin-top: -6px;
    }
}