/* Gallery Popup */
.gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.gallery-popup-content {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  width: 600px;
  position: relative;
}

.gallery-popup-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.gallery-popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.gallery-popup-title {
  font-size: 24px;
  margin: 20px 0;
}

.gallery-popup-description {
  font-size: 16px;
  color: #666;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.gallery-box {
  width: calc(33.333% - 10px);
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-box-wrapper {
  width: 100%;
  height: auto;
}

.gallery-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-box:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .gallery-box {
    width: calc(50% - 10px);
  }
}

@media (max-width: 575px) {
  .gallery-box {
    width: 100%;
  }
}

/* Filter Section Styling */
.filter-section .gallery-filter-button {
  display: block;
  padding: 10px 20px;
  text-align: center;
  background-color: #e0e0e0;
  border-radius: 50px;
  color: #333;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-section .gallery-filter-button:hover {
  background-color: #4b0877;
  color: #fff;
}

.filter-section .gallery-filter-button.active {
  background-color: #4b0877;
  color: #fff;
}

/* General Styling to Remove Extra White Space */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main {
  flex-grow: 1;
}

.section-spacing {
  padding-top: 50px;
  padding-bottom: 70px;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

footer {
  margin-top: auto;
}
