/* Classic desktop only: use the media column fully without trimming anatomy.
   A slightly wider media column increases landscape plates safely. The approved
   Ada Doğanı close framing remains in its existing, species-specific rule. */
@media (min-width:1025px) {
    body .ada-media {
        position:relative;min-height:440px;background:#fff!important;
    }
    body .ada-media:has(.species-hero-carousel)::before,
    body .ada-media:has(>.detail-main-img-plate)::before {
        content:"";display:block;width:100%;aspect-ratio:3/2;
        flex:0 0 auto;pointer-events:none;
    }
    body .ada-media:has(.species-hero-carousel)::after {
        content:"";display:block;height:67px;flex:0 0 67px;pointer-events:none;
    }
    body .ada-media .species-hero-carousel {
        position:absolute;inset:0;display:flex;flex-direction:column;
        width:100%;height:100%;min-height:0;background:#fff!important;
    }
    body .ada-media .species-hero-carousel-track {
        flex:1 1 0;min-height:0;height:0!important;aspect-ratio:auto!important;
    }
    body .ada-media .species-hero-slide,
    body .ada-media .species-hero-carousel-nav {background:#fff!important;}
    body .ada-media .species-hero-carousel-nav {flex:0 0 auto;}
    body .ada-media .species-hero-slide img {
        display:block;width:100%!important;height:100%!important;
        min-height:0!important;max-height:none!important;padding:0!important;
        object-fit:contain!important;background:#fff!important;
    }
    body .ada-media>.detail-main-img-plate {
        position:absolute;inset:0;width:100%!important;height:100%!important;
        min-height:0!important;max-height:none!important;padding:0!important;
        margin:0!important;object-fit:contain!important;background:#fff!important;
    }

    body .wa-page:not(.wa-pwa) .wa-media,
    body .wbd-page .wbd-hero-media {
        position:relative;min-height:480px!important;background:#fff!important;
    }
    body .wa-page:not(.wa-pwa) .wa-media>img,
    body .wbd-page .wbd-hero-media>img {
        position:absolute;inset:0;display:block;width:100%!important;height:100%!important;
        min-height:0!important;max-height:none!important;max-width:100%!important;
        padding:0!important;margin:0!important;object-fit:contain!important;
        background:#fff!important;border-radius:0!important;
    }

    /* Older classic templates keep their own structure and plate source. */
    body .bird-detail-grid>div>.detail-main-img-plate {
        width:100%!important;height:auto!important;min-height:0!important;
        max-height:min(76vh,760px)!important;padding:0!important;
        object-fit:contain!important;background:#fff!important;
    }
}
@media (min-width:1440px) {
    body:not(:has(#detail-map[data-bird-id="6"])) .ada-hero,
    body .wa-page:not(.wa-pwa) .wa-hero,
    body .wbd-page .wbd-hero {
        grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr)!important;
    }
}

/* World species titles scale to their text column, not the viewport. */
body .wa-page:not(.wa-pwa) .wa-copy{min-width:0;container-type:inline-size}
body .wa-page:not(.wa-pwa) .wa-copy h1{
    font-size:clamp(1.5rem,16cqi,3.25rem);
    word-break:normal;overflow-wrap:normal;hyphens:none;
}
