@import url('https://fonts.googleapis.com/css?family=Merriweather:300,300i,400,400i,700,700i,900,900i&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@700&display=swap');
/*font-family: 'Frank Ruhl Libre', serif;*/
/*@font-face {*/
/*  font-family: bellefair;*/
/*  src: url(https://images.shulcloud.com/4744/uploads/Fonts/Bellefair-Regular.ttf);*/
/*}*/


body{
    font-family: 'Merriweather', serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Merriweather', serif;
}
.home #maincontent p {
    line-height: 1.4;
}
#maincontent p {
    line-height: 1.6;
}

#maincontent h6 {
    color: #1756a3;
    font-size:24px;
    text-align:center;
}

/* use this for hebrew inside an inner page */
#maincontent h1 span[dir="rtl"],
#maincontent h2 span[dir="rtl"],
#maincontent h3 span[dir="rtl"],
#maincontent h4 span[dir="rtl"],
#maincontent h5 span[dir="rtl"],
#maincontent h6 span[dir="rtl"] {
    font-family: 'Frank Ruhl Libre', serif
}

#content .header_slider .sy-caption-wrap .sy-caption .slider_title, #content .header_slider .sy-caption-wrap .sy-caption .slider_description{
    font-family: 'Merriweather', serif;
}

.home #footer .socials {
    top: -0px;
}

.fck_widget_calendar .readmore{
    display: none !important;
}

/*
.featured_article.quick_links_odd .section_subcontent p{
    display: flex;
    height: 80px;
    background-color: red;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 !important;
 } */

.featured_article.quick_links_odd .section_subcontent p a{
    display: flex;
    height: 100px;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: #ffffff;
    line-height: 1.4;
    padding: 15px;
}

.featured_article.quick_links_odd .section_subcontent p a{
    background-color: rgba(58, 162, 162, 0.9);
}

.featured_article.quick_links_odd .section_subcontent:nth-child(2) p a{
    background-color: #1763B0;
}

.featured_article.quick_links_even .section_subcontent p a{
    display: flex;
    height: 100px;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: #ffffff;
    line-height: 1.4;
    padding: 15px;
}

.featured_article.quick_links_even .section_subcontent p a{
    background-color: #1763B0;
}

.featured_article.quick_links_even .section_subcontent:nth-child(2) p a{
    background-color: rgba(58, 162, 162, 0.9);
}

.featured_article.quick_links_even .section_subcontent p a:hover, .featured_article.quick_links_odd .section_subcontent p a:hover{
    background-color: #5C5C5C;
    color: #ffffff;
}


.home #maincontent h2.content_title {
    text-align: center;
    font-weight: 900;
    font-size: 37px;
    line-height: 47px;
    margin: 50px auto;
    color: #3a3a3a;
}

.image-teaser a {
    font-style: normal;
    font-weight: 900;
    font-size: 16px;
    line-height: 20px;
}

div.default, #maincontent{
    border-bottom: 0;
}

.breadcrumbsection {
    padding: 20px 0;
}

.breadcrumbsection span{
    display: none;
}

.breadcrumbsection span.breadcrumbdiv{
    display: inline-block;
}

#maincontent_sidebar_wrapper {
    width: 1170px;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    padding: 0 0 50px;
}

#sidebar_left{
    height: 135px;
}

#maincontent_sidebar_wrapper #maincontent{
    padding-left: 0;
}

#maincontent h2.content_title{
    color: #1756A3;
}

#date_box{
    display: none;
}

#sidebar_right .right_bm{
    background: #1756a3;
    border-radius: 5px;
    overflow: hidden;
}
#sidebar_right p {
    color:#fff;
}
#sidebar_right .content_body > p, #sidebar_right .content_body > ul {
    padding-left:25px;
    padding-right:25px;
}

