html {
    scroll-behavior: smooth;
    scroll-padding-top:5.5rem;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    color:#191919;
    max-width:1640px;
    margin:0 auto;
    padding:100px 45px 45px 45px;
    box-sizing: border-box;
}

ul, li {
    list-style:none;
    margin:0;
}

a {
    color:#191919;
}

img {
    max-width:100%;
    vertical-align: top;
}

figure {
    margin:0;
    padding:0;
}

section {
    padding-block:min(10vh, 6rem);
}

#video {
    position:absolute;
    z-index:-1;
    top:0;
    left:0;
    width:100%;
    opacity:0.6;
}


/* Typography */

body {
    font-size:1rem;
    line-height:2rem;
}

h1 {
    font-family: 'Cormorant', serif;
    font-size:4.6rem;
    line-height:5.6rem;
    font-weight:normal;
}

h2 {
    font-family: 'Cormorant', serif;
    font-size:3.8rem;
    line-height:4.2rem;
    font-weight:normal;
    margin-bottom:0;
}

.title-mini  {
    text-transform:uppercase;
    color:#9E9E9E;
    font-size:0.8rem;
    position:relative;
}

.title-mini:after {
    content:"";
    height:1px;
    background:#bdbdbd;
    width:80px;
    display:inline-block;
    position: relative;
    top: -4px;
    left: 10px;
}

.text-big {
    margin-left:0;
    padding-left:0;
    font-size: 1.8rem;
    line-height: 4.2rem;
}

.text-big a {
    text-decoration:none;
}

    /* Grid System */

.two-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap: 2.5rem;
}

.three-columns{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 2.5rem;
}

.three-uneven-columns{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    gap: 2.5rem;
}

.four-columns{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap: 1.5rem;
}

.twelve-columns {
    display:grid;
    grid-template-columns: repeat(12,1fr);
    gap: 2.5rem;
}

.no-spacing {
    gap:0;
    margin:0;
    padding:0;
}

.twelve-columns header {
    grid-column: 2/11;
}

.twelve-columns .content {
    grid-column:3/11;
    grid-row: 2/2;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}


/* Spacing */

.spacing-200 {
    padding:2rem 0;
}

.spacing-300 {
    padding:3rem 0;
}

.spacing-400 {
    padding:4rem 0;
}

.spacing-500 {
    padding:5rem 0;
}

.spacing-700 {
    padding:7rem 0;
}

/* Positioning Content */

.v-center-content {
    align-self:center;
}

.h-center-content {
    max-width:520px;
    margin:0 auto;
}

/* Image Grids */

#image-grid-small-big {
    padding:125px 0 0 0;
}

#image-grid-small-big img:first-of-type {
    grid-column:4/7;
}

#image-grid-small-big img:last-of-type {
    grid-column:8/13;
    margin-top:-50px;
}

/* 00 - Toolbar */

#toolbar {
    width:100%;
    position:absolute;
    background:black;
    color:white;
    text-align:center;
    position:absolute;
    left:0;
    top:0;
    font-size:14px;
    text-transform: uppercase;
    letter-spacing:1px;
}

#toolbar p {
    padding:3px 0;
    margin:0;
    line-height:normal;
}

#toolbar span a {
    color:white;
    font-weight:bold;
}

/* 01 - Header */

#es-header {
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    align-items: center;
    justify-content:center;
}

#logo {
    text-align:center;
}

#logo h1 {
    margin:0;
    padding:0;
    font-size:56px;
    line-height:13px;
}

#logo span {
    display:block;
    font-size:12px;
    text-transform: uppercase;
}

#es-header nav {
    text-align:right;
}

#es-header nav li {
    padding:0 15px;
    display:inline-block;
}

#es-header nav li:last-of-type {
    padding-right:0;
}

#es-header nav a {
    display:inline-block;
    text-decoration:none;
    position:relative;
}

