/* Mobile adjustments */
@media (max-width: 768px) {
    .wp-caption-text,
    figcaption {
        font-size: 14px;
        padding: 8px 10px;
    }

    .wp-caption-text::before,
    figcaption::before {
        font-size: 10px;
        margin-right: 4px;
    }
}
/* =========================================
   CENTERED VIDEOS WITH SIDE GUTTERS
   Matches article text width
   ========================================= */

/* Stop horizontal scrolling */
html, body {
    overflow-x: hidden !important;
}

/* Reset any forced full-bleed styles */
.wp-block-embed,
.wp-block-video,
figure.wp-block-embed,
figure.wp-block-video {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    transform: none !important;
    margin: 16px auto !important;
    padding: 0 !important;
}

/* Respect article width */
.entry-content,
.entry-content > *,
.wp-block-embed__wrapper {
    max-width: 100%;
}

/* Video fills container neatly */
.wp-block-embed iframe,
.wp-block-video video,
iframe {
    width: 100% !important;
    height: auto;
    display: block;
}

/* Maintain 16:9 ratio */
.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
}

/* Mobile fine tuning */
@media (max-width: 768px) {
    .wp-block-embed,
    .wp-block-video {
        margin: 12px auto !important;
    }
}
/* ======================================
   SBK SPORTS MAIL – Red Overlay Caption on Top of Image
   ====================================== */

/* Image container (all images, including first/featured) */
.wp-caption,
.wp-block-image figure,
.wp-block-image {  
    position: relative;           /* allows overlay positioning */
    display: block;
    text-align: center;
    margin: 0 auto;
}

/* Ensure image stays behind overlay */
.wp-caption img,
.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;                  /* image behind overlay */
}

/* Red caption overlay on bottom part of image */
.wp-caption-text,
figcaption,
.wp-block-image .caption {
    position: absolute;           /* overlay on image */
    bottom: 0;                    /* sit at bottom of image */
    left: 0;
    width: 100%;                  /* full width of image */
    background-color: rgba(255,0,0,0.85); /* semi-transparent red overlay */
    color: #ffffff;               /* white text */
    font-size: 15px;
    font-weight: 500;
    font-style: normal;           /* no italics */
    padding: 10px 12px;           /* spacing inside rectangle */
    display: flex;                /* align icon + text */
    align-items: center;          /* vertically center icon and text */
    gap: 4px;                     /* tight space between camera & text */
    box-sizing: border-box;
    margin: 0;                    /* sits directly on image */
    z-index: 10;                  /* overlay above image */
}

/* Camera icon inline with text */
.wp-caption-text::before,
figcaption::before,
.wp-block-image .caption::before {
    content: "\1F4F7";            /* camera emoji */
    font-size: 12px;               /* small camera */
    line-height: 1;                /* vertical alignment */
    vertical-align: middle;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wp-caption-text,
    figcaption,
    .wp-block-image .caption {
        font-size: 14px;
        padding: 8px 10px;
    }

    .wp-caption-text::before,
    figcaption::before,
    .wp-block-image .caption::before {
        font-size: 10px;
        margin-right: 4px;
    }
}
.featured-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-container .featured-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,0,0,0.85);
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    z-index: 10;
}

.featured-image-container .featured-caption::before {
    content: "\1F4F7";
    font-size: 12px;
    vertical-align: middle;
}
/* ======================================
   SBK SPORTS MAIL – Red Overlay Caption on All Images (including first/featured)
   ====================================== */

/* Image container */
.wp-caption,
.wp-block-image figure,
.wp-block-image,
.featured-image {  /* target first/featured image */
    position: relative;           /* allow overlay positioning */
    display: block;
    text-align: center;
    margin: 0 auto;
}

/* Ensure images stay behind overlay */
.wp-caption img,
.wp-block-image img,
.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Overlay caption for normal images with figcaption or .wp-caption-text */
.wp-caption-text,
figcaption,
.wp-block-image .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,0,0,0.85);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    margin: 0;
    z-index: 10;
}

.wp-caption-text::before,
figcaption::before,
.wp-block-image .caption::before {
    content: "\1F4F7"; /* camera emoji */
    font-size: 12px;
    vertical-align: middle;
}

/* Overlay caption for first/featured image using ::after */
.featured-image::after {
    content: "📷 Your caption here"; /* default text, can be dynamic if needed */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,0,0,0.85);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wp-caption-text,
    figcaption,
    .wp-block-image .caption,
    .featured-image::after {
        font-size: 14px;
        padding: 8px 10px;
    }

    .wp-caption-text::before,
    figcaption::before,
    .wp-block-image .caption::before {
        font-size: 10px;
        margin-right: 4px;
    }
}
/* Justify only article text and lists, not headings */
.entry-content p,
.entry-content li {
    text-align: justify;       /* Justify text */
    text-justify: auto;        /* Automatic spacing adjustments */
    hyphens: auto;             /* Split long words to reduce gaps */
    word-break: break-word;    /* Prevent overflow */
    line-height: 1.6;          /* Improve readability */
}
/* =====================================================
   SBKSPORTSMAIL.COM – FORCE-COLLAPSE X MEDIA TWEET SPACE
   ===================================================== */

