/* Newspaper's profile row places the article first and its two sidebars below. */
body.pcs-profile-end .tdb_single_author_box,
body.pcs-profile-end .vc_column:has(.tdb_single_author_box) > .wpb_wrapper > .td_block_separator,
body.pcs-profile-end .vc_row > .td-pb-span3:has(.tdb_single_post_share){display:none!important}

body.pcs-profile-end:has(.tdb_single_content .pcs-card-profile) .vc_row:has(> .td-pb-span6 .pcs-card-profile) > .td-pb-span3:has(.td_flex_block){
    width:100%!important;flex:0 0 100%!important;max-width:100%;min-width:0
}
body.pcs-profile-end .td-pb-span3:has(.td_flex_block) > .wpb_wrapper:has(.tdm_block_image_info_box){
    display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:0 clamp(18px,3vw,42px);
    max-width:1060px;margin:14px auto 36px;align-items:start
}
body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .tdm_block_image_info_box{grid-column:1;grid-row:1 / span 2;margin:0!important;overflow:hidden;border-radius:12px}
body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .tdm_block_inline_text{grid-column:2;grid-row:1;margin:0 0 12px!important}
body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .td_flex_block{grid-column:2;grid-row:2;margin:0!important;min-width:0}
body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .td-a-rec{grid-column:1/-1;grid-row:3}

/* The destination and bookmark remain accessible on the original theme links. */
body.pcs-profile-end .pcs-end-related .td-module-thumb{background:#edf0f5;border-radius:10px;overflow:hidden}
body.pcs-profile-end .pcs-end-related a.td-image-wrap{display:block;position:relative;height:auto!important;aspect-ratio:16/10;padding:0!important}
body.pcs-profile-end .pcs-end-related .pcs-end-face{position:absolute;inset:7%;display:block;width:86%;height:86%;object-fit:contain;opacity:1!important;visibility:visible!important;animation:none!important}
body.pcs-profile-end .pcs-end-related .entry-thumb{background-size:contain!important;background-repeat:no-repeat;background-position:center}
body.pcs-profile-end .pcs-end-related a.td-image-wrap:has(.pcs-end-face) .entry-thumb{display:none}
body.pcs-profile-end .pcs-end-related .pcs-end-text-only .td-image-container{display:none}
@media(max-width:700px){
    body.pcs-profile-end .td-pb-span3:has(.td_flex_block) > .wpb_wrapper:has(.tdm_block_image_info_box){grid-template-columns:minmax(0,1fr);gap:12px;margin:12px auto 24px}
    body.pcs-profile-end .td-pb-span3 .wpb_wrapper > :is(.tdm_block_image_info_box,.tdm_block_inline_text,.td_flex_block,.td-a-rec){grid-column:1;grid-row:auto}
    body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .tdm_block_inline_text{margin:0!important}
}

body.pcs-profile-end .td-pb-span3 .wpb_wrapper:has(> .tdm_block_image_info_box) > .clearfix{display:none}
body.pcs-profile-end .td-pb-span3 .wpb_wrapper:has(> .tdm_block_image_info_box) > .td_block_wrap{min-width:0;max-width:100%}
@media(max-width:700px){
    body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .tdm_block_image_info_box{grid-row:1}
    body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .tdm_block_inline_text{grid-row:2}
    body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .td_flex_block{grid-row:3}
    body.pcs-profile-end .td-pb-span3 .wpb_wrapper > .td-a-rec{grid-row:4}
}
