/**
* Theme Name: Framek Child
* Description: This is a child theme of Framek, generated by Merlin WP.
* Author: <a href="https://wpopal.com/">Opalthemes</a>
* Template: framek
* Version: 1.2.6
*/

/* News cards on the homepage and News page. */
.brm-home-news { width: 100%; max-width: 1240px; margin: 0 auto; padding: 72px 24px 88px; }
.brm-home-news__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.brm-home-news__header h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.1; }
.brm-home-news__header a, .brm-home-news__read { color: inherit; text-decoration: none; font-weight: 600; }
.brm-home-news__header a:hover, .brm-home-news__read:hover, .brm-home-news__body h3 a:hover { text-decoration: underline; }
.brm-home-news__grid, .brm-news-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.brm-home-news__card, .brm-news-grid > li { min-width: 0; width: auto !important; margin: 0 !important; }
.brm-home-news__image, .brm-news-grid .wp-block-latest-posts__featured-image { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; margin: 0 0 18px !important; }
.brm-home-news__image img, .brm-news-grid .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brm-home-news__image img[alt="Ela Monteiro of Curated by Ela"], .brm-news-grid img[alt="Ela Monteiro of Curated by Ela"] { object-position: center 22%; }
.brm-home-news__body h3 { margin: 0 0 12px; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.3; }
.brm-home-news__body h3 a, .brm-news-grid .wp-block-latest-posts__post-title { color: inherit; text-decoration: none; }
.brm-home-news__body p, .brm-news-grid .wp-block-latest-posts__post-excerpt { line-height: 1.6; margin: 0 0 16px; }
.brm-news-grid .wp-block-latest-posts__post-title { display: block; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.3; font-weight: 600; margin-bottom: 12px; }
@media (max-width: 767px) {
  .brm-home-news { padding: 48px 20px 64px; }
  .brm-home-news__header { align-items: start; flex-direction: column; gap: 12px; }
  .brm-home-news__grid, .brm-news-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Keep the site header clear of page content. */
body.home #content, body.page-id-34267 #content, body.single-post #content { margin-top: 0; }
body.page-id-34267 #masthead, body.single-post #masthead { height: 112px; background: #101820; }
body.page-id-34267 .entry-header { padding-top: 42px; margin-bottom: 28px; }
body.page-id-34267 .entry-title { font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1.1; }
body.page-id-34267 .entry-content { max-width: 1240px; margin: 0 auto; }
@media (max-width: 767px) {
  body.page-id-34267 #masthead, body.single-post #masthead { height: 76px; }
  body.page-id-34267 .entry-header { padding-top: 30px; margin-bottom: 22px; }
  body.page-id-34267 .entry-title { font-size: 2.75rem; }
}

/* News page editorial layout */
body.page-id-34267 { background: #f3f6f9; }
body.page-id-34267 #content { margin: 0; background: #f3f6f9; }
body.page-id-34267 #content > .col-full { width: 100%; max-width: none; padding: 0; }
body.page-id-34267 #primary, body.page-id-34267 #post-34267 { width: 100%; margin: 0; }
body.page-id-34267 #masthead { height: 112px; background: #0d1826; }
body.page-id-34267 #post-34267 .entry-header {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 420px;
  margin: 0;
  padding: 125px max(30px, calc((100vw - 1240px) / 2)) 112px;
  background: linear-gradient(90deg, #0b1725 0%, rgba(11,23,37,.94) 37%, rgba(11,23,37,.55) 68%, rgba(11,23,37,.25) 100%), url('https://blackrookmedia-dev.10web.cloud/wp-content/uploads/2026/09/COP30-Place-Holder-1.jpg') center 47% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
body.page-id-34267 #post-34267 .entry-header::before {
  content: 'BLACKROOK MEDIA  /  JOURNAL';
  display: block;
  margin-bottom: 18px;
  color: #63b6ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .2em;
}
body.page-id-34267 #post-34267 .entry-title {
  margin: 0;
  color: #fff;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(4.3rem, 6.5vw, 6.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}
body.page-id-34267 #post-34267 .entry-header::after {
  content: 'Stories, ideas and people behind the work.';
  display: block;
  max-width: 550px;
  margin-top: 22px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}
body.page-id-34267 #post-34267 .entry-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  max-width: 1288px;
  margin: -58px auto 0;
  padding: 0 24px 110px;
}
body.page-id-34267 .brm-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
body.page-id-34267 .brm-news-grid > li {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding: 0 0 28px;
  border: 1px solid rgba(12,28,45,.07);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(14,32,51,.11);
  transition: transform .25s ease, box-shadow .25s ease;
}
body.page-id-34267 .brm-news-grid > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 55px rgba(14,32,51,.17);
}
body.page-id-34267 .brm-news-grid > li::before {
  content: 'NEWS';
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border-radius: 3px;
  background: #168cff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  pointer-events: none;
}
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__featured-image {
  order: 1;
  aspect-ratio: 16 / 10;
  margin: 0 0 24px !important;
}
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__featured-image a,
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: 100%; }
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__featured-image img { object-fit: cover; transition: transform .35s ease; }
body.page-id-34267 .brm-news-grid > li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.035); }
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-date {
  order: 2;
  margin: 0 24px 10px;
  color: #167ed0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-title {
  order: 3;
  margin: 0 24px 13px;
  color: #102033;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.23;
}
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-title:hover { color: #087bd8; }
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-excerpt {
  order: 4;
  margin: 0 24px;
  color: #536275;
  font-size: 15px;
  line-height: 1.65;
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-id-34267 .brm-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.page-id-34267 #masthead { height: 76px; }
  body.page-id-34267 #post-34267 .entry-header {
    min-height: 345px;
    padding: 72px 20px 90px;
    background-position: center, 60% center;
  }
  body.page-id-34267 #post-34267 .entry-header::before { font-size: 10px; letter-spacing: .14em; }
  body.page-id-34267 #post-34267 .entry-title { font-size: clamp(3.6rem, 16vw, 5.5rem); }
  body.page-id-34267 #post-34267 .entry-header::after { margin-top: 17px; font-size: 1rem; }
  body.page-id-34267 #post-34267 .entry-content { margin-top: -43px; padding: 0 18px 70px; }
  body.page-id-34267 .brm-news-grid { grid-template-columns: 1fr; gap: 24px; }
  body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-title { font-size: 1.45rem; }
}

/* Keep News copy in the site typography. */
body.page-id-34267 #post-34267 .entry-header::before,
body.page-id-34267 #post-34267 .entry-header::after,
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-date,
body.page-id-34267 .brm-news-grid .wp-block-latest-posts__post-excerpt { font-family: "Familjen Grotesk", sans-serif; }

/* Show the complete portrait on Ela’s article. */
body.single-post #post-34240 .post-thumbnail { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; padding: 0 !important; overflow: visible; text-align: center; }
body.single-post #post-34240 .post-thumbnail img { position: static !important; display: block; width: min(100%, 560px) !important; height: auto !important; max-height: none; margin: 0 auto; object-fit: contain; }
