/**
 * Wallcano Tiles Ltd - Blog, Projects & Gallery Stylesheet
 * Strictly matched to OnePack (casethemes.net) Luxury Architectural Aesthetic
 */

/* =========================================================================
   1. SHARED CONTROLS & SUBPAGE HERO ENHANCEMENTS
   ========================================================================= */
.detail-article-title {
  color: #FFFFFF;
}

/* Desktop Nav Spacing Refinement for 7 items (Home, About, Collections, Blog, Projects, Gallery, Contact) */
@media (min-width: 993px) and (max-width: 1360px) {
  .desktop-nav {
    gap: 14px !important;
  }
  .nav-item .nav-link {
    font-size: 0.8125rem !important;
    letter-spacing: 0.01em;
  }
  .header-actions .btn-primary {
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
  }
}
@media (min-width: 1361px) {
  .desktop-nav {
    gap: 22px !important;
  }
}

/* =========================================================================
   2. BLOG PORTAL & DETAIL
   ========================================================================= */
.blog-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--third-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-cat-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.blog-cat-pill.active {
  background: var(--third-color);
  border-color: var(--third-color);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.blog-cat-pill .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.blog-cat-pill.active .pill-count {
  background: var(--primary-color);
  color: #FFFFFF;
}

.blog-search-box {
  position: relative;
  min-width: 280px;
  max-width: 360px;
  flex-grow: 1;
}

.blog-search-box input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--third-color);
  outline: none;
  transition: all var(--transition-fast);
}

.blog-search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(183, 155, 111, 0.18);
}

.blog-search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A96A6;
  pointer-events: none;
}

.blog-search-box .clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8A96A6;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Featured Article Card */
.featured-post-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.featured-post-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.featured-post-media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.featured-img-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-post-card:hover .featured-img-wrap img {
  transform: scale(1.04);
}

.featured-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--third-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-post-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  color: var(--body-color);
}

.post-cat-badge {
  background: rgba(183, 155, 111, 0.12);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.featured-post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-post-title a {
  color: var(--third-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-post-title a:hover {
  color: var(--primary-color);
}

.featured-post-excerpt {
  color: var(--body-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.featured-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.post-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.author-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--third-color);
}

.author-role {
  display: block;
  font-size: 0.75rem;
  color: #8A96A6;
}

/* Blog Posts Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.blog-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img-link img {
  transform: scale(1.06);
}

.blog-card-cat-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #8A96A6;
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--third-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--body-color);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.blog-tag {
  background: var(--four-color);
  color: var(--body-color);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.card-author-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-author-inline img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.card-author-inline span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--third-color);
}

.blog-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.blog-read-more-link:hover {
  gap: 9px;
  color: var(--primary-hover);
}

/* Newsletter Callout Card */
.blog-newsletter-card {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  padding: 48px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 6px 0 10px;
}

.newsletter-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

/* Editorial Single Article Layout */
.article-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: flex-start;
}

.article-key-takeaways {
  background: var(--body_bg-stone);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.takeaways-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--third-color);
  font-weight: 500;
  margin-bottom: 0;
}

.article-prose-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333333;
}

.article-prose-content .lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--third-color);
  font-weight: 600;
  margin-bottom: 28px;
}

.article-prose-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--third-color);
  margin: 36px 0 16px;
}

.article-prose-content p {
  margin-bottom: 22px;
}

.article-prose-content ul {
  margin: 16px 0 28px 24px;
}

.article-prose-content li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.article-prose-content blockquote {
  margin: 36px 0;
  padding: 24px 30px;
  background: var(--body_bg-stone);
  border-left: 4px solid var(--third-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-prose-content blockquote p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--third-color);
  line-height: 1.5;
  margin-bottom: 10px;
}

.article-prose-content blockquote cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
}

.blog-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.blog-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.blog-spec-table th {
  background: var(--third-color);
  color: #FFFFFF;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.blog-spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.blog-spec-table tr:nth-child(even) td {
  background: var(--four-color);
}

/* Article Sidebar */
.sidebar-sticky-wrap {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.sample-request-card {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--body_bg-stone) 100%);
}

.sample-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.sidebar-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--third-color);
  margin-bottom: 10px;
}

.sidebar-card-desc {
  font-size: 0.875rem;
  color: var(--body-color);
  line-height: 1.5;
  margin-bottom: 18px;
}

