﻿.page-breadcrumbs.outset {
    transform: translateY(100%);
    height: 0;
}

.collection-details {
    /* margin-top: -3.59rem; */

}

.collection-details.is-loading {
    &:before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: var(--accent-color);
        z-index: 1000;
        color: #fff;
        font-size: 2rem;
    }

    &:after {
        content: '';
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: url('/Portals/0/logo.png') no-repeat center center;
        z-index: 10000;
        color: #fff;
        font-size: 2rem;
        animation: logoSpin 1s ease infinite;
        -webkit-animation: logoSpin 1s ease infinite;
        transform: rotateY(0deg);
        -webkit-transform: rotateY(0deg);
        -moz-transform: rotateY(0deg);
        -ms-transform: rotateY(0deg);
        -o-transform: rotateY(0deg);
    }
}

@keyframes logoSpin {
    from {
        transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -ms-transform: rotateY(180deg);
        -o-transform: rotateY(180deg);
    }

    to {
        transform: rotateY(0deg);
        -webkit-transform: rotateY(0deg);
        -moz-transform: rotateY(0deg);
        -ms-transform: rotateY(0deg);
        -o-transform: rotateY(0deg);
    }
}

#sec-1 {
    position: relative;
    height: calc(100vh - 17.6rem);
}

#sec-1 video,
#sec-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sec-1 .scroll {
    position: absolute;
    bottom: 1rem;
    right: 0;
    left: 0;
    z-index: 1;
}

#sec-1 .scroll .txt {
    font-size: 1.28rem;
    font-weight: 300;
    color: var(--White);
}

#sec-1 .scroll svg {
    width: 1.28rem;
    height: 1.28rem;
    fill: var(--White);
}

#sec-2 {
    position: relative;
    direction: ltr;
    height: calc(50vw * 2);
    overflow: hidden;
    /* برابر با تعداد لایه‌ها * 100vh */
}

#sec-2 .items {
    position: absolute;
    top: 0;
    left: 0;
    height: 100dvh;
    display: flex;
    width: 250vw;
    transform: translateX(0);
}

#sec-2 .item {
    flex: 0 0 100vw;
    /* height: max-content; */
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

#sec-2 .item:nth-child(2n),
#sec-2 .item:nth-child(3n),
#sec-2 .item:nth-child(4n) {
    flex: 0 0 50vw;
}

#sec-2 .item:nth-child(2n) {
    z-index: 3;
}

/* #sec-2 .items .layer {
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
} */

#sec-2 .items .sequence-1 .layer-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#sec-2 .items .sequence-1 .layer-1 img {
    position: relative;
    height: 100%;
    max-width: 50%;
    object-fit: contain;
}

#sec-2 .items .sequence-1 .layer-1 img:first-child {
    z-index: 1;
}

#sec-2 .items .sequence-1 .layer-1 img:last-child {
    z-index: 3;
}


#sec-2 .items .sequence-1 .layer-1 .layer-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 23%;
    z-index: 2;
}


#sec-2 .items .sequence-1 .layer-1 .layer-2 img {
    height: auto;
    max-width: 100%;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
}

#sec-2 .items .sequence-1 .layer-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 200%;
    right: 10%;
}


#sec-2 .items .sequence-2 .layer-1 {
    width: 100%;
    height: 100%;
}

#sec-2 .items .sequence-2 .layer-1 img,
#sec-2 .items .sequence-2 .layer-1 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sec-2 .items .sequence-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50vw;
    width: 50vw;
}


#sec-3 {
    position: relative;
    width: 100%;
    -height: 100vh;
    padding: 2px 0;
    overflow: hidden;
    z-index: 1;
}

#sec-3:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 18%;
    z-index: 10;
    background: #ffffff;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
}

#sec-3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 18%;
    z-index: 10;
    background: #ffffff;
    background: -webkit-linear-gradient(360deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(360deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(360deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
}

#sec-3 #scrollVideo {
    width: 100%;
    -height: 100%;
    object-fit: cover;
    pointer-events: none;
}


@media (max-width: 990px) {
    #sec-1 {
        height: calc(100dvh - 10rem);
    }

    #sec-2 {
        height: calc(100vw * 6);
    }

    #sec-2 .items {
        height: 100dvh;
        width: 250vw;
    }

    #sec-2 .item {
        height: 100dvh;
    }

    #sec-2 .item:nth-child(2n),
    #sec-2 .item:nth-child(3n),
    #sec-2 .item:nth-child(4n) {
        flex: 0 0 100vw;
    }

    #sec-2 .item:first-child {
        flex: 0 0 200vw;
        padding-right: 100vw;
    }

    #sec-2 .items .sequence-1 {
        display: flex;
        align-items: center;
    }

    #sec-2 .items .sequence-1 .layer-1 {
        position: relative;
        height: max-content;
        overflow: hidden;
        padding: 2px 0;
    }

    #sec-2 .items .sequence-1 .layer-1:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 18%;
        z-index: 10;
        background: #ffffff;
        background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
        background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
    }

    #sec-2 .items .sequence-1 .layer-1:after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 18%;
        z-index: 10;
        background: #ffffff;
        background: -webkit-linear-gradient(360deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
        background: -moz-linear-gradient(360deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
        background: linear-gradient(360deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.25) 64%, rgba(255, 255, 255, 0) 100%);
    }

    #sec-2 .items .sequence-1 .layer-1 .layer-2 {
        right: 0%;
    }

    #sec-2 .items .sequence-1 .layer-3 {
        top: 100%;
        right: 3%;
        max-width: 80vw;
    }

    #sec-3 {
        height: auto;
    }
}