:root {
  --title-font-color: #3c4858;
  --text-font-color: #8A919A;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: unset;
}

a {
  color: #23527c;
}

a:hover {
  color: #008caf;
}

nav {
  padding-left: 10vw;
  padding-right: 10vw;
  box-shadow: 0px 1px 7px grey;
  display: grid;
  grid-template-columns: 1fr 100px 200px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  color: var(--title-font-color);
}

.cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  z-index: 1;
  position: relative;
}

.cover-title {
  z-index: 2;
  position: absolute;
  top: 150px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  font-size: xxx-large;
  color: #fff;
  text-align: center;
}

.cover-subtitle {
  z-index: 2;
  position: absolute;
  top: 240px;
  color: #fff;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  font-size: larger;
  text-align: center;
}

section.content, section.comments {
  margin-left: 10vw;
  margin-right: 10vw;
  margin-top: 30px;
}

h1 a, h3 a {
  color: unset;
  text-decoration: unset;
  font-size: x-large;
}

nav a {
  color: unset;
  text-decoration: unset;
}

article {
  border-radius: 7px;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 3px 3px 10px gray;
}

article h3 {
  color: var(--title-font-color);
}

article p:first-of-type {
  color: var(--text-font-color);
}

footer {
  height: 100px;
  background-color: #323437;
  display: grid;
  grid-template-columns: 24px 26px 1fr;
  column-gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding-left: 10vw;
  padding-right: 10vw;
  color: white;
  position: relative;
  bottom: 0;
  right: 0;
  left: 0;
}

footer a:last-child {
  justify-self: end;
}

footer a {
  color: white;
  text-decoration: unset;
}

footer a:hover {
  color: #008caf;
}

span.username {
  color: var(--title-font-color);
  font-weight: bold;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img, .gallery video {
  width: calc(78vw / 3);
  height: 30vh;
  object-fit: cover;
  margin: 5px;
  cursor: pointer;
}

.gallery img.wide, .gallery video.wide {
  height: auto;
  width: auto;
  z-index: 10;
  position: fixed;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: calc(100vw - 100px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
}

.gallery div::before {
  content: url("../image/x-circle.svg");
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.gallery div{
  display: none;
}

.gallery div.visible  {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: 5;
  opacity: 0.8;
}

section.comments::before {
    content: '';
    width: 100%;
    border-bottom: solid 2px #eee;
    display: block;
}

section.comments h3 {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  color: var(--title-font-color);
}

@media ( max-width: 600px ) {
  nav > a:not(:first-child) {
    display: none;
  }

  nav {
    grid-template-columns: 1fr;
  }

  .cover-title {
    font-size: x-large;
    top: 170px;
  }

  .cover-subtitle {
    top: 260px;
    font-size: unset;
  }

  section.content, section.comments {
    margin-left: 3vw;
    margin-right: 3vw;
  }

  .gallery img, .gallery video {
    width: 94vw;
    height: 20vh;
  }
}
