.gallery-page {
  padding: 40px;
  text-align: center;
}

/* Headings only inside gallery */
.gallery-page h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Tabs */
.gallery-page .gallery-tabs {
  margin-bottom: 20px;
}
.gallery-page .tab-btn {
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  background: #2196f3;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
}
.gallery-page .tab-btn.active {
  background: #1976d2;
}

/* Filters */
.gallery-page .filter-buttons {
  margin-bottom: 20px;
}
.gallery-page .filter-btn {
  padding: 8px 15px;
  margin: 0 5px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
}
.gallery-page .filter-btn.active {
  background: #2196f3;
  color: #fff;
}

/* Gallery Grid */
.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.gallery-page .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #f8f8f8;
}

.gallery-page .gallery-item img,
.gallery-page .gallery-item iframe {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-page .gallery-item .caption {
  padding: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* Load More */
.gallery-page .load-more-wrap {
  margin-top: 20px;
}
.gallery-page .load-more {
  padding: 10px 25px;
  border: none;
  background: #2196f3;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.gallery-page .load-more:hover {
  background: #1976d2;
}

/* Preview Modal */
.preview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.preview-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}
.preview-caption {
  text-align: center;
  color: #ccc;
  padding: 10px;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}


.gallery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-btn {
  background: #eee;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
}

.tab-btn.active {
  background: #2196f3;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
