body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

header, footer {
  background: #003366;
  color: #fff;
  padding: 1em 2em;
}

header h1, footer p {
  margin: 0;
  color: inherit;
}


.container {
    padding: 2em;
    max-width: 1000px;
    margin: auto;
    background: white;
}

h1,
h2 {
    color: #003366;
}

img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    margin: 1em 0;
}

.video-placeholder {
    background: #ddd;
    padding: 2em;
    text-align: center;
    margin: 2em 0;
    font-style: italic;
}

.figure-with-text {
    display: flex;
    align-items: center;
    /* <-- changed from flex-start */
    margin-bottom: 2em;
    flex-wrap: wrap;
}


.thumb-block {
    width: 25%;
    margin-right: 1em;
    flex-shrink: 0;
}

.thumb-block img {
    width: 100%;
    height: auto;
    display: block;
}

.thumb-block figcaption {
    text-align: center;
    word-wrap: break-word;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #444;
}

.text-block {
    flex: 1;
    min-width: 250px;
}

/* Responsive behaviour for smaller screens */
@media (max-width: 768px) {
    .figure-with-text {
        flex-direction: column;
    }

    .thumb-block {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1em;
    }

    .text-block {
        width: 100%;
    }
}