#es-header nav li.social-first {
    border-left:1px solid #e1e1e1;
    line-height: 17px;
    padding-left:20px;
    position: relative;
    top: -4px;
}

#es-header nav li.social-first a::after {
    display:none;
}

#es-header nav li a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    top: 94%;
    left: 0;
    background: #000;
    transition: transform 0.2s;
    transform: scaleX(0);
    transform-origin: left;
}

#es-header nav li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#es-header .es-primary-nav {
    text-align:left;
    margin-left:0;
}

#es-header ul {
    padding-left:0;
}


/* 02 - Banner */


#banner h1 {
    margin-top:0;
    grid-column: 2/10;
}

#banner h3 {
    font-size: 1.5rem;
    line-height: 2.8rem;
    text-align: center;
    font-weight: 300;
    margin: 10rem auto 2rem auto;
    max-width: 800px;
    grid-column: 3/11;
}

.cta-link {
    grid-column: 1/13;
    align-self: end;
    text-align:right;
}

#banner-image{
    grid-column:1/13;
    margin-left:-50px;
    margin-right:-50px;
}

#banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#banner-image figure {
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
}

#banner-image img:first-of-type {
    grid-column:1/3;
    grid-row: 1/3;
}

/* 03 - Services */

#servicios ul {
    margin-top: 1rem;
    font-weight:500;
}

#servicios li {
    padding-bottom:10px;
}

#servicios img, #contacto img {
    grid-column: 1/6;
}

#services-content, #contact-content {
    grid-column:6/13;
}

#services-content, #contact-content {
    display:grid;
    grid-template-columns: 1fr 1fr;
}

#services-content header, #contact-content header {
    grid-column:1;
}

#services-content .content-text, #contact-content .content-text {
    grid-column:1/2;
}


/* 04 - Projects */

.portfolio-item a {
    text-decoration:none;
}

.portfolio-item h5, .member h5 {
    font-size:1.4rem;
    font-weight:300;
    margin:15px 0;
    line-height:normal;
}

.portfolio-item h5 span, .member h5 span {
    display:block;
    font-size:1rem;
    color:#727272;
    font-weight:normal;
}

.portfolio-item {
    cursor:pointer;
}

.portfolio-item img {
    -webkit-transition: .5s ease;
    transition: .5s ease;
}

.portfolio-item figure, .member figure {
    overflow:hidden;
}

.portfolio-item:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.project-description {
    padding:35px;
    position:relative;
    max-width:820px;
    margin:0 auto;
}

.project-images {
    max-width:1460px;
    margin:0 auto;
    text-align:center;
}

.project-images img {
    margin-bottom:25px;
}

.project-list {
    padding:25px 0;
}

.project-list li {
    display:inline-block;
    padding-right:35px;
    line-height: 1.4rem;
}

.project-list span {
    text-transform:uppercase;
    display:block;
    font-size:0.8rem;
    color:#727272;
}


blockquote q {
    font-family: 'Cormorant', serif;
    font-size: 3.2rem;
    line-height: 4.2rem;
}

blockquote cite {
    display:block;
}


    /**
     * Featherlight – ultra slim jQuery lightbox
     * Version 1.7.13 - http://noelboss.github.io/featherlight/
     *
     * Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
     * MIT Licensed.
    **/

.lightbox-content, .lightbox-content-2, .lightbox-content-3, .lightbox-content-4 {
    display:none;
}

html.with-featherlight {
    /* disable global scrolling when featherlights are visible */
    overflow: hidden;
}

[class*='lightbox-content-'] {
    display:none;
}

.featherlight {
    display: none;

    /* dimensions: spanning the background from edge to edge */
    position:fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2147483647; /* z-index needs to be >= elements on the site. */

    /* position: centering content */
    text-align: center;

    /* insures that the ::before pseudo element doesn't force wrap with fixed width content; */
    white-space: nowrap;

    /* styling */
    cursor: pointer;
    background: #333;
    /* IE8 "hack" for nested featherlights */
    background: rgba(0, 0, 0, 0);
}

