/* ============================================
    BODY STYLES (theme)
============================================ */
body {
    /* CSS Variables for consistent theming */
    --heading-family: "Cormorant Upright", serif;
    --heading-style: normal;
    --heading-weight: 400;
    --heading-size: 52px;
    --heading-lettercase: none;

    --body-text-family: "Ovo", serif;
    --body-text-style: normal;
    --body-text-weight: 400;
    --body-text-size: 16px;
    --body-text-lettercase: none;

    --body-height: 100vh;
    height: auto;
    overflow: visible;
    background-color: var(--background-primary);
}

/* Original theme colors */
body.original {
    --background-primary: #efebeb;
}

/* Responsive adjustments */
@media only screen and (max-width: 960px) {
    body {
        //overflow: hidden;
    }
}

@media (max-width: 320px) {
    body {
        --heading-size: calc(8vw + 0.768px);
        --body-text-size: calc(4vw + 0.384px);
    }
}

@media (min-width: 560px) and (max-width: 960px) {
    body {
        --heading-size: 62px;
        --body-text-size: 18px;
    }
}

@media (min-width: 961px) {
    body {
        --heading-size: 62px;
        --body-text-size: 18px;
    }
}

/* ============================================
    SIDE TO SIDE LAYOUT
============================================ */
.kat-page__side-to-side {
    min-height: 480px;
    display: block;
    position: relative;
    height: 100%;
}

.kat-page__side-to-side,
.kat-page__side-to-side * {
    -webkit-overflow-scrolling: touch;
}

.kat-page__side-to-side .primary-pane {
    overflow: hidden;
    top: 0;
    left: 0;
    bottom: 0;
    position: fixed;
    width: calc(100% - 450px);
    display: flex;
    flex-direction: column;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.kat-page__side-to-side .secondary-pane {
    position: relative;
    right: 0;
    width: 450px;
    margin-left: auto;
}

@media only screen and (max-width: 960px) {
    .kat-page__side-to-side .primary-pane {
        position: relative;
        width: 100%;
        display: none;
    }
    .kat-page__side-to-side .secondary-pane {
        position: relative;
        width: 100%;
    }
}

/* ============================================
    TOP COVER (Popup)
============================================ */
.top-cover {
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: var(--body-height);
    z-index: 999999;
    top: 0;
    left: 0;
    padding: 0;
    transition: all 1.8s;
    transition-timing-function: cubic-bezier(.23,.56,.38,.78);
    -webkit-transition-timing-function: cubic-bezier(.23,.56,.38,.78);
    -moz-transition-timing-function: cubic-bezier(.23,.56,.38,.78);
    -o-transition-timing-function: cubic-bezier(.23,.56,.38,.78);
    display: contents;
    flex-direction: column;
    //display: none;
}

@media only screen and (max-width: 960px) {
    .top-cover {
        //display: flex;
    }
}

#popup {
    width: 100%;
}
.iframe{
    width: 100%;
}
@media only screen and (min-width: 960px) and (max-width: 1199px) {
    .top-cover {
        display: flex !important;
        width: 100% !important;
        right: 0 !important;
        left: 0 !important;
        position: fixed !important;
    }
    .iframe{
        width: 100%;
    }
}

@media only screen and (min-width: 1200px) {
    .top-cover {
        /*display: flex;*/
        width: 450px;
        right: 0;
        left: auto;
        position: fixed;
    }
    .iframe{
        width: 450px
    }
}

/* ============================================
    TYPOGRAPHY
============================================ */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    font-family: var(--heading-family);
    font-style: var(--heading-style);
    font-weight: var(--heading-weight);
    font-size: var(--heading-size);
    text-transform: var(--heading-lettercase);
    line-height: normal;
}

body p {
    font-family: var(--body-text-family);
    font-style: var(--body-text-style);
    font-weight: var(--body-text-weight);
    font-size: var(--body-text-size);
    text-transform: var(--body-text-lettercase);
    line-height: normal;
}



body sup {
    font-family: inherit;
    font-size: 0.7em;
}

/* ============================================
    SCROLLBAR STYLING
============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}