// Editor-specific styles for the slider block

.vitalisite-slider-wrapper {
  position: relative;
  max-width: 100%;
  background-color: darkcyan;
}

.vitalisite-slider.swiper {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 16px;
  background: #f9f9f9;

  .editor-preview {
    .block-editor-inner-blocks > .block-editor-block-list__layout {
      display: grid;
      grid-template-columns: repeat(auto-fill, 120px);
      gap: 8px;
    }

    .wp-block-image {
      margin: 0;
      width: 120px !important;
      height: 120px !important;

      // Disable resize handle
      .components-resizable-box__container {
        pointer-events: none;
      }

      figure {
        width: 120px !important;
        height: 120px !important;
        margin: 0;
      }

      img {
        width: 120px !important;
        height: 120px !important;
        object-fit: cover;
        border-radius: 4px;
        display: block;
      }
    }
  }
}
