@import '~styles/mixins';

.EditAssetWorkSpaceForm {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 30px;

  @include medium {
    border-radius: 0;
  }

  .custom-dropzone {
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .custom-preview {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: inherit;
    max-height: inherit;
  }

  .item {
    width: 48%;
    overflow: hidden;

    @include tablet {
      width: 48% !important;
      margin-bottom: 10px !important;
    }

    @include phone {
      width: 100% !important;
    }

    &:nth-child(1) {
      margin-bottom: 20px;
      @include medium {
        margin-bottom: 0;
      }
    }
    &:nth-child(2) {
      margin-bottom: 20px;
      @include medium {
        margin-bottom: 0;
      }
    }

    &:nth-child(3) {
      margin-bottom: 20px;
    }
  }

  .full {
    width: 49%;
    overflow: hidden;

    @include medium {
      width: 100%;
      margin-bottom: 20px;
    }

    @include phone {
      margin-bottom: 10px;
    }
    img {
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
  }
  .grid {
    width: 49%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    @include medium {
      width: 100%;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .inline {
    width: 100%;
    margin-top: 30px;

    .wrapper-item {
      width: 100%;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: space-between;

      .item {
        width: 24%;
        margin-bottom: 0;
      }
    }
  }

  .actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    @include tablet {
      justify-content: space-between;
    }
    .button {
      width: auto;
      margin-left: 20px;
      @include tablet {
        margin-left: 0;
        width: 48%;
      }
    }
  }
}
