/* Preserve the original cards; change only their desktop arrangement. */
@media (min-width: 901px) {
  .m2-service-editorial .m2-service-editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto repeat(2, minmax(0, 1fr));
  }
  .m2-service-editorial .m2-service-overview-card {
    grid-column: span 2;
    grid-row: 2;
  }
  .m2-service-editorial .m2-editorial-service-3 {
    grid-column: 2 / span 2;
    grid-row: 3;
  }
  .m2-service-editorial .m2-editorial-service-4 {
    grid-column: 4 / span 2;
    grid-row: 3;
  }
}

/* Size each card from its image and copy rather than the viewport height. */
.m2-service-overview-section.m2-service-editorial {
  display: block;
  min-height: 0;
  padding-block: 40px;
}
.m2-service-editorial .m2-service-editorial-intro { padding-bottom: 16px; }
.m2-service-editorial .m2-service-overview-head p { font-size: 18px; font-weight: 400; }
.m2-service-editorial .m2-service-overview-card {
  min-height: 0;
}
.m2-service-editorial .m2-service-overview-card .m2-service-overview-image {
  height: auto;
  aspect-ratio: 16 / 9;
}
.m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
  padding: 24px 24px 14px;
}
.m2-service-editorial .m2-service-overview-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.m2-service-editorial .m2-service-overview-card p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 8px;
}
@media (max-width: 1100px) {
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
    padding-inline: 18px;
  }
}
.m2-service-editorial .m2-service-overview-card .m2-service-overview-more {
  opacity: 1;
  transform: none;
}

/* Keep both rows within a desktop viewport without cropping the photographs. */
@media (min-width: 901px) {
  .m2-service-overview-section.m2-service-editorial {
    padding-block: 20px;
  }
  .m2-service-overview-section.m2-service-editorial > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: min(1440px, calc((100svh - 480px) * 2.4));
    padding-inline: 16px;
    margin-inline: auto;
  }
  .m2-service-editorial .m2-service-editorial-grid { gap: 16px 20px; }
  .m2-service-editorial .m2-service-editorial-intro { padding-bottom: 0; }
  .m2-service-editorial .m2-service-overview-head h2 {
    font-size: 34px;
    margin-bottom: 8px;
  }
  .m2-service-editorial .m2-service-overview-head p { font-size: 18px; }
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
    padding: 24px 18px 12px;
  }
  .m2-service-editorial .m2-service-overview-card h3 { font-size: 24px; }
  .m2-service-editorial .m2-service-overview-card p { font-size: 18px; line-height: 1.8; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .m2-service-overview-section.m2-service-editorial { padding-block: 12px; }
  .m2-service-overview-section.m2-service-editorial > .container { max-width: 900px; }
  .m2-service-editorial .m2-service-overview-head h2 { font-size: 30px; }
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-body { padding: 22px 14px 10px; }
  .m2-service-editorial .m2-service-overview-card h3 { font-size: 22px; margin-bottom: 6px; }
  .m2-service-editorial .m2-service-overview-card p { margin-bottom: 6px; }
}
@media (min-width: 901px) and (max-height: 800px) {
  :lang(en) .m2-service-editorial .m2-service-overview-card h3,
  :lang(ja) .m2-service-editorial .m2-service-overview-card h3 { font-size: 20px; }
  :lang(en) .m2-service-editorial .m2-service-overview-card p,
  :lang(ja) .m2-service-editorial .m2-service-overview-card p { font-size: 18px; line-height: 1.7; }
}

/* Use the available width while keeping the copy panel compact. */
@media (min-width: 901px) {
  .m2-service-overview-section.m2-service-editorial > .container {
    max-width: min(1500px, calc((100svh - 480px) * 3.18));
  }
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: center;
    gap: 8px 10px;
    padding: 24px 18px 14px;
  }
  .m2-service-editorial .m2-service-overview-card h3 { grid-column: 1; grid-row: 1; margin: 0; }
  .m2-service-editorial .m2-service-overview-card p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-more {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
    font-size: 16px;
  }
}
@media (min-width: 901px) and (max-height: 800px) {
  .m2-service-overview-section.m2-service-editorial > .container { max-width: 980px; }
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
    padding: 22px 14px 12px;
    gap: 6px 8px;
  }
}

/* Match the production card finish while preserving the approved geometry. */
.m2-service-editorial .m2-service-overview-card {
  background: #edf2f7;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.m2-service-editorial .m2-service-overview-card .m2-service-overview-image,
.m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
  border-radius: 0;
}
.m2-service-editorial .m2-service-overview-card .m2-service-overview-body {
  background: #edf2f7;
}
.m2-service-editorial .m2-service-symbol { display: none; }
.m2-service-editorial .m2-service-overview-card .m2-service-overview-more {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 250ms ease, transform 350ms cubic-bezier(.16, 1, .3, 1);
}
.m2-service-editorial .m2-service-overview-card:hover,
.m2-service-editorial .m2-service-overview-card:focus-visible {
  background: #edf2f7;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgb(25 61 98 / 10%);
}
.m2-service-editorial .m2-service-overview-card:hover .m2-service-overview-more,
.m2-service-editorial .m2-service-overview-card:focus-visible .m2-service-overview-more {
  opacity: 1;
  transform: none;
}
@media (hover: none), (pointer: coarse) {
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-more {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m2-service-editorial .m2-service-overview-card:hover,
  .m2-service-editorial .m2-service-overview-card:focus-visible { transform: none; }
  .m2-service-editorial .m2-service-overview-card .m2-service-overview-more { transition: none; transform: none; }
}

