@media only screen and (min-width: 770px) and (max-width: 1220px) {
  nav.navbar.navbar-inverse .container-fluid {
    margin-right: 20px !important;
    margin-left: 20px !important;
  }

  .topic-item > div:last-child {
    font-size: 19px;
  }

  .postid-75 .type-item .name {
    font-size: 27px;
  }

  .postid-78 .type-item .name {
    font-size: 16px;
  }
}

@media only screen and (min-width: 770px) and (max-width: 980px) {
  #mega-menu-wrap-header_menu {
    width: 100% !important;
  }
}
@media only screen and (max-width: 1600px) {
}

@media only screen and (max-width: 1439px) {
  #mega-menu-wrap-header_menu {
    width: 70%;
    display: inline-block;
    margin-top: 15px;
  }

  .single-resource .entry {
    max-width: 850px;
    margin: 0 auto;
  }

  .entry-content img,
  .text-container img {
    max-height: 145px !important;
  }

  .sm-product-template-template-products-ta .entry-content img,
  .sm-product-template-template-products-ta .text-container img {
    max-height: 100% !important;
  }

  .video img {
    max-height: 100% !important;
  }
  .folder img {
    max-height: 90px !important;
  }
  .ssp-header,
  .entry-content,
  .postid-78 .entry-content,
  .postid-75 .entry-content,
  .category .entry-content,
  .page-id-2734 .entry-content,
  .postid-1214 .entry-content {
    padding-left: 30px !important;
  }
  .sm-product-schiff-sovereign-premium .documents {
    padding-left: 0 !important;
  }
  .page-id-4618 #ajax-posts {
    padding: 0px 0 0 0px !important;
  }
  .sm-product-schiff-sovereign-premium .documents,
  .postid-78 .entry-content,
  .postid-75 .entry-content,
  .postid-2108 .entry-content,
  .page-id-4618 .entry-content,
  .postid-69 .entry-content,
  .page-id-2734 .entry-content,
  .postid-1214 .entry-content {
    gap: 20px !important;
  }
  /* Removed .category .entry-content from gap rule - now controlled by inline CSS */
  .page-total-access-content .browse-by-wrapper {
    margin: 0px 0 0 25px;
  }
}
@media only screen and (max-width: 1240px) {
  #mega-menu-wrap-header_menu {
    display: inline-block;
    margin: 15px 0;
  }
  .folders {
    gap: 10px !important;
  }

  .navbar-inverse .navbar-brand {
    width: 200px !important;
  }

  .entry-content img,
  .text-container img {
    max-height: 145px !important;
  }

  .video img {
    max-height: 100% !important;
  }

  .folder img {
    max-height: 90px !important;
  }
  .folders .product-wrapper {
    width: 241px !important;
  }
  .page-id-2734 .entry-product .entry-content .documents .item,
  .postid-75 .entry-product .entry-content .documents .item {
    max-width: 850px !important;
  }
  .page-id-2734 #ajax-posts,
  .category #ajax-posts,
  .postid-75 #ajax-posts {
    width: 850px !important;
  }
}
@media only screen and (max-width: 1025px) {
  .browse-by-options,
  .browse-by-wrapper {
    display: none;
  }
}
@media only screen and (max-width: 1000px) {
  #mega-menu-wrap-header_menu {
    display: inline-block;
    margin: 15px 0;
  }
  .main-menu .icon-wrapper {
    padding: 5px !important;
  }
  span.expand-sidebar {
    margin-left: 0 !important;
  }
}

