.miranda_chris-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

.header {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  color: #333;
}

.header span {
  font-size: 0.8em;
  display: block;
  margin-top: 5px;
  color: #666;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.row-reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
  min-width: 300px;
  line-height: 1.6;
}

.image-container {
  flex-shrink: 0;
  width: 45%;
  max-width: 45%;
}

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

.definition {
  padding-top: 15px;
}

.definition p {
  font-size: 0.9em;
  margin: 0;
  line-height: 1.4;
}

.workshops-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.workshops-list h3 {
  color: #d9534f;
  margin-top: 0;
  margin-bottom: 10px;
}

.workshops-list li {
  margin-bottom: 5px;
  font-size: 1.2em;
}

.workshops-list a {
  text-decoration: none;
  color: inherit;
}

.performance-link {
  margin-top: 10px;
}

.middle-row-grid {
  display: grid;
  grid-template-columns: auto 45% auto;
  gap: 20px;
  align-items: flex-start;
}

.middle-row-grid .image-container {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .header {
    font-size: 1.5em;
  }

  .row,
  .row-reverse {
    flex-direction: column;
  }

  .text-content {
    min-width: 100%;
    flex: none;
  }

  .image-container {
    max-width: 100%;
    width: 100%;
    flex: none;
  }

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

  /* The core fix for mobile layout */
  .middle-row-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Target the first text-content block in the middle row */
  .middle-row-grid > .text-content:first-of-type {
    order: 1;
  }

  /* Target the image-container in the middle row */
  .middle-row-grid > .image-container {
    order: 2;
  }

  /* Target the last text-content block in the middle row */
  .middle-row-grid > .text-content:last-of-type {
    order: 3;
    align-self: flex-start; /* Ensure this element is at the top of the column */
  }

  .workshops-list li {
    font-size: 1.1em;
  }
}
