@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic");

html,
body,
div,
span,
h1,
h2,
h3,
p,
a,
img,
strong,
section,
article,
header,
footer,
figure,
figcaption,
button {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

section,
article,
header,
footer,
figure,
figcaption {
  display: block;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background: #fff;
  color: #444;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 12pt;
  font-weight: 400;
  line-height: 1.75em;
  -webkit-text-size-adjust: none;
}

body.gallery-open {
  overflow: hidden;
}

a {
  border-bottom: dotted 1px;
  color: #bf4949;
  text-decoration: none;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

a:hover {
  border-bottom-color: transparent;
  color: #bf4949 !important;
  text-decoration: none;
}

strong {
  color: #000;
  font-weight: 400;
}

p {
  margin: 0 0 1em 0;
}

h1,
h2,
h3 {
  color: #000;
  font-weight: 400;
  line-height: 1em;
  margin: 0 0 1em 0;
}

h1 {
  font-size: 2em;
  line-height: 1.5em;
}

h2 {
  font-size: 1.5em;
  line-height: 1.5em;
}

h3 {
  font-size: 1.25em;
  line-height: 1.5em;
}

.nowrap {
  white-space: nowrap;
}

.row {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  align-items: stretch;
  margin-top: 0;
  margin-left: -2.5em;
}

.row > * {
  box-sizing: border-box;
  padding: 0 0 0 2.5em;
}

.row.gtr-50 {
  margin-left: -1.25em;
}

.row.gtr-50 > * {
  padding-left: 1.25em;
}

.row.gtr-uniform {
  margin-top: -2.5em;
}

.row.gtr-uniform > * {
  padding-top: 2.5em;
}

.row.gtr-50.gtr-uniform {
  margin-top: -1.25em;
}

.row.gtr-50.gtr-uniform > * {
  padding-top: 1.25em;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.3333333333%;
}

.col-9 {
  width: 75%;
}

.image {
  border-radius: 0.35em;
  border: 0;
  display: inline-block;
  position: relative;
}

.image:before {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0.35em;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.5;
  position: absolute;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.image img {
  border-radius: 0.35em;
  display: block;
}

.image.fit {
  display: block;
  width: 100%;
}

.image.fit img {
  width: 100%;
}

.image.avatar {
  border-radius: 100%;
}

.image.avatar:before {
  display: none;
}

.image.avatar img {
  border-radius: 100%;
  height: 6.25em;
  object-fit: cover;
  object-position: center center;
  width: 6.25em;
}

.image.thumb {
  text-align: center;
}

.image.thumb:not(.album-card):after {
  color: #fff;
  content: attr(data-title);
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  left: 50%;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: calc(100% - 2em);
  opacity: 0;
  position: absolute;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.22s ease-in-out, transform 0.22s ease-in-out;
  width: max-content;
  z-index: 2;
}

.image.thumb:not(.album-card):hover:after,
.image.thumb:not(.album-card):focus-visible:after {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-0.1em);
}

.actions {
  display: flex;
  gap: 0.75em;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.button {
  appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  background-color: transparent;
  border-radius: 0.35em;
  border: solid 3px #efefef;
  color: #000 !important;
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  height: calc(2.75em + 6px);
  line-height: 2.75em;
  min-width: 10em;
  padding: 0 1.5em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  border-color: #bf4949;
  color: #bf4949 !important;
}

.button.primary {
  background-color: #bf4949;
  border-color: #bf4949;
  color: #fff !important;
}

.button.primary:hover {
  background-color: #c65c5c;
  border-color: #c65c5c;
}

.button i {
  margin-right: 0.55em;
}

.button.small {
  font-size: 0.8em;
}

header.major h2 {
  margin: 0 0 0.8em 0;
}

header p {
  color: #444;
  position: relative;
}

#header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  background: #202626;
  color: #6b7899;
  height: 100%;
  left: 0;
  padding: 6em 4em 9em 4em;
  position: fixed;
  text-align: right;
  top: 0;
  width: 30%;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}

#header:before {
  background-image: url("assets/sidebar-bg.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  filter: blur(7px);
  inset: 0;
  position: absolute;
  transform: scale(1.08);
  transform-origin: center center;
  z-index: -2;
}

#header:after {
  background: linear-gradient(rgba(8, 12, 14, 0.24), rgba(8, 12, 14, 0.5));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

#header > * {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

#header > .inner {
  flex-grow: 1;
  margin: 0 0 2em 0;
}

#header strong {
  color: #dfdfdf;
  font-weight: bolder;
}

