h1, h2, h3, p {
  background: none;
}

#projects {
  margin: 0 15% 0 15%;
}

/* Filter */
button {
  border: none;
}

.tags {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 5%;
}

.tags .tag {
  display: inline-block;
  background-color: #fffefe;
  color: #333;
  padding: 5px 10px;
  border-radius: 10px;
  border: 2px solid rgb(238, 207, 217);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transition: all .3s ease-out;
}

.tags .tag:hover {
  cursor: pointer;
  color: rgb(151, 12, 58);
  background-color: rgb(252, 237, 240);
  border: 2px solid rgb(231, 78, 104);
}

.tags .tag.btn-clicked {
  background-color: rgb(252, 237, 240);
  color: rgb(151, 12, 58);
  border: 2px solid rgb(231, 116, 152);
}

.project-shrink {
  display: none;
}

.project-expand {
  display: block;
}

.project-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; /* Adjust the gap as per your requirement */
  justify-content: space-evenly;
}

.project-wrapper {
  width: auto; /* Let the grid system handle the width */
  height: 400px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease-out;
  border-radius: 5px;
}

.portfoliopfp,
.project-wrapper img {
  width: 100%; /* Make the image fill the container */
  height: 100%; /* Make the image fill the container */
  object-fit: cover; /* Ensure the image covers the container without distortion */
  transition: all .3s ease-out;
}

.portfoliopfp-wrapper:hover,
.project-wrapper:hover {
  box-shadow: 8px 8px rgb(255, 159, 175);
}

.portfoliopfp-wrapper::after,
.project-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 43, 0.208);
  opacity: 0;
  transition: opacity .3s ease-out;
  pointer-events: none;
}

.portfoliopfp-wrapper:hover::after,
.project-wrapper:hover::after {
  opacity: 0.25;
}

.portfoliopfp-wrapper:hover .portfoliopfp,
.project-wrapper:hover img {
  filter: blur(10px) grayscale(1) brightness(1.25);
  transform: scale(1.1);
  cursor: pointer;
}

.portfoliopfp-wrapper:hover .overlay,
.project-wrapper:hover .overlay {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 240, 243, 0.532);
  color: rgb(78, 14, 28);
  /* font-weight: bold; */
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  box-sizing: border-box;
  padding: 5%;
}