/*Miles Halpern, artist and teacher*/

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

html {
  scroll-behavior: smooth;
}

body {
    font-family: helvetica, sans-serif;
    color: #666;
    font-size: 1.3em;
    font-weight: 100;
    line-height: 1.625;
    min-height: 100vh;
}

img {
    width: 100%;
}

a {
    color: gray;
    text-decoration: none;
}

a img {
    -webkit-filter: grayscale(0%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
    filter: grayscale(0%); /* FF 35+ */
    transition: filter .5s ease-in-out;

}

a img:hover {
     transition: filter .5s ease-in-out;
    -webkit-filter: grayscale(90%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
    filter: grayscale(90%); /* FF 35+ */
}

header {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: black;
        border-bottom: 1px solid gray;
        margin-bottom: 20px;
        position: sticky;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, .9);
        z-index: 1;
    }
    
header a {
        color: black;
        font-size: 1em;
    }
    
header h1 {
        font-size: 1em;
        letter-spacing: 5px;
    }

/*hamburger menu*/

.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 0px;
    text-align: left; 
    padding-left: 40px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 1.1em;
  color: gray;
  display: block;
  transition: 0.3s;
    border-top: 1px solid gray;
    margin-right: 40px;
}

.overlay a.current {
    color: lightgray;
}

.overlay a:hover, .overlay a:focus {
  color: white;
}

.overlay .closebtn {
  position: absolute;
  top: 0px;
  left: 10px;
  font-size: 40px;
    border: none;
    margin-right: 0;
    padding: 0;
    line-height: 30px;
}
/*end hamburger menu*/

.main, .projects-grid, .grid {
    background: white;
}

.caption {
    border-top: 1px solid gray;
}

.grid .caption {
    margin-left: 20px;
}

h2 {
  color: white;
  font-size: .75em;  
}

p {
    font-size: .75em;
    margin-bottom: 10px;
    text-align: justify;
}

p.caption {
    text-align: left;
}

footer {
    background: black;
    color: white;
    padding: 15px;
    display: block;
}

    footer p, footer h2 {
        color: white;
        text-align: left;
    }
    #column1 {
        color: black;
        font-weight: bold;
    }
    
    #column2 {
        color: black;
        font-weight: bold;
    }


/*project page*/

.projects-grid {
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 10px;
        max-width: 960px;
        padding: 0 20px;
}

.projects-grid p a {
    text-decoration: underline;
}

.projects-grid .link-to {
    grid-column: 1/8;
    height: 30px;
}

.projects-grid nav.projects-grid-nav {
    grid-column: 1/9;
    border-bottom: 1px solid silver;
    padding-bottom: 10px;
}

.projects-grid nav.projects-grid-nav a {
    display: block;
}

.projects-grid h3 {
    grid-column: 1/9
}

.projects-grid img {
    grid-column: 2/8;
    height: auto;
}

.projects-grid .caption {
    grid-column: 1/9;
}

.projects-grid p {
    grid-column: 1/9;
}

.btt {
    grid-column: 1/9;
}

/*about page*/


.main h2 {
    color: black;
}

.main {
    padding: 0 20px;
    max-width: 960px;
    margin: 0 auto;
    display: block;
}

.body-copy img {
    margin: 20px 0;
}

@media only screen and (min-width: 481px) {
    

    
    .grid {
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 10px;
        grid-auto-rows: 1fr;
        margin-bottom: 20px;

    }
    
    .grid .caption {
    margin-left: 0px;
}
    
    #one {
        grid-column: 1/5;
        grid-row: 1/3;
        display: grid;
    }
    
    #one img {
          align-self: stretch;

    }
    
    #two {
        grid-column: 5/6;
        grid-row: 1/2;
    }
    
    #three {
        grid-column: 5/7;
        grid-row: 2/3;
        display: grid;
    }
    
    #three img {
        align-self: stretch;
    }
    
    #four {
        grid-column: 7/8;
        grid-row: 2/3;
    }
    
    #five {
        grid-column: 3/5;
        grid-row: 3/4;
    }
    
    #six {
        grid-column: 2/3;
        grid-row: 3/4;
    }
    
    #seven {
        grid-column: 5/9;
        grid-row: 3/5;
    }
    
    #eight {
        grid-column: 4/5;
        grid-row: 4/5;
    }
    
    #nine {
        grid-column: 1/5;
        grid-row: 5/7;
    }
    
    #ten {
        grid-column: 5/6;
        grid-row: 6/7;
    }
    
    #eleven {
        grid-column: 5/7;
        grid-row: 5/6;
    }
    
    #twelve {
        grid-column: 7/8;
        grid-row: 5/6;
    }
    
    p#textColumn1 {
        grid-column: 3/5; 
        grid-row-start: 6;
        align-self: center;
    }
    
    p#textColumn2 {
        grid-column: 5/7;
        grid-row-start: 6;
        align-self: center;
    }
   
    .footer-grid {
        margin: 0 0px;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 10px;

    }
    
    /*footer grid*/
    footer p, footer h2 {
        grid-column: 1/8;
    }
    #column1 {
        grid-column: 1/2;
    }
    
    #column2 {
        grid-column: 3/7;
        color: black;
    }
    
    /*project page*/
    

.projects-grid img {
    grid-column: 2/8;
}

.projects-grid .caption {
    grid-column: 1/8;
}

/*about page*/
    .main {
        margin: 0 auto 30px auto;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 10px;
        max-width: 960px;
        padding: 0 20px;
    }
    
    .main img {
        height: auto;
        grid-column: 1/2;
    }

    .main h2 {
        grid-column: 2/4;
    }
    
    .main .body-copy {
        grid-column: 2/9;   
    }

    
}/*end media query*/