.rbcc-ew-bento-grid {
  background: #fff;
  padding: 128px 0;
}

.rbcc-ew-bento-grid .rbcc-ew-container {
  width: calc(100% - 96px);
  max-width: none;
}

.rbcc-ew-bento-grid .rbcc-ew-section-head {
  max-width: none;
  margin: 0 auto 80px;
  text-align: center;
}

.rbcc-ew-bento-grid .rbcc-ew-title {
  color: #022c22;
  font-family: "Libertinus Serif", Georgia, serif;
  font-size: 48px;
  font-style: italic;
  line-height: 48px;
}

.rbcc-ew-bento-grid .rbcc-ew-description {
  max-width: 672px;
  margin: 16px auto 0;
  color: #414846;
  font-size: 16px;
  line-height: 24px;
}

.rbcc-ew-bento-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 500px 400px;
  gap: 32px;
}

.rbcc-ew-bento-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #022c22;
  isolation: isolate;
}

.rbcc-ew-bento-card.size-large { grid-column: span 2; }
.rbcc-ew-bento-card.size-medium { grid-column: span 1; }
.rbcc-ew-bento-card.size-tall { grid-column: span 1; }
.rbcc-ew-bento-card:nth-child(3) { grid-column: 1; }
.rbcc-ew-bento-card:nth-child(4) { grid-column: 2 / span 2; }

.rbcc-ew-bento-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rbcc-ew-bento-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 44, 34, .9), rgba(2, 44, 34, 0));
}

.rbcc-ew-bento-card__body {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #fff;
}

.rbcc-ew-bento-card__label {
  width: max-content;
  margin: 0 0 24px;
  padding: 4px 12px;
  border-radius: 2px;
  background: #fff;
  color: #16342d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 15px;
  text-transform: uppercase;
}

.rbcc-ew-bento-card__title {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Libertinus Serif", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 40px;
}

.rbcc-ew-bento-card__text {
  max-width: 30rem;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 24px;
}

.rbcc-ew-bento-card .rbcc-ew-text-link {
  width: max-content;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 16px;
  text-transform: uppercase;
}

