@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/******* contents
%1 - navigation and header
%2 - general styles
%3 - home 
%3a - home minyanim
%3b - home event widget
%4  - inner pages 
%4a - breadcrumbs
%5 - sidebar
%6 - events forms 
%7 - calendar
%8 - footer
%y fonts
%z admin
******************/

/*********** %1 nav */
#header_login_menu {
    width: 200px;
    top: 35px !important;
}
#header_login_menu .header_button {
    margin: 9px 0;
}
#header_login_menu .header_button:last-child {
    margin-top: 0;
}
.sidebar_left_top_wrapper {
    background: #fff;
}
.sidebar_left_top {
    background: #fff;
    justify-content: space-between;
    align-items: flex-end;
    width: var(--normal-width);
    padding: 25px 0 28px;
    max-width: 100%;
    min-height: unset;
}
.header_info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
    font-size: 14px;
}
.right_box2 {
    display: block;
}
#header {
    background: var(--dark-blue);
}
#header_buttons {
    display: flex;
    align-items: center;
}
#header #header_inner {
    width: var(--normal-width);
    max-width: 100%;
}
#header #header_inner #header_buttons div {
    background: var(--green);
    border: 0;
    border-radius: 0;
}
#img_div {
    padding-top: 0;
    margin-top: auto;
}
#img_div img {
    width: 655px;
    /* bottom of logo to top of buttons */
    margin-bottom: 22px;
}
#img_div + .header_info {
    
}
.top_links {
    position: static;
    margin: 10px 0;
}
.top_links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}
.top_links li {
    float: none;
}
.top_links li:first-child {
    margin-left: 0;
}
#content .top_links li a {
    background: var(--navy);
    font-weight: normal;
    font-size: 14px;
    padding: 8px 12px;
}

#content .top_links li:last-child a,
#content .top_links li a:hover {
    background: var(--green);
}
#content .search_area {
    display: none;
    position: static;
    bottom: unset;
}
.search_area form {
    width: auto;
}
#content .search_area input[type="text"] {
    font-size: 14px;
}
#content .search_area input[type="submit"] {
    background-color: var(--navy) !important;
    background-size: 60% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-image: url(https://images.shulcloud.com/16808/uploads/Icons/magnifying-glass-white.svg) !important;
    border: 0;
}

#mainnav {
    background: var(--dark-blue);
}
#nav_section {
    flex-wrap: wrap;
}
#nav_section > li {
    border: 0;
    padding: 0;
}
#nav_section > li > a {
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
}
#nav_section#nav_section > li:hover {
    background: var(--dark-blue);
}
#nav_section#nav_section > li ul li {
    background: var(--dark-blue);
}
#nav_section#nav_section > li ul li:hover {
    background: var(--green);
}

#nav_section li ul li a {
    text-transform: uppercase;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}
#nav_section ul ul {
    border-left: 10px solid transparent;
}
#nav_section + .searchBox {
    display: none;
}
/************************** %2 general
******/

.content_body, .content_title, #maincontent_sidebar_wrapper {
    max-width: 100%;
    width: var(--normal-width);
}

#maincontent h2.content_title, #maincontent h2.content_title a {
    color: var(--navy);
    text-transform: uppercase;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
}

/* blog */
#maincontent h3.date {
    color: var(--navy);
}
#maincontent .blog_details + .content_body a.readmore {
    float: right;
    margin-top: 10px;
}
p a.button, #maincontent p a.button, #maincontent a.button,
#sidebar_right p a.button, #sidebar_right a.button,
#maincontent .marker, #sidebar_right .marker,
input[type="button"], input[type="submit"], input.action-button, #sidebar_right .readmore a, #maincontent .readmore a, #maincontent .fck_widget_calendar .readmore a,
#maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_more_info a, #sidebar_right .event_calendar_tags_tabs .event_calendar_tag_widget_more_info a,
#maincontent .fck_widget_zmanim .table-responsive > table > tbody > tr:last-child td a,
#sidebar_right .fck_widget_zmanim .table-responsive > table > tbody > tr:last-child td a,
#maincontent .fck_widget_subscribe .table-responsive > table > tbody > tr > td:last-child a,
#sidebar_right  .fck_widget_subscribe .table-responsive > table > tbody > tr > td:last-child a,
#maincontent .ev_save_cal, #maincontent .ev_print.print-button,
div.comment_box.comment_box button, body.event #inner_login_form input[type="submit"],
.top_links li a, #maincontent .fck_widget_events .event_widget_moreinfo a,
#sidebar_right .fck_widget_subscribe form input.go_button, #loginFrm input[type="submit"],
#header_login_menu .header_button, #maincontent .blog_details + .content_body a.readmore {
    background: var(--navy);
    color: #fff;
    text-transform: uppercase;
    padding: 8px 20px;
    font-weight: bold;
    text-decoration: none;
    border: 0;
    display: inline-block;
    border-radius: 0;
    font-size: 18px;
    font-style: normal;
    -webkit-transition: all .6s ease;
    -moz-transition: all .6s ease;
    -ms-transition: all .6s ease;
    -o-transition: all .6s ease;
    transition: all .6s ease-out;
}
 #maincontent .ev_share.addthis_button {
      display: none;
 }

p a.button:hover, #maincontent p a.button:hover, #maincontent a.button:hover,
#sidebar_right p a.button:hover, #sidebar_right a.button:hover,
#maincontent .marker:hover, #sidebar_right .marker:hover,
input[type="button"]:hover, input[type="submit"]:hover, input.action-button:hover, #sidebar_right .readmore a:hover, 
#maincontent .readmore a:hover, #maincontent .fck_widget_calendar .readmore a:hover,
#maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_more_info a:hover, #sidebar_right .event_calendar_tags_tabs .event_calendar_tag_widget_more_info a:hover,
#maincontent .fck_widget_zmanim .table-responsive > table > tbody > tr:last-child td a:hover, 
#sidebar_right .fck_widget_zmanim .table-responsive > table > tbody > tr:last-child td a:hover,
#maincontent .fck_widget_subscribe .table-responsive > table > tbody > tr > td:last-child a:hover,
#sidebar_right .fck_widget_subscribe .table-responsive > table > tbody > tr > td:last-child a:hover,
#maincontent .ev_save_cal:hover, #maincontent .ev_print.print-button:hover, #maincontent .ev_share.addthis_button:hover,
div.comment_box.comment_box button:hover, body.event #inner_login_form input[type="submit"]:hover,
#maincontent .fck_widget_events .event_widget_moreinfo a:hover,
#sidebar_right .fck_widget_subscribe form input.go_button:hover, #loginFrm input[type="submit"]:hover,
#header_login_menu .header_button:hover, #maincontent .blog_details + .content_body a.readmore:hover {
    background: var(--green);
    color: #fff;
}


p a.button.large, #maincontent p a.button.large, #maincontent a.button.large,
#sidebar_right p a.button.large, #sidebar_right a.button.large {
    font-size: 24px;
    padding-left: 24px;
    padding-right: 24px;
}

hr {
    border-bottom: 1px solid var(--navy);
}
h1, h2, h3, h4, h5, h6,
#maincontent h2, #maincontent h3, #maincontent h4, #maincontent h5, #maincontent h6,
#sidebar_right h2, #sidebar_right h3, #sidebar_right h4, #sidebar_right h5, #sidebar_right h6 {
    font-family: var(--font-family);
    color: var(--navy);
    line-height: 1.1;
}

#maincontent h1  {
    font-size: 28px;
    font-weight: bold;
    
}
h2, #maincontent h2, #maincontent h2.content_title {
    color: var(--navy);
    font-size: 26px;
}

blockquote > *, #maincontent blockquote p {
    font-size: 24px;
    font-weight: normal;
}
blockquote cite {
    font-size: 18px;
}
h3, #maincontent h3, #footer h3, .popevent h3 {
    font-weight: bold;
    font-size: 18px;
    text-transform: none;
    
}
h4, #maincontent h4, #footer h4 {
    font-weight: bold;
    margin-bottom: 0;
    font-size: 16px;
}
h5, #maincontent h5, #footer h5 {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0;
    
}
h6, #maincontent h6, #footer h6 {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0;
}
p, #maincontent p,
#sidebar_right p {
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 14px;
}
#maincontent p:last-child, 
#sidebar_right p:last-child,
#footer p:last-child {
    margin-bottom: 0;
}
#maincontent p, #maincontent li, #maincontent a,
#sidebar_right p, #sidebar_right li, #sidebar_right a {
    color: #000;
    font-size: 22px;
    line-height: 1.5;
}
a, #maincontent a, #sidebar_right a {
    color: var(--dark-blue);
    text-decoration: underline;
    font-weight: bold;
    text-underline-offset: 2px;
}
#maincontent ol {
    padding-bottom: 20px;
}
#maincontent ul ul,
#maincontent ol ol,
#maincontent ul ol,
#maincontent ol ul {
    padding-bottom: 0;
}
#maincontent.default .content_body UL {
    padding-left: 20px;
}
#maincontent.default ol li, #maincontent ol li, #sidebar_right ol li,
#maincontent.default ul li, #maincontent ol li, #sidebar_right ul li {
  list-style-position: outside;
  padding-top: 7px;
  padding-left: 0;
}