#sidebar_right .right_bm .fck_widget_events ul.upcomingEvents li{
    width: 100% !important;
    padding: 15px 25px !important;
    border-bottom: 1px dashed #90cac9;
}
#sidebar_right .right_bm .fck_widget_events ul.upcomingEvents li:last-child {
    border-bottom:0px;
}
#sidebar_right .right_bm .fck_widget_events ul.upcomingEvents li:first-child {
    padding-top:0px !important;
}

#sidebar_right .right_bm .fck_widget_events ul.upcomingEvents li .event_widget_time{
    display:none;
}
#sidebar_right .right_bm .fck_widget_events .event_widget_date_box{
    display: flex;
    color: #ffffff;
    font-size: 14px;
}

#sidebar_right .right_bm .right_content .content_body{
    padding: 0;
    padding-top:15px;
}

#sidebar_right .right_bm .fck_widget_events ul.upcomingEvents li br{
    display: none !important;
    height: 0;
}

#sidebar_right .right_bm .event_widget_date_box_day_of_week{
    margin-right: 5px;
}
#sidebar_right .right_bm .fck_widget_events .event_widget_date_box_comma:nth-child(2),
#footer .fck_widget_events .event_widget_date_box_comma:nth-child(2) {
    display:inline;
}

#sidebar_right .right_bm .fck_widget_events .event_widget_date_box_comma:nth-child(2) {
    margin-left: -5px;
    margin-right: 5px;
}

#footer .fck_widget_events .event_widget_date_box_comma:nth-child(2) {
    margin-left: -3px;
}

#sidebar_right .right_bm .content_body ul.upcomingEvents li .event_widget_title{
    font-size: 18px;
    color: #ffffff !important;
    line-height: 1.4;
    padding-bottom: 0;
    display: block;
    text-decoration: none;
    font-weight: normal;
}

#sidebar_right .right_bm .right_content .content_body .fck_widget_inner_pages ul {
    margin-left:0px;
}
#sidebar_right .right_bm .right_content .content_body .fck_widget_inner_pages ul ul {
    margin-left: 20px;
}
#sidebar_right .right_bm .right_content .content_body .fck_widget_inner_pages li a span{
    display: none;
}

#sidebar_right .right_bm .right_content .content_body .fck_widget_inner_pages li.main_nav_item{
    border-bottom: 1px solid #90cac9;
}

#sidebar_right .right_bm .right_content .content_body .fck_widget_inner_pages li.main_nav_item a{
    color: #ffffff;
    display: block;
    text-decoration: none;
    font-size: 24px;
    line-height: 1.4;
    padding: 5px 15px 15px 25px;
}

#sidebar_right .right_bm .right_content .content_body .fck_widget_inner_pages li a{
    color: #ffffff;
    padding: 10px 25px;
    font-size: 18px;
    display: block;
    text-decoration: none;
}

#sidebar_right .right_bm .right_content h2.content_title{
    color: #ffffff;
    display: block;
    text-decoration: none;
    font-size: 24px;
    line-height: 1.4;
    font-family: inherit;
    margin-bottom: 0;
    font-weight: normal;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #90cac9;
    padding: 25px 15px 15px 25px;
}
#sidebar_right a {
    color: #fff;
    text-decoration:none;
}
#sidebar_right a:hover {
    text-decoration: underline;
}
#sidebar_right .content_body > ul li {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 14px;
    font-weight: 400;
}
.breadcrumbsection a{
    color: #e8ad2b;
}

.breadcrumb_wrapper {
    background: transparent;
    width: 1170px;
    margin: 0 auto;
    margin-bottom: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
}

.breadcrumbpaginationh1section h1 {
    display: block !important;
    margin-bottom: 0px;
    color: #1756A3;
    font-size: 36px;
    text-align: left;
    font-weight: 700;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-transform: capitalize;
    font-family: inherit;
}

.breadcrumbpaginationh1section h1 span{
    /*color: #7cb7dd;*/
    border-left: 3px solid #e8ad2b;
    padding-left: 10px;
    /*font-family: 'bellefair', serif;*/
    font-family: 'Frank Ruhl Libre', serif;
    /*font-size:48px;*/
    letter-spacing:1px;
}

