.gallery {
  display: flex;
  flex-wrap: wrap;
  list-type: none;
  padding: 0;
}

.gallery::after {
  content: "";
  flex-grow: 999999999;
}

.gallery__photo {
  margin: 2px;
  background-color: #ddd;
  position: relative;
  list-style-type: none;
}

.gallery__grid-element {
  display: block;
}

.gallery__image {
  position: absolute;
  top: 0;
  width: 100%;
  vertical-align: bottom;
}
/*GALLERY*/
.gallery__photo{
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

.gallery__photo .title{
    background-color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -200px;
    transition: all 0.2s ease-out;
    z-index: 2;
    font-family: PNU;
    color:#ddd;
    padding: 10px 5px;
    background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );  
    display: flex;
    justify-content: space-between;
    align-self: baseline;
}
.gallery__photo:hover .title{
     bottom:-0px;
}
.gallery__photo img[src="img/w_img/title-icon.png"]{
    width: 20px;
    display: inline-block;
    margin: auto 5px;
}
.gallery__photo img[alt="l-img"]{
    position: relative;
    transform: rotateY(180deg);
}
#loading2{
	width: 40px;display: none;
}