.buttons {
  margin-bottom: 20px;
  text-align: center;
}
.buttons .showall {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background-color: #333;
  color: white;
  border-radius: 5px;
}
.buttons .showall:hover {
  background-color: #555;
}

.buttons .giftbynamu {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background-color: #58595b;
  color: white;
  border-radius: 5px;
}

.buttons .giftbynamu:hover {
  background-color: #696a6d;
}

.buttons .daisybynamu {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background-color: #536459;
  color: white;
  border-radius: 5px;
}

.buttons .daisybynamu:hover {
  background-color: #73867a;
}

.buttons .willowbynamu {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background-color: #b96966;
  color: white;
  border-radius: 5px;
}

.buttons .willowbynamu:hover {
  background-color: #c77b78;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-item {
  width: 200px;
  margin: 10px;
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  float: left;
  margin-bottom: 10px;
}

.gallery-item {
  display: none;
}
.gallery-item.show {
  display: block;
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
}
.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .gallery-item {
    width: 22%; /* lebih kecil dari 30% */
    max-width: 120px; /* biar muat lebih banyak */
    margin: 5px;
  }

  .gallery-item img {
    width: 100%;
    height: auto; /* biarkan proporsional */
  }
}

/* Default animasi untuk tombol & gallery */
.buttons,
.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Saat terlihat di layar */
.buttons.visible,
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover tombol */
.buttons button {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.buttons button:hover {
  transform: scale(1.05);
}

/* Gallery hover */
.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Efek muncul bertahap (stagger) untuk gallery */
.gallery-item:nth-child(1) {
  transition-delay: 0s;
}
.gallery-item:nth-child(2) {
  transition-delay: 0.1s;
}
.gallery-item:nth-child(3) {
  transition-delay: 0.2s;
}
.gallery-item:nth-child(4) {
  transition-delay: 0.3s;
}
.gallery-item:nth-child(5) {
  transition-delay: 0.4s;
}

/* Responsif */
@media (max-width: 768px) {
  .gallery-item {
    width: 30%;
  }
}