.article-share-links {
  display: flex;
  gap: 10px;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--four-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--third-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.share-icon-btn:hover {
  background: var(--third-color);
  color: #FFFFFF;
}


/* =========================================================================
   3. PROJECTS SECTION & PORTAL
   ========================================================================= */
.projects-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.p-stat-item {
  border-right: 1px solid var(--border-light);
  padding: 0 16px;
}

.p-stat-item:last-child {
  border-right: none;
}

.p-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 900;
  color: var(--third-color);
  line-height: 1.1;
  margin-bottom: 6px;
}

.p-stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--body-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--third-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.project-filter-btn.active {
  background: var(--third-color);
  color: #FFFFFF;
  border-color: var(--third-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

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

.project-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

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

.project-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-location-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-line {
  font-size: 0.75rem;
  color: #8A96A6;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--third-color);
  line-height: 1.35;
  margin-bottom: 10px;
}

.project-scope-text {
  font-size: 0.875rem;
  color: var(--body-color);
  line-height: 1.5;
  margin-bottom: 18px;
}

.project-specs-summary {
  background: var(--body_bg-stone);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.project-tile-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-tile-tags li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--third-color);
  font-weight: 600;
}

.project-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.p-ribbon-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--third-color);
}

.p-ribbon-lbl {
  display: block;
  font-size: 0.7rem;
  color: #8A96A6;
  text-transform: uppercase;
}

.project-card-action {
  margin-top: auto;
}

.project-card-action button {
  width: 100%;
}

/* Project Modal */
.project-modal-dialog {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 0;
  background: #FFFFFF;
}

.case-study-hero {
  position: relative;
  height: 360px;
}

.case-study-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: #FFFFFF;
}

.case-study-body {
  padding: 40px;
}

.case-study-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin-top: 24px;
}

.case-study-quote-box {
  background: var(--body_bg-stone);
  border-left: 4px solid var(--primary-color);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--third-color);
}


/* =========================================================================
   4. PHOTO GALLERY & LIGHTBOX VIEWER
   ========================================================================= */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--third-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.gallery-tab-btn.active {
  background: var(--third-color);
  color: #FFFFFF;
  border-color: var(--third-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gallery-tab-btn .tab-badge {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.gallery-tab-btn.active .tab-badge {
  background: var(--primary-color);
  color: #FFFFFF;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--dark-bg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0) 20%, rgba(13, 17, 23, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.gallery-item-card:hover .gallery-overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.2) 0%, rgba(13, 17, 23, 0.95) 100%);
}

.gallery-zoom-icon {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  opacity: 0;
  transition: all var(--transition-fast);
}

.gallery-item-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
  background: var(--primary-color);
}

.gallery-info-box {
  color: #FFFFFF;
}

.gallery-cat-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 6px;
}

.gallery-meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-meta-pill {
  font-size: 0.6875rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 94vw;
  max-width: 1400px;
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: 1fr 380px;
  width: 100%;
  height: 100%;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-media-wrap {
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lightbox-caption-panel {
  padding: 40px;
  background: var(--dark-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--dark-border);
  color: #FFFFFF;
  overflow-y: auto;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.lightbox-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #8A96A6;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.lightbox-title,
.lightbox-caption-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #FFFFFF !important;
}

.lightbox-desc {
  font-size: 0.9375rem;
  color: #A0ABC0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.lightbox-specs-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.lb-spec {
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
}

.lb-label {
  color: #8A96A6;
}

.lb-val {
  color: #FFFFFF;
  font-weight: 600;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
  transition: transform var(--transition-fast);
}

.lightbox-close-btn:hover {
  transform: scale(1.15);
  color: var(--primary-color);
}

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

.lightbox-nav-btn.prev {
  left: -70px;
}

.lightbox-nav-btn.next {
  right: -70px;
}

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


/* =========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1200px) {
  .blog-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-post-grid {
    grid-template-columns: 1fr;
  }
  .article-content-layout {
    grid-template-columns: 1fr;
  }
  .lightbox-stage {
    grid-template-columns: 1fr;
  }
  .lightbox-caption-panel {
    display: none; /* Mobile view prioritizes full photo */
  }
  .lightbox-nav-btn.prev { left: 10px; }
  .lightbox-nav-btn.next { right: 10px; }
  .lightbox-close-btn { top: 12px; right: 12px; z-index: 20; background: rgba(0,0,0,0.5); border-radius: 50%; }
}

@media (max-width: 768px) {
  .blog-grid,
  .projects-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .projects-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .p-stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
  }
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .blog-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-box {
    max-width: 100%;
  }
}
