.products {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;

  background-color: var(--pastel);
}

.products h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;

  color: var(--black);

  background-color: var(--white);
}

.products-items {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 720px) and (max-width: 1080px) {
  .products-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 719px) {
  .products-items {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.item {
  position: relative;

  display: flex;
  flex: 1 1 300px;
  width: 100%;
  padding: 0.5rem;

  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 5px 6px 5px rgba(17, 17, 17, 0.3);
}

.item h2 {
  position: absolute;

  display: block;
  width: calc(100% - 15px);
  padding: 0.3125rem;

  color: var(--black);
  text-shadow: 0 0 5px var(--white);
  text-align: center;

  background-color: rgba(238, 238, 238, 0.6);
  border-radius: 5px 5px 0 0;
}

.item figcaption {
  padding: 0.3125rem;

  font-weight: 600;
  text-indent: 0.9375rem;
  text-align: justify;
}

.item img {
  border-radius: 5px 5px 0 0;
}

@media (min-width: 720px) and (max-width: 1080px) {
  .item3 {
    grid-column: 1 / span 2;
  }

  .item3 h2 {
    width: calc(50% - 12px);
  }

  .item3 picture {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .item3 img {
    height: 100%;

    border-radius: 5px;
  }
}