@media only screen and (max-width: 769px) {
  .mobile {
    display: block;
  }

  .desktop {
    display: none;
  }
  
  /* Add gray background to posts pages for better visual separation */
  .postid-78 .entry-content,
  .postid-75 .entry-content,
  .category .entry-content,
  .page-id-2734 .entry-content,
  .postid-1214 .entry-content {
    background: #f5f6f8 !important;
  }
  .postid-75 .pagination,
  .category .pagination,
  .page-id-2734 .pagination,
  .postid-78 .pagination {
    padding-left: 0px;
  }
  span.expand-sidebar {
    margin-left: 0 !important;
  }
  .main-menu .settings {
    display: none !important;
  }
  .container {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  .content-item,
  .filter-content {
    flex-direction: column;
  }

  .content-item .thumb,
  .entry-content .content-item img {
    width: auto !important;
    height: unset !important;
    margin: auto;
  }

  .filter-content > div {
    width: 100%;
    padding-left: 0 !important;
  }

  .filter-content > div:not(:last-child) {
    margin-bottom: 10px;
  }

  .new_descr {
    flex-wrap: wrap;
  }

  .new_descr > div:last-child {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
    text-align: center;
  }
  .main-menu .icon-wrapper {
    padding: 5px !important;
  }

  .links_block .row {
    flex-direction: column;
    max-width: 230px;
    padding: 0 15px;
    margin: auto;
    align-items: flex-start;
  }

  .entry .links_block h2 {
    padding-left: 0;
    margin-bottom: 15px;
  }

  .entry .links_block a {
    margin-bottom: 10px;
  }

  body.category .player {
    width: 100% !important;
  }

  .wistia_embed {
    width: 100% !important;
    height: 200px !important;
  }

  .navbar .row.upper {
    width: 75%;
    float: left;
    padding: 0 0 10px;
  }

  .mega-menu-toggle {
    display: block;
    margin-top: -40px;
    width: 50px;
    float: right;
  }

  .single-document {
    margin: 5px 0;
    max-width: 100% !important;
  }

  .entry-content img,
  .text-container img {
    width: 100%;
    max-height: 100% !important;
  }

  .entry-product .entry-content .documents .item .thumb {
    max-width: 100% !important;
  }

  .entry-product .entry-content .documents .item .title {
    display: inline-block;
  }

  #ajaxsearchpro2_2 {
    display: none !important;
  }

  #mega-menu-wrap-sub_header_menu
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-sub_header_menu {
    display: contents !important;
  }

  .col-lg-9 .menu {
    max-width: 90%;
  }

  .footer ul.menu li {
    margin: 0px 7px !important;
  }

  .page-template-template-content .section-padding {
    padding-top: 0px !important;
  }

  .new_descr {
    padding: 0 20px 10px !important;
  }

  .content-item > div:last-child {
    padding: 15px 40px !important;
  }
  #ajax-posts .content-item > div:last-child {
    padding: 0 !important;
  }

  .content-item {
    margin-bottom: 20px !important;
  }

  #menu-subheader {
    top: 111px !important;
    /*padding:0 !important;display:none;*/
  }

  #menu-subheader .menu {
    float: none !important;
    text-align: center !important;
  }

  #menu-subheader .menu li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .type-item .name {
    font-size: 16px !important;
  }

  .type-item > div:last-child {
    padding: 7px !important;
  }

  #mobile-menu-subheader {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    display: inline-block;
  }

  #mobile-menu-subheader span {
    width: 33%;
    float: left;
    padding: 5px;
    display: inline-table;
  }

  .page-template-template-ta-content #mobile-menu-subheader span {
    width: unset;
    float: unset;
  }

  .page-id-2734 .latest-content-page {
    padding-top: 10px !important;
  }

  .page-id-8 .container,
  .page-id-8 .section-padding {
    padding: 0 !important;
  }

  .page-id-8 #folders-legacy .folder {
    height: 130px !important;
    margin-bottom: 15px !important;
  }

  .center-screen {
    padding-bottom: 5px !important;
  }

  button#viewcontent {
    margin-bottom: 10px !important;
  }

  #topic .row > div,
  #type .row > div {
    padding: 0 5px !important;
    margin-bottom: 10px !important;
  }

  .entry-product .entry-content .categorie-description {
    margin: 0 0 5px !important;
  }

  .entry-product .entry-content .documents .item .thumb {
    margin: 0 0 10px 0 !important;
  }

  .entry-product .entry-content .categories .item .title a,
  .categorie-resources .item .title a {
    height: unset !important;
    overflow: unset !important;
  }

  .entry-product .entry-content .categories .item,
  .categorie-resources .item {
    min-height: 0px !important;
  }

  .entry-product .entry-content .documents .item .description {
    text-align: justify !important;
  }

  .entry-product .entry-content .categories .item .description,
  .categorie-resources .item .description {
    text-align: justify !important;
  }

  .entry-product .entry-content .categorie-description {
    text-align: justify !important;
  }

  .entry-product .entry-title {
    text-align: center !important;
  }

  .postid-75 .type-item .description {
    text-align: justify !important;
  }

  #menu-subheader .title {
    margin-top: -5px !important;
    margin-bottom: 5px !important;
  }

  .postid-78 .entry-product .entry-content .documents .item {
    width: 100%;
  }

  .row {
    margin: 0 !important;
  }

  #mega-menu-wrap-header_menu {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
  }

  .topic-type-container {
    margin-top: -30px;
  }

  .footer-products span {
    width: 100%;
    font-size: 1.7em;
    margin-right: 0;
    text-align: center;
    display: block;
  }

  .footer-products h2 {
    font-size: 22px !important;
  }
  /* 
  .entry-product {
    padding: 15px !important;
  } */

  ul#mega-menu-header_menu .asp_w {
    display: none !important;
  }
  .folders {
    flex: none !important;
    order: 0 !important;
    align-self: stretch !important;
    flex-grow: 0 !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .page-id-8 .entry-content {
    padding: 0 !important;
  }
  /* END MOBILE */

  .ssp-header {
    padding: 20px 30px 20px 30px;
  }
  .sm-product-schiff-sovereign-premium .documents {
    padding: 0;
  }
  .sm-product-schiff-sovereign-premium .entry-product .entry-content {
    display: block;
    padding-left: 0px !important;
  }
  .entry-product .entry-content .documents .item .thumb {
    float: unset !important;
  }
  .sm-product-schiff-sovereign-premium .metadata,
  #ajax-posts .metadata,
  .postid-78 .metadata,
  .postid-75 .metadata,
  .page-id-2734 .metadata,
  .postid-1214 .metadata {
    display: flex;
    margin-bottom: 10px;
    text-align: center;
    margin: 0;
    align-items: flex-start;
    align-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .entry-product .entry-content .documents .item .thumb {
    margin: 0 auto !important;
    text-align: center;
  }
  .entry-content .content-item .thumb:after {
    background: none !important;
  }
  .postid-78 .entry-content {
    display: block;
    padding: 0;
  }
  .sm-product-schiff-sovereign-premium .documents,
  .postid-78 .entry-content,
  .postid-1214 .entry-content,
  .postid-1216 .ssp-subheader,
  .postid-1220 .ssp-subheader,
  .postid-2136 .ssp-subheader,
  .postid-1214 .ssp-subheader {
    padding: 0 !important;
  }
  .postid-1216 .ssp-subheader .subheader-frames,
  .postid-1220 .ssp-subheader .subheader-frames,
  .postid-2136 .ssp-subheader .subheader-frames,
  .postid-1214 .ssp-subheader .subheader-frames {
    padding: 5px;
    flex: auto;
  }
  .postid-1220 .entry-content,
  .postid-2136 .entry-content,
  .postid-1216 .entry-content {
    padding:0 10px !important;
  }
  .pagination .link {
    width: 150px !important;
  }
  .ssp-subtitle {
    font-size: 27px;
  }
  div[itemprop="mainContentOfPage"] {
    margin: 0 !important;
  }
  .sm-product-schiff-sovereign-premium .documents,
  .postid-78 .entry-content,
  .postid-75 .entry-content,
  .page-id-2734 .entry-content,
  .postid-1214 .entry-content {
    padding: 0px 0 40px 0px;
  }
  /* Removed .category .entry-content from padding rule - now controlled by inline CSS */
  .page-id-2734 .documents,
  .category .documents,
  .postid-75 .documents,
  .page-id-2734 #ajax-posts,
  .category #ajax-posts,
  .postid-75 #ajax-posts {
    width: 100% !important;
  }
  .documents {
    display: block !important;
  }
  .sm-product-schiff-sovereign-premium .date,
  #ajax-posts .date,
  .postid-78 .date,
  .postid-75 .date,
  .page-id-2734 .date,
  .postid-1214 .date {
    width: 200px !important;
  }
  .page-id-2734 .entry-product .entry-content .documents .item,
  .category .documents .item,
  .postid-75 .entry-product .entry-content .documents .item {
    width: 97% !important;
  }
  .ssp-subheader,
  .entry-content,
  .postid-78 .entry-content,
  .postid-75 .entry-content,
  .category .entry-content,
  .page-id-2734 .entry-content,
  .postid-1214 .entry-content {
    padding-left: 0px !important;
  }
  .subheader-browseby {
    margin-right: 45px;
    margin-top: 2px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-left: 7px;
  }
  ul.members-top-menu {
    width: auto !important;
  }
}
@media only screen and (max-width: 525px) {
  #mobile-menu-subheader span {
    width: unset;
    float: unset;
    padding: 2px;
    display: inline-table;
    height: auto;
  }

  .page-id-2734 .latest-content-page {
    padding-top: 20px !important;
  }

  .type-item .name {
    font-size: 15px !important;
    white-space: nowrap;
  }

  .type-item > div:last-child {
    padding: 7px;
  }

  #mobile-menu-subheader span {
    width: 33%;
    float: left;
    padding: 5px;
    display: flex;
  }

  #mobile-menu-subheader {
    margin-top: 0px;
  }

  #homepage .container .entry {
    margin-left: 0;
  }
  .page-id-8 .entry-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 100% !important;
    height: auto;
    background: #f5f6f8;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
  }
  .main-menu.expand {
    overflow: hidden !important;
  }
  .main-menu .icon-wrapper {
    padding: 5px !important;
  }

  .pill-text {
    width: max-content !important;
    text-align: left !important;
    padding-right: 15px !important;
  }
  .content-item {
    margin-bottom: 20px !important;
    width: auto !important;
    padding: 0 42px;
  }
  .ssp-subheader {
    height: unset !important;
  }
  .ssp-subheader nav {
    display: flex !important;
    height: 130px !important;
    width: unset !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
  }

  .postid-1214 .ssp-subheader nav,
  .postid-1216 .ssp-subheader nav,
  .postid-1220 .ssp-subheader nav,
  .postid-2136 .ssp-subheader nav {
    display: flex !important;
    align-items: flex-start;
    flex-direction: column;
  }
  .content-item .thumb,
  .entry-content .content-item img {
    width: auto !important;
    height: unset !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .page-total-access-content .entry-content,
  .postid-75 .entry-content,
  .page-id-2734 .entry-content,
  .postid-78 .entry-content {
    display: block !important;
  }
  /* Removed .category .entry-content from display rule - now controlled by inline CSS */
  .page-id-4618 .ssp-header {
    padding: 20px 50px !important;
  }
  .page-id-4618 #ajax-posts {
    padding: 0px 0 0 0px !important;
  }
  .page-id-4618 .entry-product .entry-content {
    margin: 0px 0 0;
  }
  .video-wrapper {
    width: auto;
  }
  .dyt-brand-logo {
    display: none;
  }
}
@media only screen and (max-width: 426px) {
  .content-item {
    padding: 0 22px;
  }
  .content-item > div:last-child {
    padding: 15px 20px !important;
  }
}
@media only screen and (max-width: 376px) {
  .type-item .name {
    font-size: 13px !important;
  }

  #type .type-item .name {
    font-size: 20px !important;
  }
  .page-id-2734 .entry-product .entry-content .documents .item,
  .category .documents .item,
  .postid-75 .entry-product .entry-content .documents .item {
    width: 325px !important;
  }
  .ssp-subtitle {
    font-size: 18px;
    line-height: 27.99px;
  }
  .ssp-title {
    font-size: 12px;
  }
  .player .video div:first-child {
    width: 320px !important;
  }
  .content-item {
    margin-bottom: 20px !important;
    width: auto !important;
    padding: 0 5px;
  }
  .content-item > div:last-child {
    padding: 15px 5px !important;
  }
}

