@media (max-width: 767px) {
  .fancybox-overlay .class1 {
    width: auto !important;
  }

  div#tribe-events-footer a {
    margin-top: 30px;
    display: inline-block;
  }
  .asnt-post-feed-format p a,
  #afternoon_insider_automation p a,
  #new_PM_insider_automation p a,
  .widget_dmc-post-feed p a {
    display: inline-block;
    padding: 15px 0;
    /* font-size: 18px !important;
    font-family: unset !important; */
  }
  .asnt-post-feed-format img,
  #afternoon_insider_automation img,
  #new_PM_insider_automation img {
    width: 100%;
    height: 133px;
    object-fit: contain;
    padding-right: 0;
  }
  .asnt-post-feed-format hr,
  #afternoon_insider_automation hr,
  #new_PM_insider_automation hr {
    height: 0px !important;
  }
  span.date {
    left: 0;
  }
  .widget_dmc-post-feed ul,
  .widget_asnt-post-feed ul {
    padding-left: 0 !important;
  }
  #categort_posts-2 li h3 {
    padding-left: 0px;
  }
  .col-sm-9 .ao-block-wrapper .ao-richtext-block {
    width: 100%;
    margin-top: 15px;
  }

  .footer-middle-area .newsletter-section input {
    max-width: 242px;
  }

  .entry-content .ao-submit-block > div {
    margin-top: 20px;
    text-align: left !important;
  }

  .btn-custom:hover {
    background-color: #0083ca;
  }

  .author-content-listing .content-section h2 a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* tdr-staff-container */
  .tdr-staff-container ul {
    display: unset;
  }

  .tdr-staff-container ul li {
    padding-bottom: 20px;
  }

  .tdr-staff-container h3 {
    margin-bottom: 20px;
  }

  .manage-account-fc div#form_opening iframe {
    height: 400px;
  }

  /* -------------- */
  .mobile-top-bar .logout-link a {
    font-size: 0;
  }

  div#form_opening iframe {
    height: 2000px;
  }

  .xxbtm-ldl-theme .xxbtm-ldl-theme {
    padding-left: 0 !important;
  }

  .xxbtm-ldl-theme .xxbtm-ldl-theme ul h4:before {
    top: 16px !important;
  }

  .xxbtm-ldl-theme .xxbtm-ldl-theme ul h4:after {
    top: 5px !important;
  }

  .ldl-search-stats-div {
    flex-direction: column;
    align-items: center;
  }

  .ld-search-form .ld-fld-div {
    width: 100% !important;
  }

  .ld-search-form {
    justify-content: center;
    margin-bottom: 20px;
  }

  .btm-ldl-build-list > div {
    text-align: center;
  }

  form#ldl_custom_search_form {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    left: -3px;
  }

  .btm-ldl-theme .ld-search-form .ld-fld-div {
    margin: 0 !important;
  }

  .xxbtm-ldl-theme > h4 {
    text-align: left;
    font-size: 24px;
    line-height: 28px;
    margin: 25px 0;
  }

  .page-template-template-subscribeDetails #form_opening iframe {
    height: 1800px;
  }

  .ads-center {
    max-width: 320px;
    margin: auto;
  }

  .homepage-top-stories .top-news-section .description-section::before,
  .homepage-featured-section .featured-contents .title p::before {
    background: #0083ca;
  }

  .footer-bottom-area p,
  .footer-bottom-area p a {
    color: #59595c !important;
  }

  .mobile-header-top .search-icon a img {
    width: 23px;
    height: 24px !important;
  }

  .mobile-pop-out-menu-area ul#menu-mobile-pop-out-menu > li > a,
  .mobile-header-bottom {
    background-color: #0083ca;
  }

  .mobile-pop-out-menu-area .leads-data {
    margin-top: 0;
  }

  .loadmore-btn {
    background-color: #0083ca;
  }

  button.loadmore-btn {
    background-color: #0083ca;
    outline: unset;
  }

  .mobile-header-top .site-logo a img {
    width: 250px;
    height: 58px !important;
  }

  .ns-landing-page .right-cs .content-box .featured-image img {
    object-fit: contain !important;
  }

  ul.alpha-pagination {
    display: none;
  }

  /* .rc-img {
    height: 100%;
  } */
  .powerlist-wrapper {
    display: flex;
    flex-direction: column;
  }

  .powerlist-box {
    min-height: 439px;
  }

  .powerlist-box .featured-image,
  .powerlist-box .featured-image img {
    height: 229px !important;
  }

  .powerlist-box .read-more.btn {
    height: 37px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
  }

  #tribe-events-pg-template h2.river-heading.section-title__heading {
    margin-top: 0;
  }

  .event-search-form__inputs button:first-child {
    margin-left: 0;
  }

  .event-search-form__inputs:first-child {
    max-width: 162px;
    margin-right: 14px;
  }

  input#event-search-keyword {
    max-width: 162px;
  }

  .event-search-form__inputs select {
    background-position: 141px 15px;
  }

  .event-search-form__inputs button:last-child:hover {
    background-color: unset !important;
  }

  /* .mobile-header-top .widget_media_image a img {
        width: unset;
        height: unset !important;
    } */
  /* homepage featured */
  #featured-content .featured_a {
    border-top: 0.25px solid #cbcbcb;
    padding-top: 20px;
    margin-top: 5px;
  }

  #featured-content {
    flex-direction: column;
    max-width: 350px;
    margin: auto;
  }

  #featured-content .featured_a h2 {
    position: relative;
    padding-left: 15px;
    margin-top: 7px;
  }

  #featured-content .featured_a .desc p {
    margin-top: 5px;
    /* margin-bottom: 45px; */
    padding-left: 15px;
  }

  #featured-content .featured_a h2:before {
    content: "";
    background-color: #0083ca;
    width: 10px;
    height: 21px;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 2px;
  }

  #featured-content .featured_a .description-section {
    position: unset;
    max-width: unset;
    background: unset;
    padding: unset;
  }

  #featured-content .featured_a,
  .featured-image {
    background-color: unset;
    margin-right: unset;
  }

  #featured-content .featured_a .featured-image,
  #featured-content .featured_a img {
    width: 100%;
    padding: 0;
  }

  .featured_b_and_c {
    display: flex;
    gap: 18px;
  }

  #featured-content .featured_b_and_c .featured-image {
    width: unset;
    height: 90px;
  }

  #featured-content .featured_b_and_c .most-viewed p {
    position: relative;
    font-weight: 400;
    font-size: 12px !important;
    line-height: 13px;
    padding: unset;
    /* margin-top: 8px; */
    padding-left: 8px;
    color: #181818 !important;
    opacity: 1;
  }

  #featured-content .featured_b_and_c .most-viewed p:before {
    content: "";
    width: 5px;
    height: 21px;
    background: #0083ca;
    display: inline-block;
    position: absolute;
    left: 0;
  }

  #featured-content .featured_b_and_c .most-viewed p.sponsored:before {
    content: unset;
  }

  #featured-content .featured_a img {
    height: 200px;
    object-fit: cover;
  }

  .featured_a {
    order: 1;
  }

  .featured_b_and_c {
    order: 2;
  }

  .top-stories {
    order: 3;
  }

  #featured-content .other-top-stories {
    margin-top: 31px;
    padding: unset;
    margin-bottom: -60px;
    width: unset;
  }

  #featured-content .other-top-stories:before {
    content: unset;
  }

  .related-content-section .content-box {
    max-width: 378px;
    width: 100%;
    margin: auto;
    margin-bottom: 33px;
  }

  .related-content-section p b {
    font-size: 14px;
  }

  #form_opening iframe {
    transform: unset;
    width: 100%;
  }

  #form_opening .form-content-page {
    overflow-x: unset;
  }

  .box.shadow {
    width: 100% !important;
    margin: 0 !important;
    margin-bottom: 10px !important;
  }

  .mobile-specific-data .share-links {
    width: 100%;
  }

  .homepage-featured-section .featured-contents .title {
    position: unset;
    padding: 0 8px;
    background: inherit;
  }

  /* .page-template-template-homepage .elementor .featured-image img:not(.top-news-section .most-viewed .featured-image img) {
    object-fit: fill;
  } */

  .homepage-featured-section {
    margin-bottom: 18px;
  }

  .homepage-categories-section .content-box:first-child {
    margin-top: 0;
  }

  .homepage-categories-section {
    padding-top: 55px;
  }

  .ads-center {
    max-width: 320px !important;
    margin: auto;
  }

  .subscribe-top-heading-text {
    line-height: 30px;
    font-size: 23px;
  }

  .subscribe-bottom-heading-text {
    font-size: 30px;
  }

  .print_digital_frame iframe {
    height: 3150px !important;
  }

  .homepage-featured-section .featured-contents .featured-image {
    margin-bottom: 5px;
  }

  .latest-category-section .featured-image {
    background: #f3f3f3;
  }

  .latest-category-section img {
    object-fit: contain !important;
  }

  .featured-contents-3a img,
  .featured-contents-3b img {
    object-fit: contain !important;
    background: #f3f3f3;
  }

  .featured-contents-3a img,
  .featured-contents-3b img {
    height: 90px !important;
  }

  .homepage-featured-section .featured-contents .featured-image {
    height: 90px !important;
  }

  .rc-img-content:not(.without-image .rc-img-content),
  .related-content-section p {
    min-height: unset;
  }

  .article-detail-listing .content-section {
    padding-right: unset;
  }

  .search-page .entry-title a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  #featured-content .featured_a .featured-image {
    height: unset;
  }
  /* 
  #menu-mobile-pop-out-menu>li:nth-child(odd) {
    width: 47%;
    float: left;
    margin-top: 15px;
  }

  #menu-mobile-pop-out-menu>li:nth-child(even) {
    width: 47%;
    float: right;
    margin-top: 15px;
    margin-bottom: -5px;
  } */
  .mobile-pop-out-menu-area
    .menu-mobile-pop-out-menu-container
    ul#menu-mobile-pop-out-menu {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
  }
  .mobile-pop-out-menu-area .sections:after {
    content: unset;
  }

  #AnnapMain .image-section div,
  #Montgomery_County_feed .image-section div {
    float: unset !important;
    text-align: center;
  }

  #AnnapMain .image-section img,
  #Montgomery_County_feed .image-section img {
    width: unset !important;
    height: unset !important;
    max-height: 210px;
  }
  .mobile-top-bar .logout-link a,
  .mobile-top-bar .sign_in a {
    font-size: 0;
  }
}

