.ifm-page-illustration {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-inline: auto;
}

.director-hero-grid > .ifm-page-illustration,
.director-hero-grid > .director-mark.ifm-page-illustration {
  width: min(100%, 520px);
  max-height: 430px;
  object-fit: contain;
}

.home .director-hero .director-mark.ifm-page-illustration {
  display: block !important;
  visibility: visible !important;
}

.ifm-contact-illustration img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-inline: auto;
}

.ifm-section-illustration {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 1.25rem auto 2rem;
}

@media (min-width: 1024px) {
  .ifm-section-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    margin-bottom: 2rem;
  }

  .ifm-section-feature .ifm-section-copy,
  .ifm-section-feature .ifm-section-media { min-width: 0; }
  .ifm-section-feature .ifm-section-illustration { width: 100%; max-width: 100%; margin: 0; }
  .ifm-section-feature .ifm-section-copy > :last-child { margin-bottom: 0; }
  .ifm-section-feature.ifm-image-right .ifm-section-copy { order: 1; }
  .ifm-section-feature.ifm-image-right .ifm-section-media { order: 2; }
  .ifm-standalone-illustration { display: block; width: min(100%, 720px); margin-inline: auto; }
}

.director-tint :is(.ifm-page-illustration, .ifm-section-illustration),
.director-hero:not(.director-final) .ifm-page-illustration {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(48, 54, 66, .14);
}

.page-id-111 .director-hero:not(.director-final) {
  background-image: none !important;
}
.page-id-111 .director-hero:not(.director-final) .director-wrap {
  padding-right: 0 !important;
}

@media (min-width: 1024px) {
  .director-hero > .director-wrap:not(.director-hero-grid) > :is(h1, h2, p),
  .director-section > .director-wrap > :is(h2, p, dl) {
    width: min(100%, 820px);
    max-width: none;
  }
}

