/*
plugin for GPeasy Masonry_gallery
Author: a2exfr
http://my-sitelab.com/
Date: 2015-03-11
Version 1.5.1 */

.grid-sizerMG { width: 25%; }

.itemMG{ width: 25%; }
	
.itemMG img {
  display: block;
  max-width: 100%;
  height: auto;
}
	
@media screen and (max-width: 1224px) {
  .grid-sizerMG{ width: 33.33%; }
  .itemMG { width: 33.33%; }
}

@media screen and (max-width: 720px) {
  .grid-sizerMG { width: 50%; }
  .itemMG{ width: 50%; }
}

@media screen and (max-width: 480px) {
  .grid-sizerMG { width: 100%; }
  .itemMG { width: 100%; }
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    color: #fff;
    display: none;
}

.overlay .title {
    text-align: center;
    font-size: 30px;
}

.overlay .description {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.80);
    width: 100%;
    margin: 0;
}

.overlay .description p {
    margin: 20px;
}

.itemMG:hover .overlay {
    display: block;
}