
@import url("normalize.css");

*{
    -webkit-box-sizing: border-box;
            box-sizing: border-box;    
}
h1, h2, h3, h4, h5, h6{
    margin: 0;
    font-weight: inherit;
}
h1{
    font-size: 48px;
}
h2{
    font-size: 28px;
}
a{
    text-decoration: none;
    color: #7b7b7b;
}
p{
    margin: 0;
}
html{
    color: #7b7b7b;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    font-family: "Open Sans Condensed";
}
.wrapper{    
    height: 100%;
}
.author{    
    margin: 25px auto;
    color: #7b7b7b;
    text-align: center;
    letter-spacing: 1px;    
}
.author--abs{
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
}
.author a{    
    -webkit-transition: .25s ease-out;    
    -o-transition: .25s ease-out;    
    transition: .25s ease-out;
}
.author a:hover{    
    color: #a2a2a2;
}
.nav{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background-color: #fff;
}
.nav__logo{
    margin: auto auto auto 80px;
}
.nav__img{
    width: 200px;
}
.nav__menu{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    padding: 0;
    margin: auto 40px auto auto;
}
.nav__item{
    margin-left: 15px;
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}
.nav__item--active a{
    color: #f95aa8;
}
.nav__item a{
    display: block;
    padding: 5px 10px;
    font-size: 18px;
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}
.nav__item:hover a{
    color: #f691c2;
}
.nav__social{
    margin: 0 80px 0 0;
}
.social__item{
    margin: 0 5px 0 0;
}
.page{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;    
    padding-left: 5px;
}
.page--contact{
    width: 80%;
    margin: 100px auto;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.page__contact-info{
    margin: 0 50px 0 0;
}
.page__promo{
    margin-left: 50px;
    font-size: 46px;
    text-align: center;
}
.page__promo--highlight{    
    font-size: 32px;
    color: #f95aa8;
}
.contact-info__item{
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: center;
        align-content: center;
    margin: 10px 0;
}
.contact-info__text{
    font-size: 20px;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    margin: 0 0 0 20px;
}
.page__img{
    width: 25%;
    padding: 0 5px 0 0;
}
.social-mobile{
    display: none;
    margin: 100px auto;
    width: 130px;
}
.social-mobile__item{
    margin-right: 5px;
}
.gallery{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.gallery__item{
    width: 25%;
    padding: 5px 5px 0 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
}
.gallery__overlay{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #36baef;    
    opacity: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-transition: .25s all;
    -o-transition: .25s all;
    transition: .25s all;
}
.gallery__text{
    position: absolute;
    color: #fff;
    font-size: 42px;
}
.gallery__item:hover .gallery__overlay{
    opacity: 1;
}
/* .gallery__item:nth-child(4n){
    padding-right: 0;
} */
.gallery__item img{
    max-width: 500px;
    width: 100%;
    cursor: pointer;
    object-fit: cover;
    height: 420px;
}

.lightBox{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}
.lightBox__img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    max-width: 100%;
    max-height: 700px;
    margin: auto;
}
.lightBox--fadeIn{
    -webkit-animation: fadeIn .25s ease;
            animation: fadeIn .25s ease;
}
.fullscreen-mode{
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: 100%;
    width: 100%;
}
@-webkit-keyframes fadeOut{
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}
@keyframes fadeOut{
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@media screen and (max-width: 1200px){
    h1{
        font-size: 42px;
    }
    h2{
        font-size: 22px;
    }
    /* .gallery__item:nth-child(n){
        width: calc(50% - 40px);
        margin: 20px 20px 0 20px;
    } */
    .nav__logo{
        margin-left: 40px;
    }
    .nav__social{
        margin-right: 40px;
    }    
}
@media screen and (max-width: 1000px){
    .nav__social{
        display: none;
    }
    .social-mobile{
        display: block;
    }
    .nav__logo{
        margin-left: 20px;
    }
    .nav__social{
        margin-right: 20px;
    }    
    .nav__item{
        margin-left: 7px;
    }
    .page--contact{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .page__contact-info{
        margin: 0;
    }
    .page__promo{
        margin: 0;
    }
    .author--abs{
        position: static;
    }
}

@media screen and (max-width: 768px){
    .nav{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .nav__menu{
        margin: 25px auto;
    }
    .nav__logo{
        margin: 0 auto;
    }    
    .gallery__item{
        width: 50%;
    }
    
}
@media screen and (max-width: 480px){
    .nav__item{
        margin: 0 5px;
    }
}
@media screen and (max-width: 500px){
    .nav__menu{
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        margin: 0 auto 15px auto;
    }
    .nav__item{
        margin: 5px 0;
    }
    .page__img{
        width: 50%;
        padding: 5px 5px 0 0;
    }    
}