/* Shared photo standard: portrait shape, soft top corners, no decorative frame. */
:root{--tae-photo-ratio:2/3;--tae-photo-corner:clamp(20px,3vw,34px);--tae-photo-width:420px}
body main .tae-image-frame{display:block!important;position:relative;width:100%!important;max-width:var(--tae-photo-width)!important;height:auto!important;min-height:0!important;aspect-ratio:var(--tae-photo-ratio)!important;padding:0!important;margin:0 auto!important;border:0!important;box-shadow:none!important;outline-offset:5px;overflow:hidden!important;background:transparent!important;border-radius:var(--tae-photo-corner) var(--tae-photo-corner) 0 0!important;line-height:0}
body main img.tae-content-image{display:block!important;float:none!important;width:100%!important;max-width:var(--tae-photo-width)!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:var(--tae-photo-ratio)!important;object-fit:contain!important;object-position:center!important;padding:0!important;margin:0 auto!important;border:0!important;border-radius:var(--tae-photo-corner) var(--tae-photo-corner) 0 0!important;box-shadow:none!important;background:transparent!important;mix-blend-mode:normal!important}
body main .tae-image-frame>img.tae-content-image{width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border-radius:inherit!important}
body main img.tae-product-image{object-fit:contain!important}
/* Preserve source edges and embedded branding; never zoom image content. */
body main .tae-image-frame:has(>.tae-inset-photo){border-radius:11% 11% 0 0!important}
body main .tae-image-frame>img.tae-inset-photo{transform:none!important;transform-origin:center}
body main .pathway:has(>.tae-content-image){overflow:hidden}
body main .pathway>img.tae-content-image{margin:0 auto 24px!important}
body main .avatar-intro figure,body main .reorg-blazer-inspiration>img.tae-content-image{width:100%;max-width:var(--tae-photo-width);justify-self:center}
@media(max-width:700px){:root{--tae-photo-corner:26px}body main .tae-image-frame,body main img.tae-content-image{max-width:min(100%,var(--tae-photo-width))!important}}
/* Item photos share one square stage and the same soft corner treatment. */
body main .tae-image-frame:has(>img.tae-product-image){aspect-ratio:1/1!important;border-radius:var(--tae-photo-corner) var(--tae-photo-corner) 0 0!important;background:#f3f2ef!important}
body main img.tae-product-image{aspect-ratio:1/1!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body main .tae-image-frame>img.tae-product-image{height:100%!important;width:100%!important;border-radius:inherit!important}
/* These two inspected outfit sources have no embedded corner logo.
   A centered portrait crop removes surplus scenery/white edges, preserving head to toe. */
body main img.tae-content-image.tae-fitted-outfit{object-fit:cover!important;object-position:50% 50%!important;transform:none!important}
body main .tae-image-frame:has(>.tae-fitted-outfit){aspect-ratio:2/3!important;border-radius:var(--tae-photo-corner) var(--tae-photo-corner) 0 0!important}
/* Match the visible photo bounds to the native branded artwork (4:5).
   Corner rounding now clips the actual photograph, not empty letterbox space. */
body main .tae-image-frame:has(>img.tae-outfit-image){aspect-ratio:4/5!important;border-radius:var(--tae-photo-corner)!important;clip-path:inset(0 round var(--tae-photo-corner))}
body main img.tae-outfit-image{aspect-ratio:4/5!important;border-radius:var(--tae-photo-corner)!important;object-fit:contain!important}
body main img.tae-outfit-image.tae-fitted-outfit{object-fit:cover!important}
body main .tae-image-frame:has(>img.tae-product-image){border-radius:var(--tae-photo-corner)!important;clip-path:inset(0 round var(--tae-photo-corner))}
body main img.tae-product-image{border-radius:var(--tae-photo-corner)!important}
body main .tae-corner-logo::after{content:"";position:absolute;z-index:2;top:12px;right:12px;width:100px;max-width:32%;aspect-ratio:1400/640;background:url('/assets/tae-photo-logo.svg') center/contain no-repeat;pointer-events:none}
body main .tae-corner-logo-light::after{background-image:url('/assets/tae-photo-logo-light.svg')}
body main .tae-corner-logo-light::after{filter:brightness(0) invert(1)}
/* Equal borderless product stages, separate from editorial/avatar photography. */
body main .tae-image-frame:has(>img.tae-product-image){aspect-ratio:1/1!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:var(--tae-photo-corner)!important}
body main img.tae-product-image{aspect-ratio:1/1!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:var(--tae-photo-corner)!important;background:transparent!important}
/* These inspected retailer files have 100px white bands above and below
   a 900px square photo. Center-cover removes only those bands. */
body main img.tae-product-image[src$="work-blouse-product.jpg"],
body main img.tae-product-image[src$="work-blouse.jpg"],
body main img.tae-product-image[src$="travel-cardigan-product.jpg"],
body main img.tae-product-image[src$="travel-cardigan.jpg"]{object-fit:cover!important;object-position:center top!important}
/* Let the square image wrapper set the height, including older product pages. */
body main :is(.product-image,.photo).tae-image-frame:has(>img.tae-product-image){height:auto!important;min-height:0!important;max-height:none!important}


/* The Edit outfit and retailer product photos use soft rounded corners. */
body main .tae-image-frame:has(>img.tae-outfit-image),
body main .tae-image-frame:has(>img.tae-product-image){border-radius:var(--tae-photo-corner)!important;overflow:hidden!important;clip-path:inset(0 round var(--tae-photo-corner))!important}
body main img.tae-outfit-image,
body main img.tae-product-image,
body main img.style-product-image{border-radius:var(--tae-photo-corner)!important}
/* Match the Silver Sequin look to the shared 4:5 edit-photo stage without side bands. */
body main .tae-image-frame:has(>img[src*="holiday-sequin/cover.png"]){aspect-ratio:4/5!important}
body main img.tae-outfit-image[src*="holiday-sequin/cover.png"]{aspect-ratio:4/5!important;object-fit:cover!important;object-position:center top!important}
/* Cover legacy retailer cards and comparison photos that predate the image classes. */
body main .product .photo,
body main .reorg-card-grid .tae-image-frame{border-radius:var(--tae-photo-corner)!important;overflow:hidden!important}
body main .product .photo img,
body main img.post-image,
body main .reorg-card-grid img{border-radius:var(--tae-photo-corner)!important}

/* Outfit images share a 4:5 display frame. Contain scales narrower source images
   proportionally so the complete photo remains visible without cropping. */

/* Keep the full 2:3 Burgundy photo inside the shared 4:5 frame on every page. */
body main .tae-image-frame:has(>img[src*="burgundy-plaid-autumn-dinner/cover.png"]){display:flex!important;align-items:center!important;justify-content:center!important}
body main .tae-image-frame>img[src*="burgundy-plaid-autumn-dinner/cover.png"]{position:relative!important;inset:auto!important;width:auto!important;height:100%!important;max-width:100%!important;aspect-ratio:2/3!important;object-fit:contain!important;border-radius:var(--tae-photo-corner)!important;clip-path:inset(0 round var(--tae-photo-corner))!important}
