.padidinti-wrapper {
  position: relative;
  flex: 0 0 auto; /* Prevent shrinking */
}

.padidinti {
  position: absolute;
  transform-origin: center;
  height: 100%;
  width: 100%;
  display: flex;
  opacity: 0%;
  align-items: center;
  justify-content: center;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  transition: 0.2s;
  cursor: pointer;
}

.padidinti:hover {
  opacity: 100%;
}

.padidinti div {
  background-color: #cab08f;
  border-radius: 100%;
  padding: 20px;
}

.padidinti div img {
  width: 30px;
  height: 30px;
}

.modal {
  position: fixed;
  display: none; /* Ensure modal is hidden by default */
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.4
  ); /* Ensure the background is dark enough */
  align-items: center;
  justify-content: center;
}

.modal img {
  object-fit: contain;
  width: 90%;
  height: 90%;
}

@media only screen and (max-width: 840px) {
  .modal img {
    width: 80%;
    height: 75%;
  }
}

.modal .close {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 20px;
  right: 30px;
  color: white;
  font-weight: 400;
  cursor: pointer;
  background-color: #cab08f;
  border-radius: 100%;
  width: 35px;
  height: 35px;
}

.modal .close span {
  border-bottom: white;
  border-width: 2px;
  position: absolute;
  width: 15px;
}

.modal .close span:nth-child(1) {
  transform: rotate(45deg);
}

.modal .close span:nth-child(2) {
  transform: rotate(-45deg);
}

.modal .arrow-next span {
  border-bottom: white;
  border-width: 2px;
  position: absolute;
  width: 10px;
}

.modal .arrow-next span:nth-child(1) {
  transform: translateY(-3px) translateX(2px) rotate(45deg);
}

.modal .arrow-next span:nth-child(2) {
  transform: translateY(3px) translateX(2px) rotate(-45deg);
}

.modal .arrow-next {
  display: flex;
  position: absolute;
  right: 4%;
  background-color: #cab08f;
  border-radius: 100%;
  font-size: 20px;
  width: 50px;
  height: 50px;
  color: white;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 500;
}

@media only screen and (max-width: 840px) {
  .modal .arrow-next {
    bottom: 5%;
  }
  .modal .arrow-prev {
    bottom: 5%;
  }
}

.modal .arrow-prev span {
  border-bottom: white;
  border-width: 2px;
  position: absolute;
  width: 10px;
}

.modal .arrow-prev span:nth-child(1) {
  transform: translateY(3px) translateX(-2px) rotate(45deg);
}

.modal .arrow-prev span:nth-child(2) {
  transform: translateY(-3px) translateX(-2px) rotate(-45deg);
}

.modal .arrow-prev {
  background-color: #cab08f;
  border-radius: 100%;
  position: absolute;
  left: 4%;
  font-size: 20px;
  width: 50px;
  height: 50px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 500;
}
