body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 18px 36px;
  box-sizing: border-box;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

p {
  margin: 0 0 12px;
}

h2 {
  margin: 28px 0 12px;
  color: #222222;
  font-size: 22px;
  font-weight: 400;
}

strong {
  font-weight: 700;
}

.name {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
  text-align: center;
}

.profile {
  width: 100%;
  border-spacing: 0;
}

.profile-text {
  width: 68%;
  padding: 18px 22px 18px 0;
  vertical-align: middle;
}

.profile-photo-cell {
  width: 32%;
  padding: 18px 0 18px 18px;
  text-align: center;
  vertical-align: middle;
}

.profile-photo {
  width: 100%;
  max-width: 210px;
  border-radius: 50%;
}

.links {
  text-align: center;
}

.publication {
  width: 100%;
  margin: 16px 0;
  border-spacing: 0;
}

.thumb-cell {
  width: 32%;
  padding: 8px 22px 8px 0;
  vertical-align: top;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.thumb {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1.55;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border: 1px solid #eeeeee;
}

.paper-cell {
  width: 68%;
  padding: 6px 0;
  vertical-align: top;
}

.papertitle {
  color: #1772d0;
  font-weight: 700;
}

.venue {
  font-style: italic;
}

.note {
  color: #555555;
  font-size: 13px;
}

.list {
  width: 100%;
  border-spacing: 0 10px;
}

.list td {
  vertical-align: top;
}

.date {
  width: 95px;
  padding-right: 18px;
  color: #666666;
  white-space: nowrap;
}

.courses {
  margin-top: 2px;
  color: #555555;
  font-style: italic;
}

footer {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
  color: #666666;
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-sizing: border-box;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #222222;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  main {
    max-width: 100%;
    padding: 18px 18px 30px;
  }

  .profile,
  .profile tbody,
  .profile tr,
  .profile td,
  .publication,
  .publication tbody,
  .publication tr,
  .publication td,
  .list,
  .list tbody,
  .list tr,
  .list td {
    display: block;
    width: 100%;
  }

  .profile-text,
  .profile-photo-cell,
  .thumb-cell,
  .paper-cell,
  .date {
    box-sizing: border-box;
    padding: 0;
  }

  .profile-photo-cell {
    margin: 6px 0 20px;
  }

  .profile-photo {
    max-width: 170px;
  }

  .name {
    font-size: 28px;
  }

  h2 {
    margin-top: 24px;
  }

  .publication {
    margin: 18px 0 24px;
  }

  .thumb-cell {
    margin: 6px 0 10px;
  }

  .thumb {
    width: 100%;
    max-width: none;
    max-height: 260px;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .date {
    margin-top: 12px;
    color: #777777;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-image {
    max-width: 96vw;
    max-height: 84vh;
  }
}
