/* ----------- Gallery style -------------*/

.ngg-galleryoverview {
    overflow: hidden;
    margin-top: 10px;
    width: 100%;
    clear: both;
    display: block !important;
}

.ngg-galleryoverview .desc {
    /* required for description */
    margin: 0px 10px 10px 0px;
    padding: 5px;
}

.ngg-gallery-thumbnail-box {
    float: left;
    max-width: 100% !important;
}

.ngg-template-caption .ngg-gallery-thumbnail-box {
    margin-right: 0px;
}

.ngg-gallery-thumbnail {
    text-align: center;
    max-width: 100% !important;
    background-color: #FFFFFF;
    border: 1px solid #A9A9A9;
    margin-right: 5px;
    margin: 5px;
}

.ngg-template-caption .ngg-gallery-thumbnail {
    margin-right: 0px;
}

.ngg-gallery-thumbnail a {
	display: block;
    margin: 4px;
    border: none;
    box-shadow: none;
}

.ngg-gallery-thumbnail img {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 100% !important;
    height: auto;
}

.ngg-gallery-thumbnail span {
    /* Images description */
    font-size: 90%;
    padding-left: 5px;
    display: block;
}

/* ----------- New Default Styling September 2018 -----------*/

.ngg-galleryoverview {
    margin-top: 40px;
    margin-bottom: 50px;
    -webkit-transition: width 1s, height 1s, background-color 1s, -webkit-transform 1s;
    transition: width 1s, height 1s, background-color 1s, transform 1s;
    min-height: 100px;
}

