@font-face {
  font-family: 'IonicMT';
  src: url('../fonts/IonicMT-Regular.WOFF');
  font-style: normal;
}

@font-face {
  font-family: 'IonicMT';
  src: url('assets/fonts/IonicMT-RegularItalic.WOFF');
  font-style: italic;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-size: normal;
  font-weight: normal;
}
html {
  font-size: 10px;
}
body {
  font-size: 2.4rem;
  line-height: 1.1;
  font-family: 'IonicMT', sans-serif;
}
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.5em;
  position: fixed;
  width: 100vw;
  z-index: 2;
}
h1, .about-trigger {
  flex: 1;
}
h1, .about-trigger, .about-close, p, dl, dt, dd {
  font-size: 2.7rem;
}
ul {
  list-style: none;
  position: relative;
  /* padding-bottom: 1em; */
}
li {
  margin-left: 11rem;
  text-indent: -4rem;
}
li, h2, .internet p {
  font-size: 1.7rem;
  line-height: 1.2;
}
/* .internet p:first-of-type {
  margin-top: -1em;
} */
.internet p:last-of-type {
  margin: 0;
  padding: 1em 0;
}
strong {
  /* position: absolute; */
  text-indent: -8rem;
  display: inline-block;
  /* margin-right: 80px; */
}
ul, h2 {
  /* width: 60%; */
}
dd {
  display: inline;
}
h2 {
  margin: 2em 0 1em;
  text-align: center;
}
.about {
  width: 65vw;
  position: fixed;
  top: 0;
  left: 101vw;
  background: #ddd;
  z-index: 5;
  height: 100vh;
  padding: 0.5em 0 0.5em 0.5em;
  overflow-y: auto;
  transition: left 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
}

.about a {
  color: black;
  text-decoration: underline;
}
.about p {
  max-width: 85%;
  margin-top: -1em;
}
.about.open {
  left: 35vw;
  box-shadow: -11px -1px 20px -1px rgba(0,0,0,0.25);
}
.about.open + .images-left {
  visibility: hidden;
}
.about-close {
  position: sticky;
  align-self: flex-end;
  top: 0;
  right: 0.5em;
}
.about-trigger {
  position: absolute;
  left: 35.5vw;
}
.about-trigger:hover,
.about-close:hover {
  cursor: pointer;
  text-decoration: underline;
}
.about-close:hover {
  text-decoration: none;
  color: #eee;
}
.cv {
  /* column-count: 2; */
  margin-top: 2em;
  margin-left: 4em;
  margin-bottom: 10em;
  max-width: 60%;
}
main {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
}
.images {
  position: fixed;
  z-index: 1;
  top: 0;
  width: 50%;
  height: 100vh;
  align-items: center;
  display: flex;
  justify-content: center;
}

.images.mobile {
  display: none;
}

figure {
  max-width: 100%;
}
figure:hover {
  cursor: pointer;
}
figcaption {
  font-size: 1.2rem;
  padding: 0.5em 0;
  text-align: left;
}

.left {
  left: 0;
  padding: 2em;
  padding-left: 3em;
  /* box-shadow: 16px 1px 34px 0px rgba(0,0,0,0.26); */
}

.right {
  right: 0;
  padding: 2em;
  padding-left: 0;
  /* box-shadow: -12px 1px 34px 0px rgba(0,0,0,0.26); */
}

.right figure {
  max-width: 90%;
}

.right img {
  max-width: 100%;
  display: block;
}

.left img {
  max-width: 100%;
  display: block;
}

@media(max-width: 670px) {
  .about {
    width: 100vw;
    left: 0;
  }
  .cv {
    margin-left: 0;
    max-width: 100%;
    padding: 0 1rem;
  }
  h1, .about-trigger, .about-close, p, dl, dt, dd {
    font-size: 2rem;
  }
  .about-trigger {
    left: auto;
    right: 1rem;
  }

  .images.mobile  {
    display: block;
    width: 100%;
  }

  .images:not(.mobile) {
    display: none;
  }
}
