.nuotrauku-wrapper {
  position: relative;
}

.blokai-wrapper {
  padding: 0 3%;
}

.image-grid {
  display: grid;
  justify-content: center;
  align-items: center;
  align-content: center;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(253px, 1fr));
  gap: 20px;
}

.nuotrauku-wrapper {
  flex: 0 0 auto; /* Prevent shrinking */
}

.nuotrauku-wrapper img {
  width: 253px;
  height: 223px;
}

.ziureti-visus {
  width: 253px;
  height: 223px;
  background-color: #cab08f;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex: 0 0 auto; /* Prevent shrinking */
}

.ziureti-visus div {
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.ziureti-visus a {
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  border-bottom: 1px white solid;
}

.ziureti-visus:hover {
  background: #a49075;
}

@media only screen and (max-width: 1172px) {
  .nuotrauku-wrapper img {
    width: 200px;
    height: 176px;
  }

  .ziureti-visus {
    width: 200px;
    height: 176px;
  }
}

@media only screen and (max-width: 750px) {
  .image-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: start;
    overflow-x: auto;
  }
}

.custom-baldai-header img {
  width: 100%;
  height: 100%;
}

.custom-image-holder {
  width: 100%;
  height: 744px;
}

.custom-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skaityti-daugiau {
  color: #cab08f;
  transition: 0.2s;
}

.skaityti-daugiau:hover {
  color: #a49075;
}