.breadcrumbpaginationh1section {
    background: transparent;
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #90cac9;
}


.button-yellow {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 8px 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    cursor: pointer;
    border: 0 !important;
    text-decoration: none !important;
    border-radius: 25px;
    background: #e8ad2b;
    z-index: 0;
    overflow: hidden;
}

.button-yellow:hover {
    background: #ffffff;
    text-decoration: none;
    color: #000000;
}

.button-blue {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 8px 20px !important;
    color: #ffffff;
    font-weight: bold !important;
    line-height: 1.4;
    display: inline-block;
    text-decoration: none !important;
    cursor: pointer;
    border: 0 !important;
    border-radius: 25px;
    background: #1756a3;
    z-index: 0;
    overflow: hidden;
}

.button-blue:hover, #footer .button-blue:hover, .home #footer a.button-blue:hover {
    background: #ffffff;
    text-decoration: none;
    color: #000000;
}

.counter-teaser h1 {
    background-color: #00a0b0;
    color: #ffffff !important;
    margin-bottom: 0;
    font-size: 3em;
    padding: 30px;
    padding-bottom: 0;
    padding-top: 10px;
}

.counter-teaser h4 {
    background-color: #00a0b0;
    color: #ffffff !important;
    text-align: left;
    padding: 30px;
    padding-top: 0;
    padding-bottom: 20px;
}

.counter-teaser .section_subcontent:nth-child(2) h1, .counter-teaser .section_subcontent:nth-child(4) h1{
    background-color: #1756a3;
}

.counter-teaser .section_subcontent:nth-child(2) h4, .counter-teaser .section_subcontent:nth-child(4) h4{
    background-color: #1756a3;
}

.counter-teaser .section_subcontent:last-child{
    padding-right: 15px !important;
}

.js .photostack{
    height: 500px;
}

.photostack{
    background: #525252 !important;
}

.photostack-title{
    display: none;
}

.photostack figure{
    padding: 0 !important;
    width: 450px !important;
    border: 1px solid #85c39c;
}

.photostack-img{
    width: 100% !important;
    height: 280px !important
}

.content_body .section_subcontent:last-child{
    padding-right: 0;
}

.home .featured_article.whats-happening{
    padding-bottom: 40px;
}

.home .featured_article.whats-happening .content_body{
    max-width: 100%;
    padding-left: 90px;
    padding-right: 90px;
}

.home .featured_article.whats-happening a{
    color: #1756A3;
    text-decoration: none;
}

.home .featured_article.whats-happening .section_subcontent img{
    min-height: 180px;
    object-fit: cover;
    object-position: top center;
}

.home #maincontent .featured_article.upcoming_events{
    text-align: center;
    width: 70%;
    margin: 0px auto;
    float: none;
}

.home .upcoming_events .content_body ul.upcomingEvents li .event_widget_desc {
    display: block;
    color: #000000;
    margin-top: 10px;
    padding-bottom:15px;
    line-height: 1.4;
}

.home  #maincontent.default .upcoming_events .content_body .fck_widget_events UL li br{
    display: none;
}

.home .upcoming_events .content_body ul.upcomingEvents li .event_widget_title{
    color: #1756A3 !important;
    margin-bottom: 5px;
    text-decoration: none !important;
}

.home  #maincontent.default .upcoming_events .content_body .fck_widget_events UL li{
    text-align: left;
}

.home .upcoming_events .content_body ul.upcomingEvents li .event_widget_time{
    display: flex;
    flex-wrap: wrap;
    font-style: normal;
    font-size: 14px;
    font-weight: normal;
}
.home .content_body ul.upcomingEvents li .event_widget_time .event_start_date {
    flex-basis: 100%;
}
.home i.event_widget_time span {
    padding-right:4px;
}
.home .content_body ul.upcomingEvents li .event_widget_time {
    font-family: 'Merriweather', serif;
}

