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;
}

/* ===== TikTok: clean video only (works with the tiktok-clean-player script) ===== */

/* The clean player box: vertical 9:16, centered, rounded */
.clean-tiktok {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.clean-tiktok iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Old TikTok card: hide its caption / @name / sound text
   during the split second before the script swaps it out */
blockquote.tiktok-embed {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 20px auto !important;
    max-width: 360px !important;
}

blockquote.tiktok-embed > section {
    display: none !important;
}

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

/* Article images: keep natural proportions, no stretching */
article img,
.entry-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Thumbnails / card images only */
.nv-post-thumbnail-wrap img,
.wp-post-image,
.related-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Prevent layout shifts in post excerpts */
.excerpt-wrap,
.entry-summary {
    min-height: 120px;
    line-height: 1.5;
    overflow: hidden;
    margin-bottom: 10px;
}

/* 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;
    }

    .entry-content .fb-video,
    .entry-content .fb_iframe_widget {
        max-width: 100%;
        padding: 0 5px;
    }
}