/* 
 * overlay.css v1.0.0
 * Copyright 2014 Joah Gerstenberg (www.joahg.com)
 */

.overlay {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.65);
  cursor: pointer;

  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -ms-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.overlay .modal {
  cursor: auto;
  position: absolute;
  z-index: 11;
  top: 90px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  padding: 20px 20px;
  /*background-color: rgba(255,255,255,.875);*/
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
}

.overlay .modal img{
  max-width: 100%;
  max-height: 600px;
  margin: 0 auto;
}

.overlay.shown {
  opacity: 1;
}

.modal.myproduct{
  overflow: visible;
}

.close:hover{
  cursor: pointer;
}

@media screen and (min-width: 1000px){
  .overlay .modal {
   padding: 20px 35px;
   top: 0px;
  }
}

@media screen and (min-width: 1200px){
  .overlay .modal {
    max-width: 1000px;
    height: 80%;
    padding: 20px 35px;
    /*background-color: rgba(255,255,255,.875);*/
  }

  .overlay .modal img{
    max-height: 550px;
  }
  
 
}

@media screen and (min-width: 1500px){
  .overlay .modal img{
    max-height: 660px;
  }
}