/* ======================
   FEATURED PROJECTS
====================== */

.gallery-featured {
  padding: 80px 7vw 70px;
}

.gallery-featured-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-featured-header {
  max-width: 760px;
  margin-bottom: 26px;
}

.gallery-kicker {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #d40000;
  margin-bottom: 8px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  text-transform: none; /* headings use Title Case */
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.gallery-title .accent {
  color: #d40000;
}

.gallery-intro {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
}

.gallery-featured-wrapper {
  position: relative;
  margin-top: 32px;
}

.gallery-featured-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.gallery-featured-track::-webkit-scrollbar {
  display: none;
}

.featured-card {
  min-width: 360px;
  max-width: 380px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.16);
}

.featured-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.featured-card-body {
  padding: 18px 22px 20px;
}

.featured-tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-bottom: 8px;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.featured-meta {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.65);
  margin-bottom: 8px;
}

.featured-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555;
}

/* arrows */

.gallery-arrow {
  position: absolute;
  top: -60px;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-arrow.left {
  right: 56px;
}

.gallery-arrow:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

/* ======================
   GRID + FILTERS
====================== */

.gallery-grid-section {
  padding: 70px 7vw 90px;
  background: #fafafa;
}

.gallery-grid-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-grid-header {
  max-width: 780px;
  margin-bottom: 24px;
}

/* reuse kicker, title, intro classes already defined above */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 26px;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 7px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.filter-btn.is-active {
  background: #d40000;
  border-color: #d40000;
  color: #fff;
  box-shadow: 0 8px 22px rgba(212,0,0,0.35);
}

/* grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  cursor: pointer;
}

.gallery-thumb {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  background: #111;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .3s ease, filter .3s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  opacity: 0;
  transition: opacity .22s ease;
}

.gallery-overlay h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: none; /* headings use Title Case */
  margin: 0 0 4px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
}

.gallery-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
}

.gallery-thumb:hover img {
  transform: scale(1.1);
  filter: saturate(1.1);
}

.gallery-thumb:hover .gallery-overlay {
  opacity: 1;
}

/* ======================
   LIGHTBOX
====================== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 999;
}

.gallery-lightbox.is-visible {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.lightbox-caption {
  margin-top: 14px;
  color: #fff;
  font-size: 0.9rem;
  max-width: 70vw;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

/* ======================
   RESPONSIVE
====================== */

@media (max-width: 1024px) {
  .gallery-featured-track {
    gap: 18px;
  }

  .featured-card {
    min-width: 320px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-featured {
    padding: 60px 6vw 50px;
  }

  .gallery-grid-section {
    padding: 60px 6vw 70px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-arrow {
    top: -50px;
  }
}
