/*phone*/
body {
  font-size: 16px;
}

h1,
h2 {
  font-size: 1.5em;
  line-height: 1.2;
}

article.hentry {
  height: 500px;
  margin-top: 0 !important;
}

.full-width {
  margin-left: -6%;
  margin-right: -6%;
}

.single header.entry-header {
  height: 300px;
}

body.page article header.entry-header {
  height: 275px;
}

.single h1.entry-title,
body.page article h1.entry-title {
  padding-top: 110px;
}

/*Home page - Shenanigans top post*/
body.home #post-1427 {
  background-position: 75% center;
  height: 625px;
}

.kt-hero {
  p {
    max-width: unset;
    margin-bottom: 15px;
    font-weight: bold;
  }
}

.kt-hero-headline {
  &>div {
    display: block !important;

    &>div {
      flex-basis: 50%;
    }
  }
}

.kt-hero-split {
  .gutentor-element-image-box img {}
}

.text-side-by-side {
  h2 {
    text-transform: unset;
  }
}

.home-feature {
  h3 {
    font-weith: bold;
    text-transform: unset;
  }
}

.hentry.text-left,
.single .text-left.has-featured-image header.entry-header {
  background-position: 80% center;
}

.hentry.text-right,
.single .text-right.has-featured-image header.entry-header {
  background-position: 20% center;
}

.hentry.text-center,
.single .text-center.has-featured-image header.entry-header {
  background-position: center center;
}

.archive .post_format-post-format-status.hentry,
.page-template-page-gallery .hentry {
  height: auto;
}

.archive .post_format-post-format-status.hentry .entry-inner,
.page-template-page-gallery .hentry .entry-inner {
  padding: 1em 5% 0;
  width: 90%;
  height: 100%;
}

.archive .post_format-post-format-status.hentry .entry-header,
.page-template-page-gallery .hentry .entry-header {
  float: none;
  width: 100%;
}

.page-template-page-gallery .hentry .entry-header {
  height: auto;
}

.archive .post_format-post-format-status.hentry .entry-header .entry-title,
.page-template-page-gallery .hentry .entry-header .entry-title {
  text-align: center;
  font-size: 1.5em;
}

.archive .post_format-post-format-status.hentry .entry-content,
.page-template-page-gallery .hentry .entry-content>p:first-child {
  float: none;
  width: 100%;
  padding: 0;
}

body.page-template-page-gallery article h1.entry-title {
  padding-top: 40px;
}

body.page .main-small-navigation,
body.single .main-small-navigation {
  right: 0;
}

#anchor.site-nav {
  width: 100%;
  padding: 0;
}

.site-nav,
.site-nav.fixed {
  position: relative;
}

.site-nav a {
  padding: 9px 0;
  display: inline-block;
}

.site-nav .menu-item-object-page>a {
  font-weight: bold;
  color: var(--ff-theme-tertiary);
}

.main-small-navigation .main-menu>li>a {
  text-transform: uppercase;
}

body.search .entry-wrap {
  padding: 50px 0;
}

/*Blockquote*/
.entry-content blockquote {
  margin: 2em 1em;
}

.entry-content,
body.home .entry-content,
body.archive .entry-content {
  text-shadow: 2px 2px 20px #000;
  /*text-shadow: 0 0 9px #000;*/
}

.archive .hentry {
  .ff-content-wrap {
    background-color: #fff7e788;
  }

  &:nth-of-type(even) {
    .entry-inner {
      width: 90%;
      margin: 0 5%;

    }
  }
}

/* .ff-reverse-header .ff-content-wrap {
  .ff-content-header {
    max-width: 100%;
  }
} */

.page .entry-content,
.single .entry-content,
.search .entry-content {
  text-shadow: none;
}

.widget_recent_entries li {
  padding: 1em 0;
}


.menu_item_wpglobus_menu_switch>a {
  color: rgb(170, 170, 170);
  ;
  font-weight: bold;
}

.menu_item_wpglobus_menu_switch>a:before {
  content: "> ";
  color: rgb(170, 170, 170);
  ;
  font-weight: bold;
}

.menu_item_wpglobus_menu_switch .sub-menu {
  display: block !important;
}


nav .yarpp-related {
  margin-bottom: 2em;
}

nav .yarpp-related h3 {
  margin-bottom: .5em;
}

nav .yarpp-related a {
  padding: 0;
  margin: 10px 0;
  display: inline-block;
}