.ngg-gallery-thumbnail-box.ngg-1-columns {
    width: 100%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-2-columns {
    width: 50%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-3-columns {
    width: 33.33333%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-4-columns {
    width: 25%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-5-columns {
    width: 20%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-6-columns {
    width: 16.6666%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-7-columns {
    width: 14.2857%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-8-columns {
    width: 12.5%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-9-columns {
    width: 11.1111%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-10-columns {
    width: 10%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-11-columns {
    width: 9.09%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-12-columns {
    width: 8.3333%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-13-columns {
    width: 7.692%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-14-columns {
    width: 7.142%;
    float: left !important;
}

.ngg-gallery-thumbnail-box.ngg-15-columns {
    width: 6.6666%;
    float: left !important;
}

@media (max-width: 800px) {
    .ngg-gallery-thumbnail-box.ngg-5-columns,
    .ngg-gallery-thumbnail-box.ngg-6-columns,
    .ngg-gallery-thumbnail-box.ngg-7-columns,
    .ngg-gallery-thumbnail-box.ngg-8-columns,
    .ngg-gallery-thumbnail-box.ngg-9-columns,
    .ngg-gallery-thumbnail-box.ngg-10-columns,
    .ngg-gallery-thumbnail-box.ngg-11-columns,
    .ngg-gallery-thumbnail-box.ngg-12-columns,
    .ngg-gallery-thumbnail-box.ngg-13-columns,
    .ngg-gallery-thumbnail-box.ngg-14-columns,
    .ngg-gallery-thumbnail-box.ngg-15-columns,
    .ngg-gallery-thumbnail-box.ngg-16-columns,
    .ngg-gallery-thumbnail-box.ngg-17-columns,
    .ngg-gallery-thumbnail-box.ngg-18-columns,
    .ngg-gallery-thumbnail-box.ngg-19-columns,
    .ngg-gallery-thumbnail-box.ngg-29-columns {
        width: 25%;
    }
}

@media (max-width: 600px) {
    .ngg-gallery-thumbnail-box.ngg-4-columns,
    .ngg-gallery-thumbnail-box.ngg-5-columns,
    .ngg-gallery-thumbnail-box.ngg-6-columns,
    .ngg-gallery-thumbnail-box.ngg-7-columns,
    .ngg-gallery-thumbnail-box.ngg-8-columns,
    .ngg-gallery-thumbnail-box.ngg-9-columns,
    .ngg-gallery-thumbnail-box.ngg-10-columns,
    .ngg-gallery-thumbnail-box.ngg-11-columns,
    .ngg-gallery-thumbnail-box.ngg-12-columns,
    .ngg-gallery-thumbnail-box.ngg-13-columns,
    .ngg-gallery-thumbnail-box.ngg-14-columns,
    .ngg-gallery-thumbnail-box.ngg-15-columns,
    .ngg-gallery-thumbnail-box.ngg-16-columns,
    .ngg-gallery-thumbnail-box.ngg-17-columns,
    .ngg-gallery-thumbnail-box.ngg-18-columns,
    .ngg-gallery-thumbnail-box.ngg-19-columns,
    .ngg-gallery-thumbnail-box.ngg-29-columns {
        width: 33.33333%;
    }
}

@media (max-width: 400px) {
    .ngg-gallery-thumbnail-box.ngg-3-columns,
    .ngg-gallery-thumbnail-box.ngg-4-columns,
    .ngg-gallery-thumbnail-box.ngg-5-columns,
    .ngg-gallery-thumbnail-box.ngg-6-columns,
    .ngg-gallery-thumbnail-box.ngg-7-columns,
    .ngg-gallery-thumbnail-box.ngg-8-columns,
    .ngg-gallery-thumbnail-box.ngg-9-columns,
    .ngg-gallery-thumbnail-box.ngg-10-columns,
    .ngg-gallery-thumbnail-box.ngg-11-columns,
    .ngg-gallery-thumbnail-box.ngg-12-columns,
    .ngg-gallery-thumbnail-box.ngg-13-columns,
    .ngg-gallery-thumbnail-box.ngg-14-columns,
    .ngg-gallery-thumbnail-box.ngg-15-columns,
    .ngg-gallery-thumbnail-box.ngg-16-columns,
    .ngg-gallery-thumbnail-box.ngg-17-columns,
    .ngg-gallery-thumbnail-box.ngg-18-columns,
    .ngg-gallery-thumbnail-box.ngg-19-columns,
    .ngg-gallery-thumbnail-box.ngg-29-columns {
        width: 50%;
    }
}

/* ----------- Styling for Basic Thumbnail Simple Template September 2018 -----------*/

.ngg-galleryoverview.default-view {
    text-align: center;
    font-size: 0 !important;
    letter-spacing: 0 !important;
}

.ngg-galleryoverview.default-view .ngg-gallery-thumbnail-box {
    display:inline-block;
    float: none;
    vertical-align: middle;
}

.ngg-galleryoverview.default-view .ngg-gallery-thumbnail {
    background-color: transparent;
    border: none;
    margin: 0;
    margin-right: 0;
    position: relative;
}

.ngg-galleryoverview.default-view .ngg-gallery-thumbnail a {
    margin: 2px;
    box-shadow: none;
}

.ngg-galleryoverview.default-view .ngg-gallery-thumbnail img:hover {
    opacity: .8;
}

.ngg-galleryoverview.default-view .ngg-gallery-thumbnail img {
    margin: 0 auto;
    box-shadow: none;
    cursor: pointer;
}

.ngg-galleryoverview.default-view .slideshowlink {
    margin: 24px auto 0;
    text-align: center;
    text-transform: uppercase;
}

.ngg-galleryoverview.default-view .slideshowlink a {
    font-size: 13px;
    letter-spacing: .75px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    border: none;
}

.ngg-galleryoverview.default-view .slideshowlink a:hover {
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ----------- Gallery list (Carousel template) -------------*/

.ngg-galleryoverview ul li:before {
    content: '' !important;
}

.ngg-gallery-list {
    list-style-type: none;
    padding: 0px !important;
    text-indent: 0px !important;
}

.ngg-galleryoverview div.pic img {
    width: 100%;
	border: 0px;
	border-radius: 0px;
}

.ngg-gallery-list li {
    float: left;
    margin: 0 2px 0px 2px !important;
    overflow: hidden;
}

.ngg-gallery-list li a {
    border: 1px solid #CCCCCC;
    display: block;
    padding: 2px;
}

.ngg-gallery-list li.selected a {
    -moz-background-inline-policy: continuous;
    -moz-background-origin: padding;
    background: #000000 none repeat scroll 0 0;
}

.ngg-gallery-list li img {
    height: 40px;
    width: 40px;
}

li.ngg-next, li.ngg-prev {
    height: 40px;
    width: 40px;
    font-size: 3.5em;
}

li.ngg-next a, li.ngg-prev a {
    padding-top: 10px;
    border: none;
    text-decoration: none;
}

/** Caption view */
.ngg-caption-view-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/** Carousel view */
.ngg-basic-thumbnails-carousel {
    display: flex;
    justify-content: center;
}

.ngg-basic-thumbnails-carousel-list {
    display: flex;
    flex-wrap: wrap;
}

.ngg-galleryoverview.carousel-view .ngg-gallery-thumbnail img {
    max-width: 80px !important;
}/* ----------- Gallery navigation -------------*/
.ngg-navigation {
    font-size: 0.9em !important;
    clear: both !important;
    display: block !important;
    padding-top: 24px;
    padding-bottom: 3px;
    text-align: center;
}

.ngg-navigation a.page-numbers,
.ngg-navigation a.next,
.ngg-navigation a.prev,
.ngg-navigation span.page-numbers,
.ngg-navigation span.next,
.ngg-navigation span.prev,
.ngg-navigation span.current {
    background: #BBB;
    border: none;
    border-radius: 2px;
    box-shadow: none;
    color: #fff;
    display:inline;
    font-size: 14px;
    font-weight: bold;
    margin-right: 3px;
    padding: 4px 8px;
    text-decoration: none;
    cursor: pointer !important;
}

.ngg-navigation .ellipsis {
    background: #BBB;
    border: none;
    border-radius: 2px;
    box-shadow: none;
    color: #fff;
    display:inline;
    font-size: 14px;
    font-weight: bold;
    margin-right: 3px;
    padding: 4px 8px;
    text-decoration: none;
}

.ngg-navigation span.current {
    background: #666;
}

.ngg-navigation a.next,
.ngg-navigation a.prev,
.ngg-navigation span.next,
.ngg-navigation span.prev {
    background: transparent;
    color: #BBB;
    padding: 2px;
    border: none;
}

.ngg-navigation a.page-numbers:hover,
.ngg-navigation span.page-numbers:hover,
.ngg-navigation span.current:hover {
    background: #666;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.ngg-navigation a.next:hover,
.ngg-navigation a.prev:hover,
.ngg-navigation span.next,
.ngg-navigation span.prev {
    color: #666 !important;
}

.ngg-navigation a.page-numbers {
    display: inline;
}

.ngg-clear {
    clear: both;
}
/* ----------- Sidebar widget -------------*/

.ngg-widget,
.ngg-widget-slideshow {
    overflow: hidden;
    margin: 0pt;
    padding: 5px 0px 0px 0pt;
    text-align: left;
}

.ngg-widget img {
    border: 2px solid #A9A9A9;
    margin: 0pt 2px 2px 0px;
    padding: 1px;
    height: auto; /* silly, but without this the images will appear distorted with some WP themes */
    float: left;
}
.ngg-slideshow.slick-slider {
    margin: 40px auto 50px !important;
    overflow: visible;
}

.ngg-slideshow .ngg-gallery-slideshow-image {
    display: inline-block;
    text-align: center;
    font: 0/0 a;
}

.ngg-slideshow .ngg-gallery-slideshow-image:before {
    content: ' ';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.ngg-slideshow .ngg-gallery-slideshow-image a {
    display: inline !important;
}

.ngg-slideshow .ngg-gallery-slideshow-image img {
    margin: 0 auto;
    display: inline-block !important;
    vertical-align: middle;
    max-width: 99%!important;
    max-height: 98% !important;
}

.ngg-slideshow .slick-prev {
    left: 20px !important;
    z-index: 10 !important;
    top: 49%;
    cursor: before;
}

.ngg-slideshow .slick-next {
    right: 30px !important;
    z-index: 10 !important;
    top: 49%;
    cursor: pointer;
}

.ngg-slideshow .slick-next:before, 
.ngg-slideshow .slick-prev:before {
    color: #CCC !important;
    font-size: 32px !important;
}

.ngg-slideshow .slick-next:hover:before, 
.ngg-slideshow .slick-prev:hover:before {
    color: #AAA !important;
    font-size: 32px !important;
}

.ngg-slideshow .slick-dots {
    margin: 0;
    padding: 0;
    bottom: -30px;
}

.ngg-slideshow .slick-dots li {
    margin: 0;
}

.ngg-slideshow .slick-dots li button {
    margin: 0;
}

.ngg-slideshow .slick-dots li button:before {
    font-size: 8px;
    color: #888;
    opacity: .5;
    cursor: pointer;
}

.ngg-slideshow .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #555;
}

.slideshowlink {
    margin: -34px auto 50px;
    text-align: center;
    text-transform: uppercase;
}

.slideshowlink a {
    font-size: 13px;
    letter-spacing: .75px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    border: none;
}

.slideshowlink a:hover {
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}

@media (max-width: 600px) {
    .ngg-slideshow .ngg-gallery-slideshow-image {
        height: 400px !important;
    }
}

@media (max-width: 450px) {
    .ngg-slideshow .ngg-gallery-slideshow-image {
        height: 300px !important;
    }
    
}