/* ----------- 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;
}/* ----------- 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;
}.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;
    }
    
}/* Templates */

body.page-template-bt-no-sidebar-wide .site-content,
body.page-template-bt-no-sidebar-boxed .site-content { 
	padding-top: 0em;
	width: auto;
	float: none;
	margin-right: 0;
}

body.page-template-bt-no-sidebar-bb .entry-header,
body.page-template-bt-no-sidebar-wide .entry-header,
body.page-template-bt-no-sidebar-boxed .entry-header { 
	margin-top: 4em;
	margin-left: 4em;
}

body.page-template-bt-no-sidebar-bb .site-footer,
body.page-template-bt-no-sidebar-wide .site-footer,
body.page-template-bt-no-sidebar-boxed .site-footer { 
	margin-top: 0em;
}

body.page-template-bt-no-sidebar-bb .site-content#content,
body.page-template-bt-no-sidebar-wide .site-content#content { 
	padding-top: 0em;
	padding-bottom: 0em;
	width: auto;
	float: none;
	margin-right: 0;
}

body.bt-remove-entry-header .page-header,
body.bt-remove-entry-header .type-page .entry-header  {
	display: none;
}

@media screen and (min-width: 48em) {
	body.page-template-bt-no-sidebar-boxed .site-content .wrap {
		max-width: 920px;
	}
	
	body.page-template-bt-no-sidebar-wide .panel-content .wrap {
		max-width: none;
		padding: 0;
	}	
}

.page-template-bt-no-sidebar-wide .site-content .wrap,
.page-template-bt-no-sidebar-wide .site-content .wrap #primary {
	max-width: none;
	padding: 0;
}

/* Full Screen */

@media screen and (min-width: 48em) {
	.page-template-bt-no-sidebar-bb .site-header {
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
	}
	.page-template-bt-no-sidebar-bb.page:not(.home) #content {
		padding: 0;
	}

	.page-template-bt-no-sidebar-bb .custom-header-media:before {
		background-image: none;
	}
	.page-template-bt-no-sidebar-bb.colors-dark .navigation-top:not(.site-navigation-fixed), 
	.page-template-bt-no-sidebar-bb.colors-dark .navigation-top:not(.site-navigation-fixed) .main-navigation .menu-main-menu-container > ul,
	.page-template-bt-no-sidebar-bb  .navigation-top:not(.site-navigation-fixed) {
		background-color: transparent;
	}

	.page-template-bt-no-sidebar-bb.colors-dark .navigation-top,
	.page-template-bt-no-sidebar-bb .navigation-top:not(.site-navigation-fixed) {
		border-color: transparent;
	}
}

.page-template-bt-no-sidebar-bb .site-content .wrap,
.page-template-bt-no-sidebar-bb .site-content .wrap #primary {
	max-width: none;
	padding: 0;
}


/* Remove default home page screen */

.bt-remove-home-fullscreen.has-header-image.twentyseventeen-front-page .custom-header, 
.bt-remove-home-fullscreen.has-header-video.twentyseventeen-front-page .custom-header, 
.bt-remove-home-fullscreen.has-header-image.home.blog .custom-header, 
.bt-remove-home-fullscreen.has-header-video.home.blog .custom-header {
	display: block;
	height: auto;
}

@media screen and (min-width: 48em) {
	.bt-remove-home-fullscreen.twentyseventeen-front-page.has-header-image .custom-header-media, 
	.bt-remove-home-fullscreen.twentyseventeen-front-page.has-header-video .custom-header-media, 
	.bt-remove-home-fullscreen.home.blog.has-header-image .custom-header-media, 
	.bt-remove-home-fullscreen.home.blog.has-header-video .custom-header-media {
		height: auto;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
	}

	.bt-remove-home-fullscreen.twentyseventeen-front-page.has-header-image .custom-header-media:before, 
	.bt-remove-home-fullscreen.twentyseventeen-front-page.has-header-video .custom-header-media:before, 
	.bt-remove-home-fullscreen.home.blog.has-header-image .custom-header-media:before, 
	.bt-remove-home-fullscreen.home.blog.has-header-video .custom-header-media:before {
		height: 100%;
	}

	.bt-remove-home-fullscreen.twentyseventeen-front-page.has-header-image .custom-header-media img, 
	.bt-remove-home-fullscreen.twentyseventeen-front-page.has-header-video .custom-header-media img, 
	.bt-remove-home-fullscreen.home.blog.has-header-image .custom-header-media img, 
	.bt-remove-home-fullscreen.home.blog.has-header-video .custom-header-media img {
		object-fit: cover;
		position: absolute;
		left: 0;
		right: 0;
		top: 50%;
		transform: translate3d(0,-50%,0);
	}

	.bt-remove-home-fullscreen.has-header-image.twentyseventeen-front-page .site-branding, 
	.bt-remove-home-fullscreen.has-header-video.twentyseventeen-front-page .site-branding, 
	.bt-remove-home-fullscreen.has-header-image.home.blog .site-branding, 
	.bt-remove-home-fullscreen.has-header-video.home.blog .site-branding {
	    bottom: auto;
	    display: block;
	    left: auto;
	    height: auto;
	    padding-top: 0;
	    position: relative;
	    width: auto;
	    z-index: 2;
	}
}

@media screen and (min-width: 30em) {
	.bt-remove-home-fullscreen.has-header-image.twentyseventeen-front-page .site-branding, 
	.bt-remove-home-fullscreen.has-header-video.twentyseventeen-front-page .site-branding, 
	.bt-remove-home-fullscreen.has-header-image.home.blog .site-branding, 
	.bt-remove-home-fullscreen.has-header-video.home.blog .site-branding {
	    padding: 3em 0;
	}
}

/* Central menu */

@media screen and (min-width: 48em) {
	body.bt-menu-center .main-navigation > div > ul {
		text-align: center;
	}
	body.bt-menu-center .site-branding .wrap {
		text-align: center;
	}
}

@media (max-width: 48em) {
	body.bt-menu-center .main-navigation ul {
		text-align: center;
	}
	body.bt-menu-center .main-navigation ul ul {
		padding: 0;
	}
}

@media screen and (max-width: 768px) {

	body.bt-menu-center .custom-logo-link img {
	    display: inline-block;
	    width: auto;
	    margin: 0 auto 1em;
	}

	body.bt-menu-center .site-branding,
	body.bt-menu-center .site-branding-text {
		display: block;
		text-align: center;
	}

	body.bt-menu-center.has-header-image .site-branding, 
	body.bt-menu-center.has-header-image.home.blog .site-branding, 
	body.bt-menu-center.has-header-video.home.blog .site-branding {
		display: block;
	}

}

/* Right menu */

@media screen and (min-width: 48em) {
	body.bt-menu-right .main-navigation > div > ul {
		text-align: right;
	}
	body.bt-menu-right .site-branding .wrap {
		text-align: right;
	}
}




/* Case to case fixes */

/* Article 'clear' within two columns */
.twentyseventeen-panel {
	clear: both;
	&:after {
		content: ' ';
		display: table;
		width: 100%;
		clear: both;
	}
}


/* /Case to case fixes */