/* ============================================
   SATYAM ASSOCIATES — Simple & Clean Gallery
   ============================================ */

/* --- Gallery Header --- */
.gallery-header {
  padding: 130px 0 30px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.gallery-header__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--secondary-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.gallery-header__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gallery-header__breadcrumb a:hover {
  color: var(--primary);
}

.gallery-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary) !important;
  margin-bottom: 12px;
  line-height: 1.25;
}

.gallery-header__title span {
  color: var(--secondary);
}

.gallery-header__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Gallery Grid Section --- */
.gallery-section {
  padding: 40px 0 80px;
  background: #FFFFFF;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

/* --- Clean Simple Gallery Card --- */
.gallery-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 43, 77, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(22, 43, 77, 0.12);
  border-color: var(--secondary-light);
}

.gallery-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #F4F6FA;
  cursor: pointer;
  display: block;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
  display: block;
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.03);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 29, 53, 0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

.gallery-card__overlay span {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-card__content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary) !important;
  margin-bottom: 6px;
  line-height: 1.35;
}

.gallery-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
  flex-grow: 1;
}


/* --- Clean Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #1F2937;
  color: #FFFFFF;
}

.lightbox__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.lightbox__close {
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.15s ease;
}

.lightbox__close:hover {
  color: #FFFFFF;
}

.lightbox__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B0F19;
  padding: 10px;
  max-height: calc(92vh - 110px);
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(92vh - 130px);
  object-fit: contain;
  display: block;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox__nav:hover {
  background: var(--secondary);
  color: #0E1D35;
}

.lightbox__nav--prev {
  left: 14px;
}

.lightbox__nav--next {
  right: 14px;
}

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #1F2937;
  color: #FFFFFF;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox__caption {
  font-size: 0.85rem;
  color: #D1D5DB;
  margin: 0;
  flex-grow: 1;
}

.lightbox__wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.lightbox__wa-link:hover {
  background: #1EBE5D;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
