.flex-container {
    width:  35rem;
    max-width:  50%;
    margin: 0 auto;
}

body {
    font-family: Roboto, Tahoma, sans-serif;
    line-height: 1.45rem;
}

h1, h2 {
    text-align:  center;
}

header {
    text-align: center;
}

h1 {
    font-size: 1.6rem;
    line-height: 1.2em;
}

h2 {
    font-size: 1.45rem;
    font-weight: 500;
}

h3 {
    font-size:  1.3rem;
    margin: 1em 0 0.1em 0;
    font-weight: 500;
}

p {
	text-align: justify;
}

p.attention {
    text-align: center;
    font-style: italic;
}

h4 {
    font-weight: 500;
    font-style:  italic;
}

.project {
    display: block;
    position: relative;
}

.project-image {
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 15rem;
    max-width: 40%;
    right: 100%;
    align-items: flex-end;
}

.project-image > img {
    max-width:  100%;
    margin-bottom: 3rem;
    -webkit-box-shadow: 2px 2px 8px 1px rgba(0,0,0,0.17);
    -moz-box-shadow: 2px 2px 8px 1px rgba(0,0,0,0.17);
    box-shadow: 2px 2px 8px 1px rgba(0,0,0,0.17);
}


img.headshot {
    margin-top: 5rem;
}

.social-links img {
    width:  2rem;
}

.social-links {
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a {
  margin: 0.2rem;
  text-decoration: none;
}

span.no-break {
    display: inline-block;
}

section {
    margin-bottom: 2.3rem;
}


.project-info {
    margin: 1.5em 0 5em 0;
}

.clickable {
  cursor: pointer; 
}

.close-x {
  font-size: 25px;
  text-align: end;
  padding: 10px 10px 0;
}

#image-modal-wrapper { 
  position: fixed;
  background: rgba(0,0,0,0.25);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

#image-modal-flex {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#image-modal {
  flex-grow: 0;
  max-width: 90vh;
  background: #FFF;
  border-radius: 4px;
}

#image-modal-contents img {
  box-sizing: border-box;
  padding: 10px 25px 25px;
  max-width: 100%; 
}
