/* ===================================================================
   Tanveer Cab Service - Photo Gallery Stylesheet
   Modern, Vibrant, High-Performance Design matching existing website UI
   =================================================================== */

/* Filter Navigation */
.gallery-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  border-radius: 50rem;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.gallery-filter-btn:hover {
  border-color: #FF5A00;
  color: #FF5A00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 90, 0, 0.12);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, #FF5A00 0%, #FF7A1A 100%);
  border-color: #FF5A00;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 90, 0, 0.28);
  transform: translateY(-2px);
}

.gallery-filter-btn .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.gallery-filter-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Gallery Grid & Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

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

.gallery-card {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  border-color: rgba(255, 90, 0, 0.3);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 68%; /* 3:2 landscape aspect */
  overflow: hidden;
  background-color: #f1f5f9;
  cursor: pointer;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

/* Badge overlay */
.gallery-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.gallery-cat-badge i {
  color: #FF5A00;
}

/* Zoom Hover Overlay */
.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.gallery-card:hover .gallery-zoom-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #FF5A00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-card:hover .gallery-zoom-btn {
  transform: scale(1);
}

.gallery-card:hover .gallery-zoom-btn:hover {
  background: #FF5A00;
  color: #ffffff;
  transform: scale(1.1);
}

/* Card Body */
.gallery-card-body {
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.gallery-card:hover .gallery-card-title {
  color: #FF5A00;
}

.gallery-card-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Lightbox Modal */
.goride-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.goride-lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-header {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  z-index: 10;
}

.lightbox-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #FF5A00;
  transform: rotate(90deg);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 2rem;
  right: 2rem;
  text-align: center;
  color: #ffffff;
  z-index: 10;
}

.lightbox-caption-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lightbox-caption-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  margin: 0 auto;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: #FF5A00;
  border-color: #FF5A00;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 1.5rem;
}

.lightbox-nav-btn.next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .lightbox-nav-btn.prev {
    left: 0.5rem;
  }
  .lightbox-nav-btn.next {
    right: 0.5rem;
  }
  .lightbox-content {
    max-height: 65vh;
  }
  .lightbox-content img {
    max-height: 65vh;
  }
}
