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 .image 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;
}

/*    Gallery Style 2    */

.TextLimiterTitle {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    text-decoration: none;
    
}
.TextLimiter {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumbnail {
    float: left;
    width: 250px;
    height: 125px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 250px;
    height: 125px;
    transition: 0.4s;
}

.thumbnail:hover img {
  transform: scale(1.1);
}

.infoBox {
    position: relative;
    height: 125px;
    margin-left: 260px;
}

.moreDetails {
    position: absolute;
    bottom: 10px;
    right: 0;
}

/* --------------------- */

@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, #00c9ff 0%, #00c9ff 5%, #FF00DB 32%, #00c9ff 66%, #00c9ff 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, #00c9ff 0%, #00c9ff 5%, #FF00DB 32%, #00c9ff 66%, #00c9ff 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%}
    }
}

/* Large (Step 1) */
@media screen and (max-width:960px) {
    .gallery .image{
        flex: 33.33%;
    }
}

/* Middle (Step 2) */
@media screen and (max-width:850px) {
    .TextLimiterTitle {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .TextLimiter {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobile Size */
@media screen and (max-width:730px) {
    .gallery .image{
        flex: 50%;
    }
    .TextLimiter {
        display: none;
    }
    .TextLimiterTitle {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}

/* Smaller Mobile Sizes */
@media screen and (max-width:500px) {
    .gallery .image{
        flex: 100%;
    }
    
    .infoBox {
        margin-left: 0px;
        display: block;
        clear: both;
    }
    
    .thumbnail img {
        width: 100%;
        height: auto;
        transition: 0.4s;
    }
    
    .thumbnail {
        width: 100%;
        height: auto;
        overflow: hidden;
        cursor: pointer;
    }
    
    .moreDetails {
        position: unset;
    }
    
    
}