/*  (C) 2019 Endis Ltd. 
	No permission is given to use this code, except on an Endis/ChurchInsight website.

	ChurchInsight over-ride CSS file for the Summit template.
	WARNING - do not edit this file unless you know exactly what you are doing. 
	You might consider making a BACKUP COPY before you change anything.
	If you need advice, contact ChurchInsight Support. */

/* Logo system is COMPLEX! Ask Kenton! */

/* Size of LOGO image */
header .logo-icon img
{ 
	width:  auto !important; 
	height: 24px !important; /* <<< mobile logo height */
    transition:height 300ms linear;
}
@media(min-width:502px){header .logo-icon img
{ 
	height: 35px !important; /* <<< desktop logo height */
}
}
@media(min-width:992px){header .logo-icon img
{ 
	height: 50px !important; /* <<< desktop logo height */
}
}
@media(min-width:992px){header .logo-icon img
{ 
	height: 50px !important; /* <<< desktop logo height */
}
}
/* Gap between logo and top/bottom of screen  */
header div.logo-container 
{
	position: absolute; top:0; left:0; z-index:2;
	margin-top: 18px !important; /* <<< gap from top for mobile/tablet */
	margin-bottom: 0 !important; /* <<< gap from bottom for mobile/tablet */
	transition: margin-top 500ms linear;
}
@media(min-width:502px){
	header div.logo-container {
		margin-top: 12px !important; /* <<< gap from top for desktop */
		margin-bottom: 0 !important; /* <<< gap from bottom for desktop */
	}
	header section.HeaderSmall div.logo-container {margin-top: 5px !important;}
}
@media(min-width:992px){
	header div.logo-container {
		position: static;
		margin-top: 44px !important; /* <<< gap from top for desktop */
		margin-bottom: 0 !important; /* <<< gap from bottom for desktop */
	}
	header section.HeaderSmall div.logo-container {margin-top: 5px !important;}
}
@media(max-width:1440px){
header section.HeaderSmall .logo-icon img
{ 
	height: 20px !important; /* <<< desktop logo height */
}
}
@media(min-width:1630px){
	header div.logo-container {
		position: static;
		margin-top: 22px !important; /* <<< gap from top for desktop */
		margin-bottom: 0 !important; /* <<< gap from bottom for desktop */
	}
	header section.HeaderSmall div.logo-container {margin-top: 5px !important;}
}

