html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

main,
.site-main,
.content,
.entry-content,
.article-content,
.post-content {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

article {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

article img,
.entry-content img,
.article-content img,
.post-content img,
main img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

a {
  overflow-wrap: anywhere;
}

.mg-main-nav a,
.mg-mobile-menu-toggle {
  overflow-wrap: normal;
}

@media (max-width: 767px) {
  main,
  .site-main,
  .content,
  .entry-content,
  .article-content,
  .post-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  article {
    max-width: 100%;
  }
}
