.flip-gallery-filter {
  text-align: center;
  margin-bottom: 30px;
}
.flip-gallery-filter button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  background: none;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.flip-gallery-filter button.active,
.flip-gallery-filter button:hover {
  color:#fff;
}
.flip-gallery-filter button.active::after,
.flip-gallery-filter button:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  bottom: 0;
  left: 0;
}

.flip-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.flip-item {
  text-align: center;
  width: 280px;
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
  width: 100%;
  height: 280px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-btn {
  display: inline-block;
  margin-top: 10px;
  background: #CBA135;
  color: #fff;
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}
.flip-btn:hover {
  background: #222;
}
