.gallery-section-2511 {
  padding: 80px 10px;
  background: #ffffff;
}

/* Grid layout */
.gallery-1251 {
  display: grid;
  grid-template-columns: repeat(2, 340px);

  /* max-width: 1140px; */
  margin: 0; /* center hata diya */
  padding-left: 40px; /* left se gap diya */
  gap: 50px;
  max-width: 100%;
  margin-left: 11%;
}

/* Card styling */
.card-1251 {
  background: #ffffff;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 1px;
}

/* Image styling */
.card-1251 img {
  width: 340px;

  height: 340px;
  object-fit: contain;

  border-style: solid;
  border-color: #dbdbdb;
  border-radius: 5px 5px 5px 5px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  vertical-align: middle;
  display: inline-block;

  width: 100%; /* IMPORTANT */
  height: 340px;
  object-fit: contain;
  display: block;
}

/* Responsive: 1 column on small screens */
@media (max-width: 768px) {
  .gallery-1251 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-1251 {
    width: 100%;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .gallery-section-2511 {
    padding: 40px 0;
  }

  .gallery-1251 {
    grid-template-columns: 1fr;
    margin-left: 0; /* remove left shift */
    padding-left: 0; /* remove extra space */
    gap: 20px;
    justify-content: center;
  }

  .card-1251 {
    width: 99%;
    padding-left: 18px;
  }

  .card-1251 img {
    width: 100%;
    height: auto; /* important for proper scaling */
    display: block;
  }
}
