/*
 * Galerija - Stranica CSS (Clean Carbon Black Design)
 * klimaFix Beograd
 */

/* =========================================
   PAGE HERO - GALLERY
   ========================================= */
#page-hero-gallery {
  background: linear-gradient(rgba(7, 7, 7, 0.75), rgba(18, 18, 18, 0.80)),
              url('../images/bg_hero_galerija.jpg') no-repeat center center;
  background-size: cover;
  min-height: 400px;
  padding-top: 160px;
  padding-bottom: 60px;
  position: relative;
}

.gallery-hero-content h1 {
  color: var(--text-white) !important;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: none !important;
}

.gallery-hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 25px;
}

.breadcrumb-nav-gal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-nav-gal a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav-gal a:hover { color: var(--text-white); }

.breadcrumb-nav-gal span {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
}

.breadcrumb-nav-gal .current {
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* =========================================
   FILTER BAR
   ========================================= */
#filter-bar {
  background: var(--bg-white);
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none !important;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  background: none;
  border: none;
  padding: 18px 28px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.filter-btn:hover { color: var(--primary-color); }

.filter-btn.active {
  color: var(--primary-color);
}

.filter-btn.active::after {
  transform: scaleX(1);
}

/* =========================================
   GALLERY GRID
   ========================================= */
#gallery-section {
  background: var(--bg-light);
  padding-top: 60px;
  padding-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: none !important;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, 0.75);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-img-wrap:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gallery-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-white);
  background: var(--primary-color);
  padding: 5px 14px;
  border-radius: 20px;
}

.gallery-overlay .fa-expand {
  color: var(--text-white);
  font-size: 1.2rem;
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: none !important;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  box-shadow: none !important;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* =========================================
   GALLERY CTA - CARBON BLACK
   ========================================= */
#gallery-cta {
  background: var(--bg-white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.gallery-cta-box {
  background: #0b0b0b;
  border: 1px solid #262626;
  border-top: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 60px 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
}

.gallery-cta-box h2 {
  color: var(--text-white);
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: none !important;
  font-weight: 800;
}

.gallery-cta-box p {
  color: #a3a3a3;
  font-size: 1.05rem;
  margin-bottom: 35px;
}

/* =========================================
   DARK THEME
   ========================================= */


/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 991px) {
  #page-hero-gallery { padding-top: 140px; min-height: 340px; }
  .gallery-hero-content h1 { font-size: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  #page-hero-gallery { padding-top: 110px; padding-bottom: 50px; min-height: 300px; }
  .gallery-hero-content h1 { font-size: 2rem; }
  .gallery-hero-content p { font-size: 0.95rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-btn { padding: 14px 16px; font-size: 0.75rem; }
  .gallery-cta-box { padding: 40px 20px; }
  .gallery-cta-box h2 { font-size: 1.7rem; }
}

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