/*
.gallery-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.gallery {
  display: grid;
  gap: 18px;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, 180px);
}

.item {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff; 
  width: 180px; 
  
} 

.img-box {
  width: 100%;
  aspect-ratio:  
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;  
  display: block;
}

.title {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #333;
}
/**/
/*--------------------------------------------------*/
:root{
    --border-color: #e6e6e6;
    --radius: 8px;
    --max-width: 900px;
    --gap: 12px;
    --bg: #ffffff;
  }

  

  .gallery-wrap{
    width: 100%;
    max-width: var(--max-width);
  }

  .gallery-title{
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
  }

  /* --- GRID: Desktop › 4 sütun --- */
  .gallery {
  display: grid;
  gap: 8px; /* boşlukları azalttık */
  grid-template-columns: repeat(4, 1fr);
}

  /* Mobilde 2 veya 1 kolona düşsün */
  @media (max-width: 768px){
     .gallery{
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  }

  @media (max-width: 460px){
      .gallery{
    grid-template-columns: repeat(1, 1fr);
    gap: 6px;
  }
  }

  /* Item */
  .gallery-item{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

 .thumb {
  aspect-ratio: 1/1;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 6px; /* daha kompakt iç boşluk */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.caption {
  margin-top: 4px; /* azaltılmış boşluk */
  text-align: center;
  font-size: 0.9rem;
}

  .thumb:hover{
    transform: translateY(-3px);
    transition: transform .18s ease-out;
  }