/* Main homepage layout */

.home-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 60px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Left sidebar */

.home-sidebar {
  text-align: left;
}

.home-sidebar h1 {
  font-size: 1.6rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.home-sidebar p {
  line-height: 1.5;
}

.profile-photo {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Right-hand content */

.home-main {
  max-width: 720px;
}

.home-main h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.home-main p {
  line-height: 1.6;
}

/* Mobile layout */

@media (max-width: 768px) {

  .home-container {
    grid-template-columns: 1fr;
    row-gap: 35px;
  }

  .home-sidebar {
    text-align: center;
  }

  .profile-photo {
    margin-left: auto;
    margin-right: auto;
  }

  .home-main {
    max-width: 100%;
  }

}

.social-links {
  font-size: 1.35rem;
  margin-top: 15px;
}

.social-links a {
  margin-right: 12px;
  text-decoration: none;
}

.social-links a:hover {
  opacity: 0.7;
}