#header h1 {
  color: #dfdfdf;
  font-size: 1.8em;
  text-shadow: 0 0 50px #000;
}

#header p {
  color: #dfdfdf;
  font-size: 0.98em;
  line-height: 1.6em;
  margin: 0 0 0.9em 0;
  text-shadow: 0 0 50px #000;
}

#header a {
  color: #fff;
}

#header .button {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

#header .button.primary {
  border-color: #bf4949;
}

@media screen and (min-width: 981px) {
  #header p {
    max-width: 450px;
    display: inline-block;
  }
}

#main {
  margin-left: 30%;
  max-width: 54em;
  padding: 4em;
  width: calc(100% - 30%);
}

#main > section {
  border-top: solid 2px #efefef;
  margin: 2em 0 0 0;
  padding: 2em 0 0 0;
}

#main > section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.research-item {
  margin: 0 0 2em 0;
}

.research-item .image {
  margin: 0;
  overflow-y: hidden;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: #6b7899 solid 1px;
  padding: 2px;
  box-shadow: 4px 4px 8px #6b7899;
}

.research-item .image:before {
  background: none;
}

.research-item .image img {
  height: 100%;
  object-fit: cover;
}

.research-item .image.research-image-contain {
  background: #fff;
}

.research-item .image.research-image-contain img {
  object-fit: contain;
}

.research-item .description h3 {
  font-size: 1em;
  margin: 0 0 0.2em 0;
}

.research-item .description p {
  font-size: 0.8em;
  line-height: 1.5em;
  margin: 0;
}

.research-item .description .paper-links {
  margin-top: 0.5em;
}

.research-item .description .research-summary {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: 0.5em;
  overflow: hidden;
}

.paper-links i {
  margin-right: 0.35em;
}

.work-item {
  margin: 0 0 1.15em 0;
}

.work-item .row {
  align-items: flex-start;
}

.work-item p {
  font-size: 0.9em;
  line-height: 1.6em;
  margin: 0;
}

.work-item .col {
  box-sizing: border-box;
  padding-left: 2.5em;
}

.work-title {
  width: 38%;
}

.work-time {
  width: 24%;
}

.work-team {
  width: 38%;
}

.work-time p,
.work-team p {
  color: #777;
}

.photo-album-grid {
  display: grid;
  gap: 0.75em;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.photo-album {
  min-width: 0;
}

#photography .album-card {
  background: #111;
  box-shadow: 4px 4px 8px #6b7899;
  display: block;
  overflow: hidden;
  position: relative;
}

#photography .album-card img {
  aspect-ratio: 5 / 4;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 0.22s ease-in-out, transform 0.22s ease-in-out;
  width: 100%;
}

.album-overlay {
  align-items: center;
  background: rgba(13, 16, 18, 0.58);
  color: #fff;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 1em;
  position: absolute;
  text-align: center;
  transition: opacity 0.22s ease-in-out;
}

.album-title {
  border-bottom: solid 1px rgba(255, 255, 255, 0.72);
  border-top: solid 1px rgba(255, 255, 255, 0.72);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: 100%;
  padding: 0.45em 0.2em;
  text-transform: none;
}

#photography .album-card:hover img,
#photography .album-card:focus-visible img {
  filter: saturate(0.9) brightness(0.72);
  transform: scale(1.06);
}

#photography .album-card:hover .album-overlay,
#photography .album-card:focus-visible .album-overlay {
  opacity: 1;
}

