* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: Arial, sans-serif;
  background-image: url(../images/brick_bg.jpg);
  color: #fff;
} */

h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

/* =========================
       FILTER BUTTONS
    ========================= */

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
  background: #333;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #00d1b2;
  transform: translateY(-3px);
}

/* =========================
   GALLERY
========================= */

#bildche {
  padding: 4rem 2rem;
  width: 100%;
  background-image: url(../images/brick_bg.jpg);
  min-height: 100vh;
}

.gallery {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}

.gallery-sizer,
.gallery-item {
  width: calc(25% - 1rem);
}

.gallery-item {
  display: block;
  float: left;

  margin-bottom: 1rem;

  border-radius: 16px;
  overflow: hidden;

  background: #2b2b2b;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    box-shadow 0.3s ease;
}

.gallery::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 1200px) {
  .gallery-sizer,
  .gallery-item {
    width: calc(33.333% - 1rem);
  }
}

@media (max-width: 900px) {
  .gallery-sizer,
  .gallery-item {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .gallery-sizer,
  .gallery-item {
    width: 100%;
  }
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  display: block;
}

figure {
  position: relative;
}

figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 1rem;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));

  color: #f5f5f5;

  font-size: 1rem;
  font-weight: 600;

  letter-spacing: 0.5px;

  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Fancybox smoother */

.fancybox__container {
  backdrop-filter: blur(6px);
}