/* support for nested featherlights. Does not work in IE8 (use JS to fix) */

.featherlight:before {
    /* position: trick to center content vertically */
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.featherlight .featherlight-content {
    /* make content container for positioned elements (close button) */
    position: relative;

    /* position: centering vertical and horizontal */
    text-align: left;
    vertical-align: middle;
    display: inline-block;

    /* dimensions: cut off images */
    overflow: auto;

    /* dimensions: handling large content */
margin:0;
height:100%;
    width:100%;

    /* styling */
    background: #fff;
    cursor: auto;

    /* reset white-space wrapping */
    white-space: normal;
}

/* contains the content */
.featherlight .featherlight-inner {
    /* make sure its visible */
    display: block;
}

/* don't show these though */
.featherlight script.featherlight-inner,
.featherlight link.featherlight-inner,
.featherlight style.featherlight-inner {
    display: none;
}

.featherlight .featherlight-close-icon {
    /* position: centering vertical and horizontal */
    position: fixed;
    z-index: 9999;
    top: 25px;
    right: 25px;
    line-height: 25px;
    width: 50px;
    height:50px;
    font-size:25px;
    border-radius:200em;
    cursor: pointer;
    text-align: center;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
    border: none;
    padding: 0;
}

.featherlight .featherlight-close-icon::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.featherlight-iframe .featherlight-content {
    /* removed the border for image croping since iframe is edge to edge */
    border-bottom: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.featherlight iframe {
    /* styling */
    border: none;
}

.featherlight * { /* See https://github.com/noelboss/featherlight/issues/42 */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


#scrollUp {
    background:#fff;
    border:1px solid #e1e1e1;
    bottom: 15px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height:50px;
    margin-bottom: -10px;
    text-align: center;
    text-decoration: none;
    color: #000;
    opacity:0;
    transition: all 150ms linear;
}

#scrollUp img {
    max-width:20px;
    margin-top: 20px;
}

.sticky #scrollUp {
    opacity:1;
    margin:0;
}

/* Responsive */

@media (max-width:600px) {

    .hide-mobile, #contacto img {
        display:none;
    }

    body {
            padding:85px 25px 25px 25px;
    }

   .two-columns, .three-columns, .four-columns, .twelve-columns, #services-content, .twelve-columns .content, #contact-content, .three-uneven-columns {
       display:block;
    }

    .spacing-500, .spacing-400 {
        padding:1rem 0;
    }

    header.spacing-500, header.spacing-200 {
        padding-bottom:0;
    }

    section {
        padding-block: min(10vh, 2rem);
    }

    #banner-image {
        margin-left:-25px;
        margin-right:-25px;
    }

    #image-grid-small-big {
        padding-top:45px;
    }

    /* Header */

    #logo {
        margin:0 auto;
    }

    #es-header {
        grid-template-columns: 1fr;
    }

    #es-header .es-primary-nav ul {
        margin-top:30px;
        padding-left:0;
        text-align:center;
    }

    #es-header .es-secondary-nav {
        text-align:center;
    }

    #es-header nav li {
        padding:0 5px 0 5px;
    }

    #es-header nav li.social-first {
        border-left:1px solid #e1e1e1;
        line-height: 17px;
        padding-left:10px;
    }

    #es-header nav.es-primary-nav {
        order: 2;
        display:grid;
      }
      
      #es-header nav.es-secondary-nav {
        order: 2;
        display:grid;
      }
      



    /* Typography */

    main #banner h1, h2, blockquote q {
        font-size: 2.2rem;
        line-height: 3.2rem;
    }

    main #banner h1 {
        text-align:center;
    }

    #banner h3 {
        font-size: 1.1rem;
        line-height: 2.2rem;
        margin: 3rem auto 1rem auto;
    }

    blockquote {
        margin:0 auto 5rem auto;
    }

    /* Services */

    #servicios ul {
        padding-left:0;
        margin-bottom:20px;
    }

    #servicios li {
        display:inline-block;
        padding-right:10px;
    }


   /*Portfolio*/

    #portfolio.four-columns {
        display:grid;
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-item h5 {
        font-size: 1.2rem;
    }


}

