/* GENERAL */


/* SW PARALAX IMAGE */

.sw-block .sw-paralax-image {
    height: 600px;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.home .sw-block .sw-paralax-image {
    height: 600px !important;
}

@media(max-width: 992px){
    .sw-block .sw-paralax-image {
        height: 400px;
    }

    @supports (-webkit-touch-callout: none) {
        .sw-block .sw-paralax-image {
            background-attachment: scroll;
        }
    }
}



/* SW BLOCK VIDEO */

.before-parallax-video{
    background: #fff;
    padding: 100px 0;
    margin: 0 auto;
    max-width: unset;
}

.before-parallax-video > div{
    max-width: 1800px;
    margin: 0 auto;
}

.container-before-parallax-video{
    margin: 0;
    padding: 100px 0;
    background: #fff;
    max-width: unset;
}

.container-before-parallax-video > div {
    max-width: 1800px;
    padding: 0 100px;
    margin: 0 auto;
    position: relative;
}

.container-before-parallax-video .wp-block-columns{
    margin-bottom: 0;
}

.block-video{
    height: 500px;
    padding-bottom: 50px;
    padding-top: 50px;
}

.block-video video{
    min-width: 100%;
    position: fixed;
    /*top:0;*/
    z-index: -999;
    top: calc(50% - 150px);
    transform: translateY(-50%);
    max-width: 100vw;
}

.block-video.hide video{
    display: none;
}

@media(max-width: 992px){
    .before-parallax-video{
        padding: 50px 50px;
    }

    .block-video {
        display: none;
    }

    .container-before-parallax-video > div{
        padding: 0 50px;
    }
}

@media(max-width: 767px){
    .before-parallax-video{
        padding: 50px;
    }

    .container-before-parallax-video{
        padding: 50px 0;
    }
}

@media(max-width: 576px){
    .before-parallax-video{
        padding: 0 25px;
        margin: 50px auto;
    }

    .container-before-parallax-video > div{
        padding: 0 25px;
    }
}



/* SW BLOCK REFERENCES */

.block-references {
    display: flex;
    align-items: center;
    padding: 50px;
    background: #F5F5F5;
    margin: 50px 0;
}

.block-references .texte {
    width: 200px;
    padding-right: 50px;
    font-family: 'Gyst';
    font-size: 24px;
    line-height: 28px;
}

.block-references .references {
    width: calc(100% - 200px)
}

.block-references .references .references-carousel .owl-stage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-references .references .references-carousel .reference {
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-references .references .references-carousel .reference a img {
    filter: grayscale(1);
    transition: all 250ms;
    object-fit: contain;
    height: 100%;
    width: 100%;
    max-height: 120px;
    max-width: 150px;
}

.block-references .references .references-carousel .reference a:hover img {
    filter: none;
}

@media(max-width: 575px) {
    .block-references {
        padding: 25px;
        display: block;
    }

    .block-references .texte {
        width: 100%;
    }

    .block-references .texte p {
        margin: 0 0 10px;
    }

    .block-references .references {
        width: 100%;
        margin-top: 25px;
    }
}



/* SW Books */

.block-books {
    display: flex;
    flex-wrap: wrap;
    padding: 0 12.5px;
    position: relative;
}

.block-books .book-col {
    width: 16.66%;
    padding: 12.5px;
    transition: all 250ms;
    cursor: pointer;
    position: relative;
}

.block-books .book-col.active,
.block-books .book-col.filter,
.block-books .book-col.empty {
    cursor: unset;
}

.block-books .book-col.empty {
    pointer-events: none !important;
}

.block-books .book-col > a:hover,
.block-books .book-col > a:active,
.block-books .book-col > a:focus {
    color: inherit;
}

.block-books .book-col.transition {
    opacity: 0;
}

.block-books .book-col.hide {
    display: none;
}

.block-books .book-col .categories .category {
    color: #C0C0C0;
    font-size: 22px;
    line-height: 24px;
    font-weight: 800;
    transition: all 250ms;
    cursor: pointer;
    padding: 0 15px 15px;
}

.block-books .book-col .categories .category.selected,
.block-books .book-col .categories .category:hover {
    color: #000;
}

.block-books .book-col > .image,
.block-books .book-col > a > .image {
    overflow: hidden;
}

.block-books .book-col > .image img,
.block-books .book-col > a > .image img {
    display: block;
    transition: all 250ms;
}

.block-books .book-col:hover > .image img,
.block-books .book-col:hover > a > .image img {
    transform: scale(1.1);
}

.block-books .book-col .image {
    position: relative;
}

.block-books .book-col .image .credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 0 5px;
    font-family: 'Gyst';
}

.block-books .book-col .content {
    position: absolute;
    top: 12.5px;
    left: 12.5px;
    width: calc(100% - 25px);
    height: calc(100% - 25px);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 5px;
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transition: opacity 500ms ease;
}

.block-books .book-col:hover .content {
    opacity: 1;
}

.block-books .book-col .title {
    margin: 10px 0 5px;
    line-height: 1;
}

.block-books .book-col .modal-element {
    display: none;
}

.block-books .book-col .date {
    font-weight: 700;
}

.block-books .modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease;
}

