body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}



.example-container {
    display: flex;
    gap: 200px;
    flex-wrap: wrap;
    margin-top: 20px;
}

article {
    border: 2px solid #444;
    padding: 10px;
    width: 200px;
    /* FIXED WIDTH */
    background: #f7f7f7;
}

.example img {
    border: 2px solid #b33;
    display: block;
}

/* Second example: fix overflow */
.scaled img {
    max-width: 100%;
    /* Key line */
    height: auto;
}

.label {
    font-weight: bold;
    background: #ddd;
    padding: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.grid {
    display: grid;
    grid-template-columns: 40% 40%;
    gap: 40px;
    margin-top: 20px;
}

.grid-item {
    border: 2px solid #444;
    padding: 10px;
    background: #f7f7f7;
}

.example img {
    display: block;
    border: 2px solid #b33;
}

.max img {
    max-width: 100%;
    /* Image will not stretch larger than natural size */
    height: auto;
}

.stretch img {
    width: 100%;
    /* Force image to fill grid cell */
    height: auto;
}