.grid-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 60px 112px;
  background-color: #fff;
}

.grid-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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;
}

.construction-block .slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.grid-block input:checked + .slider::before {
  transform: translateX(16px);
}

.grid-image {
  width: 100%;
  border-radius: 0px;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.grid-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@container (max-width: 992px) {
  .grid-block {
    padding: 60px 32px;
  }
}

@container (max-width: 540px) {
  .grid-block {
    padding: 60px 16px;
  }

  .grid-row {
    flex-direction: column;
    gap: 32px;
  }

  .grid-col {
    gap: 12px;
  }
}
