/* Tüm portfolio kartları eşit 4:3 boyut */

.portfolio-item .portfolio-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 oranı = 3/4 = 75% */
  overflow: hidden;
}

.portfolio-item .portfolio-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* görseli kırpmadan doldurur */
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

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


/* ── Lightbox ── */
#pf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#pf-lightbox.pf-lb-open {
  display: flex;
}

#pf-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

#pf-lb-wrapper {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  animation: pf-lb-in 0.2s ease;
}

@keyframes pf-lb-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

#pf-lb-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#pf-lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  border: none;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}

#pf-lb-close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.portfolio-info {
  position: relative;
}

.portfolio-info .pf-preview-link {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  color: #000;
  transition: 0.2s ease;
}

.portfolio-info .pf-preview-link:hover {
  transform: scale(1.1);
  background: #fff;
}