#maincontent.default ol,
#sidebar_right ol {
    padding-left: 30px;
}
#sidebar_right ul {
    padding-left: 30px;
}
#sidebar_right ul li {
    list-style-type: disc;
}
a:hover, #maincontent a:hover, #sidebar_right a:hover,
#maincontent p a:hover, #sidebar_right p a:hover {
    text-decoration: none;
    
}

/* end headers, p tags, a tags  */

/* fixes */
#maincontent, #maincontent.full_width, body.event #maincontent {
    width: var(--normal-width);
    max-width: 100%;
    padding: 0;
}
#maincontent.full_width {
    width: 100%;
}

#maincontent.full_width.admin {
    width: var(--normal-width);
}
#maincontent_sidebar_wrapper,
body:not(.has_header_slider) #maincontent_sidebar_wrapper {
    margin-top: var(--padding);
}
body:not(.has_header_slider) #maincontent.full_width {
    margin-top: 0;
}
#content#content .sy-pager {
    display: block;
    position: absolute;
    margin: 0;
    bottom: 0;
}
#content .slipprySlider .sy-pager li.sy-active a {
    background: var(--dark-blue) !important;
}
#maincontent_sidebar_wrapper:after {
    content: "";
    clear: both;
    display: block;
}
#maincontent_sidebar_wrapper #maincontent {
    margin-bottom: 0;
}
#maincontent.full_width .featured_article {
    margin: 0px auto;
    width: var(--normal-width);
    max-width: 100%;
    float: none;
}
.featured_article {
    float: none;
    padding-bottom: 18px;
    padding-top: 18px;
}
#maincontent .featured_article.featured_article_last {
    padding-bottom: 0;
}
.content_body:after {
    display: none;
}
#maincontent.default UL, ul {
    margin-left: 0;
}
.searchBox {
    display: none;
}
#maincontent .readmore {
    padding: 0;
}
#footer {
    margin-top: var(--padding);
}
/* end fixes */
.content_body p, .content_body li, .content_body a, #maincontent p, #maincontent li, #maincontent a, #maincontent .content_body, 
#sidebar_right p,  #sidebar_right li,  #sidebar_right a,  #sidebar_right .content_body {
    font-size: 18px;
    line-height: 1.5;
}
a, #maincontent p a, p a, #sidebar_right p a, #sidebar_right a, #footer a {
    font-weight: bold;
    
}
/******************************
%3 - home
***************************/
.header_slider_wrapper {
    background: none;
}
.home .header_slider_wrapper {
    margin-bottom: var(--padding);
}
.header_slider {
    max-width: 100%;
}
#content .slipprySlider .sy-pager li.sy-active a {
    background: var(--light-blue) !important;
}


/**********************************
%3a minyanim
**********************************/

body.minyanim .preloader {
          position: fixed;
          top: 0;
          left: 0;
          width: 100vw;
          height: 100vh;
          z-index: 1000;
          background-color: #fff;
          background-image: url(https://images.shulcloud.com/16808/uploads/Icons/spinner.gif);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 150px;
}

body.minyanim #content #maincontent {
    padding-top: 0;
}
.movable_area.featured_article.week_calendar {
    width: 100%;
    padding: 0;
    margin: 0;
}

#maincontent .movable_area.featured_article.week_calendar h2.content_title{
    margin-top: 20px;
}
.movable_area.featured_article.week_calendar:not(:nth-last-child(2)) .content_body {
    padding-bottom: 0;
}

#maincontent .movable_area.featured_article.week_calendar p {
    margin-bottom: 0;
}

/* fixed width minyanim */
#maincontent .featured_article.week_calendar .content_body {
    /*max-width: 100%;*/
}
 body.minyanim #maincontent.cal.full_width {
    overflow-x: auto;
    padding: 0;
}

body.minyanim.iframe_body form[name="calFilter"], 
body.minyanim.iframe_body #calendar_page_header, body.minyanim.iframe_body #header, 
body.minyanim.iframe_body #img_div, body.minyanim.iframe_body #mainnav, body.minyanim.iframe_body #sidebar_left, 
body.minyanim.iframe_body #footer, body.minyanim.iframe_body .sidebar_left_top_wrapper,
body.minyanim.iframe_body #topnav, body.minyanim #container > .candles, body.minyanim #container > .parsha,
body.minyanim.iframe_body #default-sidebar, body.minyanim.iframe_body .sidebar_root_flex_el,
body.minyanim.iframe_body #global_admin_banner {
    display: none;
} 
body.minyanim.iframe_body .sidebar_root_flex_el {
    display: none !important;
}
body.minyanim.iframe_body #content-panel {
    margin: 0 !important;
    min-height: unset !important;
}
body.minyanim.iframe_body #content-panel #content {
    min-height: unset !important;
}
.featured_article.week_calendar #week_calendar_iframe {
    width: 100%;
    opacity: 0;
}

body.minyanim.done_loading {
    opacity: 1;
}

body.minyanim .pad-helper > form[name="calFilter"] + div {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    position: relative;
    padding-bottom: 10px;
}
/* each day of the week */
body.minyanim .pad-helper > form[name="calFilter"] + div > div.calendar_day_view {
    margin-bottom: 0px;
    flex-basis: 16%;
    z-index: 1;
    background: var(--peach);
}
body.minyanim #maincontent.cal {
    max-width: 100%;
    margin: 0 auto;
}
body.minyanim #maincontent.cal .calendar_day_view h2 {
    font-size: 14px;
    line-height: 1.2;
    font-family: var(--font-family);
    text-align: center;
    background: var(--green);
    padding: 15px 8px;
    color: #fff;
    margin-top: 20px;
    margin: 0;
    font-weight: bold;
}

/* hide extra support button */
body.minyanim iframe[title="Opens a widget where you can find more information"] {
    display: none !important;
}
body.minyanim .ce_table td {
    padding: 3px 5px;
}
body.minyanim table.ce_table.ce_view_week tr td.ce_time_start {
    text-align: left;
    width: 1%;
    padding-left: 10px;
    padding-right: 2px;
}
body.minyanim table.ce_table.ce_view_week tr td.ce_desc {
    width: 70%;
    text-align: left;
}
body.minyanim table.ce_view_week > tbody > tr:first-child > td, body.minyanim table.ce_view_day > tbody > tr:first-child > td {
    padding-right: 5px;
}
body.minyanim table.ce_table.ce_view_week {
    padding: 12px 0;
}

body.minyanim #maincontent#maincontent .ce_table a.ce_admin_action {
    font-size: 10px;
    display: inline-block;
    text-underline-offset: unset;
}

body.minyanim #maincontent#maincontent .ce_table a.ce_admin_action:not(:last-child) {
    margin-right: 5px;
    margin-left: -15px;
}
/* these spans are emtpy, I think */
body.minyanim #maincontent .ce_table span.ce_admin_action {
    display: none;
}
body.minyanim .ce_table .ce_desc .ce_holiday, 
body.minyanim .ce_table .ce_desc .ce_sedra, body.minyanim .ce_table .ce_desc .ce_lifecycle_type, 
body.minyanim .ce_table .ce_desc .ce_event_name, body.minyanim .ce_annnouncement,
body.minyanim .ce_table td.ce_time_start, body.minyanim .ce_table td.ce_time_end,
body.minyanim  .calendar_day_view .ce_time,
body.minyanim #maincontent.cal table.ce_view_week a {
    font-size: 12px;
}

body.minyanim form[name="calFilter"] + div {
    overflow-x: auto;
}
body.minyanim form[name="calFilter"] + div div.hide_on_print:last-child {
    display: none;
}
/* pager */
body.minyanim #content form[name="calFilter"] + div table.hide_on_print:first-child {
    position: fixed;
    width: 100%;
    right: 0;
    bottom: 13px;
    background: none;
    padding: 0;
}
body.minyanim #content form[name="calFilter"] + div table.hide_on_print:first-child tr {
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

body.minyanim #content form[name="calFilter"] + div table.hide_on_print:first-child td:not(:first-child):not(:last-child) {
    display: none;
}

body.minyanim #content form[name="calFilter"] + div table.hide_on_print:first-child td:first-child,
body.minyanim #content form[name="calFilter"] + div table.hide_on_print:first-child td:last-child {
    width: 50px;
    padding: 0;
}
body.minyanim #maincontent.cal table.ce_view_week a.prev_link, body.minyanim #maincontent.cal table.ce_view_week a.next_link {
    margin: 0;
    position: relative;
    z-index: 9;
    border-radius: 0;
    width: 100%;
}

body.minyanim #content#content a[title="Last Week"] > span:first-child,
body.minyanim #content#content a[title="Next Week"] > span:first-child {
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 35px;
    position: relative;
    display: block;
    left: 0;
    margin: 0;
    top: 0;
    background: var(--navy);
    background-image: url(https://images.shulcloud.com/16808/uploads/Icons/arrow-right-solid-white1.svg);
    background-size: auto 70%;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

body.minyanim #content#content a[title="Last Week"] > span:first-child:hover,
body.minyanim #content#content a[title="Next Week"] > span:first-child:hover {
    background-position: center right 8px;
}
body.minyanim a[title="Last Week"],
body.minyanim a[title="Next Week"] {
    background: none;
    border: 0;
    position: relative;
    z-index: 2;
}

body.minyanim a[title="Last Week"] > span:first-child {
    transform: rotate(180deg);
}
body.minyanim #content#content a[title="Next Week"] {
    right: 0;
    left: unset;
}

