/**
 * Editor styles for the admin
 */

.responsive-block-editor-addons-block-portfolio {
  .responsive-block-editor-addons-block-portfolio-title a {
    text-decoration: none;
  }
}

.responsive-block-editor-addons-hide-query
  .components-base-control:nth-of-type(3) {
  display: none;
}
.responsive-block-editor-addons-portfolio-alignment {
  margin-left: 20px;
}
.responsive-block-editor-addons-block-portfolio-markup-settings {
  .components-base-control__help {
    margin-top: 8px;
  }
}

.block-editor__container
  .editor-block-list__block
  .responsive-block-editor-addons-block-portfolio
  a {
  color: inherit;
}

.responsive-block-editor-addons-block-portfolio-image {
  position: relative;

  &:hover {
    .responsive-block-editor-addons-portfolio-no-image-placeholder {
      opacity: 1;
      z-index: 1;
    }
  }
}

.responsive-block-editor-addons-portfolio-no-image-placeholder {
  padding: 40px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: #f3f3f4;
  transition: 0.2s ease;

  svg {
    margin-bottom: 10px;
  }
}

.responsive-block-editor-addons-portfolio-no-image-icon {
  position: absolute;
  top: 10px;
  background: #ffe606;
  right: 10px;
  padding: 6px;
  line-height: 1;
  height: 32px;
  transition: 0.2s ease;
  border-radius: 5px;
  z-index: 1;
}

.block-editor__container
  .components-placeholder__fieldset
  .responsive-block-editor-addons-portfolio-image-help {
  display: inline-block;
  font-weight: bold;

  a {
    color: #0073aa;
    text-decoration: underline;

    &:hover {
      color: #00a0d2;
    }
  }
}
.responsive-block-editor-addons-portfolio-items article {
  padding: 30px;
}
.responsive-block-editor-addons-block-portfolio-excerpt .read-more {
  display: none;
}

.rbea-portfolio-block-number-of-items-control-container {
  margin-bottom: 24px;
  .components-flex.components-h-stack.components-v-stack.components-query-controls {
    .components-range-control {
      .components-base-control__field {
        .components-base-control__label {
          font-family: Roboto;
          font-size: 13px;
          font-weight: 400;
          line-height: 16px;
          text-transform: capitalize;
        }

        .components-range-control__root {
          .components-input-control.components-number-control.components-range-control__number {
            .components-input-base {
              .components-input-control__container {
                width: calc(64px);
              }
            }
          }
        }
      }
    }
  }
}