/**
 * Responsive style for the theme.
 *
 * @package Ogma
 */
@media (max-width:1400px) {
  .ogma-container {
    width: 100% !important;
    padding: 0 20px;
  }

}

@media (max-width:979px) {
  .ogma-banner-wrapper .ogma-container {
    grid-template-columns: 100%;
  }

  .ogma-banner-wrapper .lSSlideOuter {
    margin-bottom: 20px;
  }

  .ogma-banner-wrapper .block-wrapper {
    margin-left: -2%;
  }

  .ogma-banner-wrapper.frontpage-banner-layout--one.banner-placed--block .single-block-post-wrapper {
    width: 48%;
    margin-bottom: 2%;
  }

  .ogma-banner-wrapper.frontpage-banner-layout--two.banner-placed--tab  .banner-tabbed-wrapper .single-post-wrap{
    width: 98%;
  }

  .is-sticky .primary-menu-wrapper {
    top: 0 !important;
  }

  .ogma-menu-toogle {
    display: block;
    font-size: 34px;
    color: #fff;
    line-height: 32px;
    cursor: pointer;
    padding: 0;
  }

  .ogma-menu-toogle:hover,
  .ogma-menu-toogle:active,
  .ogma-menu-toogle:focus {
    color: #efefef;
  }

  .primary-menu-wrapper {
    position: relative;
  }

  #site-navigation .primary-menu-wrap {
    background: #0065C1 none repeat scroll 0 0;
    display: none;
    left: 0;
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 99;
  }

  #site-navigation ul li {
    display: block;
    float: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #site-navigation ul {
    display: block;
  }

  #site-navigation ul li a {
    line-height: 42px;
  }

  #site-navigation ul li a::after {
    display: none;
  }

  #site-navigation ul.sub-menu,
  #site-navigation ul.children {
    position: static;
    min-width: 100%;
    opacity: 1;
    top: 0;
    left: 0;
    visibility: visible;
    display: none;
    background: none;
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }

  .primary-menu-wrapper .ogma-flex {
    flex-direction: row;
    align-items: center;
  }

  #site-navigation .menu-item-description,
  #site-navigation ul li.menu-item-has-children>a::before,
  #site-navigation ul li.page_item_has_children>a::before {
    display: none;
  }

  #site-navigation ul li a.ogma-sub-toggle {
    background: #fff none repeat scroll 0 0;
    color: #0065C1;
    cursor: pointer;
    display: block;
    height: 24px;
    line-height: 25px;
    position: absolute;
    right: 15px;
    text-align: center;
    top: 8px;
    width: 24px;
    padding: 0 !important;
  }

  #site-navigation ul li a.ogma-sub-toggle:hover,
  #site-navigation ul li a.ogma-sub-toggle:focus {
    background: #333 !important;
    color: #ffffff;
  }

  .header-main-layout--two .ogma-menu-toogle {
    color: #606060;
    background: none;
    border: none;
  }

  .header-main-layout--two .ogma-menu-toogle:hover {
    color: #0065C1;
  }

  .header-main-layout--two #site-navigation .primary-menu-wrap {
    background: #fff;
  }

  .header-main-layout--two #site-navigation ul li a.ogma-sub-toggle {
    background: #333;
    color: #fff;
  }

  .header-main-layout--two #site-navigation ul li {
    border-color: rgba(0, 0, 0, 0.2);
  }

  .both-sidebar #left-secondary,
  .home.blog.both-sidebar #left-secondary,
  .both-sidebar #secondary,
  .home.blog.both-sidebar #secondary {
    width: 100%;
    float: none;
  }

  .ogma-site-layout--separate .frontpage-block .block-wrapper,
  .ogma-site-layout--separate #primary,
  .home.blog.ogma-site-layout--separate #primary,
  .ogma-site-layout--separate #secondary .widget,
  .home.blog.ogma-site-layout--separate #secondary .widget,
  .ogma-site-layout--separate #left-secondary .widget,
  .home.blog.ogma-site-layout--separate #left-secondary .widget,
  .ogma-site-layout--separate .breadcrumbs {
    float: none;
    width: 100%;
    margin-left: 0 !important;
  }

  .header-main-layout--two.dark-mode #site-navigation .primary-menu-wrap {
    background: #111111;
  }

  .header-main-layout--two.dark-mode .ogma-menu-toogle {
    color: #dfdfdf;
  }

}

