/* Hero for pages whose picture is a portrait illustration (not a wide photo): picture beside the text, no stretched background */
.hero.il{min-height:0;background:linear-gradient(135deg,#0B1F33 0%,#1d4263 100%)}
.hero.il::before{display:none}
.hero.il .in{display:grid;grid-template-columns:1fr 112px;gap:16px;align-items:center;padding:36px 18px 28px}
.hero.il .ill{width:112px;aspect-ratio:735/898;object-fit:cover;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.35);border:2px solid rgba(255,255,255,.25)}
.hero.il .in.noimg{display:block}
@media(min-width:720px){.hero.il .in{grid-template-columns:1fr 230px;gap:36px;padding:44px 28px 40px}.hero.il .ill{width:230px;border-radius:20px}}
/* topic tiles: 6 tiles -> 3x2 on wide screens (avoids a lone tile on the last row) */
@media(min-width:720px){.tgrid.tg-pri{grid-template-columns:repeat(3,1fr)}}
/* photo strip inside article text (hotel galleries) */
.rail.g{gap:10px}.rail.g img{flex:0 0 auto;height:200px;width:auto;max-width:none;border-radius:14px;scroll-snap-align:start}
/* cards whose picture already carries the place name: caption stays for screen readers only */
.rail.bn .pic div{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.rail.bn .pic::after,.rail.bn .pic::before{display:none}
/* breathing room above sub-headings that follow text, cards or photo strips */
.prose+h3,.rail+h3,.rail+p+h3,p+h3{margin-top:30px}
/* photo credit inside a hero */
.hero .hcredit{position:absolute;inset-inline:0;bottom:6px;padding:0 18px;font-size:.72rem;line-height:1.3;color:rgba(255,255,255,.85);text-shadow:0 1px 2px rgba(0,0,0,.6);max-width:1240px;margin:auto}
.hero .hcredit a{color:inherit;text-decoration:underline}
@media(min-width:720px){.hero .hcredit{padding:0 28px}}
/* photo gallery with per-photo credit */
.pgal{display:grid;gap:14px;grid-template-columns:1fr;margin-top:14px}
@media(min-width:720px){.pgal{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pgal figure:first-child:nth-last-child(3){grid-column:1/-1}}
.pgal figure{margin:0}.pgal img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:16px;background:#e9dfd3}
.pgal figure:first-child:nth-last-child(3) img{aspect-ratio:16/7}
.pgal figcaption{font-size:.78rem;line-height:1.45;color:#6b5a4a;margin-top:6px}.pgal figcaption a{color:inherit;text-decoration:underline}
/* photo hero (licensed photo): tall enough to show the place, centred on the subject */
.hero.ph{min-height:clamp(150px,11vw,230px);background-position:center 55%}
.hero.ph .in{padding-bottom:22px}
@media(min-width:900px){.hero.ph.sm .in{padding-top:28px}}
.pgal img{height:auto}
.hero.ph{aspect-ratio:auto}
/* collapsed photo credit (same as montenegro-sheli.com) */
.photo-credits{font-size:.75rem;margin-top:12px}.photo-credits summary{font-size:.75rem}.photo-credits p{margin:.4rem 0}

/* hotel / photo strips: a tidy grid of equal thumbnails on wide screens (the generic .rail grid broke them), swipe strip on phones */
@media(min-width:700px){html body main .rail.g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;scroll-snap-type:none;margin-inline:0;padding-inline:0}
html body main .rail.g img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;max-width:100%}}

/* sister-site card for Montenegro (it had no background, so its white text was nearly invisible) */
.si.ph,.si.me{background:linear-gradient(180deg,rgba(11,31,51,.25),rgba(11,31,51,.82)),var(--sib) center/cover no-repeat,#1F5F73;border:0;color:#fff;justify-content:flex-end}
.si.ph b,.si.ph span,.si.ph i,.si.me b,.si.me span,.si.me i{color:#fff}
.si.ph span,.si.me span{opacity:.92}

/* sister-site cards: compact (narrow and short), photo only as the background */
.sis{max-width:680px}
.si.ph,.si.me{min-height:150px;padding:16px 18px;gap:4px}
.si.ph b,.si.me b{font-size:1.1rem!important}
.si.ph span,.si.me span{font-size:.85rem!important;line-height:1.4}
@media(max-width:600px){.sis{grid-template-columns:minmax(0,1fr)}.si{min-width:0}}
