/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5n + 2) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(5n + 3),
.gallery-item:nth-child(5n + 4),
.gallery-item:nth-child(5n + 5) { grid-column: span 1; grid-row: span 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  transform-origin: center center;
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.72);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

.gallery-overlay span {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ── Lightbox ── */
.lb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: lbFadeIn 0.25s ease;
}

.lb-backdrop.lb-open {
  display: flex;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Wrapper */
.lb-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
  box-sizing: border-box;
}

/* Image */
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: lbImgIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes lbImgIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-img.lb-slide-left {
  animation: lbSlideLeft 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lb-img.lb-slide-right {
  animation: lbSlideRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes lbSlideLeft {
  from { opacity: 0; transform: translateX(60px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes lbSlideRight {
  from { opacity: 0; transform: translateX(-60px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Caption */
.lb-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.45);
  padding: 6px 20px;
  border-radius: 30px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* Counter */
.lb-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* Close */
.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.1) rotate(90deg);
}

/* Arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.lb-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.lb-arrow.lb-prev { left: 16px; }
.lb-arrow.lb-next { right: 16px; }

/* Dots */
.lb-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  padding: 0;
}

.lb-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5n + 2) { grid-column: span 1; grid-row: span 1; }
  .lb-wrapper { padding: 60px 56px; }
  .lb-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .lb-wrapper { padding: 60px 48px; }
}

  .branches-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.branch-card {
  border-left: 4px solid;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.branch-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* 🟢 Vegetarian — Green */
.branch-card.veg {
  border-color: #2e7d32;
  background: #f1faf1;
}

.branch-card.veg .branch-badge {
  color: #2e7d32;
}

.branch-card.veg .dot {
  background: #2e7d32;
}

/* 🔴 Non-Veg — Red */
.branch-card.non-veg {
  border-color: #c62828;
  background: #fff5f5;
}

.branch-card.non-veg .branch-badge {
  color: #c62828;
}

.branch-card.non-veg .dot {
  background: #c62828;
}

/* Badge styling */
.branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.branch-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.branch-address {
  font-size: 12.5px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}