.gallery-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.popup-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-img.zoom {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Çarpı butonu */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #f1c40f;
}

/* Ok butonları */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 45px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 15px;
  z-index: 1000;
}

.nav:active {
  transform: translateY(-50%) scale(0.9);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.nav:hover {
  color: #f1c40f;
}

/* Mobil dokunmatik uyum */
@media (max-width: 768px) {
  .nav {
    font-size: 35px;
    padding: 10px;
  }

  .close {
    font-size: 32px;
    right: 25px;
  }
}
.popup-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Fade/Slide animasyonu */
.popup-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
}

.popup-img.active {
  opacity: 1;
  transform: translateX(0);
}

/* Sayaç */
.counter {
  position: absolute;
  bottom: 15px;
  right: 20px;
  color: white;
  font-size: 18px;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 500;
}

/* Zoom efekti */
.popup-img.zoomed {
  transform: scale(2);
  cursor: grab;
}

.popup-img-wrapper.zooming {
  cursor: grabbing;
}
/* Popup arka planı */
.image-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	overflow: hidden;
}

/* Görsel kutusu */
.popup-content {
	max-width: 90%;
	max-height: 90%;
	position: relative;
	transition: transform 0.3s ease, opacity 0.3s ease;
	cursor: zoom-in;
    border-radius: 15px;
}

/* Zoom aktifken imleç değişsin */
.popup-content.zoomed {
	cursor: zoom-out;
	transform: scale(1.8);
}

/* Kapatma butonu */
.close-popup {
	position: fixed;
	top: 20px;
	right: 30px;
	color: white;
	font-size: 30px;
	cursor: pointer;
	z-index: 10000;
}

/* Ok butonları */
.popup-prev,
.popup-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	font-size: 40px;
	cursor: pointer;
	user-select: none;
	padding: 10px;
	z-index: 10000;
	transition: opacity 0.3s ease;
}

.popup-prev:hover,
.popup-next:hover {
	opacity: 0.8;
}

.popup-prev {
	left: 20px;
}
.popup-next {
	right: 20px;
}

/* Fotoğraf sayacı — sağ alt köşe */
.popup-counter {
	position: fixed;
	right: 30px;
	bottom: 20px;
	color: white;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.5);
	padding: 6px 12px;
	border-radius: 8px;
	z-index: 10000;
	font-family: Arial, sans-serif;
}

/*Popup hizmetlerimiz*/
.project-gallery{
    padding:80px 0;
}

.gallery-title{
    text-align:center;
    margin-bottom:35px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.gallery-item{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.gallery-item:hover{
    transform:scale(1.03);
}

.gallery-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.gallery-popup.active{
    display:flex;
}

.gallery-popup img{
    max-width:85%;
    max-height:85%;
    border-radius:8px;
}

.gallery-close{
    position:absolute;
    top:20px;
    right:35px;
    color:#fff;
    font-size:42px;
    cursor:pointer;
    user-select:none;
}

.gallery-prev,
.gallery-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#fff;
    font-size:55px;
    cursor:pointer;
    user-select:none;
    padding:15px;
}

.gallery-prev{
    left:35px;
}

.gallery-next{
    right:35px;
}

@media(max-width:991px){

.gallery-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:576px){

.gallery-grid{
    grid-template-columns:1fr;
}

.gallery-item{
    height:220px;
}

}