
.gg-box{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  grid-auto-rows: 200px;
  grid-gap: 20px;
}
.gg-element img {
    object-fit: cover;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.02);
    border-radius: 5px;
    -webkit-border-radius: 5px;
}
.gg-element img:hover{
  opacity: 0.98;
}
#gg-screen {
    padding: 20px;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    display: none;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    text-align: center;
}
#gg-screen .gg-image{
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
    #gg-screen .gg-image img {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        max-width: 100%;
        max-height: 100%;
        margin: 0 auto;
    }
.gg-bt{
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.6);
  color: #222;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  vertical-align: middle;
  display: inline-block;
  cursor: pointer;
  -moz-transition: all .4s ease;
  -o-transition: all .4s ease;
  -webkit-transition: all .4s ease;
  transition: all .4s ease;
  font-size: 25px;
  border: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box;
  padding-left: 2px;
}
.gg-bt:hover{
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.5);
}
.gg-close{
  position: fixed;
  top:0.5em;
}
.gg-close,.gg-nxt{
  right: 0.5em;
}
.gg-prev{
  left: 0.5em;
}
.gg-prev,.gg-nxt{
  position: fixed;
  bottom: 50%;
}
@media (min-width:478px){
  .gg-element:nth-child(3n+0){
    grid-row-end: span 2;
  }
    .gg-element:nth-child(5n+0) {
        grid-row-end: span 3;

    }
}
@media(max-width:768px){
    .gg-box{
        grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
        grid-auto-rows: 150px;
        grid-gap: 6px;
    }
}
@media(max-width: 450px){
    .gg-box{
        grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
        grid-auto-rows: 100px;
        grid-gap: 4px;
    }
}

.gg-element {
    position: relative;
    cursor: pointer;
}
.gg-box .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgb(0,0,0);
    z-index: 50;
    opacity: 0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
}
.gg-box .content {
    -webkit-transition: all 1000ms ease;
    -moz-transition: all 1000ms ease;
    -o-transition: all 1000ms ease;
    transition: all 1000ms ease;
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 20px;
    border-bottom: 5px solid #d50606;
    z-index: 100;
    color: white;
    opacity: 0;
}
.gg-box .content {
    padding-left:10px;
    padding-right:10px;
    width:0;
}
.gg-box .link {
   height:100%;
   width:100%;
   top:0;
   left:0;
   position:absolute;
   z-index:101;
}