/**
 * AASHAPURA CONSTRUCTION - Editorial Portfolio & Lightbox CSS
 * Varied visual rhythm: featured hero scale, asymmetrical pairings, fullscreen lightbox
 */

/* ==========================================================================
   1. PORTFOLIO FILTER CONTROLS
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.filter-btn.active {
  color: #0D1117;
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

/* ==========================================================================
   2. EDITORIAL ASYMMETRICAL PORTFOLIO GRID
   Avoids monotonous card matrices with an editorial magazine rhythm
   ========================================================================== */
.portfolio-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 4.5rem);
}

/* Featured Hero-Scale Project (Commands immediate attention) */
.featured-project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-normal);
}

.featured-project-card:hover {
  border-color: var(--border-gold);
}

.featured-project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 10;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.featured-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-zoom);
}

.featured-project-card:hover .featured-project-img {
  transform: scale(1.035);
}

.featured-project-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(11, 14, 20, 0.95) 0%,
    rgba(11, 14, 20, 0.6) 40%,
    transparent 80%
  );
  pointer-events: none;
}

.featured-project-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0D1117;
  background: var(--accent-gold);
  padding: 0.4rem 1rem;
  border-radius: 4px;
}

.featured-project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.featured-project-info {
  max-width: 800px;
}

.featured-project-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.featured-project-title {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.featured-project-desc {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.featured-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.featured-spec-item {
  display: flex;
  flex-direction: column;
}

.featured-spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.featured-spec-val {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.featured-project-action {
  flex-shrink: 0;
}

/* Asymmetrical Paired Projects (Two complementary images) */
.asymmetric-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.asymmetric-row.reversed {
  grid-template-columns: 1fr 1.25fr;
}

/* Standard Editorial Project Item */
.editorial-project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.editorial-project-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.editorial-project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.editorial-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-zoom);
}

.editorial-project-card:hover .editorial-project-img {
  transform: scale(1.05);
}

.editorial-project-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 14, 20, 0.85) 100%);
  pointer-events: none;
}

.editorial-project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0D1117;
  background: var(--accent-gold);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

.editorial-project-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.editorial-project-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.editorial-project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.editorial-project-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.editorial-project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.editorial-project-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* ==========================================================================
   3. FULL-SCREEN ARCHITECTURAL LIGHTBOX VIEWER
   Allows clients to view 4K master photographs with captions & navigation
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 9, 13, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: clamp(1rem, 2vw, 2rem);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  z-index: 10;
}

.lightbox-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-brand-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.lightbox-counter {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.lightbox-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--accent-gold);
  color: #0D1117;
  transform: rotate(90deg);
}

.lightbox-stage {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--accent-gold);
  color: #0D1117;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: clamp(0.5rem, 2vw, 2rem);
}

.lightbox-next {
  right: clamp(0.5rem, 2vw, 2rem);
}

.lightbox-footer {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  z-index: 10;
}

.lightbox-caption-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.lightbox-caption-meta {
  font-size: var(--text-xs);
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
