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

}

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

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

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

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

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

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

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

  #site-navigation .primary-menu-wrap {
    background: #E53935 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-news-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-news-sub-toggle {
    background: #fff none repeat scroll 0 0;
    color: #E53935;
    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-news-sub-toggle:hover,
  #site-navigation ul li a.ogma-news-sub-toggle:focus {
    background: #333 !important;
    color: #ffffff;
  }

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

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

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

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

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

  .header-main-layout--two #site-navigation ul li a {
    padding: 0 25px;
    margin: 0;
  }

  .header-main-layout--two #site-navigation ul.sub-menu li a,
  .header-main-layout--two #site-navigation ul.children li a {
    padding: 10px 25px;
  }

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

  .ogma-news-site-layout--separate .frontpage-block .block-wrapper,
  .ogma-news-site-layout--separate #primary,
  .home.blog.ogma-news-site-layout--separate #primary,
  .ogma-news-site-layout--separate #secondary .widget,
  .home.blog.ogma-news-site-layout--separate #secondary .widget,
  .ogma-news-site-layout--separate #left-secondary .widget,
  .home.blog.ogma-news-site-layout--separate #left-secondary .widget,
  .ogma-news-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-news-menu-toogle {
    color: #dfdfdf;
  }

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

  .ogma-news-banner-wrapper .block-wrapper .single-block-post-wrapper {
    width: 48%;
    display: inline-block;
    margin-left: 2%;
    margin-right: -4px;
    vertical-align: top;
  }

  .ogma-news-banner-wrapper .lSSlideOuter {
    padding: 0;
  }
}

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

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

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

  .header-news-ticker-wrapper .ogma-news-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,
  .both-sidebar #primary,
  .home.blog.both-sidebar #primary {
    float: none;
    width: 100%;
    margin: 0 !important;
  }

  .ogma-news-site-layout--separate .frontpage-block .block-wrapper,
  .ogma-news-site-layout--separate #primary,
  .home.blog.ogma-news-site-layout--separate #primary,
  .ogma-news-site-layout--separate #secondary .widget,
  .home.blog.ogma-news-site-layout--separate #secondary .widget,
  .ogma-news-site-layout--separate #left-secondary .widget,
  .home.blog.ogma-news-site-layout--separate #left-secondary .widget,
  .ogma-news-site-layout--separate .breadcrumbs,
  .ogma-news-site-layout--separate .frontpage-block,
  .ogma-news-site-layout--separate .secondary-content-wrapper .widget,
  .home.blog.ogma-news-site-layout--separate .frontpage-block,
  .home.blog.ogma-news-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-news-banner-wrapper.frontpage-banner-layout--two .ogma-news-container {
    grid-template-columns: 100%;
  }

  .ogma-news-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-news-column-one,
  .ogma-news-column-two,
  .ogma-news-column-three,
  .ogma-news-column-four,
  .ogma-news-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;
  }

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

  .news-ticker-loader {
    margin-right: 0;
  }

  .news-ticker-label .label-text {
    display: none;
  }

  .header-main-layout--two .logo-ads-wrapper .ogma-news-flex {
    display: block;
  }

  .header-main-layout--two .header-search-wrapper {
    margin-left: 0;
    display: inline-block;
  }

  #ogma-news-site-mode-wrap {
    display: inline-block;
    float: right;
    margin: 12px 0;
  }

  .header-main-layout--two .header-search-wrapper .search-form-wrap .search-field {
    width: 320px;
  }

  .ogma-news-banner-wrapper.frontpage-banner-layout--two.banner-placed--tab .banner-tabbed-wrapper .single-post-wrap,
  .ogma-news-banner-wrapper.frontpage-banner-layout--one.banner-placed--timeline-block .single-block-post-wrapper,
  .ogma-news-banner-wrapper.frontpage-banner-layout--one.banner-placed--block-timeline .single-block-post-wrapper,
  .ogma-news-banner-wrapper.frontpage-banner-layout--one.banner-placed--timeline-block .single-post-wrapper,
  .ogma-news-banner-wrapper.frontpage-banner-layout--one.banner-placed--block-timeline .single-post-wrapper,
  .ogma-news-banner-wrapper.frontpage-banner-layout--one.banner-placed--timeline-block .single-post-wrapper,
  .ogma-news-banner-wrapper.frontpage-banner-layout--one.banner-placed--block-timeline .single-post-wrapper {
    width: 97%;
  }
}

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

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

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

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

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

  .ogma-news-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,
  .ogma-news-banner-wrapper .block-wrapper .single-block-post-wrapper {
    width: 97%;
    height: auto;
  }

  .ogma-news-banner-wrapper .block-wrapper .single-block-post-wrapper {
    margin-bottom: 10px;
  }
}

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

  .header-main-layout--two .header-search-wrapper .search-form-wrap .search-field {
    width: 200px;
  }

  .header-main-layout--two .header-search-wrapper .search-form-wrap .search-submit {
    padding: 0 15px;
  }

  .header-main-layout--two .header-search-wrapper {
    margin-right: 0;
  }
}