/* Reset outer tweet */
.entry-content blockquote.twitter-tweet {
    margin: 0 !important;
    padding: 0 !important;
}

/* Kill ALL auto spacing added by theme */
.entry-content > blockquote.twitter-tweet {
    margin-bottom: 0 !important;
}

/* Force tweet container to shrink-wrap content */
.entry-content blockquote.twitter-tweet,
.entry-content blockquote.twitter-tweet * {
    line-height: normal !important;
}

/* HARD COLLAPSE the media container after render */
.entry-content blockquote.twitter-tweet iframe {
    display: block !important;
    height: auto !important;
    min-height: unset !important;
}

/* Remove phantom space X injects after media */
.entry-content blockquote.twitter-tweet iframe + div,
.entry-content blockquote.twitter-tweet div[style*="height"] {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Clean spacing ONLY between tweet and next content */
.entry-content blockquote.twitter-tweet + * {
    margin-top: 0.8rem !important;
}
/* Justified text without hyphens, normal word breaks, no large gaps */
.entry-content p,
.entry-content li {
    text-align: justify;          /* Justify all lines */
    text-align-last: left;        /* Last line left-aligned to avoid gaps */
    text-justify: inter-word;     /* Smooth spacing between words */
    hyphens: none;                /* Prevent word splitting */
    word-break: normal;           /* Keep words intact */
    overflow-wrap: normal;        /* Avoid forced word breaks */
    font-size: 25px;              /* Large readable text */
    line-height: 1.4;             /* Comfortable spacing */
    margin-bottom: 1.2em;         /* Space between paragraphs */
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .entry-content p,
    .entry-content li {
        font-size: 22px;
        line-height: 1.4;
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .entry-content p,
    .entry-content li {
        font-size: 18px;
        line-height: 1.4;
    }
}
/* Justified text without hyphens, normal word breaks, with side padding */
.entry-content {
    padding-left: 10px;       /* Slight padding on the left */
    padding-right: 10px;      /* Slight padding on the right */
}

.entry-content p,
.entry-content li {
    text-align: justify;          /* Justify all lines */
    text-align-last: left;        /* Last line left-aligned to avoid gaps */
    text-justify: inter-word;     /* Smooth spacing between words */
    hyphens: none;                /* Prevent word splitting */
    word-break: normal;           /* Keep words intact */
    overflow-wrap: normal;        /* Avoid forced word breaks */
    font-size: 25px;              /* Large readable text */
    line-height: 1.4;             /* Comfortable spacing */
    margin-bottom: 1.2em;         /* Space between paragraphs */
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .entry-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .entry-content p,
    .entry-content li {
        font-size: 22px;
        line-height: 1.4;
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .entry-content {
        padding-left: 5px;
        padding-right: 5px;
    }

    .entry-content p,
    .entry-content li {
        font-size: 18px;
        line-height: 1.4;
    }
}
/* Article container with proper width and padding */
.entry-content {
    max-width: 800px;           /* Limits width to reduce stretching */
    margin-left: auto;           /* Center the article */
    margin-right: auto;          /* Center the article */
    padding-left: 10px;          /* Slight padding */
    padding-right: 10px;         /* Slight padding */
}

/* Article container with proper width and padding */
.entry-content {
    max-width: 700px;           /* Narrower width to reduce word stretching */
    margin-left: auto;           /* Center the article */
    margin-right: auto;          /* Center the article */
    padding-left: 10px;          /* Slight padding */
    padding-right: 10px;         /* Slight padding */
}

/* Justified text for paragraphs and list items only */
.entry-content p,
.entry-content li {
    text-align: justify;          /* Justify text */
    text-align-last: left;        /* Last line left-aligned to avoid gaps */
    text-justify: inter-word;     /* Smooth spacing */
    hyphens: none;                /* Prevent word splitting */
    word-break: normal;           /* Keep words intact */
    overflow-wrap: normal;        /* Avoid forced breaks */
    font-size: 16px;              /* Default readable text size */
    line-height: 1.6;             /* Comfortable spacing for reading */
    margin-bottom: 1.2em;         /* Space between paragraphs */
}

/* Keep all headings left-aligned */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    text-align: left;             /* Headings are NOT justified */
    margin-bottom: 0.8em;         /* Space below headings */
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .entry-content {
        max-width: 90%;
        padding-left: 8px;
        padding-right: 8px;
    }
    .entry-content p,
    .entry-content li {
        font-size: 15px;          /* Slightly smaller for tablets */
        line-height: 1.5;
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .entry-content {
        max-width: 95%;
        padding-left: 5px;
        padding-right: 5px;
    }
    .entry-content p,
    .entry-content li {
        font-size: 14px;          /* Optimal size for mobile readability */
        line-height: 1.5;
    }
}
/* Article container with proper width and padding */
.entry-content {
    max-width: 700px;           /* Narrower width reduces word stretching */
    margin-left: auto;           /* Center the article */
    margin-right: auto;          /* Center the article */
    padding-left: 10px;          /* Slight padding */
    padding-right: 10px;         /* Slight padding */
}

/* Article container with proper width */
.entry-content {
    max-width: 700px;           /* Narrow column to mimic justified text */
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* Article container - narrow for newspaper style */
.entry-content {
    max-width: 650px;           /* Narrow column for newspaper look */
    margin-left: auto;           /* Center the column */
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}
/* Make author Gravatar round */
.author-box img.avatar,
img.avatar,
.comment-author .avatar,
.single .author-box img,
.entry-meta .avatar {
    border-radius: 50% !important;
    object-fit: cover;
}
/* ======================================
   SBK SPORTS MAIL – Red Overlay Caption on All Images (including first/featured)
   ====================================== */

/* Image container */
.wp-caption,
.wp-block-image figure,
.wp-block-image,
.featured-image {  /* target first/featured image */
    position: relative;           /* allow overlay positioning */
    display: block;
    text-align: center;
    margin: 0 auto;
}

/* Ensure images stay behind overlay */
.wp-caption img,
.wp-block-image img,
.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Overlay caption for normal images with figcaption or .wp-caption-text */
.wp-caption-text,
figcaption,
.wp-block-image .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,0,0,0.85);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    margin: 0;
    z-index: 10;
}

.wp-caption-text::before,
figcaption::before,
.wp-block-image .caption::before {
    content: "\1F4F7"; /* camera emoji */
    font-size: 12px;
    vertical-align: middle;
}

/* Overlay caption for first/featured image using ::after */
.featured-image::after {
    content: "📷 Your caption here"; /* default text, can be dynamic if needed */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,0,0,0.85);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wp-caption-text,
    figcaption,
    .wp-block-image .caption,
    .featured-image::after {
        font-size: 14px;
        padding: 8px 10px;
    }

    .wp-caption-text::before,
    figcaption::before,
    .wp-block-image .caption::before {
        font-size: 10px;
        margin-right: 4px;
    }
}
/* ======================================
   SBK SPORTS MAIL – Caption On Top of Image
   Clean White Text – No Rectangle
   ====================================== */

/* Make image container relative */
.wp-caption,
.wp-block-image,
.wp-block-image figure,
.post-thumbnail {
    position: relative;
    display: block;
    margin: 0 auto;
}

/* Ensure images behave properly */
.wp-caption img,
.wp-block-image img,
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption positioned on image */
.wp-caption-text,
figcaption {
    position: absolute;
    bottom: 0;              /* stick to bottom edge */
    left: 0;
    width: 100%;            /* match image width */

    color: #ffffff;         /* white text */
    font-size: 14px;
    font-weight: 500;
    font-style: normal;

    padding: 8px 12px;      /* space from edges */

    display: flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    box-sizing: border-box;
}

/* Small camera icon */
.wp-caption-text::before,
figcaption::before {
    content: "\1F4F7";
    font-size: 12px;
    line-height: 1;
}
blockquote,
.wp-block-quote {
    position: relative;
    background: #f9f9f9;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #e10600;
    font-size: 18px;
    line-height: 1.7;
    color: #222;
    font-style: normal;
    border-radius: 8px;
}

/* Decorative quotation mark */
blockquote:before,
.wp-block-quote:before {
    content: "“";
    font-size: 55px;
    color: #e10600;
    position: absolute;
    top: 5px;
    left: 12px;
    opacity: 0.15;
}

/* Talker / Author line */
blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd; /* Line separating quote from talker */
    font-size: 15px;
    font-weight: 600;
    color: #e10600;
    font-style: normal;
}
/* Images */
img {
    border-radius: 14px;
}

/* Embedded videos (YouTube, Vimeo, etc.) */
iframe,
video,
.wp-block-embed iframe,
.wp-block-video video {
    border-radius: 14px;
    overflow: hidden;
}

/* Ensure container also respects rounding */
.wp-block-embed,
.wp-block-video {
    border-radius: 14px;
    overflow: hidden;
}