/*
Theme Name:     Music Mayhem Magazine
Theme URI:      n/a
Template:       kadence
Author:         Katy Boykin
Author URI:     https://katyboykin.com
Description:    A Kadence Child Theme for Music Mayhem Magazine
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Header */

.site-branding {
  margin-right: 30px;
}

#masthead .site-top-header-inner-wrap {
  margin: 0 -8px;
}

#masthead .site-main-header-wrap {
  box-shadow: rgba(0, 85, 220, 0.3) 0px 1px 10px 0px;
}

#masthead
  .header-navigation[class*="header-navigation-style-underline"]
  .header-menu-container
  > ul
  > li
  > a::after {
  background: var(--global-palette1);
}

/* Search modal */
#search-drawer.popup-drawer .drawer-inner input.search-field {
  border: 7px solid var(--global-palette9);
  border-radius: 10px;
  box-shadow: rgba(0, 85, 220, 1) 0px 1px 10px 0px !important;
  background-color: var(--global-palette7);
}

#search-drawer.popup-drawer .drawer-inner input.search-field:focus {
  border-color: var(--global-palette9);
}

/* Footer */

#colophon a {
  text-decoration: none;
}

.kb-footer-5col .wp-block-kadence-column:nth-child(3) {
  flex: 1.5;
}

#colophon .kb-footer-5col .inner-column-4 .wp-block-kadence-iconlist {
  display: flex;
  justify-content: center;
}

@media all and (min-width: 0px) and (max-width: 1024px) {
  #colophon .kb-footer-5col .kt-row-column-wrap {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #colophon .kb-footer-5col .wp-block-kadence-column {
    width: 49%;
    margin-right: 0;
    gap: 2%;
  }
  #colophon .kb-footer-5col .inner-column-1 {
    order: 0;
  }

  #colophon .kb-footer-5col .inner-column-2 {
    order: 3;
  }

  #colophon .kb-footer-5col .inner-column-3 {
    order: 2;
    width: 100%;
  }

  #colophon .kb-footer-5col .inner-column-4 {
    order: 4;
  }

  #colophon .kb-footer-5col .inner-column-5 {
    order: 1;
  }
}

@media all and (max-width: 767px) {
  #colophon .kb-footer-5col .kt-row-column-wrap {
    flex-direction: column;
  }
  #colophon .kb-footer-5col .wp-block-kadence-column {
    width: 100%;
    margin-right: 0;
    gap: 0;
  }
}

.kt-modal-container {
  border-left: 7px solid #fff;
  border-bottom: 7px solid #fff;
  border-right: 7px solid #fff;
  border-radius: 8px;
  overflow: visible;
  box-shadow: rgba(0, 85, 220, 0.5) 0px 1px 10px 5px;
}

/* Buttons */

