@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200;300;400;700&display=swap');

.grid {
  display: flex;
  flex-direction: column;
  flex-flow: row wrap;
  width: 92%;
  margin-left: 8%;
  margin-top: -220px;
  padding-top: 160px;
}

  .grid > [class*=column-] {
    margin: 40px;
    max-width: 100%;
  }

.grid2 {
  display: flex;
  flex-direction: column;
  flex-flow: row wrap;
  width: 92%;
  margin-left: 12%;
  margin-top: -50px;
}

  .grid2 > [class*=column-] {
    margin: 40px;
    max-width: 100%;
  }

.first {
  order: -1;
}

.last {
  order: 12;
}

.align-top {
  align-items: start;
}

.align-center {
  align-items: center;
}

.align-bottom {
  align-items: end;
}

.column-xs-12 {
  flex-basis: 100%;
  max-width: 100%;
}

@supports (display: grid) {
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
  }
  .grid > [class*=column-] {
    margin: 40px;
    max-width: 100%;
    padding-left:4%;
    padding-right:4%;
  }

    .grid2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
  }
  .grid2 > [class*=column-] {
    margin: 40px;
    max-width: 100%;
  }

  .column-xs-12 {
    grid-column-start: span 12;
    grid-column-end: span 12;
  }

  @media (min-width: 84rem) {

    .column-md-6 {
      grid-column-start: span 6;
      grid-column-end: span 6;
    }

  }
  
}

#highlight {
  color: #ea8478;
  font-size: 1.25rem;
}


.img-container {
  width: 100%;
  height: 500px;
  cursor: pointer;
  overflow: hidden;
  border:1px solid #000000;
}


.title {
    text-align: center;
    position: relative;
    font-family: 'Hahmlet', serif;
    font-weight: bold;
    font-size:25px;
    margin-top:-110px;
    padding-top: 20px;
    line-height: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000000; 
    background-color: #FCFFEE;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    height: 100%;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.category {
  font-family: 'Inconsolata', monospace;
  font-weight: 300;
  font-size:15px;
  margin-top: 20px;
  letter-spacing: 1.5px;
  color: #000000; 
  text-transform: none;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.infos {
  font-family: 'Inconsolata', monospace;
  font-weight: 300;
  font-size:15px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0px;
  letter-spacing: 1.5px;
  color: #ffffff; 
  line-height:25px;
  display: block;
  text-transform: none;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  top: 50%;
  -ms-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  min-height: 75px;
}

.img-container:hover .infos {
    display: block;
    opacity: 1;
}

.img-container:hover .title {
   background-color: #000000;
   margin-top:-160px;
}

.img-container:hover .category {
 opacity: 0;
 display: none;
}

.img-container:hover img {
  transform: scale(1.1);
}


img {
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  transform: scale(1);
  transition: all 0.6s ease-in-out;
}

@supports (display: grid) {
  .projects .grid {
    grid-gap: 1rem;
  }
}


@media (max-width: 850px) {
  .grid {
  width: 84%; 
   margin-right: 14%;
   margin-left: 0%;
     margin-top: 0px;
  padding-top: 0px;
}

  .grid > [class*=column-] {
   margin: 0 auto;
    max-width: 100%;
  }

    .grid2 {
  width: 84%; 
   margin-right: 8%;
   margin-left: 8%;
     margin-top: 120px;
  padding-top: 0px;
}

  .grid2 > [class*=column-] {
   margin: 0 auto;
    max-width: 100%;
  }
  
}

