.container {
    padding-left: 50px;
    padding-right: 50px;
}

.site-header {
    position: relative;
    z-index: 5;
}

.site-header,
.site-content {
    opacity: 0;
    transition: .3s;
}

.site-content {
    overflow-x: hidden;
    transition: opacity 0.5s cubic-bezier(0.28, 0.12, 0.22, 1), transform 0.5s cubic-bezier(0.28, 0.12, 0.22, 1);
}

.show .site-header,
.show .site-content {
    opacity: 1;
}

.header-scrolled .site-header {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

#sidebar {
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow-y: auto;
    position: fixed;
    visibility: hidden;
    top: 0;
    right: 0;
    z-index: 10000;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translate(100%);
    transition: transform .5s cubic-bezier(0.28, 0.12, 0.22, 1) .1s;
}

#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar a::before {
    display: none;
}

#sidebar .close-sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: calc(50px + var(--wp-admin--admin-bar--height, 0px));
    margin-top: 0 !important;
    right: 42px;
    padding: 0;
    color: #000;
    width: 40px;
    height: 40px;
    background: transparent;
    border-color: transparent;
    z-index: 1004;
    border: 0 !important;
    transition: 0.3s;
}

#sidebar .close-sidebar::before,
#sidebar .close-sidebar::after {
    content: "";
    display: block;
    height: 100%;
    width: 3px;
    position: absolute;
    left: 18px;
    transition: .3s;
    background-color: #000;
}

#sidebar .close-sidebar::before {
    transform: rotate(-45deg) translateZ(0);
}

#sidebar .close-sidebar::after {
    transform: rotate(45deg) translateZ(0);
}

#sidebar-trigger {
    cursor: pointer;
    height: 33px;
    padding: 0;
    width: 44px;
    margin-right: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

#sidebar-trigger a {
    display: none;
}

#sidebar-trigger::before {
    content: "\e905";
    line-height: 1;
    font-size: 18px;
    font-family: 'icomoon' !important;
    color: currentColor;
}

#overlay {
    background-color: rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    transition: .3s;
    transition-delay: .2s;
    z-index: 30;
}

.sidebar-opened #overlay {
    opacity: 1;
    visibility: visible;
}

.sidebar-opened #sidebar {
    visibility: visible;
    transform: translateX(0);
}

.back-to-top {
    position: fixed;
    opacity: 0;
    transform: translateX(80px);
    bottom: 30px;
    right: 12px;
    z-index: 3;
    color: rgba(0, 0, 0, 0.4);
    transition: .5s cubic-bezier(0.28, 0.12, 0.22, 1);
}

.back-to-top i {
    font-size: 3.25rem;
}

.show-scroll-up {
    opacity: 1;
    transform: translateX(0);
}


.home .page>* {
    max-width: 100% !important;
}

.home .page-title {
    display: none !important;
}

.home .home-top {
    padding-top: 6vw !important;
    padding-bottom: 6vw !important;
}

.home .home-top .wp-block-heading {
    font-size: 2.8rem !important;
    margin-bottom: 1rem !important;
}

@media only screen and (max-width: 1024px) {
    .site-header-left {
        gap: 20px;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
}


@media only screen and (max-width: 767px) {

    .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .site-content {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .site-header {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .site-footer .is-layout-flex {
        gap: 8px !important;
    }

    .site-footer p {
        width: 100%;
    }

    #sidebar {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    #sidebar-trigger {
        margin-left: -5px;
    }

    #sidebar .close-sidebar {
        right: 22px;
        top: calc(25px + var(--wp-admin--admin-bar--height, 0px));
    }

    #sidebar .close-sidebar::before,
    #sidebar .close-sidebar::after {
        height: 70%;
    }

    .page-title {
        font-size: 2.8rem !important;
        margin-bottom: 3rem !important;
    }

    .single .page-title {
        font-size: 2.4rem !important;
        margin-bottom: 1.3rem !important;
    }

    .post-row {
        flex-wrap: wrap !important;
    }

    .row-entry-meta {
        padding-bottom: 1rem !important;
        margin-bottom: 1rem !important;
        border-bottom: 0 !important;
    }

    blockquote {
        clear: both;
        max-width: 55%;
        margin: .4em 0 0 20px !important;
    }

    .single .block-mobile {
        position: relative;
    }

    .single .block-mobile::before {
        content: "";
        border-top: 1px solid rgba(0, 0, 0, .1);
        display: block;
        width: 100vw;
        position: absolute;
        margin-left: -30px;
        top: 0;
    }
}

