/* Runtime 22 — theme-version-independent public product/media frame.
   The frame defines the maximum visual area. Artwork keeps its own proportions
   and is never cropped or stretched, even when a newer installed theme still
   carries historical object-fit:cover rules. */
body.wp-theme-bellegor-lab .service-cover,
body.wp-theme-bellegor-lab .mini-art,
body.wp-theme-bellegor-lab .post-art,
body.wp-theme-bellegor-lab .library-card figure,
body.wp-theme-bellegor-lab .directory-card figure,
body.wp-theme-bellegor-lab .detail-art,
body.wp-theme-bellegor-lab .article-art,
body.wp-theme-bellegor-lab .service-hero figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(178, 132, 90, .32);
  background: #090706;
}

body.wp-theme-bellegor-lab .service-cover img,
body.wp-theme-bellegor-lab .mini-art img,
body.wp-theme-bellegor-lab .post-art > img,
body.wp-theme-bellegor-lab .library-card figure > img,
body.wp-theme-bellegor-lab .directory-card figure > img,
body.wp-theme-bellegor-lab .detail-art > img,
body.wp-theme-bellegor-lab .article-art > img,
body.wp-theme-bellegor-lab .service-hero figure > img {
  position: static !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

body.wp-theme-bellegor-lab .library-card figure,
body.wp-theme-bellegor-lab .directory-card figure {
  width: calc(100% - 20px) !important;
  margin: 10px 10px 0 !important;
}

body.wp-theme-bellegor-lab .library-card figure > img,
body.wp-theme-bellegor-lab .directory-card figure > img {
  filter: none !important;
}

body.wp-theme-bellegor-lab .library-card > div,
body.wp-theme-bellegor-lab .directory-card > div {
  padding: 16px 22px 22px !important;
}

body.wp-theme-bellegor-lab .mini-art {
  margin: .85rem 0 1rem !important;
}

body.wp-theme-bellegor-lab .post-art {
  width: calc(100% - 20px) !important;
  margin: 10px !important;
}

body.wp-theme-bellegor-lab .post-art:has(img)::after {
  display: none !important;
}

body.wp-theme-bellegor-lab .detail-art,
body.wp-theme-bellegor-lab .article-art,
body.wp-theme-bellegor-lab .service-hero figure {
  max-height: min(560px, 70vh) !important;
}

body.wp-theme-bellegor-lab .article-art {
  width: min(760px, 100%) !important;
  margin: 32px auto 38px !important;
}

body.wp-theme-bellegor-lab :is(
  .section,
  .course-list,
  .course-list article,
  .course-copy,
  .service-grid,
  .service-grid article,
  .mini-grid,
  .mini-grid article,
  .post-grid,
  .post-card,
  .catalog-page,
  .library-grid,
  .directory-grid,
  .library-card,
  .directory-card,
  .detail-hero,
  .service-hero,
  .detail-grid,
  .service-layout
) {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 650px) {
  body.wp-theme-bellegor-lab :is(
    .service-grid,
    .mini-grid,
    .post-grid,
    .library-grid,
    .directory-grid
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  body.wp-theme-bellegor-lab .course-list article {
    grid-template-columns: minmax(0, 4.25rem) minmax(0, 1fr) !important;
    width: 100%;
    padding-inline: .35rem;
  }

  body.wp-theme-bellegor-lab .course-list article > a {
    grid-column: 2;
    width: min(100%, 12rem) !important;
    max-width: 100%;
    justify-self: start;
    box-sizing: border-box;
  }

  body.wp-theme-bellegor-lab .course-copy {
    overflow-wrap: anywhere;
  }

  body.wp-theme-bellegor-lab .library-card figure,
  body.wp-theme-bellegor-lab .directory-card figure {
    width: calc(100% - 16px) !important;
    margin: 8px 8px 0 !important;
  }

  body.wp-theme-bellegor-lab .post-art {
    width: calc(100% - 16px) !important;
    margin: 8px !important;
  }

  body.wp-theme-bellegor-lab .detail-art,
  body.wp-theme-bellegor-lab .article-art,
  body.wp-theme-bellegor-lab .service-hero figure {
    max-height: none !important;
  }
}
