/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: #000;
  background-color: #fff;
  text-align: left;
  overflow-x: hidden;
}

h3, p, a {
  font-family: Helvetica, sans-serif;
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout container */
.container {
  display: flex;
  min-height: 100vh;
}

/* Fixed text column */
.text-column {
  flex: 0 0 280px;       /* fixed width */
  padding: 2em;
  position: sticky;      /* stays fixed while scrolling */
  top: 0;
  height: 100vh;
  overflow-y: auto;      /* scrollable if text is taller */
  background: #fff;
}

/* Desktop layout */
.image-column {
  flex: 1;              /* take remaining space */
  min-width: 40%;       /* ensures it’s at least 40% of screen */
  padding: 2em;
  overflow-y: auto;
  height: 100vh;
}

/* Remove centering from standalone images */
.image-column img {
  width: 100%;          
  max-width: 800px;     
  height: auto;
  margin-bottom: 1.5em;
  display: block;
  /* removed margin-left:auto and margin-right:auto */
}

/* New grouped styling */
.image-block {
  max-width: 800px;
  margin: 0 auto 2em;   /* centers the whole block in the column */
  text-align: left;     /* makes text align left with image */
}

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

.caption {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 0.5em;
}

/* Responsive layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .text-column {
    position: relative;
    height: auto;
    flex: none;
    width: 100%;
  }

  .image-column {
    height: auto;
    overflow: visible;
    flex: none;
    width: 100%;          /* full width on mobile */
    padding: 1em;         /* smaller padding */
  }

  .image-column img {
    max-width: 100%;      /* scale images to screen width */
  }
}

