/* Nikshahr Newsroom public presentation layer.
 * Aban News ships Num_Medium as IRANSansFaNum Medium; reuse the theme font
 * instead of adding a second font download or changing the global site font.
 */
body.single-post .post-content .con,
body.single-post .post-content .con p,
body.single-post .post-content .con li,
body.single-post .post-content .con span,
body.single-post .post-content .con a,
body.single-post .post-content .con b,
body.single-post .post-content .con strong,
body.single-post .post-content .con em,
body.single-post .post-content .con i,
body.single-post .post-content .con blockquote,
body.single-post .post-content .con td,
body.single-post .post-content .con th,
body.single-post .post-content .con figcaption,
body.single-post .post-content .con address {
    font-family: "Num_Medium", "Vazir", Tahoma, sans-serif !important;
    font-size: 16px !important;
    line-height: 2 !important;
}

body.single-post .post-content .con {
    direction: rtl !important;
    text-align: justify !important;
    color: #333 !important;
    overflow-wrap: anywhere;
}

body.single-post .post-content .con p {
    text-align: justify !important;
    margin: 0 0 20px !important;
}

body.single-post .post-content .con h2,
body.single-post .post-content .con h2 *,
body.single-post .post-content .con h3,
body.single-post .post-content .con h3 *,
body.single-post .post-content .con h4,
body.single-post .post-content .con h4 *,
body.single-post .post-content .con h5,
body.single-post .post-content .con h5 *,
body.single-post .post-content .con h6,
body.single-post .post-content .con h6 * {
    font-family: "Num_Medium", "Vazir", Tahoma, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    color: #222 !important;
    text-align: right !important;
}
body.single-post .post-content .con h2,
body.single-post .post-content .con h2 * { font-size: 23px !important; }
body.single-post .post-content .con h3,
body.single-post .post-content .con h3 * { font-size: 21px !important; }
body.single-post .post-content .con h4,
body.single-post .post-content .con h4 * { font-size: 19px !important; }
body.single-post .post-content .con h5,
body.single-post .post-content .con h5 * { font-size: 18px !important; }
body.single-post .post-content .con h6,
body.single-post .post-content .con h6 * { font-size: 17px !important; }

body.single-post .post-content .con ul,
body.single-post .post-content .con ol {
    margin: 0 1.5em 20px 0 !important;
    padding: 0 !important;
}
body.single-post .post-content .con ul,
body.single-post .post-content .con ul li { list-style: disc outside !important; }
body.single-post .post-content .con ol,
body.single-post .post-content .con ol li { list-style: decimal outside !important; }
body.single-post .post-content .con li { margin-bottom: 8px !important; }
body.single-post .post-content .con blockquote {
    border-right: 4px solid #b51f2b !important;
    margin: 22px 0 !important;
    padding: 12px 18px !important;
    background: #f7f7f7 !important;
}
body.single-post .post-content .con img,
body.single-post .post-content .con video,
body.single-post .post-content .con iframe {
    max-width: 100% !important;
}

/* Keep the Aban News single-media player in normal document flow.
 * The theme's original cover links to the current permalink; public.js
 * intercepts that click and starts playback instead of reloading the page. */
body.single-media .p-video .head-video {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 0 0 !important;
    margin: 0 0 20px !important;
    overflow: visible !important;
    transform: none !important;
}
body.single-media .p-video .head-video video {
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    max-height: none !important;
    background: #090909;
}
body.single-media .p-video .head-video .video-cover {
    position: absolute !important;
    top: 10px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    z-index: 5 !important;
    overflow: hidden !important;
}
body.single-media .p-video .head-video .video-cover img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
body.single-media .p-video .head-video .video-cover a { cursor: pointer; }
body.single-media .p-video .nkr-aparat-player {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden !important;
    margin: 10px 0 20px !important;
}
body.single-media .p-video .nkr-aparat-player iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}
@media (max-width: 767px) {
    body.single-post .post-content .con,
    body.single-post .post-content .con p,
    body.single-post .post-content .con li,
    body.single-post .post-content .con span,
    body.single-post .post-content .con a,
    body.single-post .post-content .con b,
    body.single-post .post-content .con strong,
    body.single-post .post-content .con em,
    body.single-post .post-content .con i,
    body.single-post .post-content .con blockquote,
    body.single-post .post-content .con td,
    body.single-post .post-content .con th { font-size: 15px !important; }
    body.single-post .post-content .con h2,
    body.single-post .post-content .con h2 * { font-size: 21px !important; }
    body.single-post .post-content .con h3,
    body.single-post .post-content .con h3 * { font-size: 19px !important; }
    body.single-post .post-content .con h4,
    body.single-post .post-content .con h4 * { font-size: 18px !important; }
    body.single-media .p-video .head-video video,
    body.single-media .p-video .head-video .video-cover { aspect-ratio: 16 / 9; }
}
