img {
    width: 100%;
    height: auto;
}
.hidden {
    display: none;
}
figure{
    margin:0;
}
legend{
    border:0;
    padding:0;
}
*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { display: table; content: ''; }
.clearfix:after { clear: both; }
#main{ 
    z-index: -1; }
body {
    background: #000;
    color: #fff;
    font-weight: 800;
    font-size: 1em;
    font-family: 'Heebo', sans-serif;
    margin: 0;
}
a {
    outline: none;
    color: $00adef;
    text-decoration: none;
}
.grid {
    clear: both;
    overflow: hidden; 
    z-index: 1;
    top:0;
}

/* Common style */
.grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    /* margin: 10px 1%; */
    min-width: 320px;
    max-width: 33.3%;
    max-height: 754px;
    width: 100%;
    height: auto;
    background: #3085a3;
    text-align: center;
    cursor: pointer;
}
.grid figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}
.grid figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.grid figure figcaption::before,
.grid figure figcaption::after {
    pointer-events: none;
}
.grid figure figcaption,
.grid figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}
.grid figure h2 {
    
    font-weight: 800;
}
.grid figure h2 span {
    font-weight: 800;
}
.grid figure h2,
.grid figure p {
    margin: 0;
}
.grid figure p {
    letter-spacing: 1px;
    font-size: 68.5%;
}
/* Individual effects */
/*-----------------*/
/***** Apollo *****/
/*-----------------*/

figure.effect-apollo {
    background: $00adef;
}
figure.effect-apollo img {
    opacity: 0.95;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale3d(1.05,1.05,1);
    transform: scale3d(1.05,1.05,1);
}
figure.effect-apollo figcaption::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    content: '';
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    -webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
    transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
}
figure.effect-apollo p {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 3em;
    padding: 0 1em;
    max-width: 150px;
    border-right: 4px solid #fff;
    text-align: right;
    opacity: 0;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}
figure.effect-apollo h2 {
    text-align: left;
}
figure.effect-apollo:hover img {
    opacity: 0.6;
    -webkit-transform: scale3d(1,1,1);
    transform: scale3d(1,1,1);
}
figure.effect-apollo:hover figcaption::before {
    -webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
    transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
}

figure.effect-apollo:hover p {
    opacity: 1;
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
}
#header .container {
    display: flex;
    justify-content: center;
    padding: 67px 0 55px;
}
#header .logo {
    align-items: center;
}
#header .logo a {
    display: block;
    color: #00adef;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    outline: none;
    letter-spacing: .08em;
    padding-left: 75px;
}
#header .logo a:hover {
    opacity: .8;
}
#header a img.smbl {
    margin-right: 13px;
    vertical-align: middle;
    max-width: 33px;
    width: 100%;
}
#header img.logo {
    padding-right: 30px;
    display: block;
    margin-bottom: 22px;
    max-width: 400px;
    width: 100%;
}
#header img.atty {
    align-self: flex-start;
    margin-top: -12px;
    max-width: 122px;
    /*width: 6.35416%;*/
    width: 10%;
}
#footer {
    padding: 22px 0 24px;
}
#footer ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
}
#footer ul li,
#footer ul li a {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: .05em;
}
#footer ul li a:hover {
    color: #00adef;
}
#footer ul li {
    position: relative;
    margin-right: 47px;
}
#footer ul li:after {
    content: '|';
    display: block;
    position: absolute;
    /*border-right: 1px solid #fff;*/
    /*padding: 0 23px;*/
    height: 12px;
    top: 0;
    right: -22px;
    width: 0;
    vertical-align: middle;
    z-index: 99;
}
#footer ul li:last-child {
    margin-right: 0;
}
#footer ul li:last-child:after {
    border-right: none;
    display: none;
}






@media only screen and (max-width: 991px) {
    .container,
    #footer,
    #header .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .grid figure {
        float: none;
        max-width: 80%;
    }
    figure.effect-apollo {
        margin: 0 auto 50px;
    }
    #footer ul li {
        margin-right: 20px;
    }
    #footer ul li:after {
        right: -9px;
    }
}
@media only screen and (max-width: 900px) {
    #header img.atty {
        width: 90px;
    }
    #header img.logo {
        width: 300px;
    } 
}
@media only screen and (max-width: 900px) {
    #footer ul {
        flex-direction: column;
        text-align: center;
    }
    #footer ul li {
        margin-right: 0;
        margin-bottom: 5px;
    }
    #footer ul li:after {
        display: none;
    }
}
@media only screen and (max-width: 440px) {
    #header .container {
        flex-direction: column;
    }
    #header img.logo {
        margin: 0 auto 20px;
        padding: 0;
        width: 280px;
    }
    #header .logo a {
        padding: 0;
        margin-bottom: 20px;
    }
    #header img.atty {
        margin: 0 auto;
    }
}