/* MAIN CSS */
body {
  margin: 30px;
  font-family: sans-serif;
  background: #f5f5f5;
}

h1 {
  font-size: 22px;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--widget-size), 1fr));
  gap: var(--widget-gap);
  align-items: start;
}

.widget {
  width: 100%;
  /*
  max-width: var(--widget-size);
  aspect-ratio: 1 / 1;
  */
  border: 2px solid black;
  border-radius: 12px;
  padding: 14px;
  background: white;

  box-sizing: border-box;
}

:root {
  --widget-size: 280px;
  --widget-gap: 20px;
}

@media (max-width: 600px) {
  :root {
    --widget-size: 100%;
    --widget-gap: 14px;
  }

  body {
    margin: 15px;
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }

  .widget {
    max-width: none;
    width: 100%;
    aspect-ratio: auto;
  }
}