body.minyanim a[title="Last Week"] > span.ui-button-text,
body.minyanim a[title="Next Week"] > span.ui-button-text,
body.minyanim #content#content a[title="Last Week"]:before,
body.minyanim #content#content a[title="Next Week"]:before {
    display: none;
}
/* will they need time end or type?  might have to find another way to reduce horizontal space */
.ce_table .ce_type, .ce_table .ce_time_end {
    display: none;
}
body.minyanim .deleted_warning
/* body.minyanim .shabbos */ {
    display: none;
}
#calendar_page_footer_info {
    display: none;
}
body.minyanim #calendar_page_footer_info {
    display:block;
    position: relative;
    width: 300px;
    margin: 0px auto;
    position: absolute;
    right: 0;
    left: 0;
}
body.minyanim #calendar_page_footer_info  p {
    text-align: center;
}
body.minyanim #calendar_page_footer_info a.button {
    font-size: 18px;
}
/******************************
%3b event tags widget
*********************************/

.fck_widget_event_calendar_tags {
    margin-bottom: 15px;
}
body.home .home_event_tags_widget h2.content_title {
    text-align: center;
}
#maincontent .event_calendar_tags_tabs section > div, #sidebar_right .event_calendar_tags_tabs section > div {
    /* undoing from global.css */
    background: none;
}
#maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_desc,
#sidebar_right .event_calendar_tags_tabs .event_calendar_tag_widget_desc {
    color: var(--dark-blue);
    display: none;
}


#maincontent .content_body .event_calendar_tags_tabs nav {
    border-bottom: 5px solid var(--green);
}

#maincontent .content_body .event_calendar_tags_tabs ul {
    text-align: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    justify-content: flex-start;
    gap: 1.5%;
    padding-left: 0;
}
body.home #maincontent .content_body .event_calendar_tags_tabs ul {
    /*padding-left: 0;*/
    justify-content: flex-start;
}
#maincontent .event_calendar_tags_tabs ul li {
    list-style: none !important;
    float: none;
    display: inline-block;
    flex-shrink: 0;
    padding-top: 0;
}


#content #maincontent #event_calendar_tags_tab0:checked ~ nav .event_calendar_tags_tab0 label,
#content #sidebar_right #event_calendar_tags_tab0:checked ~ nav .event_calendar_tags_tab0 label,
#content #maincontent #event_calendar_tags_tab1:checked ~ nav .event_calendar_tags_tab1 label,
#content #sidebar_right #event_calendar_tags_tab1:checked ~ nav .event_calendar_tags_tab1 label,
#content #maincontent #event_calendar_tags_tab2:checked ~ nav .event_calendar_tags_tab2 label,
#content #sidebar_right #event_calendar_tags_tab2:checked ~ nav .event_calendar_tags_tab2 label,
#content #maincontent #event_calendar_tags_tab3:checked ~ nav .event_calendar_tags_tab3 label,
#content #sidebar_right #event_calendar_tags_tab3:checked ~ nav .event_calendar_tags_tab3 label,
#content #maincontent #event_calendar_tags_tab4:checked ~ nav .event_calendar_tags_tab4 label,
#content #maincontent #event_calendar_tags_tab5:checked ~ nav .event_calendar_tags_tab5 label,
#content #maincontent #event_calendar_tags_tab6:checked ~ nav .event_calendar_tags_tab6 label,
#content #sidebar_right #event_calendar_tags_tab4:checked ~ nav .event_calendar_tags_tab4 label {
    background: var(--navy);
    color: #fff;
}
#maincontent #event_calendar_tags_tab0:checked ~ nav .event_calendar_tags_tab0 :after,
#sidebar_right #event_calendar_tags_tab0:checked ~ nav .event_calendar_tags_tab0 :after,
#maincontent #event_calendar_tags_tab1:checked ~ nav .event_calendar_tags_tab1 :after,
#sidebar_right #event_calendar_tags_tab1:checked ~ nav .event_calendar_tags_tab1 :after,
#maincontent #event_calendar_tags_tab2:checked ~ nav .event_calendar_tags_tab2 :after,
#sidebar_right #event_calendar_tags_tab2:checked ~ nav .event_calendar_tags_tab2 :after,
#maincontent #event_calendar_tags_tab3:checked ~ nav .event_calendar_tags_tab3 :after,
#sidebar_right #event_calendar_tags_tab3:checked ~ nav .event_calendar_tags_tab3 :after,
#maincontent #event_calendar_tags_tab4:checked ~ nav .event_calendar_tags_tab4 :after,
#maincontent #event_calendar_tags_tab5:checked ~ nav .event_calendar_tags_tab5 :after,
#maincontent #event_calendar_tags_tab6:checked ~ nav .event_calendar_tags_tab6 :after,
#sidebar_right #event_calendar_tags_tab4:checked ~ nav .event_calendar_tags_tab4 :after {
    display:none !important;
}

.event_calendar_tags_tabs img {
    border-radius: 0px;
    cursor: pointer;
}


#content#content #maincontent #event_calendar_tags_tab0:checked ~ section .event_calendar_tags_tab0,
#content#content #maincontent #event_calendar_tags_tab1:checked ~ section .event_calendar_tags_tab1,
#content#content #maincontent #event_calendar_tags_tab2:checked ~ section .event_calendar_tags_tab2,
#content#content #maincontent #event_calendar_tags_tab3:checked ~ section .event_calendar_tags_tab3,
#content#content #maincontent #event_calendar_tags_tab4:checked ~ section .event_calendar_tags_tab4,
#content#content #maincontent #event_calendar_tags_tab5:checked ~ section .event_calendar_tags_tab5,
#content#content #maincontent #event_calendar_tags_tab6:checked ~ section .event_calendar_tags_tab6 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: left;
    background-repeat: no-repeat;
    background-size: cover;
    gap: 20px;
    background: var(--lightest-blue);
    padding: 30px 15px;
}

#maincontent .event_calendar_tags_tabs li label, #sidebar_right .event_calendar_tags_tabs li label {
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 22px;
    color: #fff;
    background: var(--dark-blue);
    border: 0px;
}
#maincontent.default .event_calendar_tags_tabs ul li {
    padding-left: 0;
}
#maincontent .event_calendar_tags_tabs li label:hover, #sidebar_right .event_calendar_tags_tabs li label:hover {
    background: var(--navy);
}

#maincontent .event_calendar_tags_tabs section > div {
    padding: 0;
    border: none;
    /* not really sure what these were for */
    /*margin: 0px -15px;*/
    /*width: 103.6%;*/
}
#maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper {
    flex: 0 0 calc((100% - 80px) / 5); /* setting first val to zero fixes if there are fewer than five events to show */

}
#maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_picture {
    margin-bottom: 15px;
    max-width: 100%;
    padding: 0;
}
#maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper > div:last-child {
    padding: 0px 15px;
    /*puts the description above the event title too which is not great*/
    /*display: flex;*/
    /*flex-direction: column-reverse;*/
}
#maincontent .event_calendar_tags_tabs .event_calendar_tag_event_wrapper h3 + p > i {
    font-weight: normal;
    color: var(--dark-blue);
    display: block;
    line-height: 1.2;
}
#maincontent .event_calendar_tags_tabs h3 a div.event_calendar_tag_widget_calendar_swatch {
    display: none !important;
}
#maincontent .event_calendar_tags_tabs h3 {
    margin: 0px;
    line-height: 1em;
}
#maincontent .event_calendar_tags_tabs h3 a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: normal;
    text-transform: capitalize;
    font-size: 22px;
    line-height: 1.3;
    margin: 0px;
    font-weight: bold;
}
#maincontent .event_calendar_tags_tabs h3 a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}
#maincontent .event_calendar_tags_tabs p {
    margin: 10px 0px 0px 0px;
    padding: 0px;
    font-size: 16px;
    /*clashes too much with the event title*/
    /*font-weight: 500;*/
    font-style: normal;
}
#maincontent .event_calendar_tags_tabs p i {
    font-style: normal;
}

/**********************
%4 - inner pages
**********************/
body.home #content .breadcrumbpaginationh1section {
    display: none;
}
body:not(.has_header_slider) .breadcrumbpaginationh1section {
    display: block;
}
body #content .breadcrumbpaginationh1section a:first-child, body #content .breadcrumbpaginationh1section .breadcrumbdiv {
    display: inline-block;
}
.breadcrumbsection {
    position: relative;
    width: var(--normal-width);
    margin: 15px auto;
    max-width: 100%;
}
body #content .breadcrumbpaginationh1section a {
    background: none;
    color: #000;
    font-size: 14px;
    font-weight: normal;
    padding: 0;
}
body #content#content .breadcrumbpaginationh1section a:before {
    display: none;
}
body #content#content .breadcrumbpaginationh1section a {
    background: none;
    padding: 0;
}

body #content#content .breadcrumbpaginationh1section a:last-child {
    padding-left: 3px;
}
#maincontent.full_width .breadcrumbpaginationh1section,
.header_slider_wrapper .breadcrumbpaginationh1section {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#maincontent.full_width .breadcrumbpaginationh1section h1,
.header_slider_wrapper + .breadcrumbpaginationh1section h1,
.header_slider_wrapper .breadcrumbpaginationh1section h1,
#sidebar_left + .breadcrumbpaginationh1section h1 {
    display: block !important;
    background: var(--navy);
    color: #fff;
    font-weight: bold;
    padding: 10px var(--calc-padding);
    margin-bottom: 0;
    text-transform: uppercase;
}

