.d2b-real-work {
  padding: clamp(4.5rem, 8vw, 7rem) 1.5rem;
  background: #f2f5fb;
  color: #202d4f;
}

.d2b-real-work__inner { max-width: 1180px; margin: 0 auto; }
.d2b-real-work__eyebrow {
  margin: 0 0 .7rem;
  color: #5266a1;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.d2b-real-work h2 {
  max-width: 720px;
  margin: 0;
  color: #202d4f;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}
.d2b-real-work__intro {
  max-width: 720px;
  margin: 1rem 0 2.5rem;
  color: #52617d;
  font-size: 1.08rem;
  line-height: 1.6;
}
.d2b-real-work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.d2b-real-work__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e0ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(29, 46, 88, .055);
}
.d2b-real-work__image {
  display: block;
  overflow: hidden;
  background: #e5ebf5;
}
.d2b-real-work__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform .25s ease;
}
.d2b-real-work__image:hover > img,
.d2b-real-work__image:focus-visible > img,
.d2b-real-work__image:hover .d2b-real-work__desktop,
.d2b-real-work__image:focus-visible .d2b-real-work__desktop { transform: scale(1.025); }
.d2b-real-work__body { display: flex; flex: 1; flex-direction: column; padding: 1.55rem 1.65rem 1.7rem; }
.d2b-real-work__body h3 { margin: 0 0 .7rem; font-size: 1.55rem; line-height: 1.25; }
.d2b-real-work__body h3 a { color: #202d4f; text-decoration: none; }
.d2b-real-work__body h3 a:hover,
.d2b-real-work__body h3 a:focus-visible { color: #435b9c; text-decoration: underline; }
.d2b-real-work__body .d2b-real-work__step {
  margin: 0 0 1rem;
  padding-left: .95rem;
  border-left: 2px solid #dce3f1;
  color: #45536e;
  font-size: .98rem;
  line-height: 1.55;
}
.d2b-real-work__step span {
  display: block;
  margin: 0 0 .22rem;
  color: #5266a1;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.d2b-real-work__body .d2b-real-work__step--result { border-left-color: #e5aa24; }
.d2b-real-work__step--result span { color: #76551b; }
.d2b-real-work__media-pair { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.d2b-real-work__media-pair .d2b-real-work__desktop {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}
.d2b-real-work__media-pair .d2b-real-work__mobile {
  position: absolute;
  top: 7%;
  right: 5%;
  width: auto;
  height: 86%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 27, 57, .28);
  transition: none;
}
.d2b-real-work__link { margin-top: auto; padding-top: .3rem; color: #435b9c; font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.d2b-real-work__link:hover,
.d2b-real-work__link:focus-visible { color: #202d4f; }

@media (max-width: 720px) {
  .d2b-real-work { padding: 4rem 1rem; }
  .d2b-real-work__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .d2b-real-work__body { padding: 1.3rem; }
  .d2b-real-work__intro { margin-bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .d2b-real-work__image img { transition: none; }
  .d2b-real-work__image:hover > img,
  .d2b-real-work__image:focus-visible > img,
  .d2b-real-work__image:hover .d2b-real-work__desktop,
  .d2b-real-work__image:focus-visible .d2b-real-work__desktop { transform: none; }
}

/* The fifth marketing example closes the two-column gallery as a centred feature. */
body.page-id-2755 .d2b-real-work__card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  justify-self: center;
}
