/* overriding all header fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif !important;
}

/* MENU VERSION */
.muddy-menu-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.muddy-menu-logo {
    max-height: 65px;
}

.muddy-menu-wrap .presented-by {
    font-size: 10px;
    text-align: center;
    line-height: 1.1;
}





/* Remove author name from posts*/
/*.author, put this back in if needed*/
.post-author,
/*.byline, keeps the author on post page*/
.entry-author {
  display: none !important;
}

/* Narrow post content on desktop */
.single-post .content-area {
  max-width: 800px; /* adjust for your taste */
  margin: 0 auto;   /* center the content */
  padding-left: 15px;  /* optional: small padding */
  padding-right: 15px; /* optional: small padding */
}

/* Green Color for events in calendar8/
/* Handle ALL ring variations */
.em-calendar .em-cal-day-date .ring {
    --date-border-color: #2e7d32 !important;
    --date-border-color-top: #2e7d32 !important;
    --date-border-color-right: #2e7d32 !important;
    --date-border-color-bottom: #2e7d32 !important;
    --date-border-color-left: #2e7d32 !important;
}

/* Some rings use different class variations */
.em-calendar .ring.one,
.em-calendar .ring.two,
.em-calendar .ring.three,
.em-calendar .ring.four {
    --date-border-color: #2e7d32 !important;
}

/* Force event blocks inside the calendar */
.em-calendar .em-cal-event {
    --event-background-color: #2e7d32 !important;
    --event-border-color: #2e7d32 !important;
    --event-color: #ffffff !important;
}

/* Fix the popup color line */
.em-calendar-popup .em-event,
.em-calendar-popup .em-event-meta,
.em-calendar-popup .em-event-content {
    border-left: 4px solid #2e7d32 !important;
}

/* Backup: kill any remaining color sources */
.em-calendar .date-day-colors {
    display: none !important;
}

/* Fix the popup/list divider line color */
.em-item.em-event {
    --default-border: #2e7d32 !important;
}

.woocommerce-breadcrumb {
  display: none !important;
}

.page .entry-title { display: none; }

.single-post .blog-image {display:none}


.em.pixelbones a { color: var(--inherit) !important;}
	

/* Make Storefront header full width */
.site-header {
    max-width: 100%;
    width: 100%;
}