@media only screen and (min-width: 1025px) {

    .site-header.is-position-sticky {
        position: fixed;
        top: var(--wp-admin--admin-bar--height, 0);
        left: 0;
        width: 100%;
    }

    .site-footer a:hover,
    .back-to-top:hover {
        color: #000 !important;
    }

    #sidebar {
        max-width: 900px;
        border-left: 1px solid rgba(0, 0, 0, .08);
    }

    #sidebar-trigger:hover,
    #sidebar .close-sidebar:hover {
        opacity: 0.6;
    }

    #sidebar .close-sidebar:hover::before {
        transform: rotate(-90deg);
    }

    #sidebar .close-sidebar:hover::after {
        transform: rotate(90deg);
    }

    #sidebar a:hover {
        opacity: .6;
    }

    .site-header {
        transform: translate3d(0px, -20px, 0px);
    }

    .show .site-header {
        transform: translate3d(0px, 0px, 0px);
    }

    .sidebar-opened .site-header,
    .sidebar-opened .site-content {
        transform: translateX(-885px);
    }

    .single .categories-footer a:not(:hover) {
        opacity: 0.4;
    }

    .single .entry-content .wp-block-image.size-full {
        margin: 60px -80px;
    }

    .block-desktop {
        display: block;
    }

    .block-mobile {
        display: none;
    }
}

@media only screen and (min-width: 1441px) {
    .container {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }

    #sidebar .close-sidebar {
        right: 72px;
    }
}



/* FORMS */

label {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.8px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    height: 40px;
    width: 100%;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 0;
    letter-spacing: 0.5px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    outline: none;
    transition: .3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(0, 0, 0, .1);
}

input[type="search"]::placeholder {
    color: inherit;
    border-color: #000 !important;
}

textarea {
    box-shadow: none;
    line-height: 1.8em;
    min-height: 180px;
    overflow: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    resize: vertical;
    vertical-align: top;
}

input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    background: #000;
    border-radius: 0;
    border-style: solid;
    border-width: 2px;
    box-shadow: none;
    color: #fff;
    height: 40px;
    font-family: 'Cormorant Garamond';
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: initial;
    padding-left: 2em;
    padding-right: 2em;
    text-shadow: none;
    transition: .3s;
}

#sidebar input[type="text"],
#sidebar input[type="email"],
#sidebar input[type="tel"],
#sidebar input[type="password"],
#sidebar input[type="url"],
#sidebar input[type="search"],
#sidebar select,
#sidebar textarea {
    color: #000;
    border-color: #000;
    font-size: 0.875rem;
    font-weight: 700;
    height: 45px;
    letter-spacing: 0.6px;
    max-width: 100%;
    box-sizing: border-box;
}

#sidebar input[type="submit"] {
    display: block;
    margin: 0 auto;
    margin-top: 2em;
    width: 80%;
}

#sidebar .wpcf7-form>label {
    width: 100% !important;
    padding: 0 !important;
}

.wpcf7-form {
    position: relative;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 12px;
}

.wpcf7-form label+label {
    margin-top: 14px;
}

.wpcf7-submit {
    margin-top: 35px;
}

.wpcf7-spinner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
    font-size: 12px;
}

.wpcf7-response-output {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
}

.wpcf7-not-valid-tip {
    margin-top: 4px
}

#sidebar .wpcf7-form-control-wrap {
    margin-top: 0.5em;
}

#sidebar .wpcf7-not-valid-tip {
    padding-left: 0;
    border: 0;
}

#sidebar .wpcf7-spinner {
    left: 45%;
}

.site-header input[type="search"],
.search-no-results .site-content input[type="search"],
.error404 .site-content input[type="search"] {
    background-color: transparent;
    height: auto;
    text-align: center;
    font-weight: 700;
}

.submit-wrapper {
    position: relative;
}

.submit-wrapper .wpcf7-spinner {
    bottom: 10px;
    left: 120px;
    transform: unset !important;
}



@media only screen and (min-width: 768px) {

    .wpcf7-form>label:nth-of-type(1),
    .wpcf7-form>label:nth-of-type(2) {
        width: 49.7%;
        display: inline-block;
        box-sizing: border-box;
    }

    .wpcf7-form>label:nth-of-type(1) {
        padding-right: 20px;
    }

    .wpcf7-form>label:nth-of-type(2) {
        padding-left: 20px;
    }
}

@media only screen and (min-width: 1025px) {

    input[type="text"]:hover,
    input[type="email"]:hover,
    input[type="url"]:hover,
    input[type="password"]:hover,
    input[type="search"]:hover,
    input[type="number"]:hover,
    input[type="tel"]:hover,
    input[type="range"]:hover,
    input[type="date"]:hover,
    input[type="month"]:hover,
    input[type="week"]:hover,
    input[type="time"]:hover,
    input[type="datetime"]:hover,
    input[type="datetime-local"]:hover,
    input[type="color"]:hover,
    textarea:hover,
    select:hover {
        border-color: rgba(0, 0, 0, .1) !important;
    }

    button:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    input[type="submit"]:hover {
        background: transparent;
        color: #000;
        outline: none;
    }
}