@media only screen and (min-width: 768px) and (max-width: 845px) {
  .print_digital_frame iframe {
    height: 2700px !important;
  }
}

@media only screen and (min-width: 846px) and (max-width: 900px) {
  .print_digital_frame iframe {
    height: 2100px !important;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .header-top-left img {
    max-width: 220px !important;
  }
  .header-top-middle {
    display: flex !important;
    align-items: center;
  }
  .header-top-middle .header-latest-event .event-title a,
  .header-top-middle .header-latest-event .event-title {
    font-size: 10px;
  }
  .header-bottom-left {
    gap: 0px !important;
  }
  .hamburger-menu {
    display: block;
    margin-right: 10px;
  }
  .header-top-middle,
  .header-bottom-right .newsletter {
    display: none;
  }
  .header-bottom-left ul {
    gap: 0px !important;
    margin-left: 0px !important;
  }
}

/*404 error page css*/
.custom-404-wrapper {
    text-align: center;
    padding: 10px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
 
.custom-404-wrapper h1.oops-text {
    font-size: 100px;
    font-weight: 900;
    background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/images/404.jpg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;                
    color: #0083ca;
    margin: 0 0 20px 0;
}

.custom-404-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.custom-404-wrapper p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.custom-404-wrapper a.button-home {
    display: inline-block;
    padding: 12px 28px;
    background: #0066ff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.custom-404-wrapper a.button-home:hover {
    background: #004bb5;
}

@media (max-width: 600px ) {
    .custom-404-wrapper h1.oops-text {
        font-size: 60px;
    }
}
