/* GIGI Slider — styles frontend + éditeur */

.wp-block-gigi-slider.gigi-slider,
.gigi-slider {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.gigi-slider__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: grab;
}

.gigi-slider__viewport:active {
  cursor: grabbing;
}

.gigi-slider__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.3s ease;
}

.gigi-slider .gigi-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.gigi-slider .gigi-slide__inner {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.gigi-slider .gigi-slide__inner > * {
  min-height: 100%;
  align-content: center;
}

/* Flèches */
.gigi-slider__arrow {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0.25rem;
  padding: 0;
  border: none;
  color: #555;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.gigi-slider__arrow svg {
  width: 5rem;
  height: 5rem;
}

.gigi-slider__arrow:hover:not(:disabled) {
  background: transparent;
  color: #1c1c1c;
}

.gigi-slider__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.gigi-slider__arrow--prev {
  order: -1;
}

.gigi-slider__arrow--next {
  order: 1;
}

/* Éditeur Gutenberg */
.gigi-slider--editor .gigi-slider__viewport {
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 200px;
}

.gigi-slider--editor .gigi-slider__track {
  flex-wrap: nowrap;
}

.gigi-slider--editor .gigi-slider__track > .block-editor-inner-blocks {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 100%;
}

.gigi-slider--editor .gigi-slider__track > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 100%;
}

.gigi-slider--editor .gigi-slider__track > .block-editor-inner-blocks > .block-editor-block-list__layout > * {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.gigi-slider--editor .gigi-slide > .gigi-slide__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gigi-slider--editor .gigi-slide > .gigi-slide__inner > .block-editor-inner-blocks {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.gigi-slider--editor .gigi-slide > .gigi-slide__inner > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.gigi-slider--editor .gigi-slide > .gigi-slide__inner > .block-editor-inner-blocks > .block-editor-block-list__layout > * {
  flex: none;
  min-width: auto;
  max-width: none;
}

.gigi-slider--editor .gigi-slide .gigi-slide__inner .block-editor-inner-blocks .block-editor-block-list__layout > * {
  min-height: 100%;
  align-content: center;
}
