/* Bangla Bloom v3.2.3: compact, no-crop display of Batch 001 images.
   Presentation-only, no content/audio/progress/backend changes. */

/* Keep the existing tiger illustration intact but avoid a needlessly tall desktop frame. */
.bb3-hero {min-height:0!important;}
.bb3-hero .bb3-hero-copy {padding:clamp(24px,3vw,46px)!important;}
.bb3-hero .bb3-hero-illustration {min-height:0!important;background:#e7efe1!important;}
.bb3-hero .bb3-hero-illustration .bb-approved-hero img {
  width:100%!important;height:100%!important;object-fit:contain!important;
  object-position:center!important;filter:none!important;
}

/* Compact, readable horizontal category cards. Smaller frames reveal the whole picture. */
.adventure-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
.adventure-grid .adventure-card {
  display:grid!important;grid-template-columns:minmax(0,39%) minmax(0,61%)!important;
  align-items:stretch!important;min-height:170px!important;padding:8px!important;
  border-radius:18px!important;overflow:hidden!important;
}
.adventure-grid .adventure-card .module-scene.bb5-media {
  height:100%!important;min-height:154px!important;min-width:0!important;
  margin:0!important;border-radius:12px!important;padding:0!important;
  background:#fbfaf5!important;box-sizing:border-box!important;
}
.adventure-grid .adventure-card .module-scene .bb5-media-inner {inset:0!important;box-sizing:border-box!important;}
.adventure-grid .adventure-card .module-scene img.bb5-real-photo {
  position:absolute!important;inset:4px!important;width:calc(100% - 8px)!important;
  height:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;
  max-height:calc(100% - 8px)!important;object-fit:contain!important;
  object-position:center!important;filter:none!important;transform:none!important;
}
.adventure-grid .adventure-card .module-copy {
  padding:10px 12px!important;min-width:0!important;display:flex!important;
  flex-direction:column!important;justify-content:center!important;
}
.adventure-grid .adventure-card .module-copy .card-count {
  font-size:9px!important;line-height:1.35!important;letter-spacing:.4px!important;
  margin:0 0 5px!important;overflow-wrap:anywhere;
}
.adventure-grid .adventure-card .module-copy h3 {
  font-size:clamp(15px,1.3vw,20px)!important;line-height:1.23!important;
  min-height:0!important;margin:0 0 5px!important;
}
.adventure-grid .adventure-card .module-copy p {
  font-size:12px!important;line-height:1.4!important;
  min-height:0!important;margin:0 0 8px!important;
}
.adventure-grid .adventure-card .module-copy .card-bottom {
  margin-top:auto!important;padding-top:8px!important;
  font-size:11px!important;line-height:1.2!important;
}

/* Six approved letter examples show their complete square artwork beside the glyph.
   Other letter art, vocabulary, and all nonapproved images retain their prior sources. */
.content-grid:has(.learning-card .bb-approved-subject-image) {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;
}
.content-grid .learning-card:has(.bb-approved-subject-image) {
  display:grid!important;grid-template-columns:minmax(0,45%) minmax(0,55%)!important;
  grid-template-rows:repeat(3,min-content)!important;gap:3px 10px!important;
  align-content:center!important;align-items:center!important;text-align:left!important;
  min-width:0!important;min-height:164px!important;padding:10px!important;
}
.content-grid .learning-card:has(.bb-approved-subject-image) > .bb3-learning-picture {
  grid-column:1!important;grid-row:1/span 3!important;
  display:block!important;position:relative!important;
  width:100%!important;min-width:0!important;height:auto!important;
  aspect-ratio:1/1!important;max-height:165px!important;
  margin:0!important;overflow:hidden!important;background:#fffefa!important;
}
.content-grid .learning-card:has(.bb-approved-subject-image) .bb5-real-photo {
  position:absolute!important;inset:2px!important;
  width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;
  max-width:calc(100% - 4px)!important;max-height:calc(100% - 4px)!important;
  object-fit:contain!important;object-position:center!important;
  filter:none!important;transform:none!important;
}
.content-grid .learning-card:has(.bb-approved-subject-image) > .card-glyph {
  grid-column:2!important;grid-row:1!important;font-size:clamp(32px,3vw,50px)!important;
  margin:0!important;line-height:1.3!important;min-width:0!important;
}
.content-grid .learning-card:has(.bb-approved-subject-image) > .card-en {
  grid-column:2!important;grid-row:2!important;margin:0!important;
  font-size:13px!important;line-height:1.3!important;overflow-wrap:anywhere;
}
.content-grid .learning-card:has(.bb-approved-subject-image) > .card-hint {
  grid-column:2!important;grid-row:3!important;margin:0!important;
  font-size:11px!important;line-height:1.3!important;overflow-wrap:anywhere;
}

/* No oversized letterbox sections for supplementary square/landscape art. */
.page-heading .bb-approved-learn-banner {width:min(100%,240px)!important;max-width:240px!important;
  max-height:none!important;aspect-ratio:1/1!important;margin:12px 0 4px!important;}
.page-heading .bb-approved-learn-banner img {max-width:100%!important;max-height:100%!important;object-fit:contain!important;}
.bb3-adventure-map .bb-approved-map-image {
  width:min(100%,720px)!important;max-width:720px!important;max-height:none!important;
  aspect-ratio:16/9!important;height:auto!important;margin:0 auto 12px!important;
  padding:0!important;border-radius:14px!important;
}
.bb3-adventure-map .bb-approved-map-image img {width:100%!important;height:100%!important;
  max-height:100%!important;object-fit:contain!important;}
.bb-approved-daily {width:min(100%,520px)!important;max-width:520px!important;
  max-height:none!important;aspect-ratio:16/9!important;height:auto!important;
  margin:0 auto 12px!important;}
.bb-approved-daily img {width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;}
.bb-approved-calm {max-width:500px!important;max-height:none!important;aspect-ratio:16/9!important;}
.bb-approved-calm img {max-height:100%!important;width:100%!important;object-fit:contain!important;}
.feature-ribbon .ribbon-flower.bb-approved-welcome {width:min(100%,270px)!important;
  min-width:0!important;max-width:270px!important;}
.feature-ribbon .ribbon-flower.bb-approved-welcome img {display:block;width:100%!important;
  max-width:270px!important;height:auto!important;object-fit:contain!important;}
/* Keep the garden photograph together, rather than stretching it across a wide banner. */
.bb5-garden-scene.bb-approved-garden {
  display:flex!important;flex-direction:column!important;width:min(100%,500px)!important;
  max-width:500px!important;height:auto!important;min-height:0!important;
  margin:12px 0!important;background:#fffefa!important;
}
.bb5-garden-scene.bb-approved-garden > .bb5-media-inner {
  position:relative!important;inset:auto!important;width:100%!important;
  height:auto!important;aspect-ratio:8/5!important;min-height:0!important;
}
.bb5-garden-scene.bb-approved-garden .bb5-real-photo {
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;filter:none!important;
}
.bb5-garden-scene.bb-approved-garden > p {
  position:static!important;inset:auto!important;margin:0!important;padding:8px 12px!important;
  font-size:12px!important;background:#fffefa!important;border-radius:0!important;
}

@media (min-width:1600px) {
  .adventure-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  .adventure-grid .adventure-card {min-height:176px!important;}
}
@media (max-width:1149px) {
  .adventure-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .content-grid:has(.learning-card .bb-approved-subject-image) {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:660px) {
  .adventure-grid {grid-template-columns:1fr!important;gap:10px!important;}
  .adventure-grid .adventure-card {
    grid-template-columns:minmax(105px,37%) minmax(0,1fr)!important;
    min-height:140px!important;padding:7px!important;
  }
  .adventure-grid .adventure-card .module-scene.bb5-media {
    height:100%!important;min-height:126px!important;
  }
  .adventure-grid .adventure-card .module-copy {padding:8px 10px!important;}
  .adventure-grid .adventure-card .module-copy h3 {
    font-size:16px!important;line-height:1.2!important;min-height:0!important;
  }
  .adventure-grid .adventure-card .module-copy p {
    font-size:11px!important;line-height:1.35!important;min-height:0!important;
  }
  .adventure-grid .adventure-card .module-copy .card-bottom {font-size:11px!important;}
  .content-grid:has(.learning-card .bb-approved-subject-image) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
  }
  .content-grid .learning-card:has(.bb-approved-subject-image) {
    grid-column:span 2!important;
    grid-template-columns:minmax(110px,38%) minmax(0,1fr)!important;
    min-height:146px!important;padding:8px!important;
  }
  .content-grid .learning-card:has(.bb-approved-subject-image) > .bb3-learning-picture {
    max-height:140px!important;
  }
  .content-grid .learning-card:has(.bb-approved-subject-image) > .card-glyph {font-size:44px!important;}
  .bb3-hero .bb3-hero-illustration {
    width:min(100%,360px)!important;align-self:center!important;
    margin-inline:auto!important;min-height:0!important;height:auto!important;
    aspect-ratio:760/925!important;
  }
  .bb3-hero .bb3-hero-illustration picture {position:absolute!important;inset:0!important;}
  .feature-ribbon .ribbon-flower.bb-approved-welcome {width:100%!important;max-width:270px!important;}
  .bb3-adventure-map .bb-approved-map-image {
    max-width:100%!important;max-height:none!important;aspect-ratio:16/9!important;
  }
}
@media (max-width:350px) {
  .adventure-grid .adventure-card {grid-template-columns:minmax(98px,38%) minmax(0,1fr)!important;}
  .adventure-grid .adventure-card .module-copy {padding:7px!important;}
  .adventure-grid .adventure-card .module-copy h3 {font-size:15px!important;}
  .content-grid .learning-card:has(.bb-approved-subject-image) > .card-glyph {font-size:38px!important;}
}
