/* Full, uncropped photographs inside a consistent grid. */
html body.single-cpt_portfolio .portfolio_page_gallery_content:has(.portfolio_page_columns_wrap) { display:block!important; }
html body.single-cpt_portfolio .portfolio_page_columns_wrap { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0!important; }
html body.single-cpt_portfolio .portfolio_page_columns_wrap > div { position:relative; width:auto!important; min-width:0; height:auto; aspect-ratio:4/3; margin:0!important; padding:0!important; overflow:hidden; border:1px solid #403313; border-radius:12px; background:#0b0b0b; }
html body.single-cpt_portfolio .portfolio_page_columns_wrap figure,
html body.single-cpt_portfolio .portfolio_page_columns_wrap a { display:block!important; width:100%!important; height:100%!important; margin:0!important; }
html body.single-cpt_portfolio .portfolio_page_columns_wrap img { display:block!important; width:100%!important; height:100%!important; object-fit:contain!important; background:#0b0b0b; }
html body.single-cpt_portfolio .portfolio_page_columns_wrap:has(> div:only-child) { grid-template-columns:minmax(0,1fr)!important; max-width:680px; margin-inline:auto!important; }
html body .reh-event-card__image img.rep-image-nonstandard,
html body .re-card-image img.rep-image-nonstandard { object-fit:cover!important; object-position:center 15%!important; }
html body .rep-event-hero__media img { object-fit:contain!important; object-position:center!important; }
html body.single-cpt_portfolio .portfolio_page_gallery_content { align-items:stretch!important; grid-auto-rows:auto!important; }
html body.single-cpt_portfolio .portfolio_page_gallery_item { aspect-ratio:4/3!important; height:auto!important; min-height:0!important; padding:0!important; }
html body.single-cpt_portfolio .portfolio_page_gallery_item figure,
html body.single-cpt_portfolio .portfolio_page_gallery_item a { display:block!important; margin:0!important; width:100%!important; height:100%!important; }
html body.single-cpt_portfolio .portfolio_page_gallery_item img { display:block!important; width:100%!important; height:100%!important; object-fit:contain!important; object-position:center!important; background:#0b0b0b; }
html body.single-cpt_portfolio .portfolio_page_title { text-align:center; }
html body.single-cpt_portfolio .portfolio_page_content { max-width:900px; margin:0 auto 30px; }
.rep-photo-credit { font-size:12px; line-height:1.6; color:#bcb7b7; }
html body.single-cpt_portfolio .portfolio_page_gallery_content:has(.portfolio_page_gallery_item:only-child) { grid-template-columns:minmax(0,1fr)!important; max-width:680px; margin-inline:auto; }
html body.single-cpt_portfolio .portfolio_page_gallery_content .portfolio_page_gallery_item:only-child { aspect-ratio:4/5!important; }
html body.single-cpt_portfolio .portfolio_page_content .wp-block-gallery { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
html body.single-cpt_portfolio .portfolio_page_content .wp-block-gallery .wp-block-image { width:100%!important; height:auto!important; aspect-ratio:4/3; margin:0!important; background:#0b0b0b; border:1px solid #403313; border-radius:12px; overflow:hidden; }
html body.single-cpt_portfolio .portfolio_page_content .wp-block-gallery img { width:100%!important; height:100%!important; object-fit:contain!important; }
html body.single-cpt_portfolio .portfolio_page_related .post_meta { display:none!important; }
html body.single-cpt_portfolio .portfolio_page_related .post_content_wrap { padding:22px 16px!important; border:1px solid #403313; border-radius:12px; text-align:center; height:100%; box-sizing:border-box; }
html body.single-cpt_portfolio .portfolio_page_related .post_title { font-size:21px; line-height:1.3; margin:0!important; }
html body.single-cpt_portfolio .portfolio_page_related .post_title a { opacity:1!important; visibility:visible!important; transform:none!important; }
/* Never reuse the old low-resolution Jaspreet crop on Journey. */
html body.page-id-52367 .elementor-element-31cb3b6a .post_featured img[alt="Jaspreet Singh"] { content:url("https://therealityentertainment.com/wp-content/uploads/2026/10/jaspreet-performance.jpg"); object-position:center top!important; }
html body.page-id-52367 .elementor-element-31cb3b6a .post_featured img[alt="Shreya Ghoshal"] { content:url("https://therealityentertainment.com/wp-content/uploads/2026/04/deccanherald_2026-03-05_x6od64ar_Shreya-Ghoshal.jpg"); object-position:50% top!important; }
/* Keep small-screen cards and form controls readable. */
@media(min-width:768px){
  html body.single-cpt_portfolio .portfolio_page_gallery_content:has(.portfolio_page_gallery_item:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr))!important; max-width:960px; margin-inline:auto; }
}
@media(max-width:767px){
  html body.post-type-archive-tribe_events .re-events-hub { width:100%!important; max-width:560px; }
  html body.single-cpt_portfolio .portfolio_page_related .related_columns { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0!important; }
  html body.single-cpt_portfolio .portfolio_page_related .related_columns .sc_portfolio_item { width:auto!important; padding:0!important; min-width:0; }
  html body.single-cpt_portfolio .portfolio_page_related .post_title { font-size:18px; }
  input,select,textarea { max-width:100%; }
  .wpcf7-form input:not([type="submit"]):not([type="checkbox"]),.wpcf7-form textarea,.wpcf7-form select { font-size:16px; }
}
@media(max-width:480px){
  html body.single-cpt_portfolio .portfolio_page_columns_wrap { grid-template-columns:minmax(0,1fr)!important; }
  html body.single-cpt_portfolio .portfolio_page_gallery_content { grid-template-columns:minmax(0,1fr)!important; gap:14px!important; }
  html body.single-cpt_portfolio .portfolio_page_content .wp-block-gallery { grid-template-columns:minmax(0,1fr)!important; }
}
@media(prefers-reduced-motion:reduce){
  .sc_blogger_item,.sc_portfolio_item,.reh-event-card,.re-event-card { transition:none!important; }
}
