/* --- DROP CAP STYLING --- */

@media (min-width: 768px) {
  .single-post .entry-content p:first-of-type {
    min-height: 9em;
  }

  .single-post .entry-content p:first-of-type::first-letter {
    float: left;
    font-size: 8.125em;
    line-height: 1;
    padding: 0;
    margin: 0;
    padding-right: 0.08em;
    margin-top: -0.1em;
    font-weight: bold;
    font-family: 'Source Serif Pro', serif;
  }
}

/* --- RELATED POSTS STYLING --- */

.crp_related {
  margin-top: 4em;
  padding-top: .08em;
  border-top: 1px solid var(--wp--preset--color--contrast, #ccc);
  text-align: center;
  max-width: 100%;
}

/* Related Posts Header */

.crp_related h2 {
  font-size: 4em;
  font-family: Source Serif Pro;
  margin-bottom: .08em;
  text-transform: none;
  text-align: left;
  color: 220A71;
}

/* Grid layout */

.crp_related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

/* Individual card */

.crp_related li {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Featured Image */

.crp_related img {
  width: 100%;
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .008em;
}

/* Title */

.crp_related a {
  font-size: 1.5em;
  font-weight: 700;
  font-family: 'Source Serif Pro';
  color: #220a71;
  text-decoration: none;
  margin-bottom: 0.25em;
  display: inline-block;
}

/* Date */

.crp_related .crp_date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 1em;
}

/* Excerpt */

.crp_related .crp_excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1em;
  max-width: 90%;
}

/* Prevent drop caps from applying */

.crp_related .crp_excerpt::first-letter {
  all: unset;
}

/* Read more link */

.crp_related .crp_more {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--wp--preset--color--contrast, #000);
  text-decoration: underline;
  margin-top: auto;
  display: inline-block;
}

/* Style Latest Posts - Letter From The Editor */

/* Remove top/bottom margin from the entire list block */

.letter-from-editor.wp-block-latest-posts {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-align: center;
}

/* Remove spacing around individual post item */

.letter-from-editor li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove top spacing around the post title itself */

.letter-from-editor li a {
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 5.93em;
  font-family: 'Source Serif Pro';
  font-weight: 600;
  font-style: italic;
  text-align: center;
  text-decoration: none;
  line-height: 1.1;
	color: #A0E8E8;
}

.letter-from-editor li p {
  margin: 0.75em 0;
  white-space: normal;
  text-align: left;
}
.front-page-lfte-link a {
		font:inherit;
}
/* Home Page Navigation */

.horizontal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  /* space between items */
  justify-content: center;
  /* or left/right */
  list-style: none;
  padding: 0;
  margin: 0;
}

.horizontal-list li {
  margin: 0;
  padding: 0;
}

/* Home Page Hero Image on Mobile */

@media (max-width: 768px) {
  .homepage-hero {
    background-position: center !important;
    min-height: 300px !important;
    /* optional — for reducing height */
  }
}

@media (max-width: 768px) {
  .wp-block-cover .wp-block-group.ghostkit-custom-Z28JlTU {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
    text-align: left !important;
    max-width: 90% !important;
    width: fit-content !important;
  }
}

/* Ensure post container is positioned properly */
.title-overlay-on-hover .wp-block-post {
  position: relative;
  overflow: hidden;
}

/* Gradient overlay */
.title-overlay-on-hover .wp-block-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(236, 168, 129, .0) 0%,
    rgba(226, 159, 245, .4) 60%,
    rgba(160, 232, 232, 0.6) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Post title overlay styling */
.title-overlay-on-hover .wp-block-post-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover state: reveal title and overlay */
.title-overlay-on-hover .wp-block-post:hover::before,
.title-overlay-on-hover .wp-block-post:hover .wp-block-post-title {
  opacity: 1;
}