.home #maincontent .featured_article.upcoming_events > div{
    margin: 0px auto;
    padding-left: 90px;
    padding-right: 90px;
    text-align: left;
}

.home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(1){
    background: transparent;
    /*height: 500px !important;*/
    width: 50% !important;
    overflow: visible;
}

.home .upcoming_events .content_body ul.upcomingEvents li .event_widget_picture{
    display: block;
}

.home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(2){
    width: 25% !important;
    background: transparent;
}

.home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(3){
    width: 25% !important;
    background: transparent;
}

.home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(4){
    width: 25% !important;
    background: transparent;
}

.home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(5){
    width: 25% !important;
    background: transparent;
}

.home .image-teaser .section_subcontent{
    background-color: #00a0b0;
    padding: 35px;
}

.home .image-teaser .section_subcontent:last-child{
    background-color: #1756a3;
    padding: 35px;
}

.home #maincontent .image-teaser p{
    line-height: 1.4;
    margin-bottom: 15px;
}

.home #maincontent .featured_article.parallax-teaser{
    text-align: center;
}

.home #maincontent .featured_article.parallax-teaser p{
    font-size: 19px;
    line-height: 31px;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

.home .parallax-teaser > div{
    background-color: rgba(66,162,161,0.70);
}

.home #maincontent .featured_article.image-teaser{
    background-color: #ffffff;
    padding-bottom: 40px;
}


.home #maincontent .featured_article.parallax-teaser p{
    font-size: 20px;
    line-height: 1.4;
}

.home #maincontent .featured_article.parallax-teaser  h2.content_title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
}
.parallax-teaser a:hover {
    color:#000;
}

.home #content .header_slider .sy-slide > img{
    max-height: 580px;
    object-fit: cover;
    object-position: top center;
}

.home #content .header_slider .sy-caption-wrap{
   background:none;
   right: 8%;
   left: auto;
   max-width:500px;
   min-height:220px;
   padding: 0px;
}
 #content .header_slider .sy-caption-wrap {
     min-height:220px;
 }
  #content .header_slider .sy-caption-wrap .sy-caption {
   background: rgba(66,162,161,0.70);
   right: 8%;
   left: auto;
   max-width:500px;
     min-height:220px;
     border-radius: 0px;
    padding: 30px;;
}
#content .header_slider .sy-controls {
    display:none;
}
#content .header_slider .sy-caption-wrap .sy-caption .slider_description {
    padding-bottom:20px;
}
.home #content .header_slider .sy-caption-wrap .sy-caption .slider_link{
    margin-top: 10px;
    margin-bottom: 0;
    padding: 15px 40px;
    color: #1756a3;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    cursor: pointer;
    border: 0;
    border-radius: 30px;
    background: #ffffff;
    z-index: 0;
    overflow: hidden;
}

.block-teaser .section_subcontent {
    background-color: #1756A3;
    color: #ffffff;
    text-align: center;
}

#maincontent .block-teaser .section_subcontent p{
    line-height: 1.4;
}

.block-teaser .section_subcontent h3{
    color: #ffffff;
    margin-bottom: 15px;
}

.block-teaser .description{
    min-height: 100px;
}

#menu-wrapper{
    background: none;
}

#img_div{
    width: auto;
    left: -81px;
}

#img_div > a{
    height: auto;
}

.search_area{
    top: 10px;
}

.top_links {
    height: auto;
    right: 200px;
    position: absolute;
    width: auto;
    top: 10px;
    padding-top:10px;
}

.search_area input[type="text"] {
    font-size: 15px;
    padding: 6px 13px;
    min-width: 180px;
    margin: 0;
    background: #676464;
    border-radius: 25px;
    -moz-border-radius: 25px;
    -webkit-border-radius: 25px;
    border: 0;
    color: #ffffff;
    outline: 0;
    font-weight: 300;    
    background-image: url(https://images.shulcloud.com/4744/uploads/Website-Images/Assets/search.png);
    background-position: 10px center;
    background-repeat: no-repeat;
    background-size: 50px;
}

.search_area::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #ffffff;
  opacity: 1; /* Firefox */
}

