/* The packshot already contains its alpha channel and padding. */
img[src*="/assets/platforms/packshots/"],
:is(#home, #news, .magazine-page) img[src*="/assets/platforms/packshots/"] {
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 5px 6px rgba(31, 25, 21, .16)) !important;
    transform: none !important;
}

#home.ng-media-first .mf-story-rail-art:has(img[src*="/assets/platforms/packshots/"]) {
    background: #f2e9e0 !important;
    display: grid;
    place-items: center;
}

#home.ng-media-first .mf-story-rail-art img[src*="/assets/platforms/packshots/"] {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
}

#home.homepage-v2 #homePlatformStrip .hp-platform-visual img[src*="/assets/platforms/packshots/"] {
    padding: 3px 7px;
    object-fit: contain !important;
}

#platformGrid .platform-card:has(> .platform-bg[src*="/assets/platforms/packshots/"]) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

#platformGrid .platform-bg[src*="/assets/platforms/packshots/"] {
    display: block;
    position: static;
    width: 100%;
    height: clamp(80px, 12vw, 135px);
    padding: 8px 14px;
    opacity: 1;
}

#platformGrid .platform-card:has(> .platform-bg[src*="/assets/platforms/packshots/"]) .platform-overlay {
    position: static;
    align-items: center;
    padding: 10px 12px;
    background: none;
}

.platform-hub-hero-visual img[src*="/assets/platforms/packshots/"] {
    width: min(100%, 460px);
    height: auto;
    max-height: 320px;
    padding: 0 6px;
}

.ng-retro-hardware img[src*="/assets/platforms/packshots/"] {
    justify-self: center;
    height: auto;
    max-width: 100%;
}

.ng-console-card img[src*="/assets/platforms/packshots/"] {
    padding-inline: 8px;
}

.console-packshot-credits {
    display: block;
    width: fit-content;
    margin: 10px auto;
    font-size: .75rem;
    text-decoration: underline;
}

@media (max-width: 650px) {
    #home.ng-media-first .mf-story-rail-art img[src*="/assets/platforms/packshots/"] {
        max-height: 154px !important;
    }
    .platform-hub-hero-visual img[src*="/assets/platforms/packshots/"] {
        max-height: 175px;
    }
}