/*************************
%3c photo gallery 
**************/
#content .photostack {
    background: none;
}
/*********************
4a - full width sections */

#maincontent.full_width .featured_article.two-col {
    padding: 0px;
    max-width: 100%;
    width: 100%;
}
#maincontent.full_width .featured_article.two-col .content_body {
    width: 100%;
    max-width: 100%;
}
#maincontent .two-col .section_subcontent:not(.img_parent) {
    padding: 30px;
    
}

#maincontent .two-col .content_title {
    display: none;
}
#maincontent .two-col .content_body {
    display: flex;
}
#maincontent .two-col .section_subcontent {
    overflow: hidden;
}
#maincontent .two-col .section_subcontent > *:last-child {
    margin-bottom: 0px;
}
#maincontent .two-col .img_parent {
    display: flex;
    border-style: solid;
    border-color: #fff;
    border-width: 0px;
    padding: 0px;
    max-width: 50%;
}
#maincontent .two-col .img_parent:last-child {
    text-align: right;
    padding-right: 0px;
}
#maincontent .two-col .img_parent:first-child {
    text-align: left;
    padding-left: 0px;
}
#maincontent .two-col .img_parent > * {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0px;
    position: relative;
}
#maincontent .two-col .section_subcontent:not(.img_parent) {
    padding: 100px 6%;
}
#content #maincontent .two-col blockquote, #content #maincontent .two-col blockquote *, #maincontent .two-col .section_subcontent, 
#maincontent .two-col p, #maincontent .two-col li, #maincontent .two-col a {
    color: #fff;
}
#content #maincontent .two-col blockquote, #content #maincontent .two-col blockquote * {
    width: 100%;
    margin-bottom: 0;
}
.two-col blockquote,
.full-width blockquote {
    padding-top: 0px;
}
.two-col cite {
    font-style: normal;
}


.two-col {
    padding: 35px 0px;
}

#maincontent.full_width .featured_article.full-width {
    width: 100%;
}
#maincontent .two-col.dark-blue-bg .content_body,
#maincontent .full-width.dark-blue-bg .content_body {
    background: var(--dark-blue);
}
#maincontent .two-col.green-bg .content_body, 
#maincontent .full-width.green-bg .content_body {
    background: var(--green);
}

#maincontent .two-col.peach-bg .content_body,
#maincontent .full-width.peach-bg .content_body {
    background: var(--peach);
}
#maincontent .two-col.navy-bg .content_body,
#maincontent .full-width.navy-bg .content_body {
    background: var(--navy);
}
#maincontent .two-col.light-blue-bg .content_body,
#maincontent .full-width.light-blue-bg .content_body {
    background: var(--light-blue);
}

#maincontent .two-col.lightest-blue-bg .content_body,
#maincontent .full-width.lightest-blue-bg .content_body {
    background: var(--lightest-blue);
}

#maincontent .two-col,
#maincontent .navy-bg .content_body blockquote, #content #maincontent .navy-bg .content_body  blockquote * ,
#maincontent .dark-blue-bg .content_body blockquote, #content #maincontent .dark-blue-bg .content_body  blockquote *,
#maincontent .green-bg .content_body blockquote, #content #maincontent .green-bg .content_body  blockquote *,
#maincontent .navy-bg .section_subcontent, 
#maincontent .navy-bg p, #maincontent .navy-bg li, #maincontent .navy-bg a,
#maincontent .dark-blue-bg .section_subcontent, 
#maincontent .dark-blue-bg p, #maincontent .dark-blue-bg li, #maincontent .dark-blue-bg a,
#maincontent .green-bg .section_subcontent, 
#maincontent .green-bg p, #maincontent .green-bg li, #maincontent .green-bg a,
#maincontent .full-width h2.content_title,
#maincontent .two-col h1, #maincontent .two-col h2, #maincontent .two-col h3, #maincontent .two-col h4, #maincontent .two-col h5, #maincontent .two-col h6,
#maincontent .full-width h1, #maincontent .full-width h2, #maincontent .full-width h3, #maincontent .full-width h4, #maincontent .full-width h5, #maincontent .full-width h6 {
    color: #fff;
}


#maincontent .two-col.light-mode h1, #maincontent .two-col.light-mode h2, #maincontent .two-col.light-mode h3, 
#maincontent .two-col.light-mode h4, #maincontent .two-col.light-mode h5, #maincontent .two-col.light-mode h6,
 #maincontent .two-col.light-mode p,  #maincontent .two-col.light-mode, #maincontent .two-col.light-mode a,  #maincontent .two-col.light-mode li,
#maincontent .full-width.light-mode h1, #maincontent .full-width.light-mode h2, #maincontent .full-width.light-mode h3, 
#maincontent .full-width.light-mode h4, #maincontent .full-width.light-mode h5, #maincontent .full-width.light-mode h6,
 #maincontent .full-width.light-mode p,  #maincontent .full-width.light-mode, #maincontent .full-width.light-mode a,  #maincontent .full-width.light-mode li,
 #maincontent .full-width.light-mode h2 {
    color: #000;
}
/* buttons */
#maincontent .two-col .marker, #maincontent .two-col a.button,
#maincontent .full-width .marker, #maincontent .full-width a.button {
    BACKGROUND: #fff;
    color: var(--dark-blue);
}

#maincontent .two-col .marker:hover, #maincontent .two-col a.button:hover,
#maincontent .full-width .marker:hover, #maincontent .full-width a.button:hover {
    BACKGROUND: #fff;
    color: var(--dark-blue);
    opacity: .7;
}
#maincontent .two-col.green-bg .marker, #maincontent .two-col.green-bg a.button,
#maincontent .two-col.green-bg .marker:hover, #maincontent .two-col.green-bg a.button:hover,
#maincontent .full-width.green-bg .marker, #maincontent .full-width.green-bg a.button,
#maincontent .full-width.green-bg .marker:hover, #maincontent .full-width.green-bg a.button:hover {
    BACKGROUND: #fff;
    color: var(--green);
}
#maincontent .two-col.navy-bg .marker, #maincontent .two-col.navy-bg a.button,
#maincontent .two-col.navy-bg .marker:hover, #maincontent .two-col.navy-bg a.button:hover, 
#maincontent .full-width.navy-bg .marker, #maincontent .full-width.navy-bg a.button,
#maincontent .full-width.navy-bg .marker:hover, #maincontent .full-width.navy-bg a.button:hover {
    color: var(--navy);
}

/* peach and light blue section buttons */ 
#maincontent .two-col.light-mode .marker, #maincontent .two-col.light-mode a.button,
#maincontent .two-col.light-mode .marker:hover, #maincontent .two-col.light-mode a.button:hover,
#maincontent .full-width.light-mode .marker, #maincontent .full-width.light-mode a.button,
#maincontent .full-width.light-mode .marker:hover, #maincontent .full-width.light-mode a.button:hover {
    background: var(--navy);
    color: #fff;
}
#maincontent .featured_article.full-width,
#maincontent .featured_article.full-width .content_body {
    width: 100%;
    max-width: 100%;
}

/* clearfix :P */
.full-width .content_body:after {
    content: "";
    display: table;
    clear: both;
}
#maincontent .featured_article.full-width .content_body {
    padding: 60px var(--calc-padding);
}
/********** 
header slider 
************/
.sy-box {
    position: relative;
}
body:not(.home) #content#content#content #maincontent  .fck_widget_event_calendar_tags section > div {
    flex-direction: column;
    
}
body:not(.home) #maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_desc {
    display: block;
    color: #000;
}

body:not(.home) #maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_more_info {
    display: block;
}
body:not(.home) #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper {
    border-bottom: 2px solid var(--navy);
    padding: 20px 0;
}
body:not(.home) #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper:first-child {
    padding-top: 0;
}

body:not(.home) #maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_picture {
    padding: 0;
}
body:not(.home) #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper > div:last-child {
    padding: 0;
}
body:not(.home) #maincontent .event_calendar_tags_tabs h3 a {
    color: var(--navy);
}
body:not(.home) #maincontent .event_calendar_tags_tabs h3 + p {
    margin-top: 0;
    color: var(--navy);
    margin-bottom: 15px;
}
body:not(.home) #maincontent .event_calendar_tags_tabs .event_calendar_tag_event_wrapper h3 + p > i {
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: bold;
}
/****************************
%5 - sidebar
******************************/
#maincontent_sidebar_wrapper {
    display: flex;
    column-gap: 30px;
    align-items: flex-start;
}
#maincontent_sidebar_wrapper:after {
    display: none;
}
#sidebar_right {
    background: var(--lightest-blue);
    width: calc(30% - 15px);
    padding: 20px;
    border-top: 15px solid var(--green);
    color: var(--dark-blue);
}
#sidebar_right .right_bm:first-child {
    margin-top: 0;
}
#sidebar_right .right_bm {
    margin-top: 20px;
}
#maincontent_sidebar_wrapper #maincontent {
    width: calc(70% - 15px);
    
}
#maincontent_sidebar_wrapper #maincontent, #sidebar_right {
    float: none;
}
#sidebar_right .right_bm h2.content_title {
    padding: 0;
    margin-bottom: 10px;
}

