

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Centers the image */
}

/* Handle very large images specifically */
.wp-block-post-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ensure containers don't overflow */
.entry-content,
.wp-block-post-content {
    overflow-x: hidden;
    max-width: 100%;
}

/* Additional container control if needed */
.wp-site-blocks {
    overflow-x: hidden;
    width: 100%;
}

/* Base styles for all screens */
.wp-block-post-content img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* Large desktop screens */
@media screen and (min-width: 1100px) {
    .wp-block-post-content img {
        max-width: 1100px;  /* Large size for desktop */
        width: 100%;
    }
}

/* Medium desktop screens */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .wp-block-post-content img {
        max-width: 900px;
        width: 100%;
    }
}

/* Tablets */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .wp-block-post-content img {
        max-width: 700px;
        width: 100%;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .wp-block-post-content img {
        max-width: 100%;
        padding: 0 10px;
    }
}


#mc_embed_signup {
    background: transparent !important;
    font-family: Helvetica, Arial, sans-serif !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

#mc_embed_signup form {
    padding: 0 !important;
}

#mc_embed_signup .mc-field-group {
    padding-bottom: 2% !important;
    min-height: auto !important;
}

#mc_embed_signup input {
    font-family: Helvetica, Arial, sans-serif !important;
}

#mc_embed_signup .button {
    background-color: #DC3545 !important;
    color: white !important;
    padding: 0 20px !important;
    height: 40px !important;
    font-family: Helvetica, Arial, sans-serif !important;
    transition: background-color 0.2s ease !important;
}

#mc_embed_signup .button:hover {
    background-color: #c82333 !important;
}

#mc_embed_signup div.response {
    font-family: Helvetica, Arial, sans-serif !important;
    margin: 1em 0 !important;
}

#mc_embed_signup div.response#mce-error-response {
    background-color: #ffe9e9 !important;
    color: #DC3545 !important;
}

#mc_embed_signup div.response#mce-success-response {
    background-color: #e9ffe9 !important;
    color: #28a745 !important;
}

/* Adjusting input field styles */
#mc_embed_signup input.email {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    padding: 10px !important;
    border: 1px solid #ABB0B2 !important;
}


.entry-content {
    max-width: min(85ch, 90%);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px;
}

/* For larger screens */
@media screen and (min-width: 1200px) {
    .entry-content {
        max-width: 900px;
    }
}

/* Ensure paragraphs have proper spacing */
.entry-content p {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

/* Maintain image responsiveness */
.entry-content img,
.entry-content figure {
    max-width: 100%;
    height: auto;
}

/* Hide footer only on the Subscribe page */
.page-id-79627 footer {
    display: none !important;
}


/* Featured essays box header */
.wpnbha.is-grid>div {
    display: flex
;
    flex-flow: row wrap;
    gap: var(--wpnbha-col-gap);
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    background: blanchedalmond;
	border-radius: 17px;
	padding: 1.5rem;
}

/* Website Description on mobile */

@media (max-width: 768px) {
  p.has-text-align-center.wp-block-site-tagline.has-medium-font-size {
    font-size: 16px !important;
    line-height: 1.4;
  }
}


/* Featured section title */

.wpnbha.is-grid .article-section-title {
   letter-spacing: 2px;
}

/* Hide featured box unless on the front page (page 1 of home) */
body:not(.home):not(.blog) .wpnbha.is-grid,
body.paged .wpnbha.is-grid {
    display: none !important;
}


/* Center the site logo */
.site-header .wp-block-site-logo,
.custom-logo-link {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Optional: center the logo image itself if needed */
img.custom-logo {
    margin: 0 auto;
    display: block;
}

/* Adjust letter spacing for featured box titles */
.wpnbha .entry-title {
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.25em;
}

.wp-block-cover + .wp-block-group[style*="border-top-width"] {
  border-top: 0 !important;
  padding-top: 10 !important;
}


/* Make hero cover more cinematic on mobile */
@media (max-width: 768px) {
  .wp-block-cover__image-background,
  .wp-block-cover img {
    object-fit: cover !important;
    object-position: center 65% !important; /* Adjust framing slightly downward */
    height: 60vh !important;  /* Cinematic 16:9 feel */
    width: 100% !important;
  }

  .wp-block-cover {
    min-height: 60vh !important;
    aspect-ratio: 16 / 9; /* Helps browsers respect cinematic ratio */
    overflow: hidden;
  }
}

/* Adds breathing room at the very top of the page */
body .wp-block-cover:first-of-type {
  margin-top: 1rem !important; /* adjust: 2–5rem depending on layout */
}

/* Optional mobile fine-tuning */
@media (max-width: 768px) {
  body .wp-block-cover:first-of-type {
    margin-top: 2rem !important;
  }
}

/* Hide the author block ONLY if it belongs to Zapier */
.wp-block-post-author-name:has(a[href*="/author/zapier/"]) {
    display: none !important;
}

