/* galeri.css - Neobrutalist Rework */

.page-hero {
  padding: 140px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 79, 163, 0.02), transparent), var(--clr-bg);
  text-align: center;
  border-bottom: var(--brutal-border);
}

.breadcrumb {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--clr-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.breadcrumb a { color: var(--clr-primary); }
.breadcrumb .sep { margin: 0 10px; color: var(--br-border-dark); }
.breadcrumb .current { color: var(--clr-heading); }

.page-hero h1 { 
  font-size: clamp(2.6rem, 7vw, 4.2rem); 
  margin-bottom: 20px; 
  color: var(--clr-heading); 
  letter-spacing: -2px;
}

/* Filter Tabs */
.gallery-filter-wrap { margin-bottom: 60px; }
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-tab {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: var(--brutal-border);
  background: white;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  transition: all 0.22s ease;
  color: var(--clr-heading);
  box-shadow: var(--brutal-shadow-sm);
}

.filter-tab.active {
  background: var(--clr-primary);
  color: white;
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--br-border-dark);
}

/* Masonry Grid */
.gallery-masonry {
  columns: 3;
  column-gap: 25px;
  width: 100%;
}

.gallery-item {
  width: 100%;
  margin-bottom: 25px;
  break-inside: avoid;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover { 
  transform: translate(-5px, -5px); 
  box-shadow: 10px 10px 0 var(--br-border-dark); 
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 79, 163, 0.2); /* Tint instead of dark gradient */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox - Neobrutalist */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 4px solid white;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: var(--clr-primary);
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -80px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -80px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { 
  background: white; 
  color: var(--clr-primary);
}

.lightbox-prev:hover { transform: translateY(-50%) translateX(-5px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(5px); }
.lightbox-close:hover { transform: scale(1.1); }

/* Insta CTA */
.insta-cta {
  padding: 100px 40px;
  background: var(--clr-primary);
  color: white;
  text-align: center;
  border: var(--brutal-border);
  box-shadow: 15px 15px 0 var(--br-border-dark);
  border-radius: var(--radius-xl);
  margin: 100px var(--container-pad);
}

.insta-handle { 
  font-family: var(--font-display); 
  font-size: clamp(1.8rem, 8vw, 3.5rem); 
  font-weight: 800; 
  margin: 15px 0; 
  color: white; 
  letter-spacing: -1.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 1024px) {
  .gallery-masonry { columns: 2; }
  .lightbox-prev { left: 20px; box-shadow: none; }
  .lightbox-next { right: 20px; box-shadow: none; }
  .lightbox-close { top: 20px; right: 20px; box-shadow: none; }
}

@media (max-width: 768px) {
  .gallery-masonry { columns: 1; }
  .insta-cta { margin: 80px 20px; padding: 60px 20px; }
}