/*** right calendar ***/
#maincontent .fck_widget_calendar,
#sidebar_right .fck_widget_calendar {
    margin: 0;
}
#maincontent .fck_widget_calendar h2, #maincontent  h2.content_title, #maincontent  h2,
#maincontent .fck_widget_calendar h4,
#sidebar_right .fck_widget_calendar h2, #sidebar_right  h2.content_title, #sidebar_right  h2,
#sidebar_right .fck_widget_calendar h4 {
    color: var(--dark-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
}
#sidebar_right .right_calendar_widget_calendar_swatch {
    display: none !important;
}
.fck_widget_calendar > hr {
    display: none;
}
#sidebar_right .fck_widget_calendar .table-responsive tr td,
#sidebar_right .fck_widget_zmanim table td,
#sidebar_right .table-responsive > table > tbody > tr > td:last-child {
    color: var(--dark-blue);
}


#maincontent .fck_widget_calendar .table-responsive tr td,
#maincontent .fck_widget_zmanim table td,
#maincontent .table-responsive > table > tbody > tr > td:last-child {
    color: #000;
}

#maincontent .fck_widget_calendar h2:not(:first-child),
#maincontent .fck_widget_calendar h4:not(:first-child),
#maincontent .fck_widget_calendar .shabbos_times h2:first-child,
#sidebar_right .fck_widget_calendar h2:not(:first-child),
#sidebar_right .fck_widget_calendar h4:not(:first-child),
#sidebar_right .fck_widget_calendar .shabbos_times h2:first-child {
    margin-top: 15px;
}
.fck_widget_calendar .right_calendar_event_time {
    font-style: normal;
}
#maincontent .readmore,
#sidebar_right .readmore {
    height: auto;
    padding: 0;
}
#maincontent .readmore a,
#sidebar_right .readmore a {
    float: none;
}
#maincontent .fck_widget_calendar .table-responsive tr td {
    font-size: 18px;
    font-weight: normal;
}
.fck_widget_calendar .table-responsive tr td {
    font-weight: normal;
}

/*********************
%6 - events and forms
*****************/
/******** PAYMENT PAGE **************/

body.payment .section table, body.payment .section table td {
    border: none;
}
body.payment #maincontent#maincontent {
    margin-top: var(--padding);
}
body.event .ev_share.addthis_button {
    display: none;
}
body.event .calendar_table {
    border: 0;
}
body.event #maincontent .calendar_table a {
    font-size: 14px;
    padding: 5px 10px;
    margin-right: 8px;
}
body.event div[style="clear:both;height:11px"] {
    display: none;
}
body.event #maincontent .individual_event_page_header + h3 {
    margin-bottom: 20px;
}
body.event #maincontent .event_location + h3,
body.event #maincontent .event_time + h3{
    margin-top: 18px;
}
body.event #maincontent .event_location + div[style="clear:both;height:11px"] + strong,
body.event #maincontent .event_time + div[style="clear:both;height:11px"] + strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
}
body.event #maincontent .event_location + div[style="clear:both;height:11px"] + strong + br,
body.event #maincontent .event_time + div[style="clear:both;height:11px"] + strong + br {
    display: none;
}
body.event #maincontent .event_passed {
    display: block;
    margin-bottom: 4px;
}
body.event #maincontent .event_passed  + br {
    display: none;
}
#maincontent.full_width .featured_article {
    width: var(--normal-width);
    max-width: 100%;
    margin: 0px auto;
    float: none;
}

#maincontent.full_width .featured_article.featured_article_first {
    margin-top: var(--padding);
}
.content_body, .content_title {
    width: var(--normal-width);
    max-width: 100%;
}
body.admin #maincontent, body.event #maincontent.event, body.school_enrollment #maincontent, #content #maincontent.cal {
    width: var(--normal-width);
    max-width: var(--normal-width);
    padding: var(--padding) 0;
}
#maincontent .pfbc-form, #maincontent .pfbc-form option,
#sidebar_right .pfbc-form, #sidebar_right .pfbc-form option,
.dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message *{
    color: #000;
}
#maincontent .pfbc-form textarea, #maincontent .pfbc-form input[type="text"], #maincontent .pfbc-form input[type="password"],
#maincontent .pfbc-form input[type="datetime"], #maincontent .pfbc-form input[type="datetime-local"], #maincontent .pfbc-form input[type="date"],
#maincontent .pfbc-form input[type="month"], #maincontent .pfbc-form input[type="time"], #maincontent .pfbc-form input[type="week"],
#maincontent .pfbc-form input[type="number"], #maincontent .pfbc-form input[type="email"], #maincontent .pfbc-form input[type="url"], #maincontent .pfbc-form input[type="search"],
#maincontent .pfbc-form input[type="tel"], #maincontent .pfbc-form input[type="color"], #maincontent .pfbc-form .uneditable-input,
#maincontent  div .pfbc-form select,
#sidebar_right .pfbc-form textarea, #sidebar_right .pfbc-form input[type="text"], #sidebar_right .pfbc-form input[type="password"],
#sidebar_right .pfbc-form input[type="datetime"], #sidebar_right .pfbc-form input[type="datetime-local"], #sidebar_right .pfbc-form input[type="date"],
#sidebar_right .pfbc-form input[type="month"], #sidebar_right .pfbc-form input[type="time"], #sidebar_right .pfbc-form input[type="week"],
#sidebar_right .pfbc-form input[type="number"], #sidebar_right .pfbc-form input[type="email"], #sidebar_right .pfbc-form input[type="url"],
#sidebar_right .pfbc-form input[type="search"], #sidebar_right .pfbc-form input[type="tel"], #sidebar_right .pfbc-form input[type="color"], 
#sidebar_right .pfbc-form .uneditable-input, #sidebar_right  div .pfbc-form select,
#payments_form select, #payments_form textarea, #payments_form input[type="text"] 
{
    color: #000;
    height: 35px;
    border: 1px solid #666666;
    border-radius: 0px;
}
#payments_form select, #payments_form textarea, #payments_form input[type="text"] {
    padding: 5px;
}
#maincontent .pfbc-form .form-actions, #sidebar_right .pfbc-form .form-actions {
    border: 0;
    background: none;
}

/*** start checkbox */
#maincontent .pfbc-form input[type=checkbox],
#sidebar_right .pfbc-form input[type=checkbox] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    -moz-appearance: none;
    appearance: none;
    /* For iOS < 15 */
    background-color: var(--form-background);
    /* Not removed via appearance */
    margin: 0;
    margin-top: 2px;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #666;
    border-radius: 0px;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    outline: 0px !important;
    margin-right: 7px;
}

#maincontent .pfbc-form input[type=checkbox]::before,
#sidebar_right .pfbc-form input[type=checkbox]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    /* Windows High Contrast Mode */
    background-color: CanvasText;
}

#maincontent .pfbc-form input[type=checkbox]:checked::before, 
#sidebar_right .pfbc-form input[type=checkbox]:checked::before {
    transform: scale(1);
}

#maincontent .pfbc-form input[type=checkbox]:focus,
#sidebar_right .pfbc-form input[type=checkbox]:focus {
    outline: max(2px, 0.15em) solid currentColor;
    outline-offset: max(2px, 0.15em);
}

#maincontent .pfbc-form input[type=checkbox]:disabled,
#sidebar_right .pfbc-form input[type=checkbox]:disabled {
    color: #dedede;
    color: var(--form-control-disabled);
    cursor: not-allowed;
}
/* end checkbox */


/**********************************************
%7 CALENDAR
*************************************************/
/* todo prev and next week on week view - styling is messed up */
.calendar_table {
    border: 1px solid #b4b0b0;
}
#maincontent.cal.full_width {
    width: var(--normal-width);
    max-width: 100%;
    margin: 0px auto;
}
table.calendar.calendar_header_date {
    min-height: 53px;
}
table.calendar_header_date th.month_header {
    color: #fff;
    background: var(--navy) !important;
    font-size: 35px;
}
table.calendar.calendar_main th {
    background: var(--calendar-lightest-blue);
}
table.calendar.calendar_main th:first-child,
table.calendar.calendar_main th:last-child{
    background: var(--navy);
    
}
#sidebar_left #calendar_page_header {
    display: none !important;
}
table.calendar_header_date th {
    border-collapse: collapse;
    border: 0;
}
table.calendar_header_date tr:hover {
    background: none;
}
#maincontent.cal a.prev_link, 
#maincontent.cal a.next_link {
    background: none;
    border: 0;
    width: 100%;
    height: 100%;
}
#maincontent.cal a.prev_link {
}
#maincontent.cal a.next_link {
}
#maincontent.cal a.prev_link:before, 
#maincontent.cal a.next_link:before {
    background: none;
    border-radius: 15px;
    padding: 0 5px;
    font-size: 50px;
    color: #999;
    color: var(--navy);
    background-image: url(https://images.shulcloud.com/16808/uploads/Icons/caret-white.svg);
    background-size: contain;
    background-repeat: no-repeat;
    content: "";
    width: 50px;
    display: block;
    height: 100%;
    background-position: center;
    margin: 0 0 0 auto;
}
#maincontent.cal a.prev_link:before {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
    margin-left: 0;
}
/**********  week view */