div#breadcrumbs-wrap {
  display: none;
  /*top: 50px;*/
}

.entry-title .read-more {
  vertical-align: text-bottom;
}

.entry-title .read-more span {
  font-size: 1.5em;
}

/*Search results*/
body.search #primary .page-title {
  padding-top: 1em;
  font-size: 1em;
  margin-bottom: 5.7em;
}

body.search #primary .page-title span {
  font-size: 120%;
}

[class*="col-"] {
  float: none;
}

.col-left-narrow,
.col-right-narrow,
.col-left-wide,
.col-right-wide {
  width: auto;
  padding: 0;
}

.gallery-columns-4 .attachment-thumbnail {
  max-width: 100%;
}

/*video*/
.video-post.format-video .entry-inner {
  padding-top: 1em;
}

.video-post.format-video .shena-video-category-type-1 {
  padding: 1em 0 0;
}

.shena-video-category .video-wrap {
  float: none;
  width: 100%;
  clear: none;
}

.shena-video-category-item {
  float: none;
  width: 100%;
  margin: 0;
}

.video-post.format-video .shena-video-category-type-1 .shena-video-category-item {
  padding-top: 2em;
  width: 90%;
  margin: 0 5%;
}

.video-post.format-video .shena-video-category-type-1 .video-wrap {
  margin-top: 1em;
}

/*404*/
article.error404 {
  padding: 7em 2em;
}

.has-large-font-size {
  font-size: 2em;
}

.single-post .entry-content>p:first-child {
  font-size: 1.25em;
}

.menu-toggle:before {
  content: '\2630';
  color: var(--ff-theme-secondary-light);
  margin-right: 5px;
}

/* Post and Page Grid with alternate posts */
.kt-alternate-post-layout {

  article:nth-of-type(even) {
    grid-template-columns: unset;

    .gb-block-post-grid-image {
      order: unset;
    }
  }
}

.wp-block-columns .wp-block-column figure {
  text-align: center;
}

.kt-switch-columns {
  .wp-block-column {
    order: 1;

    &:first-child {
      order: 1;

      figure {
        text-align: center;
      }
    }
  }
}

.gutentor-image-thumb img {
  height: auto;
}

[class*="gremline-"] {
  /* background-position: 92% center; */
  margin-top: -30px;
}

/*small phones*/
@media screen and (max-width: 520px) {
  .single-post .entry-content>p:first-child {
    font-size: 1.2em;
  }

  .menu-toggle {
    margin: 14px 0;
  }

  .main-small-navigation .main-menu {
    top: 30px;
  }

  .archive .page-header {
    margin-top: 40px;
  }

  body.page .entry-content {
    padding-top: 1em;
  }

  body.page-template-page-gallery .entry-inner>.entry-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.page-template-page-gallery .has-featured-image header.entry-header {
    padding-bottom: 30px;
  }

  body.page-about header.entry-header {
    height: auto;
  }

  /*Search results*/
  body.search #primary .page-title {
    padding-top: 3.5em;
    font-size: 1em;
    margin-bottom: 5.3em;
  }

  .gallery .gallery-item {
    width: 100%;
    margin-left: 0 !important;
  }

  #footer-widgets .widget-area {
    margin: 0 5% !important;
    width: 90%;
  }

  #footer-widgets aside {
    text-align: center;
  }

  /* masonry */
  #apbAdvancedPosts-1 .apbDefault,
  #apbAdvancedPosts-1 .apbSideImage {
    width: 100%;
  }

  .text-side-by-side {
    padding: 10px 15px;
  }
}

/* Ensure the outer container fills the viewport */
div#customizable-patterns {
  max-width: 100% !important;
  width: 100% !important;
  /* padding-left: 15px !important;
  padding-right: 15px !important; */
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure the inner group container is correctly centered within its parent */
.wp-block-group__inner-container.is-layout-constrained {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

/* Ensure the grid container has balanced padding on both sides */
.grid-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure the grid row doesn't shift the content sideways */
.grid-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}


.grid-row [class*=grid-],
.grid-row [class^=grid-] {
  padding-inline: 0 !important;
}

/* Fix box-sizing and overflow for grid elements */
.grid-container,
.grid-row,
.wp-block-gutentor-m2-col {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure the main page container prevents horizontal leaks */
#page {
  overflow-x: hidden;
}

/* Ensure images don't exceed their containers */
img {
  max-width: 100%;
  height: auto;
}

.wp-container-core-group-is-layout-2f471073> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}