.gallery-wrapper.loading {
  visibility: hidden;
  opacity: 0;
}

.gallery-wrapper.loaded {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.gallery-wrapper {
  width: 100%;
  box-sizing: border-box;
    border-radius: 25px;
    background-color: #fff;
}

.content-box {
  padding: 1.75rem;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--ar-header-color);
}

.gallery-filters {
  margin-bottom: 2rem;
  text-align: center;
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--secondary-color);
    color: var(--ar-accent);
  font-size: 14px;
  font-weight: 300;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--secondary-color);

}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(1);
  pointer-events: auto;
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.gallery-item.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

.gallery-item.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}


.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 20px;
}

/* Lightbox content wrapper */
.lightbox-content {
  position: relative;
}

/* Close Button */
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ar-accent);
  color: #fff;
  border: none;
  /*border-radius: 50%;*/
  width: 32px;
  height: 32px;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: var(--secondary-color);
}

/* Image Styling */
.lightbox-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: 1;
  }
}