.rbcc-ew-bento-card:focus-within { outline: 2px solid #466270; outline-offset: 4px; }

@media (min-width: 600px) and (max-width: 1023px) {
  .rbcc-ew-bento-grid { height: 518px; padding: 27px 0 29px; }
  .rbcc-ew-bento-grid .rbcc-ew-container { width: calc(100% - 98px); }
  .rbcc-ew-bento-grid .rbcc-ew-section-head { margin-bottom: 16px; }
  .rbcc-ew-bento-grid .rbcc-ew-title { font-size: 27px; line-height: 27px; }
  .rbcc-ew-bento-grid .rbcc-ew-description { max-width: 428px; margin-top: 4px; font-size: 8.5px; line-height: 11.48px; }
  .rbcc-ew-bento-grid__grid { grid-template-columns: 195px 190px 205px; grid-template-rows: 205px 178px; gap: 9px; }
  .rbcc-ew-bento-card { border-radius: 4px; }
  .rbcc-ew-bento-card:nth-child(1) { grid-column: 1 / span 2; }
  .rbcc-ew-bento-card:nth-child(2) { grid-column: 3; }
  .rbcc-ew-bento-card:nth-child(3) { grid-column: 1; }
  .rbcc-ew-bento-card:nth-child(4) { grid-column: 2 / span 2; }
  .rbcc-ew-bento-card__body { padding: 14px; }
  .rbcc-ew-bento-card__label { margin-bottom: 5px; padding: 5px 6px; font-size: 5.5px; line-height: 6px; }
  .rbcc-ew-bento-card__title { margin-bottom: 7px; font-size: 16px; line-height: 16px; }
  .rbcc-ew-bento-card__text { margin-bottom: 7px; font-size: 7.5px; line-height: 9.38px; }
  .rbcc-ew-bento-card .rbcc-ew-text-link { padding: 0; border: 0; font-size: 6px; line-height: 6px; }
}

/* Keep the tablet composition inside the viewport before the canonical
 * 724px fixed card geometry has enough room to fit. */
@media (min-width: 600px) and (max-width: 710px) {
  .rbcc-ew-bento-grid__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .rbcc-ew-bento-grid { height: 711px; padding: 15px 0 10px; }
  .rbcc-ew-bento-grid .rbcc-ew-container { width: calc(100% - 20px); }
  .rbcc-ew-bento-grid .rbcc-ew-section-head { margin-bottom: 12px; }
  .rbcc-ew-bento-grid .rbcc-ew-title { font-size: 22px; line-height: 22px; }
  .rbcc-ew-bento-grid .rbcc-ew-description { max-width: 323px; margin-top: 10px; font-size: 7.2px; line-height: 9.72px; }
  .rbcc-ew-bento-grid__grid { display: flex; flex-direction: column; gap: 8px; }
  .rbcc-ew-bento-card,
  .rbcc-ew-bento-card.size-large,
  .rbcc-ew-bento-card.size-medium,
  .rbcc-ew-bento-card.size-tall { flex: 0 0 auto; width: 100%; }
  .rbcc-ew-bento-card:nth-child(1) { height: 168px; }
  .rbcc-ew-bento-card:nth-child(2) { height: 173px; }
  .rbcc-ew-bento-card:nth-child(3) { height: 128px; }
  .rbcc-ew-bento-card:nth-child(4) { height: 129px; }
  .rbcc-ew-bento-card__body { padding: 11px; }
  .rbcc-ew-bento-card__label { margin-bottom: 5px; padding: 4px 6px; font-size: 5px; line-height: 5px; }
  .rbcc-ew-bento-card__title { margin-bottom: 6px; font-size: 17px; line-height: 17px; }
  .rbcc-ew-bento-card__text { margin-bottom: 6px; font-size: 7px; line-height: 8.96px; }
  .rbcc-ew-bento-card .rbcc-ew-text-link { padding: 0; border: 0; font-size: 5.7px; line-height: 5.7px; }
}

@media (prefers-reduced-motion: reduce) {
  .rbcc-ew-bento-card *, .rbcc-ew-bento-card::before { transition: none; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .rbcc-ew-bento-grid { height: auto; min-height: 0; padding: 27px 0 29px; }
  .rbcc-ew-bento-grid .rbcc-ew-section-head { margin-bottom: 16px; }
  .rbcc-ew-bento-grid .rbcc-ew-title { font-size: 27px; line-height: 1; }
  .rbcc-ew-bento-grid .rbcc-ew-description { font-size: 11px; line-height: 1.4; }
  .rbcc-ew-bento-card__label { font-size: 10px; line-height: 1.25; }
  .rbcc-ew-bento-card__title { font-size: 18px; line-height: 1.1; }
  .rbcc-ew-bento-card__text { font-size: 11px; line-height: 1.4; }
  .rbcc-ew-bento-card .rbcc-ew-text-link { font-size: 10px; line-height: 1.25; }
}

@media (max-width: 599px) {
  .rbcc-ew-bento-grid { height: auto; min-height: 0; padding: 15px 0 10px; }
  .rbcc-ew-bento-grid .rbcc-ew-title { font-size: 22px; line-height: 1; }
  .rbcc-ew-bento-grid .rbcc-ew-description { font-size: 10.5px; line-height: 1.4; }
  .rbcc-ew-bento-card { min-height: 128px; height: auto !important; }
  .rbcc-ew-bento-card:nth-child(1), .rbcc-ew-bento-card:nth-child(2) { min-height: 168px; }
  .rbcc-ew-bento-card__label { font-size: 10px; line-height: 1.25; }
  .rbcc-ew-bento-card__title { font-size: 17px; line-height: 1.1; }
  .rbcc-ew-bento-card__text { font-size: 10.5px; line-height: 1.4; }
  .rbcc-ew-bento-card .rbcc-ew-text-link { font-size: 10px; line-height: 1.25; }
}
