@font-face {
  font-family: "light";
  font-weight: lighter;
  src: url("font/light.otf");
}

@font-face {
  font-family: "medium";
  font-weight: normal;
  font-style: normal;
  src: url("font/medium.otf");
}

body {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: auto;
  padding: 30px;
  text-align: left;
  align-content: center;
  color: #636363;
  background: #fff;
  font-family: "light", light, fixed-width;
  font-size: 82%;
  font-weight: normal;
  box-sizing: border-box;
}

img {
  width: 100%;
  border: 0;
}

.header {
  width: 100%;
  height: 100%;
  padding-bottom: 15px;
  display: block;
}

.header ul {
  list-style-type: none;
  margin: 0px 0px 9px 0px;
  padding: 0;
}

.topNavColA,
.topNavColB,
.topNavColC {
  float: left;
  margin: 0;
  padding: 0 20px 0 0;
  text-align: left;
  font-family: "medium";
  font-weight: normal;
}

.topNavColA {
  padding-left: 5px;
  width: 220px;
}

.topNavColD {
  float: right;
  padding-right: 5px;
  text-align: right;
  display: inline;
  margin: 0;
  font-family: "medium";
  font-weight: normal;
}

a,
a:visited {
  color: #636363;
  outline-style: none;
  text-decoration: none;
}

a:hover {
  color: #000000;
  text-decoration: none;
}

a:active {
  color: #636363;
  text-decoration: none;
}

.byline {
  display: block;
  padding: 20px 5px 20px 5px;
}

p {
  margin: 0 0 1.33em 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

.heading {
  padding: 5px;
  width: 100%;
  display: block;
  border-top: 1px solid #bebebe;
}

.footer {
  display: block;
  padding: 20px 5px 0 5px;
  border-top: 1px solid #bebebe;
}

h2,
h3,
h4,
h5 {
  margin: 2px 0;
}
.project {
  padding: 5px 5px 10px 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  text-align: center;
  height: 100%;
}

.project > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.image-container img {
  max-width: 65%;
  margin-bottom: 0;
  margin-top: auto;
  background: white;
  opacity: 1;
  transition-property: all;
  transition-duration: 0s;
  transition-timing-function: ease;
}

.small-image {
  width: 100px;
  max-width: 200px;
}

.screen {
  position: relative;
  top: 0px;
  left: 0px;
  margin-left: 2px;
  width: 95%;
  height: 100%;
  flex: 1 1 auto;
}

.project .image-container {
  height: 0;
  padding-bottom: 100%;
  position: relative;
  flex: 0 0 auto;
}
.no-underline {
  text-decoration: none;
}

.arrow-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: opacity 0.5s ease-in-out;
}

.arrow {
  font-size: 2em;
  color: rgba(0, 0, 0, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 600px) {
  .arrow {
    font-size: 1.5em;
  }

  .arrow-container {
    bottom: 10px;
    right: 10px;
  }

  body {
    padding: 30px 10px;
  }

  .content {
    margin: 0 10px;
  }
}

@media screen and (max-width: 639px) {
  .topNavColA,
  .topNavColB,
  .topNavColC,
  .topNavColD {
    width: 100%;
    padding-left: 20px;
  }
  .topNavColD {
    float: left;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 30px 15px;
  }

  .content {
    margin: 0 10px;
  }
}

@media screen and (min-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 720px) {
  .page-container {
    padding-top: 130px;
  }
}

@media screen and (min-width: 888px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-footer {
    padding: 34px;
  }
}

@media screen and (min-width: 984px) {
  .header .main {
    width: 50%;
  }
}