.gallery-modal {
  align-items: center;
  background: rgba(15, 17, 18, 0.92);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 3em 5.5em;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease-in-out;
  visibility: hidden;
  z-index: 10000;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.gallery-stage {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  max-height: calc(100vh - 5em);
  max-width: min(86vw, 1100px);
  min-height: 0;
  width: 100%;
}

.gallery-frame {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 1em;
  min-height: 0;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.gallery-frame img {
  background: #111;
  border-radius: 0.35em;
  box-shadow: 0 1em 3em rgba(0, 0, 0, 0.5);
  display: block;
  max-height: calc(100vh - 13em);
  max-width: 100%;
  object-fit: contain;
}

.gallery-frame figcaption {
  color: #dfdfdf;
  display: flex;
  font-size: 0.9em;
  justify-content: space-between;
  line-height: 1.4em;
  max-width: 100%;
  text-align: left;
  width: min(86vw, 1100px);
}

.gallery-frame figcaption span:last-child {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 1em;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5em;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.15em 0 0.45em;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
  scrollbar-width: thin;
}

.gallery-thumbnail {
  appearance: none;
  background: transparent;
  border: solid 2px transparent;
  border-radius: 0.35em;
  cursor: pointer;
  flex: 0 0 auto;
  height: 3.7em;
  opacity: 0.58;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease-in-out, opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  width: 5em;
}

.gallery-thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-visible,
.gallery-thumbnail.is-active {
  border-color: #fff;
  opacity: 1;
  transform: translateY(-0.08em);
}

.gallery-close,
.gallery-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: solid 1px rgba(255, 255, 255, 0.32);
  border-radius: 100%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 2.8em;
  justify-content: center;
  position: fixed;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  width: 2.8em;
}

.gallery-close:hover,
.gallery-nav:hover {
  background: #bf4949;
  border-color: #bf4949;
}

.gallery-close {
  right: 1.5em;
  top: 1.5em;
}

.gallery-prev {
  left: 1.5em;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-next {
  right: 1.5em;
  top: 50%;
  transform: translateY(-50%);
}

#footer {
  display: block;
  background: transparent;
  bottom: 0;
  color: #dfdfdf;
  left: 0;
  padding: 0 4em 3em 4em;
  position: fixed;
  text-align: right;
  top: auto;
  width: 30%;
  pointer-events: none;
  z-index: 2;
}

#footer .inner {
  width: 100%;
  pointer-events: auto;
}

#footer .icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7em;
  list-style: none;
  margin: 1em 0 0 0;
  padding: 0;
}

#footer .icons li {
  display: block;
}

#footer .icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15em;
  height: 2.15em;
  background: rgba(255, 255, 255, 0.08);
  border: solid 1px rgba(255, 255, 255, 0.32);
  border-radius: 100%;
  color: #dfdfdf;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#footer .icons a:hover {
  background: #bf4949;
  border-color: #bf4949;
  color: #fff !important;
}

#footer .icons i {
  font-size: 1em;
  line-height: 1;
}

#footer .icons .label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

#footer .copyright {
  color: #dfdfdf;
  font-size: 0.8em;
  list-style: none;
  margin: 1em 0 0 0;
  padding: 0;
}

#footer .copyright li {
  border-left: solid 1px rgba(255, 255, 255, 0.25);
  display: inline-block;
  line-height: 1em;
  margin-left: 0.75em;
  padding-left: 0.75em;
}

#footer .copyright li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}

@media screen and (max-width: 1280px) {
  #header {
    padding: 2.5em 2.75em 6.75em 2.75em;
    width: 30%;
  }

  .image.avatar img {
    height: 5.35em;
    width: 5.35em;
  }

  #header h1 {
    font-size: 1.42em;
    margin-bottom: 0.65em;
  }

  #header p {
    font-size: 0.86em;
    line-height: 1.42em;
    margin-bottom: 0.65em;
  }

  #header > .inner {
    margin-bottom: 0;
  }

  #header .button {
    border-width: 2px;
    height: calc(2.35em + 4px);
    line-height: 2.35em;
    min-width: 8.5em;
    padding: 0 1.1em;
  }

  #main {
    margin-left: 30%;
    max-width: none;
    width: calc(100% - 30%);
  }

  #footer {
    padding: 0 2.75em 1.15em 2.75em;
  }

  #footer .icons {
    gap: 0.55em;
    margin-top: 0.6em;
  }

  #footer .icons a {
    height: 2em;
    width: 2em;
  }

  #footer .copyright {
    font-size: 0.72em;
    margin-top: 0.65em;
  }
}

