/* Basic styling */

:root {
  --color-text: rgb(30, 30, 30);
  --color-text-light: rgb(120, 120, 120);
  --color-bg-light: rgb(235, 235, 235);
  --color-bg-hover: rgb(240, 240, 240);
  --color-link: #333333;
  --color-accent: rgb(200, 0, 0);
  --font-primary: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body,
html {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 300;
  height: 100%;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h5 {
  font-size: large;
  font-weight: 400;
  padding-left: 8px;
}

p {
  padding-left: 8px;
  padding-right: 8px;
}

.container {
  margin: 0;
}

main {
  margin: 0;
}

.page-heading {
  text-align: left;
  padding: 10px 0 0px 0;
  color: var(--color-text);
  font-weight: 300;
  font-size: 20px;
}

/* container for the bar in the header */
.topbar {
  display: flex;
  flex-direction: row;
  padding-top: 20px;
  padding-bottom: 10px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: rgba(240, 240, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  z-index: 1;
}

/* logo text on top left */
.logo {
  display: flex;
  align-self: flex-start;
  padding-left: 20px;
}

.logo a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 400;
  letter-spacing: 10px;
  font-size: 35px;
}

.logos {
  display: flex;
  align-self: flex-start;
  flex-direction: column;
}

/* toggle button to show/hide menu on small screen, default not showing */
.toggle {
  order: 0;
  font-size: 15px;
  padding: 0;
  margin: 0;
  padding-right: 10px;
  display: none;
}

.toggle button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  color: var(--color-text);
  padding: 4px 8px;
}

/* menu on large screen */
.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  list-style-type: none;
  text-decoration: none;
  color: var(--color-text);
  padding-right: 15px;
}

.item {
  display: block;
  padding-right: 15px;
}

.item a {
  transition: 0.3s;
  font-family: var(--font-primary);
  color: var(--color-link);
  font-size: 16px;
  text-decoration: none;
}

.item a:hover {
  color: rgb(100, 100, 100);
}

/* active is controlled by JS function toggleMenu(), when active is set items are shown on small screen */
.active .item {
  display: block;
}


/* small screen only */
@media screen and (max-width: 680px) {

  /* show toggle button */
  .toggle {
    display: block;
  }

  /* change menu orientation */
  .menu {
    align-items: flex-end;
    flex-direction: column;
  }

  /* don't show menu items when active is not set */
  .item {
    display: none;
  }
}

/* home page takes up full page with space for toolbar on top */
.home-container {
  width: 100%;
  padding-top: 60px;
}

.home-top {
  padding-top: 100px;
  padding-left: 10%;
  padding-right: 10%;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  text-align: center;
}

.home-bottom {
  padding-top: 0;
  padding-bottom: 30px;
  padding-left: 10%;
  padding-right: 10%;
  font-size: 14px;
  font-weight: 200;
  text-align: center;
}

/* full bleed image */
.home-img {
  width: 100%;
}

/* footer at the bottom of each page */
footer {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: rgba(245, 245, 245, 0.9);
  border-top: 1px solid rgba(200, 200, 200, 0.4);
  padding: 6px 0;
  position: fixed;
  bottom: 0;
}

.footer-text {
  color: var(--color-text-light);
  font-size: 8px;
  font-weight: 300;
}


/* list of posts */
.posts {
  display: flex;
  flex-direction: column;
  padding-top: 75px;
  padding-left: 10%;
  padding-right: 10%;
}

.posts_list {
  padding-top: 20px;
}

.posts_list a {
  color: var(--color-text);
  font-size: 20px;
  text-decoration: none;
}

.posts_list a:hover {
  color: var(--color-accent);
  background-color: var(--color-bg-hover);
}

.time {
  font-weight: 200;
  font-size: 12px;
}

.summary {
  font-weight: 300;
  font-size: 15px;
}


/* each post */
.project {
  padding-top: 90px;
  padding-left: 10%;
  padding-right: 10%;
}

.project-title {
  font-size: 25px;
  font-weight: 400;
}

.project-body {
  padding-top: 20px;
  font-weight: 300;
  font-size: 18px;
  text-align: justify;
}

.project-text {
  padding-left: 1%;
  padding-right: 1%;
}

.contact {
  padding-top: 75px;
  text-align: left;
  padding-left: 20px;
}

.social-links a {
  color: grey;
  margin-right: 12px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-text);
}

.about {
  padding-top: 75px;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
}

a {
  text-decoration: none;
}


/* vimeo settings */
.my-vimeo {
  width: 100%;
  height: auto;
}


/* photo grid */
.top-gallery {
  padding-top: 40px;
  padding-bottom: 20px;
}

.row {
  display: flex;
  flex: 50%;
  flex-wrap: wrap;
  padding-left: 4px;
  padding-right: 4px;
}

/* Create three equal columns that sits next to each other */
.three-column {
  flex: 33.333%;
  max-width: 33.333%;
  padding-left: 4px;
  padding-right: 4px;
  margin: 0;
}

/* Create two equal columns that sits next to each other */
.two-column {
  flex: 50%;
  max-width: 50%;
  padding-left: 4px;
  padding-right: 4px;
  margin: 0;
}

/* Create one column */
.one-column {
  flex: 100%;
  max-width: 100%;
  padding-left: 4px;
  padding-right: 4px;
  margin: 0;
}

/* Responsive layout - makes the columns stack on top of each other */
@media screen and (max-width: 600px) {
  .two-column {
    flex: 100%;
    max-width: 100%;
  }

  .three-column {
    flex: 100%;
    max-width: 100%;
  }
}

/* relevant styles */
.img-wrap {
  position: relative;
}

.img-item {
  width: 100%;
  padding-bottom: 8px;
  border-radius: 0.5%;
}

.img-info {
  display: flex;
  opacity: 0;
  justify-content: flex-end;
  flex-direction: column;
  width: 100%;
  height: 100px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.4));
  color: white;
  transition: opacity .5s ease, transform .5s ease;
  transform: translateY(4px);
  position: absolute;
  bottom: 7px;
  padding: 10px;
  font-size: 14px;
  font-weight: 200;
}

.img-wrap:hover .img-info {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
