@charset "utf-8";
/* CSS Document */

/*Размещать по примеру
<div class="responsive">
  <div class="gallery">
    <a target="_blank" href="картинка.jpg">
      <img src="картинка.jpg" alt="Описание" width="600" height="400">
    </a>
    <div class="desc">Описание изображения</div>
  </div>
</div>

Картинки должны быть одинакового размера
*/

div.gallery {
  border-radius: 10px;
}

div.gallery:hover {
  border-radius: 10px;
}

div.gallery img {
  width: 100%;
  height: auto;
  border:none !important;
  border-radius: 0px !important;
}

div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px 12px 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}