.input-images {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.input-images__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #E5E5E5;
  color: #13213C;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 0 10px;
  cursor: pointer;
}
.input-images__button svg {
  fill: currentColor;
}
.input-images__wrapper {
  border: 1px solid #CFCFCF;
  border-radius: 5px;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}
.input-images__item {
  padding: 5px;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  position: relative;
}
.input-images__item a {
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}
.input-images__item button {
  width: 20px;
  height: 20px;
  outline: none;
  border: none;
  background: #E5E5E5;
  cursor: pointer;
  border-radius: 5px;
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.input-images__item button svg {
  fill: #13213C;
  width: 14px;
  height: auto;
}
.input-images__wrapper .input-images__item:first-of-type {
  flex: 0 0 100%;
  max-width: 100%;
}
.input-images__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
@media screen and (max-width: 767px) {
  #product-form .input-images__wrapper .input-images__item:first-of-type {
    flex: 0 0 33.3333333333333%;
    max-width: 33.3333333333333%;
  }
  #product-form .input-images {
    min-height: 120px;
  }
}