header section.slice_Header_T div.nav-menu {text-align:right;margin-top:20px;}
header section.slice_Header_T div.nav-menu ul.root_menu {text-align:left;}
@media(min-width:991px){
	header section.HeaderSmall {border-bottom: 1px solid #dbdbdb !important;} /* have a border to delimit the header area */
	header section.HeaderSmall .logo-icon img {height: 32px !important;}
	header section.HeaderSmall div.nav-menu {margin-top:5px !important;}
	header section.HeaderSmall div.nav-menu ul.root_menu > li > a {padding-bottom:12px !important;}
}
@media(max-width:991px){
  header section.slice_Header_T.ActivateFixedPosition {
    position:fixed;top:0;left:0;right:0;width:100%;z-index:100;border-bottom:1px solid #dbdbdb;
  }
  header {margin-top:59px;}
  header.SlickNavOn {margin-top:0;}
  section.SystemHeaderBackground {display:none;}
}

section.SystemHeaderBackground {height:115px; background-color:#333333;}

/* main logo */
section.slice_Header_T img.LogoGrey,
section.HeaderSmall img.LogoWhite {display: none !important;}
section.HeaderSmall img.LogoGrey {display: block !important;}
@media(max-width:991px){
  section.slice_Header_T img.LogoGrey {display: block !important;}
  section.slice_Header_T img.LogoWhite {display: none !important;}
  section.slice_Header_T div.slicknav_menu {background-color:white;}
  section.slice_Header_T div.slicknav_menu a.slicknav_btn span.slicknav_menutxt {color:#333333;}
  section.slice_Header_T div.slicknav_menu a.slicknav_btn span.slicknav_icon span.slicknav_icon-bar {background-color:#333333;}
}

/* Code for shrinking desktop menus */
/* The widths and which menu-item to break at may need to be changed */
@media (max-width:1620px) {
  header section.slice_Header_T div.nav-menu ul.root_menu > li > a,
  header section.slice_Header_T.HeaderSmall div.nav-menu ul.root_menu > li > a {
    padding:0 20px 5px 0 !important;}
  header section.slice_Header_T.HeaderSmall div.nav-menu {margin-top:30px !important;}
}
@media (max-width:1220px) {
  header section.slice_Header_T div.nav-menu,
  header section.slice_Header_T.HeaderSmall div.nav-menu {margin-top:5px !important;}
  header section.slice_Header_T div.nav-menu ul.root_menu > li:nth-child(5) {clear:both;}
  
  .slice_Header_T .nav-menu ul.root_menu > li:nth-child(4) > ul { position: absolute; top: 100%; left: auto; right: 0; }
  .slice_Header_T .nav-menu ul.root_menu > li:nth-child(4) > ul a { padding-left: 35px; padding-right: 20px; }
  .slice_Header_T .nav-menu ul.root_menu > li:nth-child(4) > ul li.has_sub_menu::after { display: none; }
  .slice_Header_T .nav-menu ul.root_menu > li:nth-child(4) > ul li.has_sub_menu::before { font-family: journey; content: '\e901'; color: #333333; position: absolute; left: 10px; top: 13px; font-size: 1.6rem; line-height: 30px; height: 30px; }
  .slice_Header_T .nav-menu ul.root_menu > li:nth-child(4) > ul ul { position: absolute; top: 0; left: auto; right: 100%; }
}

/* ############ Mobile menu colours */
header section.slice_Header_T div.SlickNavCloseIcon
{
	color: #44a5bf !important; /* <<< colour of the menu close icon */
}

/* ############ Desktop/Mobile menu hover-over text-link color, top-link icons colour, footer email-link text color */
header li:hover > a
{
	color: #44a5bf !important; /* <<< header/footer icon/text-link color */
}

/* ############ Search box background colour */
header div.search-overlay
{
	background-color: #44a5bf !important; /* <<< Search box background colour */
}
header a.search-close 
{
	color: white !important;  /* <<< Search box close icon */
}
i.journey-icon-search::before {
    top:1px;font-size:21px;
}

/* ############ Top bar of Group-Nav on the content page */
section.slice_content_page aside {font-weight:600;}
section.slice_content_page aside ul,
section.slice_content_page aside li,
section.slice_content_page aside img {list-style: none; list-style-type: none; width:100%; display:inline-block; padding:0;}
section.slice_content_page aside li {margin-bottom:10px;text-align:center;}
section.slice_content_page aside nav td.boxout_header_middle a {background-color: #44a5bf !important;} /* <<< Group-Nav top bar background colour */

/* Code for the change in header on scroll */
section.HeaderWhite {
	background-color: white;
}
section.HeaderWhite ul.root_menu a {color: #333333;}

/* Form responses */
div.endis-jquery-ui div#divOverlay {
	font-size: 17px !important; 
	line-height: 1.3 !important;
	letter-spacing: 1px !important;
}

section.slice_WelcomeArticles a.WelcomeMapLink {color: #3e4545;text-decoration:underline;}

section.slice_Children {
	background-position: center center;
}
section.slice_Children {
  background-size:cover;
  background-attachment:fixed;
}

section.slice_WatchOnline,
section.SermonCardsFour {
	background-size: cover;	
	background-position: center top;
}
section.SermonCardsFour {background-color:#44a5bf;}
section.slice_WatchOnline table {margin:0 auto;}
section.slice_WatchOnline img {opacity:0.1; padding-right:50px;display:block;}
section.slice_WatchOnline h1 {line-height: 1;margin-top:0;}
section.slice_WatchOnline td {padding:0; text-align:left; vertical-align:middle;}
section.slice_WatchOnline a.button {margin-left:0;}
section.slice_WatchOnline a.button2 {margin-left:0; margin-right:0;}
@media (max-width:767px) {
	section.slice_WatchOnline img {padding-right:20px;}
	section.slice_WatchOnline td {vertical-align:top;}
	section.slice_WatchOnline a {font-size:14px !important;}
}

/* This is the CSS for a DUMMY instagram feed */
.slice_InstagramFeed iframe.lightwidgetMobile { display: block; }
.slice_InstagramFeed iframe.lightwidgetDeskTop { display: none; }
@media (min-width:768px) {
	.slice_InstagramFeed iframe.lightwidgetMobile { display: none; }
	.slice_InstagramFeed iframe.lightwidgetDeskTop { display: block; }
}
.slice_InstagramFeed i.icomoon-icon-instagram::after {color: #44a5bf; position:relative; top:3px; }
section.slice_InstagramFeed img {display:block;width:100%;}

/* This is the CSS for a LIVE instagram feed */
/*
section.slice_InstagramFeed {padding-left:0;padding-right:0;}
section.slice_InstagramFeed iframe {width:100%;border:none;overflow:hidden;}
section.slice_InstagramFeed i.icomoon-icon-instagram::after {
  color: #44a5bf; position:relative; top:3px; 
}
section.slice_InstagramFeed a.button { 
  border-color: #44a5bf; background-color: transparent; }
section.slice_InstagramFeed a.button:hover { 
  color: white; border-color: #44a5bf; background-color: #44a5bf; opacity: 1; }
*/

/* extra fixes for the header */
header ul.root_menu a,
header ul.slicknav_nav a {font-weight:600 !important;}
header ul.root_menu > li > a {font-size:18px;font-weight:700 !important;}

/* make the video slice slide-show work */
header {position:relative;}

section.slice_SlidesFullWidth a.bx-pager-link:hover,
section.slice_SlidesFullWidth a.bx-pager-link.active
{
    background-color: transparent !important; /* <<< slide show button background color */
    border-color: 	  white !important; /* <<< slide show button border color */
}
/* Slide show inactive round pager buttons */
section.slice_SlidesFullWidth a.bx-pager-link
{
    background-color: white !important; /* <<< slide show inactive round button color */
    border-color: 	  white !important; /* <<< slide show inactive round button border color */
}
section.slice_SlidesFullWidth div.slideTitle {margin:0 20px;}

/* Banner Image code */
section.slice_BannerImage {
  position:relative;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	padding: 200px 10px;
}
@media(max-width:992px){
	section.slice_BannerImage {padding:100px 10px;}
}
section.slice_BannerImage h1 {
  position:relative; z-index:0;
	line-height:1; 
	margin:0; 
	text-align:center;
	color: white;
	font-size: 60px;
	text-transform: uppercase;
}
@media(max-width:992px){
	section.slice_BannerImage h1 {font-size: 40px;}
}
@media(max-width:467px){
	section.slice_BannerImage h1 {font-size: 30px;}
}
section.slice_BannerImage div.BannerImgCustomFields {display:none;}
section.slice_BannerImage div.container {text-align:center;}
section.slice_BannerImage div.OverlayTint {
  position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;
  background-color:rgba(0,0,0,0.4);
}
section.slice_content_page.AddTopBorder {border-top:1px solid #dddddd;}

/* Content page button images */
section.slice_content_page div.ContentSlides img {width:100%;}
@media (min-width:467px) and (max-width:767px) {
	section.slice_content_page div.ContentSlides li {width:50%; float:left;}
}
/* Content page spacing */
section.slice_content_page div.main-content {padding-top:0;}
@media(max-width:992px){
	section.slice_content_page div.main-content {padding-top:20px;}
}

header section.slice_Header_T.HeaderWhite a.slicknav_btn,
header section.slice_Header_T.HeaderWhite a.slicknav_btn span {background-color: white !important; color: #3e4545 !important;}
header section.slice_Header_T.HeaderWhite a.slicknav_btn span.slicknav_icon-bar {background-color: #3e4545 !important;}

.slice_FilmLightBox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 3; background-color: rgba(0, 0, 0, 0.6); }
.slice_FilmLightBox .FlexWrapper { display: flex; flex-flow: row nowrap; justify-content: center; align-items: center; height: 100%; }
.slice_FilmLightBox .LightBox { background-color: white; border-radius: 10px; padding: 10px; }
@media (min-width: 768px) { .slice_FilmLightBox .LightBox { padding: 20px 20px; } }
.slice_FilmLightBox .LightBox .FlexRow { display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: flex-start; background-color: white; border-radius: 10px; }
.slice_FilmLightBox .LightBox .LightBoxTitle { font-size: 17px; line-height: 1.2; padding:0 10px 10px 0; }
.slice_FilmLightBox .LightBox .CloseIcon { font-family: IcoMoon490Icons; font-size: 15px; line-height: 1; color: #44a5bf; }
.slice_FilmLightBox .LightBox .CloseIcon::after { content: "\ea0f"; }

input[type="button"] {border-radius:0 !important;}

@media (min-width:992px) {
	header.NonHomePage {margin-bottom:100px;}
	header.NonHomePageSmall {margin-bottom:60px;}
  section.slice_FindYourPlace,
  section.slice_WelcomeArticles {padding-left:20px;}
  section.slice_GreetedForm_L {padding-left:30px;padding-right:10px;}
  section.slice_system_page div.systemPageContent {padding-left:40px;}
}

@media (max-width:1100px) {
  header section.slice_Header_T.HeaderWhite div.nav-menu {text-align:right !important;}}

/* Remove form on home page */
section.slice_GreetedForm_L div.form_text {width:97.42268% !important; text-align:center !important;}
section.slice_GreetedForm_L img {max-width:100%;}

/* Code to make slide-shows look better on mobile screens */
section.slice_SlidesFullWidth {overflow:hidden;} /* hide anything that pokes outside */
@media (max-width:767px) {
	section.slice_SlidesFullWidth div.bannerSlides {
		width: 200%; /* double the width, which doubles the height, and then translate so we see the middle 50% */
		transform: translateX(-25%);
		overflow:hidden; /* hide anything that pokes outside */
	}
	/* Adjust the captions back again, so they look normal */
	section.slice_SlidesFullWidth div.bannerSlides div.bx-wrapper ul.gallery_ul li.gallery_li div.caption {
		/* div.bx-wrapper has position:relative set, so this is ok */
		left: 25%;
		right: 25%;
		width: 50%;
		overflow:hidden; /* hide anything that pokes outside */
	}
}

/* code for > and < on desktop menus */
section.slice_Header_T div.nav-menu ul.root_menu > li ul li.has_sub_menu::after,
section.slice_Header_T div.nav-menu ul.root_menu > li:last-child > ul li.has_sub_menu::before, 
section.slice_Header_T div.nav-menu ul.root_menu > li:nth-last-child(2) > ul li.has_sub_menu::before
{top:11px;}

/* Fix various issues */
div.endis-jquery-ui div#divOverlay {font-size:17px;line-height:1.3;}
body.OnSmallAppleDevice input {-webkit-appearance: none;}
body.ArticleEditor img.module_icon {width:auto !important;}
section.slice_Footer_L div.footerbar span:last-child:not([id]),
section.slice_Footer_D div.footerbar span:last-child:not([id]) { display: block; padding-top: 25px; }

/* prevent text-overwriting when desktop menus wrap around */
section.slice_Header_D ul.root_menu ul,
section.slice_Header_L ul.root_menu ul,
section.slice_Header_T ul.root_menu ul {z-index:4;}

.slice_FooterTop_D .footer-column.footer-column-1 a i.icomoon-icon-youtube::after { background-color: #ff0000; border: 8px solid #ff0000; }
.slice_FooterTop_D .footer-column.footer-column-1 a:hover i.icomoon-icon-youtube::after { color: #ff0000; }
.slice_FooterTop_D .footer-column.footer-column-1 a i.icomoon-icon-vimeo::after { background-color: #1ab7ea; border: 8px solid #1ab7ea; }
.slice_FooterTop_D .footer-column.footer-column-1 a:hover i.icomoon-icon-vimeo::after { color: #1ab7ea; }

/* Slide-show bottom buttons */ 
section.slice_SlidesFullWidth div.bannerSlides div.bx-wrapper div.bx-pager {bottom:30px;}
section.slice_SlidesFullWidth div.bannerSlides div.bx-wrapper div.bx-pager a.bx-pager-link {
	width:18px;height:18px;border-radius:9px;border-width:2px;margin:0 6px;
}
@media (max-width:1200px) {
	section.slice_SlidesFullWidth div.bannerSlides div.bx-wrapper div.bx-pager {bottom:10px;}
	section.slice_SlidesFullWidth div.bannerSlides div.bx-wrapper div.bx-pager a.bx-pager-link {width:14px;height:14px;border-radius:7px;}
}

/* Fix system page ul lists */		
section.slice_system_page div.system_content ul {
  list-style-type: disc;
  padding-left:40px;
}

/* Fix the new calendar page pop-up */
div.dialog-content.calendar-event-content > h4,
div.dialog-content.calendar-event-content > h4 a.event-location-link {
	display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;
}
/* make sure these are not set */
html,body {height:initial;}

/* Change the colors of a footer-icon */
footer i.icomoon-icon-XXXXX::after {
  background-color: blue !important; 
  border-color: blue !important;
}
footer a:hover i.icomoon-icon-XXXXX::after {
  color:blue !important;
}

/* Extra icon using a square background image */
footer i.icomoon-icon-XXXXXX.ImageSocialMediaIcon::after
{ /* Replace url below with actual url of square icon image */
  background-image: url(/Images/Content/1495/Templates/46170/images/CommissionLogo.png);
}

/* Extra icon using a square background image */
section.slice_FixedSideLinks a.ImageSocialMediaIcon i.icomoon-icon-XXXXXX::after
{ /* Replace url below with actual url of square icon image */
  background-image: url(/Images/Content/1495/Templates/46170/images/CommissionLogo.png);
}

/* This is the CSS for a DUMMY instagram feed */
.slice_InstagramFeed iframe.lightwidgetMobile { display: block; }
.slice_InstagramFeed iframe.lightwidgetDeskTop { display: none; }
@media (min-width:768px) {
	.slice_InstagramFeed iframe.lightwidgetMobile { display: none; }
	.slice_InstagramFeed iframe.lightwidgetDeskTop { display: block; }
}
.slice_InstagramFeed i.icomoon-icon-instagram::after {color: #44a5bf; position:relative; top:3px; }
section.slice_InstagramFeed img {display:block;width:100%;}

/* This is the CSS for a LIVE instagram feed */
/*
section.slice_InstagramFeed {padding-left:0;padding-right:0;}
section.slice_InstagramFeed iframe {width:100%;border:none;overflow:hidden;}
section.slice_InstagramFeed i.icomoon-icon-instagram::after {
  color: #44a5bf; position:relative; top:3px; 
}
section.slice_InstagramFeed a.button { 
  border-color: #44a5bf; background-color: transparent; }
section.slice_InstagramFeed a.button:hover { 
  color: white; border-color: #44a5bf; background-color: #44a5bf; opacity: 1; }
*/

section.slice_SlidesFullWidth div.caption div.slideTitle,
section.slice_SlidesFullWidth div.caption div.slideText
{text-shadow:0 0 2px black;}

@media(min-width:992px){
  header {height:95px; transition:height 500ms linear;}
  header.HeaderElementSmall {height:auto;}
}
header,
header section.slice_Header_T  {background-color:white;}
header section.slice_Header_T ul.root_menu > li > a {color:#333333;} /* Summit */

/* Fix some search box things */
section.slice_FixedSideLinks div.fixed-link-wrapper div.search-overlay_fixed-link span.search-close_fixed-link {cursor:pointer;}

section.SermonCardsFour h1 {color:white;}
section.SermonCardsFour a.ArrowToRight,
section.SermonCardsFour a.ArrowToRight::after {color:white;}
section.SermonCardsFour a.ArrowToRight:hover {
  background-color:white;border-color:white; color:#333333;
}
section.SermonCardsFour a.ArrowToRight:hover::after {color:#333333;}

section.HomepageVideo {position:relative;}
section.HomepageVideo video {
  display:block; object-fit:cover;
}
section.HomepageVideo div.VideoOverlay {
  position:absolute; left:0; right:0; top:0; bottom:0;
  display:flex; flex-flow:column nowrap; justify-content:center; align-items:center;
  color:white;text-align: center;
  padding:0 20px;
}

section.HomepageVideo div.VideoOverlay h1 {
  font-size:64px; font-weight:500; color:white; line-height:1.2;
  margin:0 20px 30px;
  text-align:center;
}
section.HomepageVideo div.VideoOverlay a {
  display:inline-block;
  padding:10px 20px;
  background-color:#b18149; color:white;
  border-radius:6px;
  border:2px solid #b18149;
}
section.HomepageVideo div.VideoOverlay a:hover {
  border-color:white;
}
@media(max-width:991px){
  section.HomepageVideo div.VideoOverlay h1 {
    font-size:32px;
  }
}
section.HomepageVideo div.VideoOverlay div.ArticleBody {
  padding:20px;
}
@media(max-width:467px){
  section.HomepageVideo div.VideoOverlay div.ArticleBody img {
    width:150px;
  }
}