@media (max-width:768px) {
  .top-header-date-wrap {
    margin-left: 0;
  }

  .ogma-flex {
    flex-direction: column;
  }

  .header-main-layout--two .logo-ads-wrapper .ogma-flex {
    flex-direction: row;
  }

  .header-news-ticker-wrapper .ogma-flex {
    flex-direction: row;
    display: block;
  }

  .top-bar-navigation,
  .top-header-date-wrap,
  .social-icons-wrapper {
    margin: 3px 0;
    text-align: center;
  }

  .site-branding {
    margin-bottom: 20px;
    text-align: center;
  }

  .primary-content-wrapper,
  .secondary-content-wrapper,
  #left-secondary,
  .home.blog #left-secondary,
  #primary,
  .home.blog #primary,
  #secondary,
  .home.blog #secondary {
    float: none;
    width: 100%;
  }

  .ogma-site-layout--separate .frontpage-block .block-wrapper,
  .ogma-site-layout--separate #primary,
  .home.blog.ogma-site-layout--separate #primary,
  .ogma-site-layout--separate #secondary .widget,
  .home.blog.ogma-site-layout--separate #secondary .widget,
  .ogma-site-layout--separate #left-secondary .widget,
  .home.blog.ogma-site-layout--separate #left-secondary .widget,
  .ogma-site-layout--separate .breadcrumbs,
  .ogma-site-layout--separate .frontpage-block,
  .ogma-site-layout--separate .secondary-content-wrapper .widget,
  .home.blog.ogma-site-layout--separate .frontpage-block,
  .home.blog.ogma-site-layout--separate .secondary-content-wrapper .widget {
    margin: 0 0 15px;
  }

  #colophon .widget-area .widget {
    margin: 0;
  }

  .footer-widget {
    margin-bottom: 20px;
  }

  .site-info {
    text-align: center;
    font-size: 13px;
  }

  #colophon {
    padding: 40px 0 0;
  }

  .footer-widget:last-child {
    margin-bottom: 40px;
  }

  .ogma-banner-wrapper.frontpage-banner-layout--two .ogma-container {
    grid-template-columns: 100%;
  }

  .ogma-banner-wrapper.frontpage-banner-layout--two .single-slide-wrap {
    height: 400px !important;
  }

  .banner-tabbed-wrapper {
    margin-left: 0;
    margin-bottom: 30px;
  }

  .news-list-block .block-layout--two article:nth-child(2n) .post-content-wrap {
    direction: ltr;
    width: 100%;
  }

  .news-grid-block .block-layout--two .block-main-wrapper article {
    width: 98%;
    margin-bottom: 20px;
  }

  .news-grid-block .block-layout--two .block-column-wrapper article {
    width: 98%;
  }

  .ogma-column-one,
  .ogma-column-two,
  .ogma-column-three,
  .ogma-column-four,
  .ogma-column-five {
    width: 97%;
    display: block;
    margin-right: 0;
  }

  body.no-sidebar-center #primary,
  body.home.blog.no-sidebar-center #primary {
    width: 100%;
  }

  #footer-navigation {
    margin: 10px auto;
  }

}

@media (max-width:600px) {
  body.logged-in {
    margin-top: -50px;
    padding-top: 45px;
  }

  .ogma-banner-wrapper .single-block-post-wrapper {
    margin-left: 0;
    width: 100%;
    display: block;
    margin-right: 0;
    height: 300px;
    margin-bottom: 20px !important;
  }

  .ogma-banner-wrapper .block-wrapper,
  .ogma-column-wrapper {
    margin-left: 0;
  }

  .ogma-banner-wrapper.frontpage-banner-layout--one.fullwidth-slider.banner-placed--slider .single-slide-wrap {
    height: 450px;
  }

  .ogma-banner-wrapper.frontpage-banner-layout--one.banner-placed--block .single-block-post-wrapper {
    width: 98%;
  }

  .ogma-column-one,
  .ogma-column-two,
  .ogma-column-three,
  .ogma-column-four,
  .ogma-column-five {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    margin-left: 0;
    display: block;
  }

  .block-main-wrapper {
    margin-bottom: 20px;
  }

  .ogma-grid {
    grid-template-columns: 100% !important;
  }

  .news-list-block .block-posts-wrapper .post-thumbnail-wrap,
  .news-list-block .block-posts-wrapper .post-content-wrap {
    width: 100%;
    display: block;
    padding: 0;
  }

  .news-list-block .block-layout--two article:nth-child(2n) .post-content-wrap {
    direction: ltr;
    width: 100%;
  }

  .news-grid-block .block-column-wrapper {
    margin-left: -3%;
  }

  .archive-style--grid .archive-content-wrapper article {
    width: 98%;
  }

  .archive-style--list .archive-content-wrapper article {
    grid-template-columns: 100%;
    margin-bottom: 20px;
  }

  .both-sidebar .related-posts-wrapper article {
    width: 97%;
  }

  .related-posts-wrapper article {
    width: 97%;
  }

}

@media (max-width:480px) {
  .news-grid-block .block-column-wrapper article {
    width: 97%;
  }

}