#maincontent.cal table.ce_view_week {
    position: relative;
    height: 35px;
}
#maincontent.cal table.ce_view_week a.prev_link, 
#maincontent.cal table.ce_view_week a.next_link {
    display: inline-block;
    width: auto;
    position: absolute;
    left: 0;
    top: 0;
    padding-left: 0;
}
#maincontent.cal table.ce_view_week a.next_link {
    left: 110px;
}
#maincontent.cal table.ce_view_week a.prev_link:before, 
#maincontent.cal table.ce_view_week a.next_link:before {
    content:attr(title);
    font-size: 17px;
    display:block;
    color: var(--navy);
    border-radius: 0;
    padding: 8px;
    transform: none;
    width: auto;
    background: var(--lightest-blue);
}

#maincontent.cal .calendar_header_date .ui-button-text,
#maincontent.cal .calendar_header_date .ui-icon,
#maincontent.cal  table.ce_view_week .ui-button-text,
#maincontent.cal  table.ce_view_week .ui-icon {
    display: none;
}
 #maincontent.cal .dayhead {
     line-height: 1;
 }
 #maincontent.cal .dayhead a,
#maincontent.cal table.calendar td span.jewishDay,
table.calendar td div.sedra {
     text-decoration: none;
     color: var(--navy);
 }
 table.calendar td.unmonth {
     background: var(--calendar-unmonth);
 }
 
li.calendar_popover_trigger.calendar_event:hover {
    text-decoration: underline;
}
#maincontent.cal a.add_item {
    text-decoration: none;
}
#maincontent.cal .calendar_day_view h2 {
    font-size: 22px;
    text-align: left;
    margin-bottom: 0;
    margin-top: 20px;
}
#maincontent.cal table.calendar  .calendar_day_view  td div.sedra, .calendar_day_view , 
#maincontent.cal  .calendar_day_view a, #maincontent.cal  .calendar_day_view p a,  .calendar_day_view .ce_table .ce_desc .ce_holiday, 
 .calendar_day_view .ce_time, .calendar_day_view .ce_table .ce_desc .ce_sedra,  .calendar_day_view .ce_table .ce_desc .ce_lifecycle_type,  
 .calendar_day_view .ce_table .ce_desc .ce_event_name,  .calendar_day_view ce_annnouncement, .calendar_day_view  .ce_annnouncement {
     font-size: 18px;
     margin: 0;
 }
 table.ce_view_week > tbody > tr > td {
     padding: 2.5px;
 }
 table.ce_view_week > tbody > tr:first-child > td {
     padding-top: 0;
 }
 table.ce_view_week .ce_desc .ce_event_location {
     font-size: 18px;
     font-style: italic;
 }
 #maincontent.cal table.ce_view_week a, #maincontent.cal table.ce_view_week p a {
     color: var(--gold);
     font-weight: normal;
 }
 #maincontent.cal .ce_view_week .ce_time_start.time_start_empty {
     display: none;
 }
 .ce_view_week  td.ce_time_start {
     text-align: left;
    width: 1%; /* shrink width to fit content */
    white-space: nowrap;
 }
 #maincontent#maincontent a.ce_admin_action {
     font-size: 14px;
 }
 table.calendar th {
     background: var(--navy);
 }
table.calendar th a {color:#000;}
.table-responsive table.calendar th:first-child{ background:var(--navy); color:#fff;}
.table-responsive table.calendar th:last-child{ background:var(--navy); color:#fff;}
table.calendar td{
    background: var(--calendar-lightest-blue);
    width:14.28%; border-color:#fff; border-width:4px; border-style:solid; padding:5px;
}
#maincontent.cal table.calendar td div.daywrap{ width:100%;}
#maincontent.cal table.calendar td div.daywrap span,
#maincontent.cal table.calendar td div.daywrap li,
#maincontent.cal table.calendar td div.sedra,
#maincontent.cal a, #maincontent.cal p a,
.ce_table .ce_desc .ce_holiday, .ce_table .ce_desc .ce_sedra, .ce_table .ce_desc .ce_lifecycle_type, .ce_table 
.ce_desc .ce_event_name, ce_annnouncement, .ce_annnouncement {
    font-size:14px;
    line-height:1.2;
    margin:5px 0px;
    height: auto;
}
table.calendar td.today,
#maincontent.cal table.calendar td div.daywrap span.day {
    font-size:16px;
    font-weight:bold;
    color: var(--navy);
    margin-bottom: 0px;
}
#maincontent.cal a, #maincontent.cal p a {
    color: var(--navy);
}
#maincontent.cal div.daywrap a  {
    color: var(--navy);
}
#maincontent.cal div.daywrap li a span,
#maincontent.cal div.daywrap div.sedra a span{
    color: inherit !important;
}
#maincontent.cal a.button, #maincontent.cal p a.button {
    color: #fff;
}
#maincontent.cal a:hover, #maincontent.cal p a:hover {
    text-decoration: none;
}
#maincontent.cal table.calendar td:hover {
    background: var(--calendar-hover);
}
#maincontent table.calendar td.today, #maincontent table.calendar td.today:hover {
    background:var(--navy);
    color:#fff;
}
 #maincontent.cal td.today div.daywrap li a span {
     color: #fff !important;
 }
#maincontent.cal table.calendar td:hover li,
#maincontent.cal table.calendar td:hover a,
table.calendar td:hover span.day, #maincontent table.calendar td:hover div.sedra,
#maincontent.cal table.calendar td li.calendar_popover_trigger {
    color: var(--navy);
}
#maincontent.cal table.calendar td li.add_item a {
    text-decoration: none;
}
#maincontent table.calendar td.today li,
#maincontent table.calendar td.today a,
table.calendar td.today span.day, #maincontent.cal table.calendar td.today div.daywrap span.day,
#maincontent table.calendar td.today div.sedra,
#maincontent table.calendar td.today:hover li,
#maincontent table.calendar td.today:hover a,
table.calendar td.today:hover span.day, #maincontent.cal table.calendar td.today:hover div.daywrap span.day,
#maincontent table.calendar td.today:hover div.sedra,
#maincontent.cal table.calendar td.today li.calendar_popover_trigger, 
#maincontent.cal table.calendar td.today span.jewishDay {
    color: #fff;
}


/* Style calendar popups */
.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 .eventbody {margin: 10px;background: white;position: absolute;top: 27%;left: 28%;width: 40%;padding: 24px;text-align: left;border-radius: 7px;}
.popevent .eventheader {position: relative;top: 29%;right: 29%;z-index: inherit;}
.popevent a h3 {
    text-decoration: underline;
}
.popevent a h3:hover {
    text-decoration: none;
}
.popevent h3 {text-align:center;margin-bottom: 10px;
    color: var(--navy);
}
.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: var(--gold);
    margin-top: 18px;
}
.popevent .eventheader .headerclose {
    border: 3px solid var(--navy);
    border-radius: 15px;
    padding: 7px;
    color: #fff;
    background: var(--navy);
}
.popevent a {
    text-decoration: none;
}
.popevent .eventheader .headerclose:hover {
    background: var(--navy);
}

/******************
7a - week view 
***************************/

#maincontent.cal table.ce_view_week,
#maincontent.cal table.ce_view_day {
    position: relative;
    height: 35px;
}
#maincontent.cal table.ce_view_week a.prev_link, 
#maincontent.cal table.ce_view_week a.next_link,
#maincontent.cal table.ce_view_day a.prev_link, 
#maincontent.cal table.ce_view_day a.next_link {
    display: inline-block;
    width: auto;
    position: absolute;
    left: 0;
    top: 0;
    padding-left: 0;
}
#maincontent.cal table.ce_view_week a.next_link,
#maincontent.cal table.ce_view_day a.next_link {
    left: 110px;
}
#maincontent.cal table.ce_view_week a.prev_link:before, 
#maincontent.cal table.ce_view_week a.next_link:before,
#maincontent.cal table.ce_view_day a.prev_link:before, 
#maincontent.cal table.ce_view_day a.next_link:before {
    content:attr(title);
    font-size: 17px;
    display:block;
    color: var(--navy);
    border-radius: 0;
    padding: 8px;
    transform: none;
    width: auto;
    background: var(--calendar-hover);
}

#maincontent.cal .calendar_header_date .ui-button-text,
#maincontent.cal .calendar_header_date .ui-icon,
#maincontent.cal  table.ce_view_week .ui-button-text,
#maincontent.cal  table.ce_view_week .ui-icon,
#maincontent.cal  table.ce_view_day .ui-button-text,
#maincontent.cal  table.ce_view_day .ui-icon {
    display: none;
}

 table.ce_view_week > tbody > tr > td,
 table.ce_view_day > tbody > tr > td {
     padding: 2.5px;
 }
 table.ce_view_week > tbody > tr:first-child > td,
 table.ce_view_day > tbody > tr:first-child > td {
     padding-top: 0;
     padding-right: 25px;
 }
 table.ce_view_week .ce_desc .ce_event_location,
 table.ce_view_day .ce_desc .ce_event_location {
     font-size: 18px;
     font-style: italic;
 }
 #maincontent.cal table.ce_view_week a, #maincontent.cal table.ce_view_week p a,
 #maincontent.cal table.ce_view_day a, #maincontent.cal table.ce_view_day p a {
     color: var(--navy);
     font-weight: normal;
 }
 #maincontent.cal .ce_view_week .ce_time_start.time_start_empty,
 #maincontent.cal .ce_view_day .ce_time_start.time_start_empty {
     display: none;
 }
 .ce_view_week  td.ce_time_start,
 .ce_view_day  td.ce_time_start {
     text-align: left;
    width: 1%; /* shrink width to fit content */
    white-space: nowrap;
 }
 #maincontent#maincontent a.ce_admin_action {
     font-size: 14px;
 }
