/* Keep ITLab's typography scale. These minimums preserve its headline
   and description slots when localized copy wraps to fewer lines. */
.site-content .slider .large-title,
.site-content .featured-projects .large-title {
  min-block-size: calc(2 * var(--_typography---heading-xxl--line-height));
}

.site-content .featured-projects .title-block-text {
  min-block-size: 2lh;
}

/* The source artwork defines each slot, including the two distinct
   portrait crops in the featured project slider. */
.nuoyi-crop {
  aspect-ratio: var(--nuoyi-image-ratio);
  block-size: auto;
  object-fit: cover;
  object-position: var(--nuoyi-image-position, center);
}

.nuoyi-crop[data-crop="property-project"] {
  --nuoyi-image-ratio: 600 / 745;
  --nuoyi-image-position: 48% center;
}

.nuoyi-crop[data-crop="fire-project"] {
  --nuoyi-image-ratio: 600 / 866;
  --nuoyi-image-position: 46% center;
}

.nuoyi-crop[data-crop="gallery"] {
  --nuoyi-image-ratio: 3 / 2;
}

.nuoyi-crop[data-crop="gallery"][src$="/lianquan.webp"] {
  --nuoyi-image-position: center 28%;
}

.footer-logo {
  block-size: auto;
}

/* Logo artwork fits inside the source logo canvas without stretching. */
.nuoyi-brand-canvas {
  aspect-ratio: var(--nuoyi-brand-ratio);
  object-fit: contain;
  object-position: left center;
}

.image-26.nuoyi-brand-canvas[data-canvas="first"] {
  --nuoyi-brand-ratio: 150 / 30;
  inline-size: calc(32px * 150 / 30);
}

.image-26.nuoyi-brand-canvas[data-canvas="second"] {
  --nuoyi-brand-ratio: 105 / 30;
  inline-size: calc(32px * 105 / 30);
}

.image-25.nuoyi-brand-canvas {
  --nuoyi-brand-ratio: 127 / 29;
  block-size: auto;
}

/* Background media follows the original responsive cover boxes. */
.blog-post-large-wrap[data-photo="lianquan"] {
  background-position: center 29%;
}

.content-image[data-photo="lianquan"] {
  background-position: center 25%;
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .site-content .slider .large-title,
  .site-content .slider-projects .w-slide:first-child .large-title {
    min-block-size: calc(3 * var(--_typography---heading-xxl--line-height));
  }

  .site-content .featured-projects .title-block-text {
    min-block-size: 3lh;
  }
}

@media screen and (max-width: 991px) {
  .site-content .slider .large-title,
  .site-content .featured-projects .large-title {
    min-block-size: calc(2 * var(--_typography---heading-l--line-height));
  }

  .site-content .slider .title-block-text {
    min-block-size: 2lh;
  }

  .site-content .featured-projects .title-block-text {
    min-block-size: 3lh;
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .site-content .slider .large-title,
  .site-content .slider-projects .w-slide:first-child .large-title {
    min-block-size: calc(3 * var(--_typography---heading-m--line-height));
  }

  .site-content .slider-projects .w-slide:nth-child(2) .large-title {
    min-block-size: calc(2 * var(--_typography---heading-m--line-height));
  }

  .site-content .featured-projects .title-block-text {
    min-block-size: 4lh;
  }
}

@media screen and (max-width: 479px) {
  .site-content .slider .large-title,
  .site-content .featured-projects .large-title {
    min-block-size: calc(2 * var(--_typography---heading-s--line-height));
  }

  .site-content .slider .slide:not(.slider2) .large-title {
    min-block-size: calc(3 * var(--_typography---heading-s--line-height));
  }

  .site-content .slider .title-block-text {
    min-block-size: 3lh;
  }

  .site-content .slider-projects .w-slide:nth-child(2) .large-title {
    min-block-size: var(--_typography---heading-s--line-height);
  }
}