.search_area::-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #ffffff;
}

.search_area::-ms-input-placeholder { /* Microsoft Edge */
  color: #ffffff;
}

.search_area input[type="submit"]{
    display: none;
}

#nav_section li a span{
    right: 0;
}

#nav_section li a span.hebrew {
    text-align: center;
    width: auto;
    height: auto;
    z-index: -1;
    background: none;
    display: block;
    position: relative;
    top: 0;
    margin: 0px;
    color: #1756A3;
    /*font-family: 'bellefair', serif;*/
    font-family: 'Frank Ruhl Libre', serif;
    letter-spacing:.5px;
    /*font-size:22px;*/
}

#nav_section li ul{
    top: auto;
}

#nav_section li ul li a{
    text-align: left;
}

#nav_section{
    margin-top: 60px;
}

#nav_section li a{
    color: #1756A3;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

/*#nav_section > li > a:before{*/
/*    content: "";*/
/*    display: block;*/
/*    margin: 0 auto;*/
/*    width: 30px;*/
/*    padding-top: 10px;*/
/*    border-top: 2px solid #e8ad2b;*/
/*}*/
#nav_section span.hebrew:after {
    content: "";
    display: block;
    margin: 0 auto;
    margin-top: 3px;
    margin-bottom: 3px;
    width: 40px;
    border-top: 3px solid #e8ad2b;
}
#nav_section li a:hover,
#nav_section li a:hover span {
    color: #3a3a3a;
}

.top_links>li a {
    color: #444444;
    background: transparent !important;
    min-width: auto;
    margin-right: 20px;
    text-transform: capitalize;
}
/******************************
EVENT PAGE
***********************************/
body.event #sidebar_right .right_bm:first-child {
    display:none;
}
body.event #maincontent_sidebar_wrapper {
    margin-top:30px;
}
body.event #maincontent .pad-helper > div[style="clear:both;height:10px;"]:first-of-type {
    display:none;
}
/********************************
CALENDAR
********************************/
#maincontent.cal {
    margin-top:25px;
}
#maincontent.cal .pad-helper > h2 {
    color: #1756A3;
}
table.calendar_header_date th.month_header {
    color:#666;
}
table.calendar td span.day {
    color:#000;
}
table.calendar td span.jewishDay {
    position: absolute;
    top: 0px;
    right: 0px;
    color:#000;
}
#maincontent table.calendar td ul li {
    color:#000;
    margin-bottom:10px;
}
table.calendar td div.sedra a {
    font-size: 14px;
    line-height: 1.2;
    color: #1756A3;
    margin-bottom:10px;
    display:block;
}
#maincontent.cal .calendar_day_view > h2:first-of-type {
    line-height:1.5;
}
.popevent {
    position: fixed;
    left: 0!important;
    top: 0!important;
    width: 100%;
    height: 100%!important;
    background: rgba(92, 92, 92, 0.5);
    text-align: left;
}
.popevent .overrideedit {
    display:block;
    line-height:1.5;
}
.popevent .overrideedit + br {
    display:none;
}
 
.popevent .eventheader {position: relative;top: 29%;right: 29%;z-index: inherit;}
.popevent h3 {text-align:center;padding-bottom:10px;}
.popevent .datetime {text-align: center;margin-bottom: 10px;}
.popevent .description {font-size: 1em;line-height:1.4em;}
.popevent .description a {line-height:32px;float:right;color:#f07100;}

.popevent h3 {
    color: inherit;
    margin-bottom:10px;
    padding-bottom:0px;
}
.popevent .eventbody {
    margin: 10px;
    background: white;
    position: absolute;
    top: 27%;
    left: 28%;
    width: 40%;
    padding: 24px;
    text-align: left;
    border-radius: 7px;
}
.popevent .eventheader .headerclose {
    position: relative;
    top: -1px;
    right: 48px;
    position: relative;
    color: #fff;
    border:0px;
    background: #1756A3;
    border-top-right-radius: 5px;
    padding:5px;
    font-family: 'Arial', sans-serif;
}

#footer .footer_inner h2{
    font-style: normal;
    font-weight: bold;
    color: #ffffff;
    font-size: 27px !important;
    line-height: 34px !important;    
}

