#filter {
  margin: 40px auto;
}

#filter-select {
  background: #eee;
  border-radius: 5px;
  display: block;
  font-weight: 600;
  padding: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#filter-btn a {
  background: var(--primary);
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  padding: 10px 30px;
  display: table;
  transition: .5s;
  user-select: none;
}

#filter-btn a.active,
#filter-btn a:hover {
  background: var(--second);
}

.clear {
  clear: both;
}

#project {
  transition: .3s;
  margin: 20px auto;
}

#project .grid {
  display: flex;
  flex-wrap: wrap;
  transition: .5s;
}

#project .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

#project .title-photo {
  background: #0007;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  position: absolute;
  height: calc(100% - .50rem);
  width: calc(100% - .50rem);
  margin: .25rem;
  opacity: 0;
  transition: .5s;
  top: 0;
  left: 0;
}

#project .title-photo p {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  user-select: none;
  text-align: center;
}

#project .grid-item:hover .title-photo {
  opacity: 1;
}

#project .grid-item:hover .title-photo:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  #project .title-photo p {
    font-size: 12px;
  }
}