.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem;
}

.projeto-item a{
  text-decoration: none;
  color: inherit;
}

.projeto-thumb-wrapper img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.projeto-thumb-wrapper {
    position: relative;
    display: block;
}

.projeto-thumb,
.projeto-thumb-hover {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease-in-out;
}

.projeto-thumb-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.projeto-item:hover .projeto-thumb-hover {
    opacity: 1;
}


.projeto-title {
  margin-top: .6em;
  font-size: 1em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.projeto-date {
  font-size: 0.875rem;
  color: #666;
}

.meius-load-more-button{
  background: none;
  border: none;
  display: block;
  color: var(--wp--preset--color--primary);
  padding: 1em;
  margin: 3em auto 2em !important;
}

.categoria-do-projeto-list {
  font-size: .8em;
  display: flex;
  justify-content: center; /* or: space-between */
  gap: 4rem; /* control spacing between items */
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  text-transform: lowercase;
  padding-bottom: 2em;
}

.categoria-do-projeto-list li {
  display: inline-block;
}

.categoria-do-projeto-list a{
  text-decoration: none;
}

.categoria-do-projeto-list a:hover{
  color: var(--wp--preset--color--primary);
} 

.projeto-categorias{
  font-size: .7em;
}

@media screen and (min-width: 769px) {
 .projeto-item:only-child{
     max-width:50%;
 }
}

@media screen and (max-width: 600px) {
  .projetos-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: switch to grid layout with 2 items per row */
@media screen and (max-width: 600px) {
  .categoria-do-projeto-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
    padding-left: 0;
  }

  .categoria-do-projeto-list li {
    width: 100%; /* optional: makes items fill the column */
  }
}