/* ---------- Portfolio hero ---------- */
.portfolio-hero {
  background: #a49c88;
  padding: 100px 60px;
  text-align: center;
}

.hero-rule {
  height: 1px;
  background: rgba(255,255,255,0.35);
  max-width: 1700px;
  margin: 0 auto;
}

.portfolio-hero h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 48px;
  letter-spacing: 0.1em;
  color: #f6f3ea;
  margin: 46px 0;
}

/* ---------- Horizontal scrolling gallery ---------- */
.portfolio-gallery {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  background: #a49c88;
  padding-bottom: 100px;
}

.portfolio-gallery::-webkit-scrollbar {
  height: 8px;
}

.portfolio-gallery::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
}

.portfolio-empty {
  padding: 60px 20px;
  color: #1c1b17;
  font-size: 15px;
}

.portfolio-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 280px;
  height: 280px;
  scroll-snap-align: start;
  overflow: hidden;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.portfolio-item:hover::after {
  background: rgba(0,0,0,0.35);
}

.portfolio-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.portfolio-item:hover .portfolio-label {
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .portfolio-hero { padding: 100px 24px 60px; }
  .portfolio-hero h1 { font-size: 32px; margin: 30px 0; }

  .portfolio-gallery { padding-bottom: 60px; }

  .portfolio-item {
    width: 220px;
    height: 220px;
  }

  .portfolio-label {
    font-size: 14px;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    padding: 0 16px;
    width: 100%;
  }
}