@media screen and (min-width: 981px) and (max-height: 850px) {
  #header {
    padding-bottom: 6.75em;
    padding-top: 2.5em;
  }

  .image.avatar img {
    height: 5.35em;
    width: 5.35em;
  }

  #header h1 {
    font-size: 1.42em;
    margin-bottom: 0.65em;
  }

  #header p {
    font-size: 0.86em;
    line-height: 1.42em;
    margin-bottom: 0.65em;
  }

  #header > .inner {
    margin-bottom: 0;
  }

  #header .button {
    border-width: 2px;
    height: calc(2.35em + 4px);
    line-height: 2.35em;
    min-width: 8.5em;
    padding: 0 1.1em;
  }

  #footer {
    padding-bottom: 1.15em;
  }

  #footer .icons {
    gap: 0.55em;
    margin-top: 0.6em;
  }

  #footer .icons a {
    height: 2em;
    width: 2em;
  }

  #footer .copyright {
    font-size: 0.72em;
    margin-top: 0.65em;
  }
}

@media screen and (max-width: 980px) {
  #header {
    background-position: top left, center center;
    background-size: auto, cover;
    left: auto;
    padding: 6em 4em;
    position: relative;
    text-align: center;
    top: auto;
    width: 100%;
    height: auto;
    display: block;
  }

  #header h1 {
    font-size: 1.5em;
  }

  #footer {
    background-color: #06153e;
    background-image:
      linear-gradient(rgba(8, 12, 14, 0.24), rgba(8, 12, 14, 0.5)),
      url("assets/sidebar-bg.jpg");
    background-position: top left, bottom center;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    bottom: auto;
    left: auto;
    padding: 4em 4em 6em 4em;
    position: relative;
    text-align: center;
    width: 100%;
  }

  #footer .icons {
    justify-content: center;
  }

  #main {
    margin: 0;
    padding: 6em 4em;
    width: 100%;
  }

  .photo-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-modal {
    padding: 3em 4.5em;
  }
}

@media screen and (max-width: 736px) {
  body {
    font-size: 12pt;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }

  #header {
    padding: 2.25em 1.5em;
  }

  #main {
    padding: 2.25em 1.5em 0.25em 1.5em;
  }

  #main > section {
    margin: 2.25em 0 0 0;
    padding: 2.25em 0 0 0;
  }

  .row {
    margin-left: 0;
  }

  .row > * {
    padding-left: 0;
  }

  .row.gtr-50 {
    margin-left: 0;
  }

  .row.gtr-50 > * {
    padding-left: 0;
  }

  .row.gtr-uniform,
  .row.gtr-50.gtr-uniform {
    margin-top: -1.5em;
  }

  .row.gtr-uniform > *,
  .row.gtr-50.gtr-uniform > * {
    padding-top: 1.5em;
  }

  .col-3,
  .col-4,
  .col-9,
  .work-title,
  .work-time,
  .work-team {
    width: 100%;
  }

  .work-item .col {
    padding-left: 0;
  }

  .work-time p,
  .work-team p {
    margin-top: 0.2em;
  }

  .research-item .image {
    margin-top: 0.25em;
    height: auto;
  }

  .photo-album-grid {
    gap: 1.5em;
    grid-template-columns: 1fr;
  }

  .album-overlay {
    align-items: flex-end;
    opacity: 1;
  }

  .album-title {
    background: rgba(13, 16, 18, 0.62);
    border: 0;
    padding: 0.35em 0.65em;
  }

  .actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  #header .button {
    width: auto;
  }

  .gallery-modal {
    padding: 4em 1em 5em 1em;
  }

  .gallery-stage {
    max-height: calc(100vh - 8em);
    max-width: 100%;
  }

  .gallery-frame {
    max-width: 100%;
  }

  .gallery-frame img {
    max-height: calc(100vh - 15em);
  }

  .gallery-frame figcaption {
    width: 100%;
  }

  .gallery-thumbnail {
    height: 3.15em;
    width: 4.2em;
  }

  .gallery-close {
    right: 1em;
    top: 1em;
  }

  .gallery-prev,
  .gallery-next {
    bottom: 1em;
    top: auto;
    transform: none;
  }

  .gallery-prev {
    left: 1em;
  }

  .gallery-next {
    right: 1em;
  }

  #footer {
    padding: 2.25em 1.5em;
  }

  #footer .copyright li {
    border-left-width: 0;
    display: block;
    line-height: 2.25em;
    margin-left: 0;
    padding-left: 0;
  }
}