/***********************************
%8 - FOOTER
************************************/
#footer {
    background: #fff;
    font-weight: normal;
    margin-top: 30px;
}
#footer p:last-child {
    margin-bottom: 0;
}
#footer, #footer p, #footer li, #footer a {
    font-size: 18px;
}
#footer .content_body {
    padding: 40px var(--calc-padding);
    margin: 0px auto;
    background: var(--dark-blue);
    width: 100%;
}
.footer_section {
    flex: 1 1 33%;
}
.footer_section.copyright_shul {
    text-align: right;
}
.footer_section.zmanim {
    text-align: center;
    flex-basis: 40%;
}
#footer .footer_row {
    display: flex;
    position: relative;
}
#footer .fck_widget_zmanim tr:last-child {
    display: none;
}
#footer .footer_section.zmanim .footer_section {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}
#footer .footer_section.zmanim .footer_section > * {
    flex: 1;
}
#footer .footer_section.zmanim .footer_section:first-child {
    border-right: 5px solid #fff;
    padding-right: 15px;
}
.zmanim .footer_section:last-child {
    padding-left: 15px;
}
.fck_widget_zmanim .table-responsive > table > tbody > tr > td:first-child {
    width: auto;
    text-align: left;
    padding: 2px 0;
}
.table-responsive > table > tbody > tr > td:last-child {
    color: #000;
    width: 1%;
}
.fck_widget_zmanim .table-responsive > table > tbody > tr > td:last-child {
    color: #fff;
}
#footer .header_candles_wrapper {
    display: none;
}

#footer .global_terms_links, #footer .global_terms_links a,
#footer .copyright, #footer .copyright a {
    color: var(--dark-blue);
}

#footer .global_terms_links {
    padding-top: 5px;
    margin: 0;
    margin-bottom: 5px;
    text-align: right;
    padding-right: var(--calc-padding);
    margin-left: auto;
}

#footer p.copyright {
    margin: 0;
    margin-top: -28px;
    text-align: left;
    padding-left: var(--calc-padding);
}
#footer .global_terms_links, #footer .copyright {
    color: var(--dark-blue);
    position: relative;
    float: none;
    max-width: 50%;
    width: auto;
    z-index: 1;
    font-size: 13px;
    
}
#footer .global_terms_links a, #footer .copyright a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: normal;
    text-decoration: underline;
    font-size: 13px;
}

/*********************** %y font ***/

body, h1, h2, h3, h4, h5, h6,
#content, #maincontent, #maincontent p, #maincontent li, #maincontent a, #maincontent span.marker a,
#maincontent h3.date,  #sidebar_right .fck_widget_zmanim table td, #sidebar_right .fck_widget_calendar h2,
.featured_article .pfbc-form input, .featured_article .pfbc-form button, .featured_article .pfbc-form select, .featured_article .pfbc-form textarea,
#sidebar_right .fck_widget_subscribe form input#subscribe_email_box,
#sidebar_right .fck_widget_subscribe form input.go_button,
#payments_form select, #payments_form textarea, #payments_form input {
    font-family: var(--font-family);
}
#nav_section, #nav_section p, #nav_section li, #nav_section a, #nav_section li a,
#maincontent h2, #maincontent h3, #maincontent h4, #maincontent h5, #maincontent h6
#sidebar_right, #sidebar_right p, #sidebar_right li, #sidebar_right a {
    font-family: var(--font-family);
}
#sidebar_right h2, #sidebar_right h3, #sidebar_right h4, #sidebar_right h5, #sidebar_right h6,
#footer, #footer p, #footer li, #footer a,
#footer h2, #footer h3, #footer h4, #footer h5, #footer h6,
.sy-caption-wrap .sy-caption a .slider_title, .sy-caption-wrap .sy-caption .slider_title,
#maincontent .event_calendar_tags_tabs li label, #sidebar_right .event_calendar_tags_tabs li label {
    font-family: var(--font-family);
}
input[type="button"], input[type="submit"], input.action-button, #maincontent.admin a.action-button, #maincontent.admin p a.action-button,
#maincontent .event_calendar_tags_tabs h3 a, table.calendar.calendar_main th, table.calendar,
#sidebar_right .readmore a, body #content .breadcrumbpaginationh1section, body #content .breadcrumbpaginationh1section a,
.table-responsive > table > tbody > tr > td:last-child, .fck_widget_calendar .table-responsive td {
    font-family: var(--font-family);
}
#header #header_inner #header_buttons #header_login_button, #header #header_inner #header_buttons div, #loginFrm input[type="submit"],
#header, .inner_ms_header, body .header_menu, .header_button, .admin_tabs > li.header_button,
#content .header_slider .slipprySlider .slider_title, .sy-slides-wrap .sy-caption-wrap .sy-caption {
    font-family: var(--font-family);
}
.home_subscribe_calendar .fck_widget_subscribe td > a, #content .header_slider .slider_link, blockquote, blockquote cite,
.calendar_table input[type="submit"], table.calendar_header_date th.month_header {
    font-family: var(--font-family);
}
body:not(.has_header_slider) #sidebar_left h1, #sidebar_left h2, table.calendar td span.day, 
.contact_form .submit, .contact_form label, #maincontent .event_widget_title {
    font-family: var(--font-family);
}
table.calendar td span.jewishDay, .header_slider .sy-caption-wrap .sy-caption .slider_description, 
#maincontent .fck_widget_calendar .readmore a, #maincontent .readmore {
    font-family: var(--font-family);
}

/****************** %z admin ***********/

body._404 div.section {
    background: #fff;
}
#maincontent.admin a.action-button {
    text-decoration: none;
}

input#save_and_stay[value="Save CSS"] {
    position: fixed;
    top: 40px;
    left: 20px;
    z-index: 2;
}
input#preview-css[value="Preview Changes"] {
    display: none;
}
.featured_article .content_button {
    position: relative;
    z-index: 2;
}
div.pad-helper > div[style="float:right"] {
    display: block;
    z-index: 3;
    position: relative;
    width: 100%;
    background: #fff;
}
#maincontent .edit-buttons-overlay {
    width: 150px;
}
#maincontent .edit-buttons-overlay a {
    font-size: 16px;
}

div.pad-helper > div[style="float:right"] .content_button {
    float: right;
}

#maincontent.member_sections input.form-control {
    color: #000;
}
@media (min-width: 801px) {
    #maincontent .two-col img {
        height: 100% !important;
        width: auto !important;
        max-width: none !important;
        position: absolute;
      left: 50%;
      top: 50%;
      height: 100%;
      width: auto;
      -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
              transform: translate(-50%,-50%);
    }
    
    #maincontent .two-col img.fill_width {
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 767px) {
    #nav_section > li {
        width: auto;
    }
    #nav_section {
        max-width: 90%;
        display: flex;
        margin: 0 auto;
    }
    li.subnav_has_children > a:after {
        content: "»";
    }
}
/* width at which the links start wrapping */
@media (min-width: 1220px) {
    .top_links {
        margin-top: 20px;
    }
}
@media (max-width: 1300px) {
    #footer p.copyright {
        padding-left: var(--calc-narrow-padding-footer);
        padding-right: 0;
    }
    #footer .global_terms_links {
        padding-right: var(--calc-narrow-padding-footer);
        padding-left: 0;
    }
}

@media (max-width: 1270px) {
    .top_links {
        flex-wrap: wrap;
        row-gap: 15px;
    }
    .content_body, .content_title, .breadcrumbsection, #maincontent_sidebar_wrapper, .sidebar_left_top,
    #header #header_inner, #content #maincontent.cal {
        max-width: var(--narrow-width);
    }
    #footer .content_body,
    #maincontent.full_width .breadcrumbpaginationh1section h1, .header_slider_wrapper .breadcrumbpaginationh1section h1 {
        padding-left: var(--calc-narrow-padding);
        padding-right: var(--calc-narrow-padding);
    }
    #footer .content_body > .footer_row {
        flex-wrap: wrap;
    }
    #footer .content_body > .footer_row > .footer_section:first-child {
        flex-basis: 30%;
    }
    #footer .content_body > .footer_row > .footer_section {
        flex-basis: 50%;
    }
    
    #footer .content_body > .footer_row > .footer_section.copyright {
        text-align: left;
        flex-basis: 100%;
        margin-left: 0;
    }
    #footer .footer_section.zmanim .footer_row {
        max-width: 500px;
        margin: 0px auto;
    }
    body.minyanim #content #maincontent.cal {
        max-width: 100%;
    }
}
@media (max-width: 1245px) {
    #img_div + .header_info {
        flex-basis: 50%;
    }
}
@media (max-width: 1100px) {
    .event_calendar_tags_tabs label {
        font-size: 18px;
    }
    #img_div {
        flex-basis: 60%;
    }
}

