.page_category-biography {
  --grid-gap-mobile: 1.5rem;
  --grid-gap-desktop: 2rem;
  --text-font-size: 18px;
  --media-max-height: 400px;
}

/* --- GENERAL STYLING --- */

.page_category-biography h1 {
  padding: 3rem 0 2rem 0;
}

.page_category-biography .entry-content p {
  margin: 0;
  font-size: var(--text-font-size);
}

/* bio intro has 2 columns in desktop */
.anastasia-bio-intro{
  display:block !important;
  -moz-columns: 1;
       columns: 1;
}
/* bio intro has bigger padding to make it easier to read */
.anastasia-bio-intro.is-layout-flow.wp-block-column-is-layout-flow {
    padding: 0 12.5em;
}

/* --- COLUMNS IMAGE + TEXT STYLING --- */

.page_category-biography .text-image-pattern {
  align-items: stretch; /* Make columns same height */
  gap: var(--grid-gap-desktop);
  padding-left: 5rem;
  padding-right: 5rem;
}

/* Make each column stretch */
.page_category-biography .text-image-pattern .wp-block-column {
  display: flex;
  flex-direction: column;
}

/* Make image container fill column */
.page_category-biography .text-image-pattern .wp-block-image {
  flex: 1;
  display: flex;
}

/* Responsive cropping for images */
.page_category-biography .text-image-pattern .wp-block-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  border-radius: 0.5rem;
  padding-top: 0; /* remove top padding */
}

/* Global image tweaks */
.page_category-biography img {
  width: 100%;
  padding-top: 2rem;
  height: auto;
}

/* --- YOUTUBE EMBED STYLING --- */
.page_category-biography iframe {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border: none;
  padding: 0.625rem 0;
}

.page_category-biography .wp-block-embed-youtube .wp-block-embed__wrapper::before {
  content: none !important;
  display: none !important;
}

/* --- HEADINGS --- */
.page_category-biography .entry-content h2 {
  padding: 1rem 0 0.5rem 0;
  max-width: 100%;
}

/* --- REMOVE EXTRA MARGINS FROM BLOCKS --- */
.page_category-biography :where(.is-layout-flow)>* {
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: 0;
          margin-block-end: 0;
}

/* --- RESPONSIVE STYLES --- */

@media (max-width: 1150px) and (min-width: 1025px) {
  .page_category-biography .text-image-pattern {
    flex-direction: column;
    gap: var(--grid-gap-desktop);
  }

  .page_category-biography .text-image-pattern .wp-block-column {
    flex: 1 1 100%;
  }

  /* bio intro has 1 columns in desktop */
.anastasia-bio-intro{
  -moz-columns: 1;
       columns: 1;
}
}

@media (max-width: 1024px) {
  .page_category-biography .text-image-pattern {
    flex-direction: column;
    gap: var(--grid-gap-mobile);
    padding-left: 0 !important;  /* ← Removed padding */
    padding-right: 0 !important; /* ← Removed padding */
  }

  .page_category-biography .text-image-pattern .wp-block-column {
    flex: 1 1 100%;
  }

  .page_category-biography .text-image-pattern .wp-block-image img {
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
  }

    /* bio intro has 1 columns in desktop */
.anastasia-bio-intro{
  -moz-columns: 1;
       columns: 1;
}
.anastasia-bio-intro.is-layout-flow.wp-block-column-is-layout-flow {
    padding: 0;
}
}