#main-header .header-button:hover,
.button::not(.kb-text-button):hover {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* Heading Lines */

/* Titles with lines */

.kb-title-with-line .wp-block-kadence-advancedheading {
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex: 1 0 auto;
}

.kb-title-with-line .kt-button {
  min-width: max-content;
  flex: 1 0 auto;
}

.kb-title-with-line.light .kt-divider {
  border-radius: 10px;
  box-shadow: rgba(0, 85, 220, 0.5) 0px 1px 10px 0px;
}

.kb-title-with-line.dark .kt-divider {
  border-radius: 10px;
  box-shadow: rgba(255, 255, 255, 1) 0px 1px 10px 0px;
}

/* Box with lines */

.kb-box-with-line.light > .kt-inside-inner-col {
  box-shadow: rgba(0, 85, 220, 0.5) 0px 1px 10px 0px,
    inset 0px 1px 10px 0px rgba(0, 85, 220, 0.5);
}

.kb-box-with-line .wp-block-kadence-advancedheading {
  position: relative;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
}

.kb-box-with-line.center .wp-block-kadence-advancedheading {
  margin-left: auto;
  margin-right: auto;
  box-shadow: rgba(0, 85, 220, 0.5) 0px 1px 10px 0px,
    inset 0px 1px 10px 0px rgba(0, 85, 220, 0.5);
}

.kb-box-with-line .wp-block-kadence-advancedheading.kb-no-shadow {
  box-shadow: none;
  margin-left: 0;
  margin-right: auto;
}

@media all and (max-width: 767px) {
  .kb-box-with-line .wp-block-kadence-advancedheading.kb-no-shadow.center {
    margin-left: auto;
    margin-right: auto;
  }
}

.kb-box-with-line.center.light .kb-no-shadow .wp-block-kadence-advancedheading {
  box-shadow: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgb(255, 255, 255) 10%,
    rgb(255, 255, 255) 90%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Post Blocks */

.kb-posts.shadow article,
.kb-posts.shadow,
.kb-hero-post-grid article {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

.kb-posts.center .kt-blocks-post-grid-item-inner-wrap {
  align-items: center;
}

/* Featured image shadows */

.kb-posts .kadence-post-image {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  align-self: flex-start;
  z-index: 10;
  position: relative;
}

.kb-posts.kb-posts-list article {
  padding-bottom: 20px;
}

.kb-posts .kt-blocks-post-author-link,
a.kb-archive-author {
  font-weight: 600;
}

/* Post list with right image */

/* Hide last article border */

.kb-posts .kt-blocks-post-grid-item:nth-last-of-type(1) {
  border-bottom: none;
}

/* Reverse columns */

.kb-posts-right-image .kadence-post-image {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  margin-top: 3px;
}

.kb-posts-right-image .kt-blocks-post-grid-item-inner {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

/* More to explore */

.kb-explore-more .kt-image-overlay-wrap {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

/* Optin Banner */
.kb-optin-banner-m {
  z-index: 10;
  position: relative;
}

.kb-optin-banner {
  box-shadow: rgba(0, 85, 220, 0.5) 0px 1px 25px 0px;
  z-index: 5;
  position: relative;
}

.kb-sidebar-optin.kb-optin-banner {
  box-shadow: rgba(0, 85, 220, 1) 0px 1px 25px 0px;
}

.kb-optin-banner .kt-inside-inner-col {
  position: relative;
}

.kb-form input {
  text-align: center;
}

/* Soundbar */

.kb-soundbar-section {
  overflow: hidden;
  position: absolute !important;
}

.kb-soundwaves {
  white-space: no-wrap;
  height: 220px;
  width: 100vw;
  background: var(--global-palette2);
}

@media all and (max-width: 767px) {
 .kb-soundwaves {
    height: 270px;
  }
}

.kb-soundwaves .bar {
  display: inline-block;
  height: 100%;
  margin-left: 4px;
  transform: scaleY(0);
  -webkit-animation-name: soundBar;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  -moz-animation-name: soundBar;
  -moz-animation-iteration-count: infinite;
  -moz-animation-direction: alternate;
  animation-name: soundBar;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
}

.kb-soundwaves .bar .bar {
  background: var(--global-palette9);
  background: rgb(255, 255, 255);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 33%,
    rgba(255, 255, 255, 1) 66%,
    rgba(255, 255, 255, 0) 100%
  );
  width: 1px;
  margin: 0;
  display: block;
  opacity: 0.5;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
}

@-webkit-keyframes soundBar {
  0% {
    transform: scaleY(0.01);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes soundBar {
  0% {
    transform: scaleY(0.01);
  }

  100% {
    transform: scaleY(1);
  }
}

/* Single Posts */

.kb-single-header-cats a {
  border-bottom: 3px solid var(--global-palette1);
}

.single-post blockquote {
  border: none;
  padding-left: 0;
}

/* Content */

.single-post
  :is(.kb-single-post-content, #featured, .kb-single-post-content, #featured-hero)
  img {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

.kb-single-post-content p:first-of-type {
  margin-top: 0;
}

.kb-single-post-content .gallery-columns-1 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.kb-single-post-content .gallery-caption {
  margin-top: 10px;
  color: var(--global-palette6);
}

/* Social share */

.kt_before_share_text {
  font-family: var(--global-heading-font-family);
  margin-right: 0;
}

.kt_simple_share_container .kt-socialstyle-style_02 a {
  background: transparent;
  color: var(--global-palette1);
}

.kt_simple_share_container .kt-socialstyle-style_02 a {
  background: transparent;
  color: var(--global-palette1);
}

.kt_simple_share_container:not(.kt-socialstyle-style_05)
  [data-placement="top"]::before,
.kt_simple_share_container:not(.kt-socialstyle-style_05)
  [data-tooltip]::before {
  border-top-color: var(--global-palette2);
}

.kt_simple_share_container:not(.kt-socialstyle-style_05) [data-tooltip]::after {
  background-color: var(--global-palette2);
}

.kb-author-posts .kt-blocks-post-grid-item {
  padding-bottom: 0;
}

/* Social share on archives */

.archive .kt-socialstyle-style_02 a {
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 20px;
}

.archive .kt_simple_share_container.kt_share_shortcode {
  padding: 0 10px 0 0;
}

/* Post nav */

.kb-post-nav a,
.kb-post-nav a::after,
.kb-post-nav a::before {
  position: relative;
  display: block;
  text-decoration: none;
}

.kb-post-nav a::after {
  position: absolute;
  top: -30px;
  color: var(--global-palette6);
  font-weight: 700;
}

.kb-post-nav [rel~="prev"]::after {
  content: "« Previous article";
  right: 0;
}

.kb-post-nav [rel~="next"]::after {
  content: "Next article »";
}

/* Related */

.kb-yarpp .yarpp-related {
  margin-top: 0;
}

.kb-yarpp .yarpp-thumbnails-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
}

.kb-yarpp .yarpp-thumbnails-horizontal .yarpp-thumbnail {
  flex: 1 1 48%;
  border: none;
  height: auto;
  max-width: 48%;
}

.kb-yarpp .yarpp-thumbnail > img {
  width: auto;
  height: auto;
  min-height: 260px;
  object-fit: cover;
}

.kb-yarpp .yarpp-related a {
  color: var(--global-palette2);
}

.kb-yarpp .yarpp-related a:hover {
  color: var(--global-palette1);
}

.kb-yarpp .yarpp-thumbnails-horizontal .yarpp-thumbnail-title {
  width: auto;
  overflow: visible;
}

@media all and (max-width: 767px) {
  .kb-yarpp .yarpp-thumbnails-horizontal {
    flex-wrap: wrap;
  }
  .kb-yarpp .yarpp-thumbnails-horizontal .yarpp-thumbnail {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* Archives */

/* Custom Loop featured for Categories */

.kb-custom-archive-loop {
  background: var(--global-palette2);
  position: relative;
}
/* 
.kb-custom-archive-loop:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.8;
  background-color: var(--global-palette2, #2b6cb0);
} */

.kb-custom-archive-loop-inner {
  position: relative;
  max-width: var(--global-content-width);
  padding: 3em var(--global-content-edge-padding);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 30px;
}

@media all and (max-width: 767px) {
  .kb-custom-archive-loop-inner {
    grid-template-columns: 1fr;
  }
}

.kb-custom-archive-loop-inner article figure {
  margin: 0 0 20px 0;
}

.kb-custom-archive-loop-inner article figure div {
  position: relative;
  padding-bottom: 66.67%;
}

.kb-custom-archive-loop-inner article figure div img {
  position: absolute;
  flex: 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
  top: 0;
  left: 0;
}

.kb-custom-archive-loop a {
  text-decoration: none;
}

.kb-custom-archive-loop h2 {
  font-size: 22px;
  text-align: center;
  color: var(--global-palette9);
}

.kb-cat-featured ul {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 30px;
}

.archive #primary.content-area {
  margin-top: 3em;
}

#archive-container.grid-cols {
  row-gap: 25px;
}

.kb-limit-excerpt.wp-block-kadence-advancedheading {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-wrap: break-word;
  text-overflow: ellipsis;
 padding-bottom: 0 !important;
}

/* Pagination */

.archive .pagination .nav-links {
  text-align: center;
}

.archive .pagination .nav-links .page-numbers {
  border: none;
  border-radius: 0;
}

.archive .pagination .nav-links .page-numbers:hover {
  background: var(--global-palette-btn-bg);
  color: var(--global-palette9);
}

.archive .pagination .nav-links .current {
  background: var(--global-palette-btn-bg-hover);
}

/* Draft 2 */

.kb-hero-post-grid .kt-post-grid-layout-grid-wrap.kt-post-grid-wrap {
  display: grid;
  grid-gap: 20px;
}

@media all and (min-width: 1025px) {
  .kb-hero-post-grid .kt-post-grid-layout-grid-wrap.kt-post-grid-wrap {
    grid-template-columns: 2fr 3fr 2fr;
    grid-template-rows: 1fr 1fr;
  }

  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-of-type(1) {
    grid-column: 2 / 3;
    grid-row: 1 / -1;
  }

  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-of-type(2) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-of-type(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-of-type(4) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-of-type(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }
}

@media all and (min-width: 768px) and (max-width: 1024px) {
  .kb-hero-post-grid .kt-post-grid-layout-grid-wrap.kt-post-grid-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-of-type(1) {
    grid-column: 1 / 3;
    grid-row: span 1;
  }
  .kb-hero-post-grid .kt-blocks-post-grid-item:nth-child(n + 2) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media all and (max-width: 767px) {
  .kb-hero-post-grid.wp-block-kadence-posts {
    grid-template-columns: 1fr;
  }
}

.kb-hero-post-grid
  .kt-blocks-post-grid-item
  .kt-blocks-post-grid-item-inner-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kb-hero-post-grid .kt-blocks-post-grid-item .kadence-post-image {
  flex: 1 1 auto;
  z-index: 10;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 10px 0px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.kb-hero-post-grid .kt-blocks-post-grid-item .kadence-post-image-intrisic {
  height: 100%;
}

.kb-hero-post-grid .kt-blocks-post-grid-item:nth-child(n + 2) .entry-title {
  font-size: 100%;
  line-height: 110%;
}

.kb-hero-post-grid .loop-entry {
  position: relative;
  display: flex;
  flex-direction: column;
}

.kb-hero-post-grid .loop-entry .entry-content-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
}

.kb-hero-post-grid .loop-entry .entry-content-wrap .entry-header {
  margin-bottom: 0;
}

.kb-hero-post-grid .loop-entry .entry-content-wrap .entry-title,
.kb-hero-post-grid .loop-entry .entry-content-wrap .entry-meta {
  color: var(--global-palette9);
  margin: 0;
}

.kb-hero-post-grid .loop-entry .post-thumbnail {
  flex: 1;
}

.kb-hero-post-grid .loop-entry a.post-thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--global-palette3);
  opacity: 0.2;
}

/* Author bio cards */

.kb-profile-card .wp-block-kadence-rowlayout,
.kb-profile-card .wp-block-kadence-column > .kt-inside-inner-col {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kb-profile-card .wp-block-kadence-rowlayout .kt-row-layout-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.kb-profile-card
  .wp-block-kadence-rowlayout
  .kt-row-layout-inner
  .kt-row-column-wrap {
  display: flex;
  flex: 1 1 auto;
}

.kb-profile-card .kt-inside-inner-col .wp-block-kadence-advancedbtn {
  gap: 0;
  margin-top: auto;
  margin-bottom: 0;
}

.kb-profile-card .wp-block-social-links .wp-block-social-link {
  border-radius: 0;
  flex: 1 1 auto;
  color: var(--global-palette3);
  background-color: var(--global-palette1);
  transition: all 0.3s ease;
}

.kb-profile-card .wp-block-social-links .wp-social-link a {
  padding: 0.5em 0.25em;
}

.kb-profile-card .wp-block-social-links .wp-social-link svg {
  margin: 0 auto;
}

.kb-profile-card .wp-block-social-links .wp-block-social-link:hover {
  transform: scale(1);
  color: var(--global-palette1);
  background-color: var(--global-palette3);
}

@media all and (max-width: 767px) {
  .kb-profile-card .kt-btn-wrap {
    margin-bottom: 0;
  }
}

/* Author related posts */

.kb-more-author-posts,
.kb-more-author-posts h2 {
  box-shadow: rgba(0, 85, 220, 0.5) 0px 1px 10px 0px,
    inset 0px 1px 10px 0px rgba(0, 85, 220, 0.5);
}

.kb-more-author-posts {
  border: 7px solid var(--global-palette2);
  border-radius: 10px;
  padding: 3em 2em 2em;
  margin: 4em 0 2em;
}

.kb-more-author-posts h2 {
  text-align: center;
  text-transform: uppercase;
  margin-top: -80px;
  position: relative;
  padding: 10px 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: fit-content;
  background-color: var(--global-palette2);
  color: var(--global-palette9);
  font-size: 24px;
}

.kb-more-author-posts-content,
.kb-more-author-posts-author {
  display: flex;
  align-items: center;
}

.kb-more-author-posts-content {
  gap: 2em;
  justify-content: center;
}

.kb-more-author-posts-author {
  flex: 0 1 30%;
  flex-direction: column;
}

.kb-more-author-posts-author img {
  border-radius: 50%;
  margin-bottom: 20px;
}

.kb-more-author-posts-posts {
  flex: 0 1 70%;
  margin: 2em 0;
}

.kb-more-author-posts-posts h4 {
  color: var(--global-palette2);
}

.kb-more-author-posts-posts ul {
  margin: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

.kb-more-author-posts-posts ul li {
  border-bottom: 1px solid var(--global-palette7);
  padding: 1em 0;
}

.kb-more-author-posts-posts ul li:nth-last-of-type(1) {
  border-bottom: none;
}

.kb-more-author-posts-posts ul li a {
  color: var(--global-palette3);
  font-weight: 700;
  font-size: 18px;
  font-family: var(--global-heading-font-family);
  line-height: 1.2em;
}

.kb-more-author-posts-posts ul li a:hover {
  color: var(--global-palette1);
}

.kb-more-author-posts-link {
  text-align: center;
  font-size: 16px;
  line-height: 1em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 50px;
  box-shadow: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgb(255, 255, 255) 10%,
    rgb(255, 255, 255) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  margin: 0 auto -55px;
  position: relative;
  max-width: fit-content;
  display: block;
  color: var(--global-palette2);
}

.kb-more-author-posts-link:hover {
  color: var(--global-palette1);
}

@media all and (max-width: 600px) {
  .kb-more-author-posts-content {
    flex-direction: column;
    margin-top: 1em;
  }
  .kb-more-author-posts-content * {
    text-align: center;
  }
  .kb-more-author-posts-posts {
    margin: 0;
  }
  .kb-more-author-posts h2 {
    margin-top: -75px;
  }
}

