@charset "utf-8";
/* CSS Document */
/* section ส่งฟรี...ทั่วประเทศ*/
div.image_gallery {
}

div.image_gallery:hover {
  opacity: 0.75;
}

div.image_gallery img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  cursor:pointer;
  transition: 0.3s;
}

div.image_desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.image_responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}
/* The Modal (background) */
.modal {
  z-index:1;
  display:none;
  padding-top:10px;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  overflow:auto;
  background-color:rgb(0,0,0);
  background-color:rgba(0,0,0,0.8)
}
/* Modal Content (image) */
.modal-content{
  margin: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}
/* The Close Button */
.close {
  margin: auto;
  display: block;
  right: 35px;
  text-align: right;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* Caption of Modal Image */
#caption01 {
  margin: auto;
  display: block;
  font-size: calc(1.6rem + 0.1vw);
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}
/* Add Animation */
.modal-content, #caption01 {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

.modal-hover-opacity {
  opacity:1;
  filter:alpha(opacity=100);
  -webkit-backface-visibility:hidden
}

.modal-hover-opacity:hover {
  opacity:0.60;
  filter:alpha(opacity=60);
  -webkit-backface-visibility:hidden
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

@media only screen and (max-width: 700px) {
  .image_responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .image_responsive {
    width: 100%;
  }
  .modal-content{
    width: 80%;
  }
  .clearfix:after {
    content: "";
    display: table;
    clear: both;
  }
}