@media (min-width:601px) and (max-width:960px) {

    .hide-mobile {
        display:none;
    }

    body {
        padding:65px 25px 25px 25px;
        max-width:720px;
        margin:0 auto;
    }

    .two-columns, .four-columns, .twelve-columns, #services-content, .twelve-columns .content {
        display:block;
    }

    .spacing-500, .spacing-400 {
        padding:1rem 0;
    }

    header.spacing-500, header.spacing-200 {
        padding-bottom:0;
    }

    section {
        padding-block: min(10vh, 2rem);
    }

    #banner-image {
        margin-left:-25px;
        margin-right:-25px;
    }

    #image-grid-small-big {
        padding-top:45px;
    }

    /* Header */

    #logo {
        margin:0 auto;
    }

    #es-header {
        grid-template-columns: 1fr;
    }

    #es-header .es-primary-nav ul {
        margin-top:30px;
        padding-left:0;
        text-align:center;
    }

    #es-header .es-secondary-nav {
        text-align:center;
    }

    #es-header nav li {
        padding:0 5px 0 5px;
    }

    #es-header nav li.social-first {
        border-left:1px solid #e1e1e1;
        line-height: 17px;
        padding-left:10px;
    }

    #es-header nav.es-primary-nav {
        order: 2;
        display:grid;
      }
      
      #es-header nav.es-secondary-nav {
        order: 2;
        display:grid;
      }
      

    /* Typography */

    main #banner h1, h2 {
        font-size: 2.2rem;
        line-height: 3.2rem;
    }

    #banner h3 {
        font-size: 1.1rem;
        line-height: 2.2rem;
        margin: 3rem auto 1rem auto;
    }

    .es-quote {
        margin:0;
        grid-column:1/3;
    }

    blockquote q {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    /* Services */

    #servicios ul {
        padding-left:0;
        margin-bottom:20px;
    }

    #servicios li {
        display:inline-block;
        padding-right:10px;
    }


    /*Portfolio*/

    #portfolio.four-columns, .three-columns, #contacto.twelve-columns {
        display:grid;
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-item h5 {
        font-size: 1.2rem;
    }


    /* Contacto */


    #contacto .twelve-columns {
        display:grid;
    }

    #contacto img {
        grid-column:1/7;
    }

    #contact-content {
        grid-column:7/13;
    }

    .h-center-content {
        max-width:unset;
    }


}


@media (min-width:961px) and (max-width:1360px) {

    #es-header {
        grid-template-columns: 2fr 1fr 2fr;
    }

    #es-header nav li {
        padding: 0 7px;
    }

    #banner h1 {
        grid-column:1/13;
    }

    #services-content {
        grid-template-columns: 1fr 1fr 1fr;
    }

    #services-content header {
        grid-column: 1/3;
    }

    #services-content .content-text {
        grid-column: 1/3;
    }

    #servicios ul {
        line-height:normal;
    }

    .twelve-columns .content {
        grid-column:2/12;
    }

    #contact-content {
        grid-template-columns:unset;
    }

    .four-columns {
        grid-template-columns: repeat(4,1fr);
    }

    .spacing-500, .spacing-400  {
        padding:3rem 0;
    }

    #banner h3 {
        grid-column:2/12;
    }


    .image-fit {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    #contacto .twelve-columns {
        display:grid;
    }

    #contacto img {
        grid-column:1/7;
    }

    #contact-content {
        grid-column:7/13;
    }

    blockquote q {
        font-family: 'Cormorant', serif;
        font-size: 2.2rem;
        line-height: 3.2rem;
    }

}
