/* =========================
   Portfolio
   Past bij styles.css variabelen / buttons
   ========================= */

.p-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.p-header__inner{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p-nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-nav a{
  color: var(--dark);
  text-decoration: none;
  font-weight: 800;
}

.p-nav a:hover{
  text-decoration: underline;
}

.pf { padding-top: 0; }

/* Hero */
.pf-hero{
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 92px 0 46px;
  background: var(--dark);
  color: #fff;
}

.pf-hero__bg{
  position: absolute;
  inset: 0;
  /* Zet hier jouw portfolio hero afbeelding */
  background-image: url('homepagepics/optie2.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.pf-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.78));
}

.pf-hero__inner{
  position: relative;
  z-index: 2;
}

.pf-hero h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 900;
}

.pf-lead{
  margin: 0 0 18px;
  max-width: 820px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
}

.pf-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.pf-btn{
  justify-content: center;
}

/* Section spacing */
.pf-section{ padding-top: 78px; }

/* Grid */
.pf-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 760px){
  .pf-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1080px){
  .pf-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* Items */
.pf-item{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  aspect-ratio: 4 / 3;
  transform: translateZ(0);
}

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

.pf-item:hover img{
  transform: scale(1.03);
}

.pf-item:focus-visible{
  outline: 3px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}

/* =========================
   Lightbox verbeterd
   ========================= */

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
}

/* wrapper rond afbeelding */
.lightbox-img{
  position: relative;
  z-index: 2;
  max-width: min(1100px, 95vw);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* KNOP NU OP DE AFBEELDING */
.lightbox-close{
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}

.lightbox-close:hover{
  background: rgba(0,0,0,.8);
}