/* Project imagery stays legible; captions follow the image in document flow. */
a[href*="/portfolio/"]:has(img){display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;gap:0!important;background:#dededc!important;overflow:hidden!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Top"]{position:relative!important;inset:auto!important;order:2!important;width:100%!important;padding:24px!important;height:auto!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Top"] *{color:#333336!important;--framer-text-color:#333336!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Image"]{position:relative!important;inset:auto!important;order:1!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;background:#eeedeb!important}
a[href*="/portfolio/"]:has(img) [data-framer-name="Image"]{transform:none!important;filter:none!important}
a[href*="/portfolio/"]:has(img) img{object-fit:contain!important;object-position:center!important;transform:none!important}
section[data-framer-name="Hero Image"]{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;padding-top:90px!important;background:#dededc!important}
section[data-framer-name="Hero Image"]>[data-framer-name="Content"]{position:relative!important;inset:auto!important;order:2!important;padding:32px!important;width:100%!important;height:auto!important}
section[data-framer-name="Hero Image"]>[data-framer-name="Content"] *{color:#333336!important;--framer-text-color:#333336!important}
section[data-framer-name="Hero Image"]:has(img)>:has(img){position:relative!important;inset:auto!important;order:1!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;transform:none!important;filter:none!important}
section[data-framer-name="Hero Image"] img{object-fit:contain!important;object-position:center!important;transform:none!important}
[data-framer-name^="Image Container"]{height:auto!important;min-height:0!important;overflow:visible!important}
[data-framer-name^="Image Container"]>[data-framer-name="Image"]{transform:none!important;height:auto!important;aspect-ratio:16/9!important}
[data-framer-name^="Image Container"] img{object-fit:contain!important;object-position:center!important}
[data-framer-name^="Scrolling Image Pair"] img{object-fit:contain!important;object-position:center!important}

section[data-framer-name="Hero Image"] div:has(img){position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;transform:none!important;overflow:visible!important}
section[data-framer-name="Hero Image"] img{position:relative!important;width:100%!important;height:auto!important;display:block!important}

section[data-framer-name="Hero Image"] img{max-height:72vh!important;object-fit:contain!important}

a[href*="/portfolio/"]:has(img) [data-framer-name="Image"] [data-framer-name="Image"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important;transform:none!important;filter:none!important}
a[href*="/portfolio/"]:has(img) [data-framer-background-image-wrapper]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Top"] div{position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;transform:none!important;opacity:1!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Top"]{overflow:visible!important;flex-shrink:0!important;gap:12px!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Image"]{flex-shrink:0!important;opacity:1!important}

a[href*="/portfolio/"]:has(img)>[data-framer-name="Image"]{z-index:1!important}
a[href*="/portfolio/"]:has(img)>[data-framer-name="Top"]{z-index:2!important}
a[href*="/portfolio/yoga-rose"]:has(img) img{object-fit:cover!important;object-position:center top!important}
a[href*="/portfolio/nexowa-os"]:has(img) img{object-fit:cover!important;object-position:center top!important}
