.rc-main-grid {
  /* background-color: lime; */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  @media (width <= 1023px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (width <= 767px) {
    grid-template-columns: 100%;
    row-gap: 20px;
    column-gap: unset;
  }
}

/* Banner Top */
#rc-dynamic-slot-top {
  grid-column: 1 / span 4;
  @media (width <= 1023px) {
    grid-column: 1 / span 2;
  }
  @media (width <= 767px) {
    grid-row: 1;
  }
}

/* Posts */
.rc-post-item {
  background-color: #222;
  .rc-post-content {
    padding: 16px 20px;
  }
}

.rc-post-item .rc-post-content {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  padding: 16px 20px;
}

.rc-post-item .rc-post-title {
  margin-block: 0;
}

.rc-post-item .rc-post-excerpt,
.rc-post-item .rc-post-title a {
  color: #fff;
}

.rc-post-item .rc-post-title a:hover {
  color: var(--e-global-color-accent);
}

.rc-post-item:not(.post-item-1) .rc-post-title {
  font-size: 1.125rem;
  line-height: 1.25;
}

.rc-post-item:not(.post-item-1) .rc-post-excerpt {
  display: none;
}

.rc-post-item .rc-post-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.rc-post-item.post-item-1 {
  grid-column: 1 / span 4;
}

.rc-post-item.post-item-2,
.rc-post-item.post-item-4,
.rc-post-item.post-item-6,
.rc-grid-250-600 .rc-post-item.post-item-8 {
  grid-column: 1 / span 2;
}

.rc-post-item.post-item-3,
.rc-post-item.post-item-5,
.rc-post-item.post-item-7,
.rc-grid-250-600 .rc-post-item.post-item-9 {
  grid-column: 3 / span 2;
}

.rc-grid-top-only .rc-post-item.post-item-4,
.rc-grid-clean .rc-post-item.post-item-4,
.rc-grid-top-250 .rc-post-item.post-item-6,
.rc-grid-250-only .rc-post-item.post-item-6 {
  grid-column: 5 / span 2;
}

.rc-grid-top-only .rc-post-item.post-item-5,
.rc-grid-clean .rc-post-item.post-item-5,
.rc-grid-top-600 .rc-post-item.post-item-6,
.rc-grid-top-250 .rc-post-item.post-item-7,
.rc-grid-250-only .rc-post-item.post-item-7,
.rc-post-item.post-item-8,
.rc-post-item.post-item-10 {
  grid-column: 1 / span 3;
}

.rc-grid-top-only .rc-post-item.post-item-6,
.rc-grid-clean .rc-post-item.post-item-6,
.rc-grid-top-600 .rc-post-item.post-item-7,
.rc-grid-top-250 .rc-post-item.post-item-8,
.rc-grid-250-only .rc-post-item.post-item-8,
.rc-post-item.post-item-9,
.rc-post-item.post-item-11 {
  grid-column: 4 / span 3;
}

@media (width <= 1023px) {
  .rc-post-item.post-item-1 {
    grid-column: 1 / span 2;
  }
  .rc-post-item:not(.post-item-1) {
    grid-column: 1;
  }
  .rc-post-item[class*='post-item-']:not(.post-item-1):nth-child(even) {
    grid-column: 2;
  }

  .rc-grid-top-250 {
    .rc-post-item {
      &.post-item-6 {
        grid-column: 1;
      }

      &.post-item-8 {
        grid-column: 1 / span 2;
      }
    }
  }

  .rc-grid-top-600 {
    .rc-post-item {
      &.post-item-6 {
        grid-column: 1;
      }
    }
  }

  .rc-grid-top-only {
    .rc-post-item {
      &.post-item-4 {
        grid-column: 1;
      }
      &.post-item-6 {
        grid-column: 1 / span 2;
      }
    }
  }

  .rc-grid-250-600,
  .rc-grid-250-only,
  .rc-grid-600-only,
  .rc-grid-clean {
    .rc-post-item[class*='post-item-']:nth-child(even) {
      grid-column: 1;
    }
    .rc-post-item[class*='post-item-']:not(.post-item-1):nth-child(odd) {
      grid-column: 2;
    }
  }
  .rc-grid-250-only .rc-post-item.post-item-8 {
    grid-column: 1 / span 2 !important;
  }
  .rc-grid-clean .post-item-6 {
    grid-column: 1 / span 2 !important;
  }
}

@media (width <= 767px) {
  .rc-post-item,
  .rc-post-item[class*='post-item-']:nth-child(even),
  .rc-post-item[class*='post-item-']:nth-child(odd) {
    grid-column: 1 !important;
  }
}

/* Sidebar */
.rc-sidebar {
  grid-column: 5 / span 2;
  grid-row: 1 / span 5;
  display: flex;
  flex-direction: column;
  row-gap: 20px;

  @media (width <= 1023px) and (width >= 768px) {
    display: none;
  }

  @media (width <= 767px) {
    display: flex;
    grid-column: 1;
    grid-row: auto !important;

    @media (orientation: landscape) {
      display: none;
    }
  }
}

.rc-grid-top-250 .rc-sidebar {
  grid-row: 1 / span 3;
}

.rc-grid-top-600 .rc-sidebar,
.rc-grid-600-only .rc-sidebar {
  grid-row: 1 / span 4;
}

.rc-grid-top-only .rc-sidebar,
.rc-grid-250-only .rc-sidebar {
  grid-row: 1 / span 2;
}
.rc-grid-clean .rc-sidebar {
  grid-row: 1;
}
.rc-magazine-cover-widget {
  .rollingstone-cover-widget {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
  }
  .edition-title {
    margin-block: 0;
    line-height: 1;
    a {
      line-height: 1;
      font-size: 1.25rem;
      display: block;
    }
  }
}

.rc-magazine-cover-widget .rc-magazine-btn {
  color: #fff;
  background-color: var(--e-global-color-accent);
  display: block;
  text-align: center;
  padding: 12px 24px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 3px;
  &:hover {
    background-color: #970c23;
  }
}
#rc-dynamic-slot-sidebar-primary,
#rc-dynamic-slot-sidebar-secondary {
  img,
  picture {
    width: 100%;
    display: block;
  }
}
