/* portfolio.css */

/* =========================
PORTFOLIO HERO
========================= */

.portfolio-hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.portfolio-hero h1 {

  font-family: 'DM Sans', sans-serif;

  font-size: clamp(2.2rem, 5vw, 3.2rem);

  line-height: 1.1;

  color: var(--nordsee-blau);

  margin-bottom: 1rem;

  max-width: 12ch;
}

.portfolio-lead {

  max-width: 40rem;

  color: var(--sturmwolke);

  font-size: 1rem;
}

/* =========================
GRID
========================= */

.portfolio-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.4rem;
}

/* =========================
CARD
========================= */

.portfolio-card {

  position: relative;

  overflow: hidden;

  border-radius: 1rem;

  background-color: #ffffff;

  border: 1px solid rgba(28, 58, 85, 0.06);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);

  aspect-ratio: 4 / 3;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.portfolio-card:hover {

  transform: translateY(-4px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.08);
}

/* =========================
IMAGES
========================= */

.portfolio-card img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  cursor: pointer;

  transition: transform 0.5s ease;
}

.portfolio-card:hover img {

  transform: scale(1.04);
}

/* =========================
LIGHTBOX
========================= */

.lightbox {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.92);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 99999;

  padding: 2rem;
}

.lightbox img {

  max-width: 90%;

  max-height: 90%;

  object-fit: contain;

  border-radius: 1rem;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.5);

  cursor: zoom-out;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 920px) {

  .portfolio-grid {

    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  .portfolio-grid {

    grid-template-columns: 1fr;
  }

  .portfolio-hero {

    padding-top: 2rem;
  }

}