.reveal {
    opacity: 0;
    animation: .8s reveal forwards;
    animation-timeline: view();
}

.scrollRtoL {
    margin-left: 0px;
    animation: .8s paneRtoL forwards;
    animation-timeline: view();
    transition: all .8s cubic-bezier(.22, 1, .36, 1);
}

.scrollLtoR {
    margin-right: 0px;
    animation: .8s paneLtoR forwards;
    animation-timeline: view(); 
    transition: all .8s cubic-bezier(.22, 1, .36, 1);
}

@keyframes paneRtoL {
    from {
        margin-left: 0px;
        /* overflow-x: hidden; */
    }
    to{
        margin-left: -40%;
        /* overflow-x:visible; */
    }
}


@keyframes paneLtoR {
    from {
        margin-right: 0px;
    }
    to{
        margin-right: -40%;
    }
}

.fxnew {
    position: relative;
    width: 100%;
    /* max-width: 325px; */
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    background-color: #000;
    margin-top: -10px;
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.4);
}

.fxnew img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    filter: grayscale(1) contrast(1.7) brightness(0.97);
    transform: scale(1.05);
    transition: filter .8s cubic-bezier(.22, 1, .36, 1),
            transform .8s cubic-bezier(.22, 1, .36, 1);
}                                                       

.fxnew:hover img {
    filter: grayscale(0) contrast(1) brightness(1) saturate(2);
    transform: scale(1) 
}
.imgnew{
    transition: all 0.2s .8s ease-in;
}

.fxnew:hover::before{
    opacity: 0;
}

.fxnew:hover::after {
    opacity: 0;
}

.fxnew::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, #333333 0 1px, transparent 1.6px) 0 0 / 4px 4px;
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1);
}
.fxnew::after {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: 2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.4;
    pointer-events: none;
    animation: grain 1s steps(6) infinite;
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1);
}

#fxnew5 {
    /* rotate: +5deg; */
    transition: all 0.2s ease-in-out;
}
#fxnew5:hover {
    /* transform: rotate(+10deg) */
    border: 1px grey solid dashed
}

@keyframes reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}