/*--------------------------------*/
/* BASIC SETUP */
/*--------------------------------*/

*{
    margin:0;
    padding:0;
    -webkit-box-sizing:border-box;
            box-sizing:border-box;
}

html,
body {
    background-color: #fff;
    color:#555;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 21px;
    line-height: 32px;
    text-rendering: optimizeLegibility;
    overflow-x:hidden;
}

/*--------------------------------*/
/* REUSABLE COMPONENTS*/
/*--------------------------------*/

.row{
    max-width: 1070px;
    margin: 0 auto;
}

.footer {
    margin: 100px auto 25px auto;
    text-align: center;
    font-size: 10px;
}

/*--------------------------------*/
/* NAVIGATION */
/*--------------------------------*/

nav {
    width:350px;
    margin: 100px auto 100px auto;
    text-align: center;
    font-size: 16px;
}

nav img{
    width:350px;
    margin: 0 auto 20px auto;
    display: inline-block;
}

.main-nav li{
    display: inline-block;
    margin-right: 10px;
}

.main-nav li a:link,
.main-nav li a:visited{
    padding: 8px 0px;
    text-decoration: none;
    font-size: 90%;
    border-bottom: 2px solid transparent;
    -webkit-transition: border-bottom 0.2s;
    transition: border-bottom 0.2s;
}

.main-nav li a:hover,
.main-nav li a:active{
    border-bottom: 2px solid #6aa3d8;
}


/*--------------------------------*/
/* LINKS */
/*--------------------------------*/

a:link,
a:active,
a:visited{
	color: #6aa3d8;
	text-decoration: none;
	padding-bottom: 1px;
	border-bottom: 1px solid #6aa3d8;
	-webkit-transition: border-bottom 0.2s, color 0.2s;
	transition: border-bottom 0.2s, color 0.2s;
}

a:hover,
a:active{
	color:#555;
	border-bottom: 1px solid transparent;
	
}

.gallery a{
    border-bottom: 1px solid transparent;
}

/*--------------------------------*/
/* GAllERY */
/*--------------------------------*/

.gallery {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(3, 1fr)); 
    grid-auto-rows: 225px;
    margin: 0 50px;
}

.item img{        
    width:100%;
    height:100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.feature{
    grid-column: 1 / 3;
}

.feature2{
    grid-row: 2 / 4;
    grid-column: 3 / 4;
}

/*--------------------------------*/
/* PROJECT PAGES */
/*--------------------------------*/

.heading{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
    grid-auto-rows: maxcontent;
    margin: 0 50px 50px 50px;
    
}

.title{
    grid-area: span 1 / span 1;
    color:#555;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 32px;
    
}

.description{
    grid-area: span 1 / span 4;
}

.project {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(3, 1fr)); 
    grid-auto-rows: 300px;
    margin: 0 50px;
    grid-auto-flow: dense;
}

.highlight {
    grid-area: span 2 / span 2;
}

.width2 {
    grid-area: span 1 / span 2;
}

.width3 {
    grid-area: span 1 / span 3;
}

.height2 {
    grid-area: span 2 / span 1;
}

.large {
    grid-area: span 2 / span 3;
}


