/* ============================================================
   Excel Signs Inc. — Modern & Attractive Gallery Page CSS
   Featuring elevated cards, box shadows, smooth transitions & lightbox
   ============================================================ */

/* ---- Gallery Hero Banner ---- */
.gallery-hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 54px;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -90px;
  width: 45%;
  height: 160px;
  background: var(--blue);
  transform: skewY(-6deg);
  opacity: 0.12;
  pointer-events: none;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: -140px;
  width: 460px;
  height: 460px;
  border: 75px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.gallery-hero .wrap {
  position: relative;
  z-index: 1;
}

.gallery-hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  letter-spacing: -0.03em;
  margin: 0.8rem 0 1.1rem;
  color: #fff;
}

.gallery-hero h1 span {
  color: var(--red);
}

.gallery-hero p {
  color: #c3cedd;
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0;
  line-height: 1.6;
}

/* ---- Category Filter Bar ---- */
.gallery-filter-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.03);
  position: sticky;
  top: 82px;
  z-index: 90;
  backdrop-filter: blur(10px);
}

.gallery-filter-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  border: 1.5px solid #d8e1ec;
  background: #ffffff;
  color: #2b3648;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(11, 18, 32, 0.04);
}

.filter-btn:hover {
  background: #f4f7fb;
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(23, 105, 255, 0.12);
}

.filter-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 6px 16px rgba(17, 26, 42, 0.28);
  transform: translateY(-1px);
}

.filter-count-badge {
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.filter-btn:not(.active) .filter-count-badge {
  background: #edf2f7;
  color: #4a5568;
}

.gallery-results-count {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---- Gallery Section ---- */
.gallery-section {
  background: linear-gradient(180deg, #f7f9fc 0%, #edf2f7 100%);
  padding: 64px 0 88px;
  min-height: 500px;
}

/* ---- Modern Grid Layout ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1050px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

/* ============================================================
   ELEVATED GALLERY CARD WITH SHADOW BOX
   ============================================================ */
.gallery-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(220, 228, 238, 0.9);
  box-shadow: 0 10px 30px -4px rgba(17, 26, 42, 0.08), 0 4px 10px -2px rgba(17, 26, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  animation: fadeInUp 0.45s ease both;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(228, 35, 44, 0.4);
  box-shadow: 0 24px 50px -10px rgba(17, 26, 42, 0.18), 0 10px 20px -5px rgba(228, 35, 44, 0.12);
}

/* ---- Card Image Container ---- */
.gallery-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #0f1826;
  border-bottom: 1px solid #edf2f7;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

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

/* Floating Category Pill Badge */
.gallery-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: linear-gradient(135deg, #e4232c 0%, #c41820 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(228, 35, 44, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.gallery-card-badge i {
  font-size: 0.7rem;
}

/* Hover Dark Overlay & Center Zoom Button */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.15) 0%, rgba(11, 18, 32, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.32s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

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

.gallery-card-zoom-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}

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

.gallery-card:hover .gallery-card-zoom-btn:hover {
  background: var(--red);
  color: #ffffff;
}

/* ---- Card Body / Content Area ---- */
.gallery-card-body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.gallery-card-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
  display: block;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  transition: color 0.2s;
}

.gallery-card:hover .gallery-card-title {
  color: var(--red);
}

.gallery-card-desc {
  font-size: 0.88rem;
  color: #5c6879;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ---- Card Footer Action ---- */
.gallery-card-footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}

.gallery-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  transition: color 0.2s;
}

.gallery-card:hover .gallery-card-action {
  color: var(--red);
}

.gallery-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--navy);
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.gallery-card:hover .gallery-card-arrow {
  background: var(--red);
  color: #ffffff;
  transform: translateX(3px);
}

/* ---- Empty State ---- */
.gallery-empty {
  text-align: center;
  padding: 90px 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.05);
  border: 1px solid #e2e8f0;
  max-width: 580px;
  margin: 0 auto;
}

.gallery-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f4f9;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.gallery-empty h3 {
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.gallery-empty p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   MODERN LIGHTBOX OVERLAY
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 23, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-inner {
  position: relative;
  max-width: min(960px, calc(100vw - 2.5rem));
  width: 100%;
  text-align: center;
  animation: lightboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lightboxPop {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-img-box {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: inline-block;
  max-width: 100%;
}

.lightbox-inner img {
  max-height: 74vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox-caption-box {
  background: rgba(17, 26, 42, 0.88);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  margin-top: 1rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.lightbox-caption-text strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.lightbox-caption-text span {
  color: #c3cedd;
  font-size: 0.92rem;
  display: block;
  line-height: 1.5;
}

.lightbox-counter {
  font-size: 0.8rem;
  font-weight: 800;
  color: #8da2be;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Close & Navigation Buttons */
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

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

.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev { left: -72px; }
.lightbox-nav.next { right: -72px; }

@media (max-width: 900px) {
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

/* ---- Gallery Bottom CTA ---- */
.gallery-cta {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.gallery-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.gallery-cta h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.gallery-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Active Navigation */
.active-nav {
  color: var(--blue) !important;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
