/* =========================================================
   PROPERĀ — LOOKBOOK 2024
   ========================================================= */

.propera-lookbook-2024 {
    width: 100%;
    padding: 30px 0 60px;
}


/* ---------------------------------------------------------
   WRAPPER
--------------------------------------------------------- */

.propera-lookbook-2024__wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   BOOK
--------------------------------------------------------- */

.propera-lookbook-2024__book {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    perspective: 2500px;
}


/*
   Соотношение разворота:

   1137 × 1600
   2 страницы = 2274 × 1600
*/

.propera-lookbook-2024__spread {
    position: relative;

    width: 100%;
    aspect-ratio: 2274 / 1600;

    display: none;

    transform-style: preserve-3d;

    background: #f4f4f4;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.14);

    overflow: hidden;
}


/* ---------------------------------------------------------
   COVER
--------------------------------------------------------- */

.propera-lookbook-2024__cover {
    position: relative;

    width: min(50%, 710px);

    margin: 0 auto;

    aspect-ratio: 1137 / 1600;

    background: #fff;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.14);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.propera-lookbook-2024__cover:hover {
    transform: translateY(-3px);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.18);
}

.propera-lookbook-2024__cover-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ---------------------------------------------------------
   PAGES
--------------------------------------------------------- */

.propera-lookbook-2024__page {
    position: absolute;

    top: 0;

    width: 50%;
    height: 100%;

    overflow: hidden;

    background: #fff;
}

.propera-lookbook-2024__page--left {
    left: 0;
}

.propera-lookbook-2024__page--right {
    right: 0;
}

.propera-lookbook-2024__page img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #fff;
}


/* ---------------------------------------------------------
   CENTER SHADOW
--------------------------------------------------------- */

.propera-lookbook-2024__page--left::after,
.propera-lookbook-2024__page--right::after {
    content: "";

    position: absolute;

    top: 0;

    width: 12%;

    height: 100%;

    pointer-events: none;
}

.propera-lookbook-2024__page--left::after {
    right: 0;

    background:
        linear-gradient(
            to left,
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0)
        );
}

.propera-lookbook-2024__page--right::after {
    left: 0;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0)
        );
}


/* ---------------------------------------------------------
   FLIPPING PAGE
--------------------------------------------------------- */

.propera-lookbook-2024__flip {
    position: absolute;

    z-index: 20;

    top: 0;
    right: 0;

    width: 50%;
    height: 100%;

    transform-origin: left center;

    transform-style: preserve-3d;

    display: none;

    background: #fff;
}


/* Front + back */

.propera-lookbook-2024__flip-front,
.propera-lookbook-2024__flip-back {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    background: #fff;
}

.propera-lookbook-2024__flip-front img,
.propera-lookbook-2024__flip-back img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #fff;
}


/*
   Back side of the page.
   The image itself is mirrored so that after rotation
   it looks natural.
*/

.propera-lookbook-2024__flip-back {
    transform: rotateY(180deg);
}


/* ---------------------------------------------------------
   NEXT FLIP
--------------------------------------------------------- */

.propera-lookbook-2024__book.is-flipping-next
.propera-lookbook-2024__flip {
    display: block;

    animation:
        propera-lookbook-flip-next
        0.75s
        cubic-bezier(0.4, 0.0, 0.2, 1)
        forwards;
}


@keyframes propera-lookbook-flip-next {

    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-180deg);
    }

}


/* ---------------------------------------------------------
   PREVIOUS FLIP
--------------------------------------------------------- */

.propera-lookbook-2024__book.is-flipping-prev
.propera-lookbook-2024__flip {
    display: block;

    left: 0;
    right: auto;

    transform-origin: right center;

    animation:
        propera-lookbook-flip-prev
        0.75s
        cubic-bezier(0.4, 0.0, 0.2, 1)
        forwards;
}


@keyframes propera-lookbook-flip-prev {

    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(180deg);
    }

}


/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */

.propera-lookbook-2024__navigation {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 30px;

    margin-top: 28px;
}


/* =========================================================
   NAVIGATION ARROWS
========================================================= */

.propera-lookbook-2024__arrow {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #8B2C83 !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: #8B2C83 !important;

    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1 !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease !important;
}


.propera-lookbook-2024__arrow:hover {
    background: #8B2C83 !important;
    color: #fff !important;

    transform: translateY(-1px);
}


/* Disabled */

.propera-lookbook-2024__arrow:disabled {
    opacity: 0.35;

    cursor: default;

    transform: none;
}


/* ---------------------------------------------------------
   COUNTER
--------------------------------------------------------- */

.propera-lookbook-2024__counter {
    min-width: 70px;

    text-align: center;

    color: #222;

    font-size: 14px;

    line-height: 1;
}

.propera-lookbook-2024__separator {
    margin: 0 5px;

    opacity: 0.45;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 767px) {

    .propera-lookbook-2024 {
        padding: 20px 0 40px;
    }


    .propera-lookbook-2024__wrapper {
        width: calc(100% - 30px);
    }


    .propera-lookbook-2024__book {
        width: 100%;
    }


    /*
       На телефоне показываем одну вертикальную страницу.
    */

    .propera-lookbook-2024__spread {
        aspect-ratio: 1137 / 1600;

        overflow: hidden;
    }


    .propera-lookbook-2024__page {
        width: 100%;
    }

    .propera-lookbook-2024__page--left {
        display: none;
    }

    .propera-lookbook-2024__page--right {
        left: 0;
        right: auto;
    }


    .propera-lookbook-2024__flip {
        width: 100%;
    }


    .propera-lookbook-2024__cover {
        width: 100%;
    }


    .propera-lookbook-2024__navigation {
        gap: 20px;

        margin-top: 20px;
    }


    .propera-lookbook-2024__arrow {
        width: 40px;
        height: 40px;

        font-size: 18px;
    }

}



/* =========================================================
   OVERRIDE BLOG CONTENT IMAGE STYLES
   Images inside the lookbook must not inherit
   generic article image styles.
========================================================= */

.propera-blog-single__content
.propera-lookbook-2024
.propera-lookbook-2024__page img,

.propera-blog-single__content
.propera-lookbook-2024
.propera-lookbook-2024__flip-front img,

.propera-blog-single__content
.propera-lookbook-2024
.propera-lookbook-2024__flip-back img {

    display: block;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;

    border-radius: 0 !important;
}