#footer .footer_inner h2 a{
    font-style: normal;
    font-weight: bold;
    color: #ffffff;
    font-size: 27px !important;
    line-height: 34px !important;   
}
#footer h3 {
    margin-bottom: 13px;
}
#footer .content_body h4 {
    margin-bottom:10px;
}
#footer .socials a {
    color: #FFF;
    background: #1756a3 !important;
    font-style: normal;
    font-weight: normal;
    font-size: 26px;
    line-height: 30px;
    display: flex;
    height: 44px;
    width: 44px;
    border-radius: 22px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#footer .socials li.youtube_icon a:before {
    content: "\f167";
}

#footer .socials li:first-child{
    padding-left: 0;
}

.home #footer, #footer{
    background: #434343;
} 

.home #footer .footer_inner, #footer .footer_inner{
    padding-top: 30px;
    padding-bottom: 15px;
}

.home #footer p, #footer p{
    font-weight: normal;
    color: #ffffff;
    line-height: 1.4;
}

.home #footer a, #footer a{
    font-weight: normal;
    color: #ffffff;
}
#footer a:hover {
    color:#fff;
}

p.global_terms_links{
    margin-top: 0px;
}

#footer .footer_inner .col-md-6, #footer .footer_inner .col-md-3{
    padding: 0 15px;
}
#footer ul.upcomingEvents li:first-child {
    padding-top: 0px !important;
}

#footer .footer_inner .fck_widget_events ul {
    padding-top: 0;
}

#footer .event_widget_picture{
    display: none;
}

#footer .event_widget_title{
    color: #ffffff !important;
}

.content_body ul.upcomingEvents li .event_widget_picture{
    display: none;
}

.content_body ul.upcomingEvents li .event_widget_time:after{
    display: none;
}

#footer .event_widget_moreinfo{
    display: none;
}

#footer .content_body ul.upcomingEvents li .event_widget_title{
    font-size: 18px !important;
    font-weight: 600 !important;
}

#footer ul.upcomingEvents li .event_widget_time{
    display: none;
}

#footer .fck_widget_events .event_widget_date_box{
    display:  block;
    font-weight: normal;
    color: #ffffff !important;
    font-size: 14px;
}

#footer p .button {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 8px 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    cursor: pointer;
    border: 0;
    border-radius: 25px;
    background: #1756a3;
    z-index: 0;
    overflow: hidden;
}

#footer p .button:hover {
    background: #ffffff;
    text-decoration: none;
    color: #000000;
}

#footer .socials_area{
    margin-top: 25px;
}

#footer .socials{
    position: static;
    top: 0;
    margin-top: 15px;
}

#footer ul.upcomingEvents br{
    display: none;
}

#footer ul.upcomingEvents li{
    width: 100% !important;
    padding: 15px 0 !important;
    border-bottom: 3px solid #e8ad2b;
    display: block;
}

#footer ul.upcomingEvents li:last-child{
    border-bottom: 0;
}

.home #maincontent h2.content_title{
    margin-bottom: 10px;
    color: #1756A3;
}

