/* ============================================================
   REGUTECH GALLERY — Frontend Styles
   ============================================================ */

.rgt-gallery-section {
  background: #0d0f12;
  padding: 80px 24px 120px;
  position: relative;
}

.rgt-gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,255,0.3), transparent);
}

.rgt-gallery-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* ─── FILTERS ──────────────────────────────────────── */
.rgt-gallery-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.rgt-filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #2a2f38;
  border-radius: 2px;
  color: #8b9299;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rgt-filter-btn:hover {
  border-color: #00c9ff;
  color: #00c9ff;
}

.rgt-filter-btn.active {
  background: #00c9ff;
  border-color: #00c9ff;
  color: #0d0f12;
}

/* ─── GRID ─────────────────────────────────────────── */
.rgt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.rgt-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #2a2f38;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rgt-gallery-item:hover {
  border-color: #00c9ff;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,201,255,0.15);
}

.rgt-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rgt-gallery-item:hover img {
  transform: scale(1.1);
}

.rgt-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,18,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rgt-gallery-item:hover .rgt-gallery-overlay {
  opacity: 1;
}

.rgt-gallery-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00c9ff;
  margin-bottom: 8px;
}

.rgt-gallery-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #f4f6f8;
  line-height: 1.2;
}

.rgt-gallery-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #c5ccd4;
  margin-top: 4px;
  font-weight: 300;
}

/* ─── LIGHTBOX MODAL ───────────────────────────────── */
.rgt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,15,18,0.95);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: rgtFadeIn 0.3s ease;
}

.rgt-lightbox.active {
  display: flex;
}

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

.rgt-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: rgtZoomIn 0.3s ease;
}

@keyframes rgtZoomIn {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

.rgt-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.rgt-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 48px;
  height: 48px;
  background: rgba(0,201,255,0.1);
  border: 1px solid rgba(0,201,255,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.rgt-lightbox-close:hover {
  background: rgba(0,201,255,0.2);
  border-color: #00c9ff;
}

.rgt-lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: #00c9ff;
  stroke-width: 2;
}

.rgt-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,201,255,0.1);
  border: 1px solid rgba(0,201,255,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.rgt-lightbox-nav:hover {
  background: rgba(0,201,255,0.2);
  border-color: #00c9ff;
}

.rgt-lightbox-prev {
  left: -64px;
}

.rgt-lightbox-next {
  right: -64px;
}

.rgt-lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke: #00c9ff;
  stroke-width: 2;
  fill: none;
}

.rgt-lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
}

.rgt-lightbox-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00c9ff;
  margin-bottom: 8px;
}

.rgt-lightbox-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: #f4f6f8;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .rgt-gallery-section {
    padding: 60px 16px 80px;
  }
  
  .rgt-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .rgt-lightbox {
    padding: 20px;
  }
  
  .rgt-lightbox-nav {
    display: none;
  }
  
  .rgt-lightbox-close {
    top: -50px;
  }
}
