/* ── Gallery Page ── */
.gallery-section {
  background: var(--dark);
  padding: 5rem 0 7rem;
  color: #fff;
}

/* Section header */
.gallery-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.gallery-h1 { color: #fff; }
.gallery-h1 .drop { color: var(--accent); }
.gallery-header-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.04rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* Project articles */
.gallery-projects { display: grid; gap: 1.5rem; }

.gallery-project {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

/* Carousel */
.gallery-carousel-wrap {
  position: relative;
  height: 300px;
  background: var(--bg2);
  overflow: hidden;
}
.gallery-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  position: relative;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-slide-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(13,15,18,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.375rem 0.625rem;
  backdrop-filter: blur(4px);
  border-radius: 99px;
  z-index: 5;
}

/* Prev / next buttons */
.gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}
.gallery-prev,
.gallery-next {
  pointer-events: all;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(13,15,18,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-project:hover .gallery-prev,
.gallery-project:hover .gallery-next { opacity: 1; }
.gallery-prev:hover,
.gallery-next:hover { background: rgba(13,15,18,0.9); }

/* Info panel */
.gallery-info {
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery-project-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.15;
}
.gallery-project-location {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.gallery-project-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-top: 0.25rem;
}
.gallery-meta-row { display: flex; gap: 0.75rem; }
.gallery-meta dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  min-width: 5rem;
  padding-top: 0.05rem;
}
.gallery-meta dd {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}
.gallery-quote-btn { margin-top: 0.75rem; }

/* ── Responsive ── */
@media (min-width: 768px) {
  .gallery-header { grid-template-columns: 0.95fr 0.7fr; }
  .gallery-carousel-wrap { height: 470px; }
}
@media (min-width: 1024px) {
  .gallery-project {
    grid-template-columns: 1.5fr 0.62fr;
  }
}
