* {
  box-sizing: border-box;
}

body {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 44px;
  color: #111;
  background: #fff;
  font-family: Times, serif;
  font-size: 17px;
  line-height: 1.55;
}

.gallery-header > font:first-of-type,
.gallery-header h1 {
  display: block;
  margin: 0 0 30px;
  font-family: Times, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.gallery-header h1 font {
  font-family: Times, serif;
  font-size: inherit;
  font-weight: inherit;
}

.language-label {
  margin: 36px 0 12px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.12em;
}

.translation {
  width: 100%;
  max-width: none;
  margin-bottom: 44px;
  padding-top: 2px;
}

table {
  display: block;
  width: 100%;
  margin-top: 42px;
}

tbody {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

tr {
  display: contents;
}

td {
  display: block;
  min-width: 0;
  padding: 0;
  vertical-align: top;
  text-align: center;
}

td img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 7px;
}

a {
  color: #0000bb;
  text-underline-offset: 3px;
}

body > font:last-of-type {
  display: block;
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.5;
}

.gallery-footer {
  margin-top: 72px;
  font-family: Times, serif;
  font-size: 16px;
  line-height: 1.55;
}

.gallery-footer font {
  font-family: Times, serif;
  font-size: inherit;
}

.gallery-footer p {
  margin: 0 0 12px;
}

@media (max-width: 750px) {
  body {
    width: calc(100% - 32px);
    padding-top: 28px;
    font-size: 16px;
  }

  .gallery-header > font:first-of-type,
  .gallery-header h1 {
    margin-bottom: 26px;
    font-size: 32px;
  }

  tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .translation {
    margin-bottom: 36px;
  }
}
