/**
 * Top Rulate Editorial V1 - shared article card + /blog/ archive (G6.4C4R7C2).
 */

:root,
body.tr-home-v1,
body.tr-editorial-v1 {
  --tr-editorial-font: var(--tr-font, Muli, "Open Sans", system-ui, sans-serif);
}

/* Shared article card */
.tr-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  font-family: var(--tr-editorial-font);
}

.tr-article-card__media {
  display: block;
  line-height: 0;
  background: #e4e8ed;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.tr-article-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.tr-article-card__meta {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tr-muted, #6b7680);
  line-height: 1.35;
}

.tr-article-card__meta span + span::before {
  content: " \00B7 ";
  font-weight: 500;
}

.tr-article-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tr-ink, #101f35);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.tr-article-card__title-link {
  color: inherit;
  text-decoration: none;
}

.tr-article-card__title-link:hover,
.tr-article-card__title-link:focus-visible {
  color: var(--tr-orange, #ec6608);
}

.tr-article-card__title-link:focus-visible {
  outline: 2px solid var(--tr-orange, #ec6608);
  outline-offset: 2px;
}

.tr-article-card__excerpt {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tr-muted, #6b7680);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  flex: 1 1 auto;
}

.tr-article-card__cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tr-ink, #101f35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tr-article-card__cta::after {
  content: "\2192";
  color: var(--tr-orange, #ec6608);
}

.tr-article-card__cta:hover,
.tr-article-card__cta:focus-visible {
  color: var(--tr-orange, #ec6608);
}

.tr-article-card__cta:focus-visible {
  outline: 2px solid var(--tr-orange, #ec6608);
  outline-offset: 2px;
}

.tr-editorial-item {
  list-style: none;
  margin: 0;
  min-width: 0;
  display: flex;
}

/* -------------------------------------------------------------------------
   /blog/ archive shell
   ------------------------------------------------------------------------- */

body.tr-editorial-v1 #main > .container-fluid {
  padding-left: 0;
  padding-right: 0;
  --bs-gutter-x: 0;
}

body.tr-editorial-v1 #main .row.main-content-wrap {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

body.tr-editorial-v1 #main .main-content,
body.tr-editorial-v1 #main .main-content.col-lg-12,
body.tr-editorial-v1 #main .main-content.col-lg-9 {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  flex: 0 0 100%;
  width: 100%;
}

body.tr-editorial-v1 #main .sidebar,
body.tr-editorial-v1 #main .right-sidebar,
body.tr-editorial-v1 #main .left-sidebar,
body.tr-editorial-v1 aside.sidebar,
body.tr-editorial-v1 .widget-area {
  display: none !important;
}

body.tr-editorial-v1 .tr-editorial-v1-main {
  min-height: 0;
  box-sizing: border-box;
}

body.tr-editorial-v1 .tr-editorial-shell {
  width: 100%;
  max-width: var(--tr-chrome-max, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tr-chrome-gutter, 1rem);
  padding-right: var(--tr-chrome-gutter, 1rem);
  box-sizing: border-box;
}

body.tr-editorial-v1 .tr-editorial-archive {
  background: var(--tr-surface, #f4f6f8);
  padding: 2.75rem 0 3.5rem;
  font-family: var(--tr-editorial-font);
}

body.tr-editorial-v1 .tr-editorial-archive__header {
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

body.tr-editorial-v1 .tr-editorial-archive__title {
  margin: 0 0 0.55rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tr-ink, #101f35);
}

body.tr-editorial-v1 .tr-editorial-archive__intro {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--tr-muted, #6b7680);
}

body.tr-editorial-v1 .tr-editorial-archive__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body.tr-editorial-v1 .tr-editorial-archive__empty {
  max-width: 36rem;
  padding: 0.25rem 0 1rem;
}

body.tr-editorial-v1 .tr-editorial-archive__empty-lead {
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--tr-ink, #101f35);
}

body.tr-editorial-v1 .tr-editorial-archive__empty-actions {
  margin: 0;
}

body.tr-editorial-v1 .tr-editorial-archive__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--tr-ink, #101f35);
  border-radius: 6px;
  background: transparent;
  color: var(--tr-ink, #101f35);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

body.tr-editorial-v1 .tr-editorial-archive__cta:hover,
body.tr-editorial-v1 .tr-editorial-archive__cta:focus-visible {
  border-color: var(--tr-orange, #ec6608);
  color: var(--tr-orange, #ec6608);
}

body.tr-editorial-v1 .tr-editorial-archive__pagination {
  margin: 1.75rem 0 0;
}

body.tr-editorial-v1 .tr-editorial-archive__pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

body.tr-editorial-v1 .tr-editorial-archive__pagination a.page-numbers,
body.tr-editorial-v1 .tr-editorial-archive__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--tr-border, #dde2e8);
  border-radius: 4px;
  background: var(--tr-white, #ffffff);
  color: var(--tr-ink, #101f35);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

body.tr-editorial-v1 .tr-editorial-archive__pagination span.page-numbers.current {
  border-color: var(--tr-ink, #101f35);
  background: var(--tr-ink, #101f35);
  color: var(--tr-white, #ffffff);
}

@media (max-width: 1199px) {
  body.tr-editorial-v1 .tr-editorial-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Odd last card on 2-col: center, retain one-track width. */
  body.tr-editorial-v1 .tr-editorial-archive__grid > .tr-editorial-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 1024px) {
  body.tr-editorial-v1 .tr-editorial-archive {
    padding: 2.5rem 0 3rem;
  }

  body.tr-editorial-v1 .tr-editorial-archive__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575px) {
  body.tr-editorial-v1 .tr-editorial-archive__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tr-editorial-v1 .tr-editorial-archive__grid > .tr-editorial-item:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  body.tr-editorial-v1 .tr-editorial-archive__title {
    font-size: 1.5rem;
  }
}

/* -------------------------------------------------------------------------
   Single article (G6.4C4R7C3B)
   ------------------------------------------------------------------------- */

body.tr-editorial-single {
  --tr-editorial-text-max: 780px;
  --tr-editorial-media-max: 1120px;
}

body.tr-editorial-single #main > .container-fluid {
  padding-left: 0;
  padding-right: 0;
  --bs-gutter-x: 0;
}

body.tr-editorial-single #main .row.main-content-wrap {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

body.tr-editorial-single #main .main-content,
body.tr-editorial-single #main .main-content.col-lg-12,
body.tr-editorial-single #main .main-content.col-lg-9 {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  flex: 0 0 100%;
  width: 100%;
}

body.tr-editorial-single .tr-editorial-single-main {
  min-height: 0;
  box-sizing: border-box;
  background: var(--tr-white, #ffffff);
}

body.tr-editorial-single article.tr-editorial-single {
  padding: 1.75rem 0 0;
  font-family: var(--tr-editorial-font);
  color: var(--tr-ink, #101f35);
  background: var(--tr-white, #ffffff);
}

body.tr-editorial-single .tr-editorial-shell--media {
  max-width: var(--tr-editorial-media-max);
}

body.tr-editorial-single .tr-editorial-single__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tr-ink, #101f35);
  text-decoration: none;
}

body.tr-editorial-single .tr-editorial-single__back::before {
  content: "\2190";
  color: var(--tr-orange, #ec6608);
}

body.tr-editorial-single .tr-editorial-single__back:hover,
body.tr-editorial-single .tr-editorial-single__back:focus-visible {
  color: var(--tr-orange, #ec6608);
}

body.tr-editorial-single .tr-editorial-single__back:focus-visible {
  outline: 2px solid var(--tr-orange, #ec6608);
  outline-offset: 3px;
}

body.tr-editorial-single .tr-editorial-single__header {
  max-width: var(--tr-editorial-text-max);
  margin: 0 auto 1.5rem;
}

body.tr-editorial-single .tr-editorial-single__meta {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tr-muted, #6b7680);
  line-height: 1.35;
}

body.tr-editorial-single .tr-editorial-single__meta > * + *::before {
  content: " \00B7 ";
  font-weight: 500;
}

body.tr-editorial-single .tr-editorial-single__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.1vw + 0.85rem, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--tr-ink, #101f35);
}

body.tr-editorial-single .tr-editorial-single__lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--tr-muted, #6b7680);
  font-weight: 500;
}

body.tr-editorial-single .tr-editorial-single__featured {
  margin: 0 0 2rem;
}

body.tr-editorial-single .tr-editorial-single__featured-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  margin-left: auto;
  margin-right: auto;
}

body.tr-editorial-single .tr-editorial-single__caption {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--tr-muted, #6b7680);
  max-width: var(--tr-editorial-text-max);
}

body.tr-editorial-single .tr-editorial-single__content {
  max-width: var(--tr-editorial-text-max);
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tr-ink, #101f35);
}

body.tr-editorial-single .tr-editorial-single__content > * {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

body.tr-editorial-single .tr-editorial-single__content > *:last-child {
  margin-bottom: 0;
}

body.tr-editorial-single .tr-editorial-single__content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.tr-editorial-single .tr-editorial-single__content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

body.tr-editorial-single .tr-editorial-single__content a {
  color: var(--tr-ink, #101f35);
  text-decoration: underline;
  text-decoration-color: rgba(236, 102, 8, 0.75);
  text-underline-offset: 0.18em;
}

body.tr-editorial-single .tr-editorial-single__content a:hover,
body.tr-editorial-single .tr-editorial-single__content a:focus-visible {
  color: var(--tr-orange, #ec6608);
}

body.tr-editorial-single .tr-editorial-single__content a:focus-visible {
  outline: 2px solid var(--tr-orange, #ec6608);
  outline-offset: 2px;
}

body.tr-editorial-single .tr-editorial-single__content ul,
body.tr-editorial-single .tr-editorial-single__content ol {
  padding-left: 1.25rem;
}

body.tr-editorial-single .tr-editorial-single__content li + li {
  margin-top: 0.35rem;
}

body.tr-editorial-single .tr-editorial-single__content strong {
  font-weight: 700;
}

body.tr-editorial-single .tr-editorial-single__content blockquote,
body.tr-editorial-single .tr-editorial-single__content .wp-block-quote {
  margin: 1.75rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--tr-orange, #ec6608);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--tr-ink, #101f35);
  quotes: none;
}

body.tr-editorial-single .tr-editorial-single__content blockquote::before,
body.tr-editorial-single .tr-editorial-single__content blockquote::after,
body.tr-editorial-single .tr-editorial-single__content .wp-block-quote::before,
body.tr-editorial-single .tr-editorial-single__content .wp-block-quote::after {
  content: none;
}

body.tr-editorial-single .tr-editorial-single__content blockquote p,
body.tr-editorial-single .tr-editorial-single__content .wp-block-quote p {
  margin: 0 0 0.55rem;
}

body.tr-editorial-single .tr-editorial-single__content blockquote cite,
body.tr-editorial-single .tr-editorial-single__content .wp-block-quote cite {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: normal;
  color: var(--tr-muted, #6b7680);
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-image,
body.tr-editorial-single .tr-editorial-single__content figure:not(.wp-block-gallery):not(.wp-block-table) {
  margin: 1.75rem auto;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-image img,
body.tr-editorial-single .tr-editorial-single__content figure:not(.wp-block-gallery) img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

body.tr-editorial-single .tr-editorial-single__content figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--tr-muted, #6b7680);
}

/* Wide / full alignment - viewport-safe */
body.tr-editorial-single .tr-editorial-single__content .alignwide,
body.tr-editorial-single .tr-editorial-single__content .wp-block-image.alignwide,
body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.alignwide {
  width: 100%;
  max-width: var(--tr-editorial-media-max);
  margin-left: auto;
  margin-right: auto;
}

body.tr-editorial-single .tr-editorial-single__content .alignfull,
body.tr-editorial-single .tr-editorial-single__content .wp-block-image.alignfull,
body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.alignfull {
  width: 100%;
  max-width: min(100vw - 2rem, var(--tr-chrome-max, 1200px));
  margin-left: auto;
  margin-right: auto;
}

/* Gallery - Gutenberg columns are authority; responsive caps only */
body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery {
  max-width: var(--tr-editorial-media-max);
  margin-left: auto;
  margin-right: auto;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-5,
body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-6,
body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-7,
body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-8 {
  --wp--style--unstable-gallery-columns: 4;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-table,
body.tr-editorial-single .tr-editorial-single__content figure.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-table th,
body.tr-editorial-single .tr-editorial-single__content .wp-block-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border: 1px solid var(--tr-border, #dde2e8);
  vertical-align: top;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-table th {
  background: var(--tr-surface, #f4f6f8);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tr-muted, #6b7680);
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-embed,
body.tr-editorial-single .tr-editorial-single__content .wp-block-embed__wrapper {
  margin: 1.75rem 0;
  max-width: 100%;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

body.tr-editorial-single .tr-editorial-single__content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.tr-editorial-single .tr-editorial-single__end {
  max-width: var(--tr-editorial-text-max);
  margin: 2.75rem auto 0;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--tr-border, #dde2e8);
}

body.tr-editorial-single .tr-editorial-single__end .tr-editorial-single__back {
  margin-bottom: 0;
}

/* Related */
body.tr-editorial-single .tr-editorial-single__related {
  margin-top: 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--tr-border, #dde2e8);
  background: var(--tr-white, #ffffff);
}

body.tr-editorial-single .tr-editorial-single__related-title {
  margin: 0 0 1.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tr-ink, #101f35);
}

body.tr-editorial-single .tr-editorial-single__related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body.tr-editorial-single .tr-editorial-single__related--count-2 .tr-editorial-single__related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc((100% - 2.5rem) / 3 * 2 + 1.25rem);
  margin-inline: auto;
}

body.tr-editorial-single .tr-editorial-single__related--count-1 .tr-editorial-single__related-grid {
  grid-template-columns: minmax(0, 1fr);
  width: calc((100% - 2.5rem) / 3);
  margin-inline: auto;
}

@media (max-width: 1199px) {
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-3,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-4,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-5,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-6,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-7,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-8 {
    --wp--style--unstable-gallery-columns: 2;
  }

  /* Flex/layout galleries: cap 3+ columns at 2 tracks. Keep columns-1 untouched. */
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-3 > .wp-block-image,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-4 > .wp-block-image,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-5 > .wp-block-image,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-6 > .wp-block-image,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-7 > .wp-block-image,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-8 > .wp-block-image {
    width: calc(50% - var(--wp--style--gallery-gap-default, 1em) / 2) !important;
    flex-basis: calc(50% - var(--wp--style--gallery-gap-default, 1em) / 2) !important;
    max-width: calc(50% - var(--wp--style--gallery-gap-default, 1em) / 2) !important;
  }

  body.tr-editorial-single .tr-editorial-single__related--count-3 .tr-editorial-single__related-grid,
  body.tr-editorial-single .tr-editorial-single__related--count-2 .tr-editorial-single__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-inline: 0;
  }

  body.tr-editorial-single .tr-editorial-single__related--count-1 .tr-editorial-single__related-grid {
    width: calc((100% - 1.25rem) / 2);
    margin-inline: auto;
  }

  body.tr-editorial-single .tr-editorial-single__related--count-3 .tr-editorial-single__related-grid > .tr-editorial-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 575px) {
  body.tr-editorial-single article.tr-editorial-single {
    padding-top: 1.25rem;
  }

  body.tr-editorial-single .tr-editorial-single__title {
    font-size: 1.55rem;
  }

  body.tr-editorial-single .tr-editorial-single__lead {
    font-size: 1.05rem;
  }

  body.tr-editorial-single .tr-editorial-single__featured-img {
    max-height: 42vh;
  }

  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-2,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-3,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-4,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-5,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-6,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-7,
  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-8 {
    --wp--style--unstable-gallery-columns: 2;
  }

  body.tr-editorial-single .tr-editorial-single__content .wp-block-gallery.columns-1 {
    --wp--style--unstable-gallery-columns: 1;
  }

  body.tr-editorial-single .tr-editorial-single__related--count-3 .tr-editorial-single__related-grid,
  body.tr-editorial-single .tr-editorial-single__related--count-2 .tr-editorial-single__related-grid,
  body.tr-editorial-single .tr-editorial-single__related--count-1 .tr-editorial-single__related-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-inline: 0;
  }

  body.tr-editorial-single .tr-editorial-single__related--count-3 .tr-editorial-single__related-grid > .tr-editorial-item:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}
