/* gallery.css */

/* Container */
.gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* HERO HEADER */
.gallery-hero {
  margin-bottom: 30px;
}

.gallery-badge {
  display: inline-block;
  background: #81d4fa;
  color: #0d47a1;
  padding: 6px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

.gallery-title {
  font-size: 2.8rem;
  color: #0d47a1;
  font-weight: 800;
  margin: 10px 0;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: #1565c0;
  font-weight: 500;
}

/* CATEGORIES BUTTONS */
.gallery-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-btn {
  background: #e1f5fe;
  border: 2px solid #81d4fa;
  border-radius: 25px;
  padding: 10px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #0d47a1;
  transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
  background: #29b6f6;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* GALLERY ITEM */
.gallery-item {
  background: #b3e5fc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* MEDIA */
.gallery-item .media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #81d4fa;
  border-radius: 12px 12px 0 0;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

/* BODY */
.gallery-body {
  padding: 12px 15px;
  text-align: center;
}

.gallery-body h3 {
  font-size: 1.2rem;
  color: #0d47a1;
  margin-bottom: 5px;
  font-weight: 700;
}

.gallery-body p {
  font-size: 0.95rem;
  color: #1565c0;
}

/* EMPTY STATE */
.gallery-empty {
  text-align: center;
  margin-top: 50px;
}

.empty-illustration {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px auto;
  animation: bounce 1.6s infinite alternate ease-in-out;
}

.gallery-empty h2 {
  font-size: 1.6rem;
  color: #29b6f6;
  margin-bottom: 8px;
  font-weight: 700;
}

.gallery-empty p {
  color: #1565c0;
  font-size: 1rem;
  font-weight: 500;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.whatsapp-button.show {
  pointer-events: auto;
}

.whatsapp-button:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* BOUNCE ANIMATION */
@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
