/* ==========================================================
   ARMADA — Construction & Maçonnerie Gallery Stylesheet
   Navy Blue (#0a192f), Gold (#c9a227 / #f59e0b) Visual Identity
   ========================================================== */

/* Breadcrumb Bar */
.gallery-breadcrumb-bar {
  background: var(--navy-dark, #061530);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
}
.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-main, Montserrat, sans-serif);
}
.gallery-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.gallery-breadcrumb a:hover {
  color: var(--gold, #c9a227);
}
.gallery-breadcrumb li[aria-current="page"] {
  color: var(--gold, #c9a227);
  font-weight: 600;
}

/* Hero Section */
.gallery-hero {
  background: linear-gradient(135deg, #061530 0%, #0a2550 100%);
  color: #ffffff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gallery-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.gallery-hero-title {
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 2.35rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.gallery-hero-desc {
  max-width: 820px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* Category Filter Tabs */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 0.65rem 1.3rem;
  border-radius: 50px;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-btn:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold, #c9a227);
  color: #ffffff;
}
.filter-btn.active {
  background: var(--gold, #c9a227);
  border-color: var(--gold, #c9a227);
  color: var(--navy-dark, #061530);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.filter-count {
  font-size: 0.76rem;
  opacity: 0.85;
}

/* 13 Photo Grid */
.gallery-grid-13 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-card-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(6, 21, 48, 0.08);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.gallery-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(6, 21, 48, 0.16);
}
.gallery-card-media {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card-item:hover .gallery-card-media img {
  transform: scale(1.08);
}
.gallery-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 21, 48, 0.85);
  backdrop-filter: blur(4px);
  color: var(--gold, #c9a227);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

/* Card Overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 21, 48, 0.95) 0%, rgba(6, 21, 48, 0.6) 50%, rgba(6, 21, 48, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}
.gallery-card-item:hover .gallery-card-overlay {
  opacity: 1;
}
.gallery-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
}
.gallery-card-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}
.gallery-card-title {
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.gallery-card-caption {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card-btn {
  align-self: flex-start;
  background: var(--gold, #c9a227);
  color: var(--navy-dark, #061530);
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Contextual Service Links & Disclaimer */
.gallery-context-box {
  margin-top: 3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  text-align: center;
}
.gallery-context-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.context-link-gold {
  color: var(--navy-dark, #061530);
  font-family: var(--font-main, Montserrat, sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.context-link-gold:hover {
  color: var(--gold, #c9a227);
  transform: translateX(3px);
}
.gallery-disclaimer-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gallery-lightbox.active {
  display: flex;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 48, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure-wrap {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.lightbox-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #061530;
  display: block;
}
.lightbox-caption {
  padding: 1.25rem 1.75rem;
  background: #0f172a;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.lightbox-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold, #c9a227);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.lightbox-title {
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.lightbox-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.lightbox-counter {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-main, Montserrat, sans-serif);
}

/* Lightbox Controls */
.lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background: var(--gold, #c9a227);
  color: var(--navy-dark, #061530);
}
.lightbox-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(6, 21, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-nav:hover {
  background: var(--gold, #c9a227);
  color: var(--navy-dark, #061530);
  border-color: var(--gold, #c9a227);
}
.lightbox-prev {
  left: -3rem;
}
.lightbox-next {
  right: -3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid-13 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (max-width: 640px) {
  .gallery-hero-title {
    font-size: 1.85rem;
  }
  .gallery-grid-13 {
    grid-template-columns: 1fr;
  }
  .gallery-card-media {
    height: 250px;
  }
  .lightbox-close {
    top: -2.4rem;
    right: 0.5rem;
  }
  .gallery-context-box {
    padding: 1.25rem 1rem;
  }
  .gallery-context-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