@media only screen and (min-width: 992px) {
  .single-document {
    width: 32% !important;
  }
  .folders {
    gap: 10px !important;
  }
  .page-id-8 .entry-content {
    padding: 20px 0 0 30px !important;
  }
}

@media only screen and (min-width: 1240px) {
  .asp_w_container_3 {
    width: 400px !important;
  }
  .page-id-2734 .documents,
  .postid-75 .documents {
    gap: 60px;
  }
  .page-id-2734 .expand-body .documents,
  .postid-75 .expand-body .documents {
    gap: 20px !important;
  }
}

@media only screen and (min-width: 1300px) {
  .asp_w_container_3 {
    width: 400px !important;
  }
  .folders {
    gap: 30px !important;
  }
}

@media only screen and (min-width: 1600px) {
  #mega-menu-wrap-header_menu {
    width: 60%;
  }

  .postid-78 .entry-product .entry-content .documents .item .thumb {
    max-height: 300px !important;
  }

  .postid-78 .entry-product .entry-content .documents .item {
    max-height: 380px;
    width: 100%;
  }

  .single-document {
    /* border: solid 1px black; */
    /* height: auto; */
    /* display: flex; */
    float: left;
    padding: 10px;
  }

  .postid-78 .type-item .name {
    font-size: 25px;
  }

  .single-document {
    width: 32% !important;
  }

  .content-item .thumb {
    width: auto;
  }

  .category-12 .entry-product .entry-content .categorie-description {
    max-width: 1000px;
  }

  .category-51 .entry-product .entry-content .categorie-description {
    max-width: 1000px;
  }

  /* Removed empty ruleset: .sm-product-template-template-products-ta [data-type="podcast"] .name {} */
}

@media only screen and (min-width: 1440px) {
  .single-resource .entry {
    max-width: 1000px;
    margin: 0 auto;
  }
  .page-id-8 .entry-content {
    padding: 20px 0 0 0px !important;
    gap: 40px !important;
  }
  .category .documents {
    gap: 40px !important;
  }

  .page-id-2734 .documents,
  .postid-75 .documents {
    gap: 60px;
  }
  .postid-78 .browse-by-options {
    padding: 16px 0 0;
  }
  .page-id-4618 .expand-body .entry-content {
    gap: 20px !important;
  }
}
