/*both gallery and blog css*/

#galleryPopup {
  background-color: #ddd;
  border: 2px solid #888;
  border-radius: 5px;
  display: none;
  height: auto;
  left: 50%;
  max-width: 90%;
  padding: 20px;
  position: fixed;
  top: 50%;
  width: auto;
  transform: translate(-50%,-50%);
}

.message{
  background-color: #12b2b2;
  border: 1px #006565 solid;
  color: white;
  display: none;
  padding: 10px 0;
  margin: 10px auto;
  width: 200px;
}

/*Set size to include border and make 3 columns*/
#gallery, 
.blog-sections{
  box-sizing: border-box;
  margin-left: 10px;
  margin-right: 10px;
  text-align: center;
}

figure {
  border: 5px solid #BF2696;
  border-radius: 15px;
  margin: 0;
  margin-bottom: 12px;
  padding: 12px;
  word-wrap: break-word;
}

figure:hover {
  background-color: lightGrey;
  background-color: rgba( 0, 0, 0, .2);
}

figure a{
  color: #292323;
  text-decoration: none;
}


/*Make boxes the same size even if images are not equal ratios*/
.img-box{
  display: block;
  height: 200px;
  text-align: center;
}

.img-box img{
 max-height: 100%;
 max-width: 100%;
 width: auto;
}
 
figcaption {
  margin: 15px 0;
  font-size: 20px;
  max-width: 100%;
}

/*blog*/

.blog-sections h2{
  font-size: 50px;
}

  .blog p{
    text-align: left;
}

  .blog p:first-letter{
    background-color: #eee;
    color: #7F6B00;
    float: left;
    font-size: 4em;
    margin-right: 5px;
    padding: 0 3px 0 3px;
  }
/*Responsive design*/

/*Small devices - Small tablet and phone*/
@media (max-width:766px){
   #sendButton{
    height: 90px;
    font-size: 1.2em;
    width: 30%;
 }
  .blog img{
     width: 80%;
   }  
}
/*Small tablet 351-766px*/
@media (min-width: 361px) and (max-width:766px){
  input, 
  textarea {
    margin-bottom: 20px;
    height: 40px;
    width: 70%;
  }
   textarea{
     height: 300px;
   }

}
/*Phone <350px*/
@media (max-width:360px){
 #galleryPopup img{
  width: 270px;
 }
 /*Contact form*/
  input{
    height: 25px;
    width: 300px;
  }
   
  textarea {
    height: 100px;
    resize: vertical;
    width: 300px;
  }
}
/*bigger than a phone*/
@media (min-width:360px){
  
  #galleryPopup img{
  width: 80%;
    }
    
  #galleryPopup{
    width: 90%;
  }

}
/*Large devices- big tablet and computer*/
@media (min-width:767px){
  #gallery, 
  .blog-sections{
    column-count: 3;
  }
  
  input {
    margin-bottom: 20px;
    height: 40px;
    width: 70%;
  }
  
  textarea {
    height: 200px;
    width: 70%;
  }
  
  label, 
  #sendButton, 
  .message{
    font-size: 3em;
  }
  
  #sendButton, 
  .message{
    height: 90px;
    width: 30%;
  }
  
}