.block-books .modal.active {
    opacity: 1;
    pointer-events: auto;
}

.block-books .modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    transform: translateX(-100%);
    transition: transform 1000ms ease;
}

.block-books .modal.active .modal-background {
    transform: translateX(0);
}

.block-books .close-modal {
    position: absolute;
    top: 34px;
    right: 57px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.block-books .close-modal .text {
    font-weight: bold;
    font-family: 'Gyst';
}

.block-books .close-modal svg {
    margin-top: -5px;
}

.block-books .modal .modal-content {
    max-width: 90vw;
    max-height: calc(100vh - 150px);
    margin-top: 50px;
    overflow-y: auto;
    scrollbar-color: #0E2316 #fff;
    scrollbar-width: thin;
    position: relative;
}

.block-books .modal .modal-content .photos-carousel .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-books .modal .modal-content .photos-carousel .owl-nav .owl-next {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1 ;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-books .modal .modal-content .photos-carousel .owl-nav .owl-next span {
    margin-top: -5px;
}

.block-books .modal .modal-content .photos-carousel .owl-nav .owl-next:hover {
    color: #000;
}

.block-books .modal .modal-content .photos-carousel .owl-nav .owl-prev {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1 ;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-books .modal .modal-content .photos-carousel .owl-nav .owl-prev span {
    margin-top: -5px;
}

.block-books .modal .modal-content .photos-carousel .owl-nav .owl-prev:hover {
    color: #000;
}

.block-books .modal .modal-content .image {
    width: fit-content;
    position: relative;
}

.block-books .modal .modal-content .image img {
    width: fit-content;
}

.block-books .modal .modal-content .image .credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 0 5px;
    font-family: 'Gyst';
}

.block-books .modal .modal-content .photos-carousel .owl-item {
    height: calc(100vh - 150px);
}

.block-books .modal .modal-content .photos-carousel .image {
    max-height: calc(100vh - 150px);
}

.block-books .modal .modal-content .photos-carousel .image img {
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

.block-books .modal .modal-content .content {
    max-width: 600px;
    margin: 0 auto;
}

.block-books .modal .modal-content .title {
    margin: 10px 0 5px;
    line-height: 1;
}

.block-books .modal .modal-content .date {
    font-weight: 700;
}

.block-books .book-col.filter .mobile-filter {
    display: none;
}

.block-books .book-col.filter .categories .mobile-filter-background {
    display: none;
}

.block-books .book-col.filter .categories {
    position: relative;
}

@media(max-width: 1400px) {
    .block-books .book-col {
        width: 20%;
    }
}

@media(max-width: 1200px) {
    .block-books .book-col {
        width: 25%;
    }
}

@media(max-width: 991px) {
    .block-books .book-col {
        width: 33.33%;
    }
}

@media(max-width: 781px) {
    .block-books .book-col {
        width: calc(50% - 25px);
    }

    .block-books .book-col.filter {
        width: 50px !important;
    }

    .block-books .book-col.empty {
        width: 50px !important;
    }

    .block-books .book-col.filter .categories {
        pointer-events: none;
        position: fixed;
        padding: 130px 50px 0 0;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
    }

    .block-books .book-col.filter .categories.active {
        pointer-events: auto;
        z-index: 999;
    }

    .block-books .book-col.filter .categories .mobile-filter {
        display: flex;
        font-size: 18px;
        line-height: 22px;
        font-weight: 600;
        transition: all 250ms;
        cursor: pointer;
        padding: 10px;
        border: 1px solid;
        border-bottom: unset;
        transform: rotate(-90deg);
        width: fit-content;
        position: absolute;
        right: -33px;
        /*top: 33px;*/
        top: 163px;
        pointer-events: auto;
        z-index: 2;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
    }

    .block-books .book-col.filter .categories .mobile-filter-background {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        /*background: #fff;*/
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        top: 0;
        left: 0;
        transform: translateX(100%);
        transition: all 500ms;
    }

    .block-books .book-col.filter .categories.active .mobile-filter-background {
        transform: translateX(0);
    }

    .block-books .book-col.filter .categories .category {
        opacity: 0;
        z-index: 2;
        position: relative;
    }

    .block-books .book-col.filter .categories.active .category {
        opacity: 1;
    }

    .block-books .close-modal {
        top: 22px;
        right: 20px;
    }
}

@media(max-width: 575px) {
    .block-books .book-col {
        width: calc(100% - 50px);
    }
}


/* SW Artistes */

.block-artistes .artistes-carousel {
    margin: 25px 0;
}

.block-artistes .artistes-carousel .owl-stage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-artistes .artistes-carousel .artiste {
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.block-artistes .artistes-carousel .artiste .name {
    font-family: 'Gyst';
    font-style: italic;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
}

@media(max-width: 575px) {
    .block-artistes .artistes-carousel .artiste {
        width: unset;
    }
}