.page-template-chef-page .site-logo:not(.overlap-visit) .custom-logo {
    filter: brightness(0%);
}

.page-template-chef-page .primary-navigation:not(.overlap-visit) a,
.page-template-chef-page .primary-navigation:not(.overlap-visit) .primary-menu-container>ul>.menu-item>a {
    color: var(--color-dark);
}


.section__chef-scroll {
    height: calc(100vh - var(--wp-admin-bar-height, 0px));
    overflow: hidden;
    position: relative;
    width: 100%;
}

section.chef-page {
    background: #DEDEDE;
    position: relative;
    height: 100%;
}


section.chef-page::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    background-image: url(../images/overlay-layer-origin.jpg);
    background-size: contain;
    background-position: center;
    mix-blend-mode: luminosity;
    background-repeat: repeat;
}

section.chef-page .cuisine-intro {
    height: calc(100vh - var(--wp-admin-bar-height, 0px));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
    padding: 0 103px;
}

section.chef-page .cuisine-intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.section.chef-page .cuisine-intro__en {
    text-transform: uppercase;
}

.gallery__slider {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 60px;
    width: 100%;
}

section.chef-page * {
    color: var(--color-dark);
}

section.chef-page .cuisine-intro::before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
    background-color: #1B1B1B;
}

.chef-journey__inner {
    max-width: 665px;
    padding: 0 117px
}

.chef-page .chef-journey__subtitle {
    display: inline-block;
    margin-bottom: 40px;
    opacity: 0.6;
}

.chef-page .chef-journey__subtitle:before {
    content: '';
    width: 2px;
    height: 2px;
    background: currentColor;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.chef-page .layer__heading {
    width: 412px;
    justify-content: flex-start;
    padding-left: 109px;
}

.chef-page .title {
    margin-bottom: 14px;
}

.chef-page .about-the-chef__content-left .title {
    margin-bottom: 0px;
}

.chef-page .text--first {
    margin-bottom: 20px;
}

.gallery__slide {
    max-width: 400px;
    width: 33.33%;
}

.gallery__slide .image {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
    height: 100%;
    max-height: 500px;
}

.gallery__slide .image img {
    position: relative;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100%;
    object-fit: cover;
}

.about-the-chef__content-left {
    max-width: 350px;
    padding: 0 120px;
    text-align: center;
    position: relative;
}

.about-the-chef__content-left:after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
    background-color: #1B1B1B;
}

.about-the-chef__logo {
    margin-top: 63px;
    text-align: right;
}

.about-the-chef__logo img {
    max-width: 90px;
    height: auto;
}

.about-the-chef__content-right {
    padding: 0 120px;
    max-width: 640px;
}

.about-the-chef {
    height: 100%;
}

.about-the-chef__image {

    height: 100%;
}

.chef-journey {
    height: 100%;
    display: flex;
    align-items: center;
}

.chef-scroll_component {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.about-the-chef__image img {
    height: 100% !important;
    object-fit: cover;
}


section.chef-page .jcuisine-intro__en {
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    section.chef-page {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .about-the-chef {
        display: flex;
        align-items: center;
    }

    .about-the-chef__inner {
        display: flex;
        align-items: center;
    }

    section.chef-page .cuisine-intro::before {
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 500px;
    }


    .about-the-chef__content-left:after {
        width: 1px;
        height: 250px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 767px) {

    section.chef-page::before {
        background-image: url(../images/overlay-layer-origin-mobile.jpg);
        background-size: cover;
    }

    section.chef-page .cuisine-intro {
        width: 100%;
        padding: 60px 20px;
        border-right: none;
        writing-mode: horizontal-tb;
        height: auto;
        padding: 270px 20px 68px;
        justify-content: center;
    }

    section.chef-page .cuisine-intro__inner {
        writing-mode: horizontal-tb;
        flex-direction: column-reverse;
        gap: 8px;
        justify-content: center;
    }

    .chef-scroll_component {
        display: block;
        width: 100%;
        height: auto;
    }

    section.section__chef-scroll {
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
    }

    section.chef-page .cuisine-intro__ja {
        font-size: var(--font-size-h2);
    }

    .chef-journey__content.content {
        padding-bottom: 70px;
    }

    .chef-journey__inner,
    section.chef-page .gallery {
        padding: 0 30px;
    }

    .about-the-chef__content-left,
    .about-the-chef__content-right {
        padding: 0 30px;
    }

    .gallery__slide {
        width: 100%;
    }

    .gallery__slide .image {
        padding-bottom: calc(500/400 * 100%);
        font-size: 0;
        line-height: 0;
    }

    .gallery__slide .image img {
        position: absolute;
    }


    .gallery__slider {
        gap: 30px;
    }

    section.chef-page .cuisine-intro::before {
        height: 1px;
        width: calc(100% - 60px);
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }

    .layer.layer-chef .chef-page {
        padding-top: 271px;
    }

    .layer__heading {
        text-align: center;
        position: relative;
        padding: 0 0 67px;
    }

    .text.body-text.concept-content__heading {
        text-transform: uppercase;
        margin-top: 6px;
    }

    .chef-journey {
        padding: 69px 0;
        display: block;
    }

    .chef-journey__content p {
        line-height: 1.5;
    }


    .about-the-chef__content-left {
        text-align: left;
        max-width: 100%;
        padding-bottom: 37px;
    }

    .about-the-chef {
        padding: 0;
    }

    .about-the-chef__content-left:after {
        width: calc(100% - 60px);
        height: 1px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .chef-page .about-the-chef .title {
        margin-bottom: 4px;
    }

    .about-the-chef__content-right {
        padding-top: 40px;
        padding-bottom: 70px;
    }

    .about-the-chef__content-right p {
        line-height: 1.5;
    }

    .about-the-chef__image {
        height: auto;
    }
}