/* Finnish Customers-page refinements: keep the shared layout intact while fixing locale-specific fit and interaction scale. */

html[lang="fi"] .customerCaseImageButton {
  gap: 0;
}

/* The case image should still be inspectable, but the modal should not overwhelm the viewport. */
html[lang="fi"] #caseImageModal .imageModalDialog {
  width: min(82vw, 980px);
  max-width: 980px;
  max-height: 82vh;
}

html[lang="fi"] #caseImageModal .imageModalDialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

/* Finnish is longer than English here. Give the core real internal breathing room rather than letting copy touch the circle edge. */
html[lang="fi"] .serviceOrbitCore {
  box-sizing: border-box;
  padding: 22px 18px;
}

html[lang="fi"] .serviceOrbitCore > span {
  display: block;
  width: 100%;
  max-width: none;
  font-size: 23px;
  line-height: 1.04;
  text-align: center;
  text-wrap: wrap;
  transform: translateX(-8px);
  text-indent: 8px;
}

html[lang="fi"] .serviceOrbitCore small {
  max-width: 20ch;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.065em;
  text-wrap: balance;
}

/* The orbit coordinates are already symmetric. Centre the variable-height Finnish copy blocks inside the fixed-height cards so the composition reads as aligned. */
@media (min-width: 761px) {
  html[lang="fi"] .serviceOrbitItem {
    align-content: center;
  }
}

@media (max-width: 760px) {
  html[lang="fi"] .serviceOrbitCore {
    padding: 18px 15px;
  }

  /* Keep the first line optically fixed while moving only the longer second line left. */
  html[lang="fi"] .serviceOrbitCore > span {
    font-size: 20px;
    transform: translateX(-7px);
    text-indent: 7px;
  }

  html[lang="fi"] .serviceOrbitCore small {
    font-size: 8px;
  }

  html[lang="fi"] #caseImageModal .imageModalDialog {
    width: min(92vw, 760px);
  }
}