.site-header .col-full {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.main-navigation {
    max-width: 100%;
}


/* Make Storefront footer full width */
.site-footer {
    max-width: 100%;
    width: 100%;
}

.site-footer .col-full {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.site-footer {
    background-color: #8a8988; /* example */
    color: #ffffff;
}

@media (max-width: 1024px) {
    .main-navigation ul li a {
        font-weight: 600;
			font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .site-footer .col-full {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 767px) {

    /* Stack logo and hamburger */
    .site-header {
        display: block;
    }

    .site-header .site-branding {
        width: 100% !important;
        text-align: center;
        margin-bottom: 0.5em;
    }

    .site-header .main-navigation {
        width: 100%;
        text-align: center;
    }

    /* Center hamburger */
    .site-header .menu-toggle {
        display: inline-block;
        margin: 0 auto;
    }

    /* Responsive logo sizing */
    .site-header .custom-logo-link img {
        width: 80vw;          /* scales with screen width */
        max-width: 320px;     /* prevents it from getting too large */
        min-width: 180px;     /* prevents it from getting too small */
        height: auto;
    }
}
@media (max-width: 767px) {

    /* Stack stays intact */
    .site-header .site-branding,
    .site-header .main-navigation {
        width: 100%;
        text-align: center;
    }

    /* Neutralize Storefront padding that causes off-center look */
    .site-header .storefront-primary-navigation {
        padding-left: 0;
        padding-right: 0;
    }

    /* Center the hamburger button itself */
    .site-header .menu-toggle {
        float: none;
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .site-header .menu-toggle {
        margin-top: 0.25em;
    }
}

@media (max-width: 767px) {
    .site-header .custom-logo-link img {
        transform: translateX(-6px);
    }
}



/* Force footer link color in Storefront */
.site-footer .widget a:not(.button),
.site-footer .widget a:not(.button):visited {
    color: #ffffff !important;
}

.site-footer .widget a:not(.button):hover,
.site-footer .widget a:not(.button):focus {
    color: #e6e6e6 !important;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer a:not(.button),
.site-footer a:not(.button):visited {
    color: #ffffff !important;
}

.site-footer .site-info,
.site-footer .site-info a {
    color: #ffffff !important;
}

.site-footer .site-info {
    color: #ffffff;
    text-align: center;
    font-size: 0.9rem;
}

/* Replace Storefront footer credit with South Dakota Magazine */
.site-footer .site-info {
    font-size: 0; /* hides existing text safely */
    text-align: center;
}

.site-footer .site-info::after {
    content: "© " attr(data-year) "South Dakota Magazine. All rights reserved.";
    font-size: 0.9rem;
    color: #ffffff;
    display: inline-block;
}

/* Ensure Shop product images fit nicely */
.woocommerce ul.products li.product img {
    object-fit: contain; /* contains image in box without cropping */
    width: 100%;
    height: 300px; /* adjust as needed for your grid */
}

.wc-carousel ul.products {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.wc-carousel ul.products li.product {
  min-width: 250px;
  scroll-snap-align: start;
}

.wc-carousel ul.products::-webkit-scrollbar {
  height: 8px;
}

.wc-carousel ul.products::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}


/* adjust footer text to center */
.wp-block-jetpack-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wp-block-jetpack-contact-info > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.cc-form-wrapper form {
    width: 100%;
    max-width: 500px; /* or whatever fits your footer/container */
}

.cc-form-wrapper input,
.cc-form-wrapper textarea,
.cc-form-wrapper button {
    width: 100%;
    box-sizing: border-box;
}

/* Help return columns on tablets */
/* TABLET: force true 2x2 grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .tablet-2x2.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
  }

  .tablet-2x2.wp-block-columns > .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* MOBILE: stacked */
@media (max-width: 768px) {
  .tablet-2x2.wp-block-columns {
    display: block !important;
  }

  .tablet-2x2.wp-block-columns > .wp-block-column {
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
}




/* Override theme variables for all EM buttons */
:root {
    --accent-color: #3f7a59;          /* new button background & border */
    --button-primary-color: #ffffff;   /* new button text color */
}

.em.pixelbones .button.button-primary,
.em.pixelbones .input .button.button-primary,
.em.pixelbones .input button.button-primary,
.em.pixelbones .input input[type=button].button-primary,
.em.pixelbones .input input[type=reset].button-primary,
.em.pixelbones .input input[type=submit].button-primary,
.em.pixelbones button.button-primary,
.em.pixelbones input[type=button].button-primary,
.em.pixelbones input[type=reset].button-primary,
.em.pixelbones input[type=submit].button-primary {
    background-color: #3f7a59 !important;
    border-color: #3f7a59 !important;
    color: #ffffff !important;
}

.em.pixelbones .button.button-primary:hover,
.em.pixelbones .input .button.button-primary:hover,
.em.pixelbones .input button.button-primary:hover,
.em.pixelbones .input input[type=button].button-primary:hover,
.em.pixelbones .input input[type=reset].button-primary:hover,
.em.pixelbones .input input[type=submit].button-primary:hover,
.em.pixelbones button.button-primary:hover,
.em.pixelbones input[type=button].button-primary:hover,
.em.pixelbones input[type=reset].button-primary:hover,
.em.pixelbones input[type=submit].button-primary:hover {
    background-color: #2e5c42 !important;  /* darker hover shade */
    border-color: #2e5c42 !important;
    color: #ffffff !important;
}


/* Archive info */
.archive-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.archive-title {
  text-align: center;
  margin-bottom: 10px;
}

.archive-intro {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.year-card {
  background: #f4f4f4;
  padding: 30px 10px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.year-card:hover {
  background: #3f7a59;
  color: #ffffff;
  transform: translateY(-4px);
}

.decade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.decade-card {
  background: #f4f4f4;
  padding: 50px 20px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #222;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.decade-card:hover {
  background: #3f7a59;
  color: #ffffff;
  transform: translateY(-5px);
}



/* code for previous next button boost*/
/* Container spacing */
.post-navigation {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  display: flex;
  justify-content: space-between;
}

/* Buttons */
.post-navigation a {
  font-size: 20px;
  font-weight: 800;
  padding: 20px 20px;
  border: 1px solid #ccc;
  background: #ccc;
  text-decoration: none;
}

/* Hover effect */
.post-navigation a:hover {
  background: #f5f5f5;
}

/* Only apply on desktop */
@media (min-width: 768px) {

  .single-post .nav-previous {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
  }

  .single-post .nav-next {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
  }

  .nav-previous a,
  .nav-next a {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px;
    font-size: 14px;
  }
}


/* Increase content font*/
/* Main post content */
.single-post .entry-content {
  font-size: 18px !important;  /* Adjust as needed */
  line-height: 1.5 !important;
}


/* Related Posts area fixes*/
/* Jetpack Related Posts main heading */
.jp-relatedposts-headline,
.jp-relatedposts-headline em {
  font-size: 30px !important;    /* Makes the headline bigger */
  font-weight: 700 !important;    /* Bold for emphasis */
  line-height: 1.3 !important;    /* Better spacing */
  margin-bottom: 20px !important; /* Space below the heading */
}

/* Add spacing below thumbnail */
.jp-relatedposts .jp-relatedposts-post img {
  margin-bottom: 15px;
  display: block;
}

/* Related post titles */
.jp-relatedposts .jp-relatedposts-post .jp-relatedposts-post-title a {
  font-size: 20px !important;   /* Bigger titles */
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.components-checkbox-control:has(input[aria-label="This is a gift"]) {
    display: none !important;
}

/* Hide only the per-address shipping price line */
.thwma-woo-shipping-totals .woocommerce-shipping-methods {
    display: none !important;
}
.sd-shipping-note td {
    font-size: 13px;
    padding-top: 5px;
}

.sd-shipping-note a {
    color: #0073aa;
    text-decoration: underline;
    margin-left: 5px;
}
.sd-shipping-note td {
    font-size: 13px;
    padding-top: 5px;
}

.sd-shipping-note a {
    color: #0073aa;
    text-decoration: underline;
    margin-left: 5px;
    cursor: pointer;
}

.sd-shipping-dropdown {
    margin-top: 10px;
    padding: 10px;
    background: #f6f7f7;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
}


.sd-subscription-note td {
    font-size: 13px;
    padding-top: 5px;
}

.sd-subscription-note a {
    color: #0073aa;
    text-decoration: underline;
    margin-left: 5px;
    cursor: pointer;
}

.sd-subscription-dropdown {
    margin-top: 10px;
    padding: 10px;
    background: #f6f7f7;
    border-left: 3px solid #46b450;
    border-radius: 4px;
}