#moments {
  width: 100%;
  height: 800px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 3.5rem 1rem 3.5rem;
}

.container-images {
  width: 60%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 800px;
  gap: 1rem;
}
.container-text {
  display: flex;
  flex-direction: column;
  width: 40%;
  height: auto;
  gap: 3rem;
  color: var(--primary);
}
.container-text h5 {
  font-size: 4rem;
  font-weight: bold;
}
.container-text p {
  line-height: 1.7rem;
}

.container-text .btn-default {
  background-color: var(--secondary);
  color: var(--primary);
  align-self: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  height: 40%;
  max-height: 480px;
  background-color: var(--primary);
}
.card img {
  width: 100%;
  min-height: 150px;
  background-color: var(--primary);
}

.card p {
  align-self: center;
  color: var(--tertiary);
  padding: 0.5rem;
  font-size: 2rem;
  color: var(--secondary);
  font-weight: bold;
}

@media screen and (max-width: 1024px) {
  #moments {
    height: 1400px;
    flex-direction: column;
  }
  .container-text h5 {
    font-size: 3.5rem;
    text-align: center;
  }
  .container-images {
    width: 100%;
    height: 700px;
  }
  .container-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 3rem;
    color: var(--primary);
  }
  .container-images {
    width: 100%;
    height: 400px;
    align-items: normal;
  }
  .container-text {
    gap: 3rem;
    color: var(--primary);
  }
  .card p {
    align-self: center;
    color: var(--tertiary);

    font-size: 1rem;
    color: var(--secondary);
    font-weight: bold;
  }
}

@media screen and (max-width: 1024px) {
  .card {
    flex-direction: column;
    height: auto;
    max-height: 200px;
  }

  #moments {
    height: 800px;
    flex-direction: column;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    gap: 2rem;
    justify-content: flex-start;
  }
  .container-text h5 {
    font-size: 2rem;
    text-align: center;
  }
  .container-images {
    width: 100%;
    height: 400px;
    align-items: normal;
  }
  .container-text {
    gap: 3rem;
    color: var(--primary);
  }
  .card p {
    align-self: center;
    color: var(--tertiary);
    padding-top: 0.5rem;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: bold;
  }
}

@media screen and (max-width: 500px) {
  #moments {
    height: 1800px;
  }
  .container-images {
    height: 700px;
  }
  .container-images {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    gap: 1rem;
  }
  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    max-height: 480px;
    background-color: var(--primary);
  }

.card p {
   padding:1rem ;
  }
}

@media screen and (max-width: 400px) {
    #moments {
      height: 1700px;
    }
  
  }
  @media screen and (max-width: 330px) {
    #moments {
      height: 1600px;
    }
  
  }