#footer, #footer h4, #footer h3 {
    color:#fff;
}
#footer .fck_widget_calendar {
    padding-top:15px;
    border-top: 3px solid #e8ad2b;
    margin-top:15px;
}
#footer .fck_widget_calendar h4,
#footer .fck_widget_calendar .torah_portion_text {
    font-size: 16px;
}
#footer .fck_widget_calendar h4 {
    margin-bottom:5px;
}
#footer .fck_widget_calendar .torah_portion_text {
    font-weight:normal;
}
#footer .fck_widget_calendar .table-responsive td {
    font-size:16px;
}
#footer .fck_widget_calendar[alt="parsha,"] h4 {
    /*font-size:18px;*/
}
#footer .footer-shulcloud {
    display: flex;
    flex-direction: column;
    position: absolute;
    margin-top: -40px;
}
#footer p.copyright {
     float: none; 
     margin-top: 0px; 
} 
#content .torah_portion_text, #footer .torah_portion_text {
    display:block;
}

@media (min-width:768px) {
    #mainnav {
        float: left;
        margin-left: 180px;
    }
}
@media (max-width:1320px){
  #img_div{
        left: 20px;
    }   
    #mainnav {
        margin-left: 250px;
    }
}
@media (max-width:1200px) {
    .home #maincontent .featured_article.upcoming_events {
        width:100%;
    }
    .content_body ul.upcomingEvents li .event_widget_picture {
        height:auto;
    }
    .content_body ul.upcomingEvents li .event_widget_picture img {
         height: auto !important; 
    }
}
@media (max-width:1190px){
  #img_div{
        left: 0px;
    }   
    #mainnav {
    margin-left: 225px;
    }
}
@media (max-width:1169px) and (min-width:768px) {
    .breadcrumb_wrapper, #maincontent_sidebar_wrapper {
        margin-left:20px;
        margin-right:20px;
        width:calc(100% - 40px);
    }
}
@media (max-width:1024px) {
    #mainnav {
    margin-left: 0px;
    }
}
@media (max-width:991px) {
    #footer .footer-shulcloud {
    position: relative;
    margin-top: 0px;
    padding: 12px;
}
}
@media (max-width: 991px) and (min-width:768px) {
    #content .header_slider .sy-caption-wrap {
     top: unset; 
     bottom: 10%; 
     height: auto; 
    }
}
@media (max-width: 767px){
    #content .header_slider .sy-controls{
        display: none;
    }
    
    #nav_section > li > ul > li > ul > li > a {
        background: transparent;
    }
    #nav_section li a span {
        right:20px;
    }
    /* hebrew on nav */
    #nav_section li a {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    #nav_section li a > span.hebrew {
        z-index:unset;
        right:auto;
        padding-left:20px;
        color: #fff;
    }
    #nav_section a > span.hebrew:before {
        content: "";
        display: block;
        margin: 0 auto;
        position: absolute;
        margin-left: 3px;
        margin-left: 3px;
        left: 6px;
        height: 100%;
        border-left: 3px solid #e8ad2b;
    }
    #nav_section a > span.hebrew:after {
        display:none;
    }
    #mainnav .top_links {
        display: block;
        position: relative;
        overflow: hidden;
        background: #3a3a3a;
        right: auto;
        width: 100%;
        top: auto;
        margin-left: 0px;
        text-align: center;
    }
    #mainnav .top_links li {
        float: none;
        display: inline-block;
    }
    #mainnav .top_links>li a {
        color:#fff;
    }
    #mainnav .top_links>li:last-child a {
        margin-right:0px;
    }
    #mainnav {
        box-shadow: none;
        position: relative;
        z-index: 10001;
    }
    
    #maincontent_sidebar_wrapper{
        padding: 0px 20px 50px;
    }
    
    .breadcrumbsection {
        font-size: 12px;
        padding: 12px 20px 13px;
    }
    
    .breadcrumbpaginationh1section{
        padding: 15px 20px;
    }
    .breadcrumbpaginationh1section h1 {
        font-size:25px;
    }
    .breadcrumbpaginationh1section h1 span {
        font-size:30px;
    }
    #nav_section > li > a:before{
        display: none;
    }
    
    #nav_section li a {
        color: #ffffff;
        font-size: 16px !important;
        font-weight: normal !important;
        text-align: left;
        padding: 15px !important;
    }
    
    #nav_section li ul li a:hover{ background:#1756a3; color:#ffffff; }
    
    #nav_section {
        margin-top: 0;
        background: #3a3a3a;
    }
    
    #nav_section li a:hover {
        background:#1756a3;
        color:#fff;
    }
    #mainnav .search_area {
        display:block;
        position:relative;
        top:0px;
        right:0px;
        padding-top:10px;
    }
     #content .header_slider .sy-caption-wrap .sy-caption {
        max-width: none;
        min-height: unset;
    }
    
    .home #maincontent .featured_article.parallax-teaser {
        -webkit-background-size: cover; 
        -moz-background-size: cover; 
        -o-background-size: cover; 
        background-attachment:unset;
    }
    .home #content .header_slider .sy-caption-wrap{
        position: sticky;
        position: -webkit-sticky;
        top: 100%;
        width:100%;
        max-width:100%;
        min-height:unset;
    }
    
    .home .sy-slide>img {
        transform: none;
        -ms-transform: none;
        -webkit-transform: none;
        -o-transform: none;
        -moz-transform: none;
    }
    #content .header_slider .sy-pager {
        margin-top:0px !important;
        background: rgba(66,162,161,0.70);
    }
    .home #content .header_slider .sy-caption-wrap .sy-caption .slider_link{
        margin-top: 0;
    }
    
    .block-teaser .description{
        min-height: auto;
    }
    
    .home #maincontent .featured_article.upcoming_events > div{
        padding-left: 0;
        padding-right: 0;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(1) {
        background: transparent;
        height: auto !important;
        width: 100% !important;
    }
    
    .home .upcoming_events .content_body ul.upcomingEvents li .event_widget_desc{
        min-height: auto;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(2), .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(3), .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(4), .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(5) {
        width: 100% !important;
    }
    
    .home .featured_article.whats-happening .content_body {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    #footer .footer_inner .content_body{
        text-align: center;
    }
    
    #footer .col-md-6, #footer .col-md-3{
        margin-bottom: 15px;
    }
    #footer .socials_area .socials {
        position: relative;
        overflow: hidden;
        display:block;
    }
    #footer .socials li {
        display: inline-block;
        float: none;
    }
    #footer .fck_widget_calendar .table-responsive td {
        text-align:center;
    }
    
    .photostack-img {
        width: 240px !important;
        height: 180px !important;
    }
    
    .photostack figure{
        width: auto !important;
    }
    
    .js .photostack {
        height: 350px !important;
    }
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px)
and (-webkit-min-device-pixel-ratio: 1)
{
    .block-teaser .section_subcontent {
        width: calc(50% - 50px);
        margin-bottom: 15px;
    }
    
    .top_links{
        right: 0;
    }
    
    #mainnav {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    #sidebar_left {
        height: auto;
    }
    
    .home #content .header_slider .sy-caption-wrap {
        right: 0;
    }
    
    .search_area {
        right: 15px;
        top: 50px;
    }
    
    #img_div {
        top: 10px;
        left: 0;
        width: 235px !important;
        position: relative;
    }
    
    #nav_section {
        margin-top: 0px;
    }
    
    .home #maincontent .featured_article.upcoming_events > div {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .home .featured_article.whats-happening .content_body {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(1) {
        background: transparent;
        height: auto !important;
        width: 50% !important;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(2){
        width: 50% !important;
        background: transparent;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(3){
        width: 50% !important;
        background: transparent;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(4){
        width: 50% !important;
        background: transparent;
    }
    
    .home #maincontent.default .upcoming_events .content_body .fck_widget_events UL li:nth-child(5){
        width: 50% !important;
        background: transparent;
    }
    
    .home .upcoming_events .content_body ul.upcomingEvents li .event_widget_desc {
        min-height: 80px;
    }

}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape)
and (-webkit-min-device-pixel-ratio: 1)  { 
    .home #content .header_slider .sy-caption-wrap {
        right: 10%;
    }
}