/*
 * Boudoir by Brent — homepage image fit refinements.
 * Preserve the full photographic composition in the hero and featured positions.
 * Draft theme only; no media files are altered.
 */
body.bbb-theme .bbb-hero-art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  position: absolute;
  inset: 0;
}

/* Match the feature frame more closely to a landscape photograph, not a square crop. */
body.bbb-theme .bbb-feature-art {
  position: relative;
  min-height: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  isolation: isolate;
}
body.bbb-theme .bbb-feature-art img {
  position: absolute;
  inset: clamp(14px, 2vw, 28px);
  width: calc(100% - 2 * clamp(14px, 2vw, 28px));
  height: calc(100% - 2 * clamp(14px, 2vw, 28px));
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}
body.bbb-theme .bbb-feature-art::before {
  inset: 13px;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 640px) {
  body.bbb-theme .bbb-feature-art {
    aspect-ratio: 8 / 5;
    min-height: 0;
  }
  body.bbb-theme .bbb-feature-art img {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }
}

/* Meet Brent: let the grid allocate exactly the portrait's full height.
   The original fixed-height frame and competing mobile height rules allowed
   the responsive image to escape its section at some viewport sizes. */
body.bbb-theme .bbb-about-grid {
  min-width: 0;
  align-items: center;
}
body.bbb-theme .bbb-about-photo {
  box-sizing: border-box;
  width: min(100%, 440px);
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 4 / 5;
  overflow: hidden !important;
  justify-self: center;
  margin: 0 auto;
  display: block;
}
body.bbb-theme .bbb-about-photo img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
}
