/* Bilingual documentary images: natural ratios preserve historic subjects. */
.bahrain-heritage{background:#f2ebdd;padding-block:clamp(3rem,6vw,6.8rem);scroll-margin-block-start:7rem}
.bahrain-heritage h2{margin:0;text-wrap:balance}
.bahrain-heritage .heritage-intro{max-inline-size:61ch;margin:.7rem 0 0;text-align:start}
.bahrain-heritage .heritage-grid{display:grid;grid-template-columns:minmax(0,16fr) minmax(0,9fr) minmax(0,16fr);gap:clamp(.9rem,2.2vw,2rem);align-items:start;margin-block-start:clamp(1.65rem,3.1vw,3rem)}
.bahrain-heritage figure{min-inline-size:0;margin:0;text-align:start}
.bahrain-heritage img{display:block;inline-size:100%;block-size:auto;border-radius:6px;background:#e6ddca}
.bahrain-heritage figcaption{padding-block-start:.75rem}
.bahrain-heritage .heritage-name{display:block;font-size:clamp(1.09rem,1.6vw,1.35rem);font-weight:650;line-height:1.5}
.bahrain-heritage figcaption p{margin:.22rem 0 .5rem}
.bahrain-heritage .heritage-credit{color:#524c50;font-size:.78rem;line-height:1.75;overflow-wrap:anywhere}
.bahrain-heritage .heritage-credit a{color:#54226a;text-decoration:underline;text-underline-offset:.18em}
@media(max-width:650px){.bahrain-heritage .heritage-grid{grid-template-columns:minmax(0,1fr);gap:1.9rem}.bahrain-heritage .heritage-mosque img{max-inline-size:24rem}}

.homehero .bahrain-fort-hero img{object-position:59% 47%}
.homehero .bahrain-fort-hero figcaption a{text-decoration:underline;text-underline-offset:.16em}
.homehero .bahrain-fort-hero img{height:clamp(290px,37vw,510px)}

/* Documentary cards, with the portrait mosque beside two landscape views. */
.bahrain-heritage .heritage-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-areas:"fort mosque" "tree mosque";grid-template-rows:auto auto;align-items:start;gap:clamp(1rem,2.25vw,1.85rem)}
.bahrain-heritage .heritage-fort{grid-area:fort}
.bahrain-heritage .heritage-tree{grid-area:tree}
.bahrain-heritage .heritage-mosque{grid-area:mosque}
.bahrain-heritage .heritage-grid figure{padding:clamp(.75rem,1.5vw,1.3rem);border:1px solid #d9ccba;border-radius:8px;background:#fbf8f0;margin:0}
.bahrain-heritage .heritage-grid figcaption{padding-inline:.3rem;padding-block:.9rem .25rem}
.bahrain-heritage .heritage-mosque img{max-inline-size:none}
@media(max-width:650px){.bahrain-heritage .heritage-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"fort" "tree" "mosque";grid-template-rows:auto;gap:1rem}}

/* Balanced portrait panel: the left cards determine the shared outer height. */
@media(min-width:651px){
 .bahrain-heritage .heritage-grid{grid-template-columns:minmax(0,4fr) minmax(0,7fr);align-items:stretch}
 .bahrain-heritage .heritage-mosque{display:grid;grid-template-rows:minmax(0,1fr) auto;min-block-size:0}
 .bahrain-heritage .heritage-mosque img{contain:size;min-block-size:0;block-size:100%;object-fit:cover;object-position:42% 42%}
}

/* Opposite landmark balance: broad landscape frames beside a narrower portrait. */
@media(min-width:651px){
 .bahrain-heritage .heritage-grid{grid-template-columns:minmax(0,2fr) minmax(0,1.12fr)}
 .bahrain-heritage :is(.heritage-fort,.heritage-tree) img{aspect-ratio:2.5;object-fit:cover}
 .bahrain-heritage .heritage-fort img{object-position:50% 47%}
 .bahrain-heritage .heritage-tree img{object-position:50% 61%}
 .bahrain-heritage .heritage-mosque{grid-template-rows:minmax(0,1fr) auto;background:#f7f3e9}
 .bahrain-heritage .heritage-mosque img{object-fit:cover;object-position:26% 54%;background:#ede7da}
}
