/* Image slides in the shared full-screen feed (shorts.css does the rest).
   Markup: Views/Shared/_FeedSlides.cshtml; behaviour: wwwroot/js/shorts.js. */

.image-frame {
    background: #0b0b0b;
}

/* Blurred, dimmed copy of the image fills the space around it. */
.image-slide-bg {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(28px) brightness(0.45) saturate(1.2);
    pointer-events: none;
    user-select: none;
}

.image-slide-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.image-slide-img.is-loaded,
.image-slide-img[src]:not([data-src]) {
    opacity: 1;
}

.image-slide .short-info a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

.image-slide .short-info a:hover {
    text-decoration: underline;
}

@media (min-width: 900px) {
    /* Images come in every shape, so the frame is wide rather than 9:16. */
    .image-frame {
        aspect-ratio: auto;
        width: min(calc(100vw - 260px), 1100px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-slide-img { transition: none; }
}