@media (max-width: 1040px) {
    body.minyanim #maincontent.cal h2 {
        text-align: left;
    }
    body.minyanim .pad-helper > form[name="calFilter"] + div {
        flex-direction: column;
    }
    body.minyanim #maincontent#maincontent .ce_table a.ce_admin_action {
        display: inline-block;
    }
    
    /*iframe min height*/
    .featured_article.week_calendar #week_calendar_iframe {
        min-height: 700px;
    }
}

@media (max-width: 1024px) {
    #img_div {
        width: auto;
        flex-basis: 40%;
    }
    #img_div img {
        margin-bottom: -8px;
    }
    #nav_section#nav_section > li {
        background: none;
    }
    #content .top_links li a {
        font-size: 12px;
    }
    #maincontent .slipprySlider .sy-pager, #content .header_slider .slipprySlider .sy-pager {
        background: none;
        position: absolute;
        bottom: 0;
        top: unset;
    }
    #maincontent .content_body .event_calendar_tags_tabs nav > ul:not(.one_tab) {
        flex-wrap: wrap;
        align-items: center;
        padding-bottom: 15px;
        gap: 10px;
        margin: 0px auto;
        max-width: 80%;
        justify-content: center;
    }
    #content #maincontent .event_calendar_tags_tabs ul li, #content #sidebar_right .event_calendar_tags_tabs ul li {
        white-space: nowrap;
        flex-basis: 0%;
    }
    #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper {
        flex: 0 0 31.6%;
    }

    #content#content #maincontent #event_calendar_tags_tab0:checked ~ section .event_calendar_tags_tab0, 
    #content#content #maincontent #event_calendar_tags_tab1:checked ~ section .event_calendar_tags_tab1, 
    #content#content #maincontent #event_calendar_tags_tab2:checked ~ section .event_calendar_tags_tab2, 
    #content#content #maincontent #event_calendar_tags_tab3:checked ~ section .event_calendar_tags_tab3, 
    #content#content #maincontent #event_calendar_tags_tab4:checked ~ section .event_calendar_tags_tab4 {
        flex-wrap: wrap;
        gap: 25px;
    }
    
    body:not(.home) #content#content#content #maincontent  .fck_widget_event_calendar_tags section > div {
        gap: 0;
    }
    #footer .content_body > .footer_row {
        flex-direction: column;
    }
    #footer .content_body > .footer_row > .footer_section {
        margin-bottom: 20px;
        margin-left: 0;
        text-align: left;
    }
    #footer .content_body > .footer_row > .footer_section:last-child {
        margin-bottom: 0;
    }
    #footer .footer_section.zmanim .footer_row {
        margin-left: 0;
    }
    #footer .footer_section.zmanim .footer_row h2 {
        margin-bottom: 0;
    }
    #footer .table-responsive > table > tbody > tr > td:last-child {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    #maincontent_sidebar_wrapper {
     flex-direction: column;   
    }
    #maincontent_sidebar_wrapper #maincontent,
    #sidebar_right {
        width: 100%;
    }
    
}
@media (max-width: 801px) {
    #maincontent .two-col .content_body {
       flex-direction: column;
    }
    #maincontent .two-col .section_subcontent {
        width: 100%;
    }
    #content #maincontent .two-col .img_parent {
        border:0px;
        max-width: 100%;
    }
    #maincontent .two-col .img_parent:nth-child(2):last-child {
        order: -1;
    }
    #maincontent .two-col img {
        height: auto !important;
        max-width: 100%;
        width: 100% !important;
    }
    #maincontent .two-col .section_subcontent:not(.img_parent) {
        max-width: 100%;
        padding: 30px var(--calc-narrow-padding);
    }
    blockquote, #content #maincontent blockquote * {
        font-size: 26px;
    }
    
}

@media (max-width: 767px) {
    /* @todo Please double check that the Ruach button and 2 arrows are not lost when going between portrait and landscape view.*/
    #img_div {
        width: 450px;
        max-width: 80%;
    }
    #img_div img {
        margin-bottom: 0;
    }
    #content .search_area, .right_box2 {
        display: none;
    }
    #container > .parsha {
        display: none;
    }
    #container > .candles {
        background: var(--navy);
        color: #fff;
        text-align: right;
        padding: 10px;
    }
    #topnav.candles_shown {
        /* only relevant when shabbos times are on */
        top: 40px;
    }
    #header_login_menu {
        top: 52px !important;
        right: 0 !important;
        left: unset !important;
    }
    #header #header_inner #header_buttons {
        margin-right: 10px;
    }
    #topnav {
        margin-top: 10px;
        background-image: url(https://images.shulcloud.com/16808/uploads/Icons/navmenu.svg);
        background-size: contain;
    }
    
    #nav_section ul ul {
        border: 0;
    }
    #header #header_inner #header_buttons > div#header_login_button {
        background-image: url(https://images.shulcloud.com/16808/uploads/Icons/login.svg);
        background-size: contain;
        margin-right: 0px;
    }
    #nav_section > li > a {
        text-align: left;
    }
    #nav_section > li:last-child > a {
        padding-left: 15px;
        padding-right: 15px;
    }
    #nav_section li ul li ul a {
        padding-left: 80px;
    }
    #nav_section > li > ul > li:last-child, #nav_section ul li:last-child ul li:last-child {
        border-bottom: 1px solid rgba(255,255,255,0.4);
    }
    .top_links {
        margin-top: 0;
        margin-bottom: 20px;
    }
    .sidebar_left_top {
        flex-direction: column-reverse;
        align-items: center;
        padding: 15px 0;
    }
    #img_div {
        padding: 0;
    }
    .home .header_slider_wrapper {
        margin-bottom: 0;
    }
    #maincontent .movable_area.featured_article.week_calendar h2.content_title {
        margin-top: 0;
    }
    #content .sy-slide img {
        max-width: none;
        width: 200%;
      -webkit-transform: translate(-25%);
      -ms-transform: translate(-25%);
      transform: translate(-25%);
    }
    
    #content#content .sy-pager {
        display: none;
    }
    #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper {
        flex: 1 1 40%;
        margin: 0px auto;
    }
    #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper > div:last-child,
    #maincontent .event_calendar_tags_tabs .event_calendar_tag_widget_picture {
        padding-left: 0;
        padding-right: 0;
    }
    #maincontent .featured_article.home_event_tags_widget h2.content_title {
        text-align: center;
    }
    .event_calendar_tags_tabs label {
        font-size: 15px;
    }
    .fck_widget_event_calendar_tags {
        margin-top: 0;
    }
    body:not(.home) #maincontent .event_calendar_tags_tabs section > div .event_calendar_tag_event_wrapper {
        flex-basis: 100%;
        width: 100%;
    }
    
    body.minyanim .pad-helper > form[name="calFilter"] + div > div.calendar_day_view {
        display: none;
    }
    body.minyanim .pad-helper > form[name="calFilter"] + div > div.calendar_day_view:first-child,
    body.minyanim .pad-helper > form[name="calFilter"] + div > div.calendar_day_view:nth-child(2),
    body.minyanim .pad-helper > form[name="calFilter"] + div > div.calendar_day_view:nth-child(3) {
        display: block;
    }
}
@media (max-width: 570px) {
    #content #maincontent.cal .calendar_day_view h2 {
        background: var(--green) !important;
        padding: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 500px)  {
    #content .top_links li a {
        padding: 8px;
        font-size: 11px;
    }
    #content .top_links li:not(:first-child) {
        margin-left: 8px;
    }
    #footer .footer_section.zmanim .footer_row {
        flex-direction: column;
        max-width: 230px;
    }
    
    #footer .footer_section.zmanim .footer_section:first-child {
        border-right: none;
        border-bottom:  5px solid #fff;
        padding-bottom: 15px;
        padding-right: 0;
    }
    .zmanim .footer_section:last-child {
        padding-left: 0;
        padding-top: 15px;
    }
    #footer .zmanim .table-responsive {
        margin-bottom: 0;
    }
    #footer .table-responsive > table > tbody > tr > td:last-child {
        text-align: right;
    }
    #footer .global_terms_links, #footer .copyright,
    #footer .global_terms_links a, #footer .copyright a{
        font-size: 11px;
    }
}
@media (max-width: 400px) {
    #content .top_links li a {
        padding: 5px;
        font-size: 10px;
    }
}
:root {
    --navy: #02345B;
    --dark-blue: #336699;
    --green: #44AB91;
    --peach: #F3E6CE;
    --light-blue: #9EC5D3;
    --lightest-blue: #e2edf1;
    --calendar-hover: #bee0ec;
    --calendar-lightest-blue: #e1f6fe; /* current month days background */
    --calendar-unmonth: #ebf6fa;
    
    --primary-bg: var(--light-blue);
    --secondary-bg: var(--lightest-blue);
    --secondary-bg-hover: #42778a;
    --rich: var(--navy);
    --secondary-text: var(--navy);
    
    --primary-hue: 196 !important;
    --saturation: 30% !important;
    --primary-border: hsl(var(--primary-hue), var(--saturation), var(--med-light));
    
    --font-family: "Lato", sans-serif;
    
    --normal-width: 1250px;
    --narrow-width: 95%;
    
    --padding: 30px;
    --calc-padding: calc((100% - var(--normal-width)) / 2);
    --calc-narrow-padding: calc((100% - var(--narrow-width)) / 2);
    --calc-narrow-padding-footer: 5%;
}