
/* =============================================================
   gallery.css – Unique Gallery Styling
   ============================================================= */

.gallery-hero {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(180, 83, 9, 0.3);
}

.gallery-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gallery-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.gallery-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.1), rgba(217, 119, 6, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.gallery-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #fef7ed, #fff7ed);
  background-size: cover;          /* NEW – makes the photo fill */
  background-position: center;     /* NEW – keeps the subject centred */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(180, 83, 9, 0.1), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-placeholder::before {
  transform: rotate(45deg) translateX(100%);
}

.gallery-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #b45309;
  font-weight: 600;
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
}

.gallery-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #b45309, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
}

.gallery-caption {
  padding: 2rem;
  background: white;
  position: relative;
}

/* .gallery-caption h3 {
  color: white; 
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-shadow: 2px 2px 5px black; 
} */
.gallery-caption h3 {
  color: #b45309;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-caption p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.gallery-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

.gallery-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 4rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-stat {
  text-align: center;
}

.gallery-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b45309;
  display: block;
}

.gallery-stat-label {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.lightbox{
  position:fixed;inset:0;
  display:none;
  background:rgba(0,0,0,.8);
  z-index:3000;
  align-items:center;
  justify-content:center;
}
.lightbox.show{display:flex;}

.lightbox-inner{
  max-width:90%;
  max-height:90%;
  position:relative;
  display:flex;            /* NEW */
  flex-direction:column;   /* NEW */
}
.lightbox-close{
  position:absolute;top:-40px;right:0;
  font-size:2rem;background:none;border:none;color:#fff;cursor:pointer;
}
/* 1️⃣  TRACK: turn it into a wrapping row instead of a column  */
.lightbox-track{
  flex:1;                   /* fill remaining height */
  display:flex;
  flex-wrap:wrap;           /* NEW – allows multiple items per row          */
  gap:1rem;
  justify-content:center;   /* keeps the rows centred                       */
  overflow-y:auto;          /* vertical scroll if lots of rows              */
  padding-right:.5rem;      /* space for scrollbar                           */
}

/* 2️⃣  IMAGES: give each half the width of the light-box   */
.lightbox-track img{
  width:48%;                /* ~2 per row (48% + 1rem gap)                  */
  height:auto;              /* keeps aspect ratio                            */
  border-radius:10px;
  object-fit:contain;
}
/* .lightbox-track{
  flex:1;                             
  display:flex;
  flex-direction:column;             
  gap:1rem;
  overflow-y:auto;                    
  overflow-x:hidden;
  padding-right:.5rem;               
}
#lightbox-title{
  margin:0 0 1rem 0;
  color:#fff;
  text-align:center;
  font-size:1.4rem;
} */

/* lightbox-track img  ➜  half-size version */
/* .lightbox-track img{
  width:50%;        
  height:auto;      
  border-radius:10px;
  object-fit:contain;
  align-self:center;
} */
/* Images now size to width, not height */
/* .lightbox-track img{
  max-width:100%;
  height:auto;
  border-radius:10px;
  object-fit:contain;
}
 */

 .gallery-placeholder-content span {
  color: white; /* Change the text color to white */
  text-shadow: 2px 2px 5px black; /* Apply a black shadow */
}
/* Responsive Design */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 3rem 1rem;
  }
  
  .gallery-hero h1 {
    font-size: 2.5rem;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-placeholder {
    height: 220px;
  }
  
  .gallery-caption {
    padding: 1.5rem;
  }
  
  .gallery-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-placeholder {
    height: 200px;
  }
  
  .gallery-hero h1 {
    font-size: 2rem;
  }
}
