@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

body {
  margin: 0;
  padding: 0;
  border: 0;
}

.navbar .nav-item {
  font-size: 1.4rem;
  padding-right: 1.4rem;
}
a:hover
{
  text-decoration: none;
  color: #595959;
}
/*Gallery*/

*,
*:before,
*:after {
  box-sizing: border-box;
}

#main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

.nav-2 {
  
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  flex: 1 1 auto;
  padding: 10px 20px;
  margin-top: 20px;
}

.nav-item-2 {
  position: relative;
  padding: 0 5px;
  margin: 0 5px;
  font-size: 1.7em;
  font-weight: 600;
  color: #595959;
  text-decoration: none;
  line-height: 1.5;
}

.nav-item-2:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #595959;
  transition: all 350ms;
}

.nav-item-2.active-2 {
  color: black;
  transition: all 350ms;
}

.nav-item-2.active-2:before {
  width: 100%;
}

.portfolio {
  display: flex;
  flex-flow: row wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project {
  position: relative;
  flex: 1 0 calc(100% - 20px);
  margin: 10px;
}

.project:hover .project-info {
  background: rgba(89, 89, 89, 0.7);
}

@media (min-width: 520px) {
  .project {
    flex: 0 0 calc((100% / 2) - 20px);
  }
}

@media (min-width: 860px) {
  .project {
    flex: 0 0 calc((100% / 3) - 20px);
  }
}

.project-image img {
  display: block;
  width: 100%;
  height: 350px;
}

.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #f6f6f6;
  background: rgba(196, 182, 182, 0.8);
  opacity: 0;
  transition: all 600ms ease-in;
}
.project-info-tt
{
  margin: 0 0 0.5em;
  font-size: 1.3em;
  text-align: center;
  text-transform: uppercase;
  display: none;

  
}
    
@media only screen and (max-device-width: 767px)
{
  .project-info-tt
    {
      display: none;
    }
    
}

.project-info {
    display:inline;
    display: flex;
    justify-content: center;
  }

.project-info:hover {
  opacity: 1;
}

@media (max-width: 520px) {
  .project-info {
    opacity: 0;
    display: none;
  }
  .project-info-tt
    {
      display: block;
    }

  
}

.project-info-title {
  margin: 0 0 0.5em;
  font-size: 1.5em;
  text-align: center;
  text-transform: uppercase;
}

.project-info-button {
  padding: 0.5em 1em;
  color: inherit;
  text-decoration: none;
  border: 1px solid #f6f6f6;
  border-radius: 3px;
  transition: all 350ms;
}

.project-info-button:hover {
  color: #595959;
  background: #f6f6f6;
  border-color: #f6f6f6;
}
