* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
}

.page {
  max-width: 52rem;
  padding: 1rem;
  margin: 0 auto;
  margin-bottom: 3em; /* Footer well */
}

header {
  position: relative;
  background: #444746;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  height: 38em;
  display: flex;
  flex-direction: column;
  text-align: center;
}

header :focus {
  outline: none;
}

header .vr360 {
  height: 38em;
  width: 100%;
  position: absolute;
  cursor: grab;
}

header .overlay {
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  user-select: none;
  pointer-events: none;
}

header h1 {
  font-family: 'Comfortaa', sans-serif;
  text-transform: lowercase;
  margin: 0 0 0.5em 0;
  font-size: 3em;
}

header span {
  font-size: 1.5em;
  font-weight: bold;
}

footer {
  background-color: #444746;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
}
footer a {
  color: inherit;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 20em;
}

form input,
form textarea {
  width: 100%;
}

label {
  display: block;
  margin: 0.5em 0;
}

label > * {
  display: block;
}

.projectGrid {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: 16rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  grid-gap: 1rem;
}

.projectGrid > * {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 0 0.5em #0005;
}

.projectGrid .thumb {
  object-fit: cover;
  width: 100%;
  height: 12rem;
}

.projectGrid .icon {
  width: 2em;
  height: 2em;
}

.projectGrid .titleBar {
  display: flex;
  align-items: center;
  padding: 0.5em;
  justify-content: space-between;
  width: 100%;
  background: #000;
  color: #fff
}
