gallery-container {
  width: 100%;
  background: #f1f1f1;
}

.inner-width {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery .image {
  flex: 25%;
  overflow: hidden;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: 100%;
  transition: 0.4s;
}

.gallery .image:hover img {
  transform: scale(1.1);
}

#overlay {
    position: fixed;
    background-color: #000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 1000;
}

#html-block-overlay {
    position: fixed;
    background-color: #000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 1000;
}

.overlay-content {
    //padding: 20px;
}

.overlay-content .close-btn {
    top: 0%;
    right: 0%;
    font-size: 2em !important;
    padding: 7px 20px;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    background-color: #000;
}

.overlay-content .photo-box img {
    max-width: 100%;
    max-height: 100%;
}

.description-box .content {
    margin: 20px;
    //color: black;
}

.description-box #imgTitle {
    margin-bottom: 0px;
    margin-top: 0px;
}

.description-box #imgDesc {
    margin-top: 0px;
}

@media screen and (min-width:730px) {
    .overlay-content .photo-box {
    display: flex;
        position: absolute;
        align-items: center;
        justify-content: center;
        width: 70%;
        height: 100%;
        right: 0;
        //background: linear-gradient(to top, #e4e4e4
            , #FFF);
    }
    
    .overlay-content .description-box {
        position: absolute;
        height: 100%;
        width: 30%;
        overflow-y:auto;
        bottom: 0;
        background-color: #3f3f3f;
    }
    
    .color-cycle-gallery {
        background: linear-gradient(to top, #FFE000 0%, #FFE000 5%, #FF00DB 32%, #FFE000 66%, #FFE000 71%, #FF00DB 100%);
        background-size: 300% 300%;

        -webkit-animation: ColorStripeGallery 10s linear infinite;
        -moz-animation: ColorStripGallery 10s linear infinite;
        animation: ColorStripeGallery 10s linear infinite;

        position: absolute;
        right:0;
        height: 100%;
        width: 4px;
    }

    @-webkit-keyframes ColorStripeGallery {
        0%{background-position:0% 100%}
        100%{background-position:0% 0%}
    }
    @-moz-keyframes ColorStripeGallery {
        0%{background-position:0% 100%}
        100%{background-position:0% 0%}
    }
    @keyframes ColorStripeGallery {
        0%{background-position:0% 100%}
        100%{background-position:0% 0%}
    }
  
}

@media screen and (max-width:730px) {
    .overlay-content .photo-box {
        display: flex;
        position: absolute;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 65%;
        right: 0;
        //background: linear-gradient(to top, #e4e4e4
            , #FFF);
    }
    
    .overlay-content .description-box {
        position: absolute;
        height: 35%;
        width: 100%;
        overflow-y:auto;
        bottom: 0;
        background-color: #3f3f3f;
    }
    
    .color-cycle-gallery {
        background: linear-gradient(to left, #FFE000 0%, #FFE000 5%, #FF00DB 32%, #FFE000 66%, #FFE000 71%, #FF00DB 100%);
        background-size: 300%;

        -webkit-animation: ColorStripe 10s linear infinite;
        -moz-animation: ColorStripe 10s linear infinite;
        animation: ColorStripe 10s linear infinite;

        height: 4px;
        width: 100%;
    }

    @-webkit-keyframes ColorStripeGallery {
        0%{background-position:100% 0%}
        100%{background-position:0% 0%}
    }
    @-moz-keyframes ColorStripeGallery {
        0%{background-position:100% 0%}
        100%{background-position:0% 0%}
    }
    @keyframes ColorStripeGallery {
        0%{background-position:100% 0%}
        100%{background-position:0% 0%}
    }
}

@media screen and (max-width:960px) {
  .gallery .image{
    flex: 33.33%;
  }
}

@media screen and (max-width:730px) {
  .gallery .image{
    flex: 50%;
  } 
}

@media screen and (max-width:410px) {
  .gallery .image{
    flex: 100%;
  }
}