<style>
/* Base Section Styling */
.henna-gallery-section {
  padding: 40px 20px;
  background-color: #FAF8F5;
}

/* Gallery Heading */
.gallery-heading {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

/* Filter Buttons */
.henna-filters {
  text-align: center;
  margin-bottom: 30px;
}
.henna-filters button {
  background: transparent;
  border: 2px solid #C5A36F;
  color: #C5A36F;
  padding: 8px 18px;
  margin: 0 8px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.henna-filters button.active,
.henna-filters button:hover {
  background: #C5A36F;
  color: #fff;
}

/* Masonry Layout */
.henna-gallery-grid {
  column-count: 4;
  column-gap: 20px;
}
@media (max-width: 1024px) {
  .henna-gallery-grid {
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .henna-gallery-grid {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .henna-gallery-grid {
    column-count: 1;
  }
}

/* Gallery Item Styling */
.gallery-item {
  display: inline-block;
  margin-bottom: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  break-inside: avoid;
  animation: fadeIn 0.6s ease-in-out;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* Caption Overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  background: rgba(197, 163, 111, 0.7); /* Transparent gold */
  color: #fff;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  opacity: 1;
  transition: all 0.4s ease;
  box-sizing: border-box;
  z-index: 0;
  line-height: 1.5em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Featured Styling */
.gallery-item.featured {
  border: 3px solid #e2725b;
  box-shadow: 0 4px 15px rgba(226, 114, 91, 0.3);
}

/* Lightbox Styling */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-top: 15px;
  text-align: center;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.close:hover {
  color: #C5A36F;
}

/* Animation for lightbox */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox {
  animation: fadeIn 0.3s;
}

/* Lightbox Styling - MUST ADD THIS */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

#lightbox .lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

#lightbox .lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 18px;
  text-align: center;
  max-width: 80%;
}

/* Prevent scrolling when lightbox is open */
body.lightbox-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Fix for clickable areas */
.gallery-item {
  cursor: pointer;
}
.gallery-item img {
  position: relative;
  z-index: 1;
}
.gallery-caption {
  z-index: 0 !important;
  pointer-events: auto; /* Allows clicks to pass through */
}

/* New text filter styles */
.henna-filters .henna-filter-text {
  display: inline-block;
  margin: 0 15px;
  padding: 5px 0;
  color: #C5A36F;
  font-size: 16px;
  font-weight: normal;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Hover/Active states for text filters */
.henna-filters .henna-filter-text:hover,
.henna-filters .henna-filter-text.active {
  color: #e2725b;
  border-bottom-color: #e2725b;
}

/* Keep original active/hover for buttons */
.henna-filters button.active,
.henna-filters button:hover {
  background: #C5A36F;
  color: #fff;
}

/* Henna Gallery Landing Page Styles */
.henna-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-family: 'Playfair Display', serif;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-image-container {
  height: 300px;
  overflow: hidden;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-info {
  padding: 20px;
  text-align: center;
}

.category-info h3 {
  margin: 0 0 15px;
  color: #333;
}

.view-gallery-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #C5A36F;
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.category-card:hover .view-gallery-btn {
  background: #e2725b;
}

/* Gallery Display Section */
.gallery-display-section {
  margin-top: 40px;
  display: none;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-to-categories {
  background: none;
  border: none;
  color: #C5A36F;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.back-to-categories:hover {
  color: #e2725b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .back-to-categories {
    margin-top: 10px;
  }
}