.grid-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 60px 112px;
  background-color: #fff;
}
.grid-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  transition: 0.3s;
}

.clear-space .slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  border-radius: 50%;
  transition: 0.3s;
}

.grid-block input:checked + .slider::before {
  transform: translateX(16px);
}

.clearspace-block.grid-block {
  gap: 16px;
}

.clearspace-block.grid-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.clearspace-block .grid-image {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.clearspace-block .paragraph {
  color: rgba(0, 0, 0, 0.5);
}

@container (min-width: 1025px) {
  .clearspace-block .paragraph {
    max-width: 538px;
  }
}

@container (max-width: 992px) {
  .grid-block {
    padding: 60px 32px;
  }
}

@container (max-width: 540px) {
  .grid-block {
    padding: 60px 16px;
  }

  .grid-row {
    flex-direction: column;
  }
}
