a:link { text-decoration: none;}
a:visited { text-decoration: none;}
a:hover { text-decoration: none;}
a:active { text-decoration: none;}
.entry-meta, .post-meta, .nv-meta-list {
    font-size: 12px;
}


body.search .nv-page-title-wrap {
    display: none !important;
}

/* Fix TikTok embed black bar */
.tiktok-embed {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.tiktok-embed iframe {
    background: transparent !important;
    border: none !important;
    max-width: 100% !important;
}

/* Remove any wrapper background */
.wp-block-embed__wrapper,
.wp-block-embed {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Center the embed properly */
.entry-content .tiktok-embed {
    text-align: center;
    width: 100%;
    max-width: 605px;
    margin-left: auto;
    margin-right: auto;
}

article img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


@media (min-width: 1024px) {
  .nv-related-posts .posts-wrapper {
    grid-template-columns: repeat(4, 1fr) !important; /* Desktop: 4 columns */
  }
}

@media (max-width: 768px) {
  .entry-content {
    padding-left: 5px;
    padding-right: 5px;
  }
}


/* Ensure thumbnails reserve space */
.nv-post-thumbnail-wrap img,
.wp-post-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* adjust if your thumbnails are square or portrait */
  height: auto;
  object-fit: cover;
  display: block;
}

article img {
  width: 100%;
  aspect-ratio: attr(width) / attr(height);
  height: auto;
  display: block;
}

/* --- Prevent layout shifts in post excerpts --- */
.excerpt-wrap,
.entry-summary {
  /* Reserve stable height so text doesn't push layout */
  min-height: 120px; /* adjust if your excerpts are longer/shorter */
  line-height: 1.5;
  overflow: hidden;
  margin-bottom: 10px; /* keep spacing consistent between posts */
}

/* Fix Facebook Reels embed on mobile */
.fb-video,
.fb_iframe_widget,
[data-href*="facebook.com/reel"] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.fb-video iframe,
.fb_iframe_widget iframe,
.fb_iframe_widget span {
    background: transparent !important;
    border: none !important;
    max-width: 100% !important;
}

/* Center Facebook embeds properly */
.entry-content .fb-video,
.entry-content .fb_iframe_widget {
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile specific adjustments for Facebook Reels */
@media (max-width: 768px) {
    .fb-video,
    .fb_iframe_widget {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .fb-video iframe,
    .fb_iframe_widget iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Adjust wrapper in entry content */
    .entry-content .fb-video,
    .entry-content .fb_iframe_widget {
        max-width: 100%;
        padding: 0 5px;
    }
}