.ifm-step-illustration {
  display: block;
  width: min(100%, 220px);
  max-height: 220px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.ifm-hot-topic {
  background: #e5f7fd;
}

.ifm-hot-topic .director-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.ifm-hot-topic h2 { font-size: clamp(28px, 2.5vw, 36px); }
.director-card:has(img) > .director-icon,
.director-card:has(img)::before { display: none !important; content: none !important; }

@media (min-width: 1024px) {
  .ifm-hot-topic .director-card { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
}

.ifm-hot-topic img,
.ifm-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.ifm-hot-topic img {
  max-height: 260px;
}

.ifm-card-image {
  display: block;
  margin: -0.25rem -0.25rem 1.25rem;
}

.ifm-article-featured {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.ifm-article-featured img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 440px;
  object-fit: cover;
  border-radius: 0;
}

.single-post .ifm-article-header-card {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  width: min(1200px, calc(100% - 48px));
  height: clamp(360px, 30.5vw, 440px);
  margin: 32px auto;
  border-radius: 16px;
  overflow: hidden;
}

.single-post .ifm-article-header-card > .director-hero {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 40px;
  background: #e5f7fd;
}

.single-post .ifm-article-header-card .director-wrap {
  width: 100%;
}

.single-post .ifm-article-header-card .director-kicker {
  color: #0072a3 !important;
  font-size: 13px;
  text-transform: uppercase;
}

.single-post .ifm-article-header-card h1 {
  color: #303642 !important;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 20px;
}

.single-post .ifm-article-header-card .ifm-article-meta {
  color: #303642 !important;
  font-size: 15px;
  margin-bottom: 16px;
}

.single-post .ifm-article-header-card .ifm-article-summary {
  color: #303642 !important;
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 0;
}

.single-post .ifm-article-header-card .director-wrap > a {
  display: none;
}

.single-post .director-section .director-wrap,
.single-post .director-article {
  width: min(760px, calc(100% - 48px));
  max-width: 760px;
  margin-inline: auto;
}

.single-post .director-final {
  width: 100%;
  padding: 56px 0;
  background: #00b0ec;
  color: #303642;
}

.single-post .director-final :is(h2, p) {
  color: #303642 !important;
}

.single-post .director-final .director-button {
  border-color: #fff;
  background: #fff;
  color: #303642;
}

.page-id-127 .director-grid,
.category .director-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-id-127 .director-card,
.category .director-card {
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px;
}

.page-id-127 .ifm-card-image,
.category .ifm-card-image {
  width: 100%;
  margin: 0 0 1.25rem;
}

.page-id-127 .ifm-card-image img,
.category .ifm-card-image img {
  aspect-ratio: 16 / 10;
  border-radius: 12px 12px 0 0;
}

.page-id-127 .director-card:has(.ifm-card-image)::before,
.category .director-card:has(.ifm-card-image)::before {
  display: none !important;
  content: none !important;
}

.page-id-127 .director-card > :not(.ifm-card-image),
.category .director-card > :not(.ifm-card-image) {
  margin-left: 22px;
  margin-right: 22px;
}

.page-id-127 .director-card > .ifm-read-guide,
.category .director-card > a:last-child {
  margin-top: auto;
  margin-bottom: 22px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .page-id-127 .director-grid,
  .category .director-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ifm-hot-topic .director-card { grid-template-columns: 1fr; }
  .page-id-127 .director-grid,
  .category .director-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .ifm-section-feature { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
  .ifm-section-feature .ifm-section-media { order: 1; width: 100%; }
  .ifm-section-feature .ifm-section-copy { order: 2; width: 100%; }
  .ifm-section-feature .ifm-section-illustration { margin: 0 auto; }
}

@media (max-width: 767px) {
  .single-post .ifm-article-header-card {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 48px));
    height: auto;
  }

  .single-post .ifm-article-featured {
    aspect-ratio: 16 / 9;
  }

  .single-post .ifm-article-featured img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .single-post .ifm-article-header-card > .director-hero {
    padding: 32px 24px;
  }
}

.director-site img {
  max-width: 100%;
  height: auto;
}

.director-site table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.director-site :is(a, code) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Rebuilt Elementor-style row containers: two real children, never a styled single column. */
.ifm-elementor-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  width: min(1280px, calc(100vw - 48px)) !important;
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-inline: 0;
}
.ifm-elementor-child {
  flex: 0 0 50% !important;
  width: 50% !important;
  min-width: 0;
}
.ifm-elementor-copy { padding: clamp(28px, 4vw, 52px); }
.ifm-elementor-copy > :last-child { margin-bottom: 0; }
.ifm-elementor-media { align-self: stretch; }
.ifm-elementor-media > a { display: block; height: 100%; }
.ifm-elementor-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 480px;
  object-fit: cover;
}
.director-hero .ifm-elementor-media { padding: 32px; }
.director-hero .ifm-elementor-media img,
.director-tint .ifm-elementor-media img {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(48, 54, 66, .14);
}
.ifm-service-hero-row .ifm-elementor-media { display: flex; align-items: stretch; }
body .ifm-service-hero-row .ifm-elementor-media img.ifm-page-illustration {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
}
.ifm-hot-topic-row { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(48, 54, 66, .12); }
.ifm-hot-topic-row .ifm-elementor-media img { min-height: 340px; max-height: 420px; }
.ifm-hot-topic-row h2 { max-width: none; font-size: clamp(28px, 2.5vw, 36px); }
.ifm-home-feature-row { margin-bottom: 32px; }
.ifm-home-feature-row .ifm-elementor-media { padding: 24px; }
.ifm-home-feature-row .ifm-elementor-media img { min-height: 360px; max-height: 440px; border-radius: 16px; }
.ifm-contact-icon { width: 1em; height: 1em; margin-right: .42em; vertical-align: -.12em; color: currentColor; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ifm-contact-symbol { display: inline-block; width: 1.15em; margin-right: .35em; color: currentColor; font-weight: 700; text-align: center; }
.director-header-contact { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; line-height: 1.3; }
.director-header-contact a { white-space: nowrap; }
.ifm-deadline-hero { width: 100%; margin-inline: auto; padding-inline: 64px !important; box-sizing: border-box; }
.ifm-deadline-hero h1 { max-width: 24ch; margin-bottom: 0; }
.ifm-deadline-hero .ifm-deadline-hero-row {
  width: min(1200px, 100%) !important;
  max-width: 1200px !important;
  left: 0;
  transform: none;
  margin-inline: auto;
  align-items: center;
}
.ifm-deadline-hero-row > .ifm-elementor-child { display: flex; flex-direction: column; justify-content: center; }
.ifm-deadline-hero-row .ifm-elementor-media img { width: 100%; max-width: 520px; height: auto; min-height: 0; margin: auto; object-fit: contain; }
.ifm-404-image { width: min(720px, 100%); margin: 28px auto 0; }

@media (max-width: 1023px) {
  .ifm-elementor-row { flex-direction: column !important; width: min(760px, calc(100vw - 48px)) !important; left: 0; transform: none; margin-inline: auto; }
  .ifm-elementor-child { flex-basis: auto !important; width: 100% !important; }
  .ifm-elementor-media { order: 1; }
  .ifm-elementor-copy { order: 2; }
  .ifm-elementor-media img { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
  .director-header-contact { order: 3; width: 100%; }
}

@media (max-width: 767px) {
  .ifm-deadline-hero { padding-inline: 32px !important; }
  .ifm-deadline-hero .ifm-deadline-hero-row { width: 100% !important; }
}
