main .referanslar-giris {
  display: flex;
  width: 70%;
  margin: 0 auto;
  padding: 30px 0;
  flex-direction: column
}

main .referanslar-giris h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

main .referanslar-giris .referanslar-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  position: relative;
  margin-top: 20px;
  ;
}

main .referanslar-giris .referanslar-container img {
  display: inline-block;
  width: 32%;
  aspect-ratio: 6/5;
  position: relative;
  object-fit: cover;
  margin-bottom: 20px;
  transition: all .2s ease-in-out;
  cursor: pointer;
}

main .referanslar-giris .referanslar-container img:hover {
  filter: brightness(.6)
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  justify-content: center;
  align-items: center;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, .8)
}

.popup-content {
  margin: auto;
  display: block;
  width: 80%;
  max-height: 95vh;
  max-width: 700px
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  transition: .3s
}

.close:focus,
.close:hover {
  color: rgb(255, 255, 255, .6);
  text-decoration: none;
  cursor: pointer
}

@media screen and (max-width:1050px) {
  main .referanslar-giris {
    width: 80%
  }

  main .referanslar-giris .referanslar-container img {
    width: 48%
  }

  main .referanslar-giris .referanslar-container img:hover {
    filter: brightness(1)
  }

  .popup-content {
    width: 90%
  }
}

@media screen and (max-width:550px) {
  main .referanslar-giris {
    width: 90%
  }

  main .referanslar-giris h1 {
    font-size: 28px
  }
}