// typography
$body: "Helvetica Neue", Helvetica, Arial, sans-serif;
$heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
$nav: "Helvetica Neue", Helvetica, Arial, sans-serif;

// color
$accent: #db4a37;
$link-color: #db4a36;
$border: #c0c1c0;

// content width
$container: 1080px;

// screen widths
$desktop: 1279px;
$ipad: 1023px;
$ipad-p: 767px;
$iphone: 600px;
$iphone-p: 479px;
$iphone-5: 374px;

$ipad-f: 0.88;
$ipad-p-f: 0.71;
$iphone-f: 0.5;
$iphone-p-f: 0.42;

// mobile header height
$mobile-height: 54px;

$fb: #3b5998;
$ms: #0084ff;
$tw: #55acee;
$pin: #cc2127;
$lin: #0077b5;
$em: #111;
$wa: #128c7e;
$rd: #ff4500;

// 35k compressed
@import "bourbon/bourbon";
@import "media-queries";
@import "utilities.scss";

@import "base";

// Fox Elements
@import "button";
@import "gallery";
@import "heading";
@import "helpers";
@import "instagram";
@import "mailchimp";
@import "widgets";

// general
.align-left {
    text-align: left;
}
.align-center {
    text-align: center;
}
.align-right {
    text-align: right;
}

.elementor-social-icon {
    display: inline-flex !important; // not sure why
}
.elementor-widget-text-editor {
    p:last-child {
        margin-bottom: 0;
    }
}

/* HEADING
--------------------------------------------------------------------------------- */
.fox-heading {
    
    overflow: hidden;
    
    @include clearfix;
    
    h1, h2, h3, h4, h5, p {
        margin: 0;
    }
}
.heading-section {
    & + .heading-section {
        margin-top: .5em;
    }
    
    > * {
        display: inline-block;
        max-width: 100%;
    }
}
.heading-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    
    a {
        display: block;
        margin-left: 5px;
        font-size: .9em;
        line-height: 1.3;
        transition: all .1s;
        
        // color: inherit;
        
        &:focus {
            outline: 0;
        }
        &:hover {
        }
    }
}
.link-position-right {
    .heading-title {
        display: block;
        a {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translate(0,-50%);
        }
        
    }
}

$large: 4.5em;
$medium: 3.4em;
$normal: 2.3em;
$small: 1.6em;

.heading-title-main {
    &.size-extra {
        font-size: 5.6em;
    }
    &.size-large {
        font-size: 4.5em;
    }
    &.size-medium {
        font-size: 3.4em;
    }
    &.size-normal {
        font-size: 2.3em;
    }
    &.size-small {
        font-size: 1.6em;
    }
    &.size-tiny {
        font-size: 1.3em;
        
        .heading-subtitle-main {
            font-size: 1.05em;
        }
    }
    &.size-supertiny {
        font-size: 1em;
        
        .heading-subtitle-main {
            font-size: .9em;
        }
    }
}
.heading-subtitle-main {
    font-size: 1.2em;
    font-weight: normal;
}

@media (max-width: $desktop) {
    
    .heading-title-main {
        &.size-large {
            font-size: $large * $ipad-f;
        }
        &.size-medium {
            font-size: $medium * $ipad-f;
        }
        
        /*
        &.size-normal {
            font-size: $normal * $ipad-f;
        }
        &.size-small {
            font-size: $small * $ipad-f;
        }
        */
    }
    
}

@media (max-width: $ipad) {
    .heading-title-main {
        &.size-large {
            font-size: $large * $ipad-p-f;
        }
        &.size-medium {
            font-size: $medium * $ipad-p-f;
        }
        /*
        &.size-normal {
            font-size: $normal * $ipad-p-f;
        }
        &.size-small {
            font-size: $small * $ipad-p-f;
        }
        */
    }
}

@media (max-width: $ipad-p) {
    
    .heading-title-main {
        &.size-large {
            font-size: $large * $iphone-f;
        }
        &.size-medium {
            font-size: $medium * $iphone-f;
        }
        
        &.size-normal {
            font-size: $normal * $ipad-f;
        }
        &.size-small {
            font-size: $small * $ipad-f;
        }
        &.size-tiny {
            font-size: 1.15em;
        }
    }
    
    .fox-heading.heading-line-wave .line {
        background-size: 60px;
    }

}

@media (max-width: $iphone) {
    
    .heading-title-main {
        &.size-large {
            font-size: $large * $iphone-p-f;
        }
        &.size-medium {
            font-size: $medium * $iphone-p-f;
        }
        /*
        &.size-normal {
            font-size: $normal * $iphone-p-f;
        }
        &.size-small {
            font-size: $small * $iphone-p-f;
        }
        */
    }
    
    .fox-heading.heading-line-wave .line {
        background-size: 40px;
    }
    
}

/* horizontal lines */
.fox-heading {
    .heading-title {
        position: relative;
    }
    .line {
        position: absolute;
        width: 1999px;
        top: 50%;
        transform: translate(0,-50%);
    }
    .line-left {
        right: 100%;
        margin-right: 20px;
    }
    .line-right {
        left: 100%;
        margin-left: 20px;
    }
    
    &.heading-line-1px {
        .line {
            border-top: 1px solid;
        }
    }
    &.heading-line-2px {
        .line {
            border-top: 2px solid;
        }
    }
    &.heading-line-3px {
        .line {
            border-top: 3px solid;
        }
    }
    &.heading-line-4px {
        .line {
            border-top: 4px solid;
        }
    }
    &.heading-line-dashed {
        .line {
            border-top: 1px dashed;
        }
    }
    &.heading-line-double {
        .line {
            height: 8px;
            border-bottom: 1px dotted;
            border-top: 2px solid;
        }
    }
    &.heading-line-wave {
        .line {
            height: 6px;
            background: url(../images/wave.png) center left repeat-x;
            background-size: 80px;
        }
    }
}

/* BUTTON
--------------------------------------------------------------------------------- */
.el-button {
    display: block;
}
.el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    
    border: 0 solid;
    transition: all .1s ease-out;
    
    &:focus {
        outline: 0;
    }
    .btn-text,
    .btn-icon {
        flex: none;
    }
    
    // rough style
    background: black;
    color: white;
}
.btn-text + .btn-icon {
    margin-left: 6px;
}
.image-icon {
    max-width: 100px;
    height: auto;
    display: block
}

.btn-flexible {
    line-height: 32px;
    padding: 0 20px;
}
.btn-fixed {
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    
    .btn-fixed-inner {
        display: flex;
        align-content: center;
        flex-flow: row wrap;
    }
}

/* POPUP
------------------------------------- */
.el-popup {
    position: fixed;
    z-index: 999;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    display: none;
    
    &.showing {
        display: block;
    }
}
.popup-close {
    display: block;
    position: absolute;
    z-index: 800;
    top: 0;
    right: 0;
    font-size: 0;
    
    color: black;
    width: 40px;
    height: 40px;
    cursor: pointer;
    
    &:before,
    &:after {
        display: block;
        content: "";
        border-top: 1px solid;
        width: 30px;
        transform: rotate(45deg);
        transform-origin: center center;
        
        position: absolute;
        left: 4px;
        top: 20px;
    }
    &:after {
        transform: rotate(-45deg);
        transform-origin: center center;
    }
}
.el-popup-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 990;
    cursor: pointer;
    
    background: rgba(0,0,0,.5);  // default
    // display: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-out;
}
.el-popup.showing + .el-popup-overlay {
    // display: block;
    opacity: 1;
    visibility: visible;
}
html.openning-popup {
    // height: 100vh;
    // overflow: hidden;
}

// fullscreen
// ----------------
.popup-fullscreen {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    
    .popup-inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all .45s cubic-bezier(0, 0.55, 0.45, 1);
    transition-delay: .1s;
    
    &.showing {
        opacity: 1;
        visibility: visible;
    }
}

// center
// ----------------
.popup-center {
    top: 50%;
    transform: translate(0,-50%);
    left: 20%;
    right: 20%;
    
    opacity: 0;
    visibility: hidden;
    transition: all .45s cubic-bezier(0, 0.55, 0.45, 1);
    transition-delay: .1s;
    
    &.showing {
        opacity: 1;
        visibility: visible;
    }
}

// sidebar
// ----------------
.popup-sidebar {
    top: 0;
    bottom: 0;
    overflow-y: scroll;
    width: 400px; // by default
    
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.popup-sidebar::-webkit-scrollbar {
    display: none;
}
.popup-left {
    left: 0;
    
    // since 5.3, we disable this close button
    .popup-close{
        display: none;
    }
    
    display: block;
    transform: translate(-105%,0);
    transition: all .45s cubic-bezier(0, 0.55, 0.45, 1);
    transition-delay: .1s;
    
    &.showing {
        transform: translate(0,0);
    }
    
}
.popup-right {
    right: 0;
    
    // since 5.3, we disable this close button
    .popup-close{
        display: none;
    }
    
    display: block;
    transform: translate(105%,0);
    transition: all .45s cubic-bezier(0, 0.55, 0.45, 1);
    transition-delay: .1s;
    
    &.showing {
        transform: translate(0,0);
    }
}

/*
.elementor-element-edit-mode .el-popup {
    display: none !important;
}
*/

/* LOGO
--------------------------------------------------------------------------------- */
.el-logo {
    display: block;
    
    a {
        display: inline-block;
        line-height: 0;
        border: 0;
        outline: 0;
        text-decoration: none;
        color: inherit;
        
        &:focus {
            outline: 0;
        }
    }
}
.logo-mix a {
    display: inline-flex;
    
    
    .site-logo-text {
        flex: none;
    }
    .site-logo-image {
        flex: none;
    }
}
.logo-layout-1 {
    a {
        align-items: center;
    }
    
    .site-logo-text {
        order: 2;
    }
    .site-logo-image {
        order: 1;
        margin-right: 10px;
    }
}

.logo-layout-2 {
    a {
        align-items: center;
    }
    
    .site-logo-text {
        order: 1;
    }
    .site-logo-image {
        order: 2;
        margin-left: 10px;
    }
}

.logo-layout-3 {
    a {
        flex-flow: column;
    }
    
    .site-logo-text {
        order: 2;
    }
    .site-logo-image {
        order: 1;
        margin-bottom: 10px;
    }
}

.logo-layout-4 {
    a {
        flex-flow: column;
    }
    
    .site-logo-text {
        order: 1;
    }
    .site-logo-image {
        order: 2;
        margin-top: 10px;
    }
}


/* HORIZONTAL MENU
--------------------------------------------------------------------------------- */
.hnav > .nav-inner > div > ul.menu {
    display: inline-flex;
    align-items: center;
    list-style: none;
    margin: 0; 
    padding: 0;
    
    > li {
        display: block;
        position: relative;
        
        > a {
            display: block;
            display: flex;
            align-items: center;
            padding: 0 10px;
            color: inherit;
            text-decoration: none;
            transition: all .1s ease-out;
            
            border: 0px solid;
            
            &:focus {
                outline: 0;
            }
            
            &:hover {
                
            }
        }
        
        & +li > a {
            border-left: 0;
        }
        
        &.current-menu-item > a {
        }
    }
    
    > li > ul,
    > li > ul > li > ul {
        list-style: none;
        margin: 0;
        padding: 0;
        
        position: absolute;
        top: 100%;
        left: 0;
        width: 160px;
        background: white;
        z-index: 999;
        padding: 10px;
        
        border: 0 solid;
        
        display: none;
        
        a {
            display: block;
            color: inherit;
            text-decoration: none;
            padding: 0 10px;
            transition: all .1s ease-out;
            
            &:focus {
                outline: 0;
            }
        }
        
        li + li {
            border-top: 0 solid;
        }
        
    }
    
    > li > ul > li > ul {
        left: 100%;
        top: 0;
    }
    
    > li:hover > ul,
    > li > ul > li:hover > ul {
        display: block;
    }
    
    
    
    /* MEGA MENU
    ---------------------------------------- */
    > li.mega {

        &.mega-full {
            position: static;
        }

        > ul {
            width: 100%;

            padding: 20px 0;

            &:after {
                content: "";
                display: table;
                clear: both;
            }

            > li {
                display: block;
                float: left;
                position: static;
                border: 0 !important;
                
                > ul {
                    width: 100% !important;
                }

                // LEADING ITEM
                > a {
                    border-top: none;
                    font-weight: 600;
                    color: inherit;
                    background: none;
                }
            }
        }

        &.column-2 > ul {
            width: 400px !important;
            > li {
                width: 50%;
            }
            .mega-sep-1 {
                left: 50%;
            }
        }
        &.column-3 > ul {
            width: 600px !important;
            > li {
                width: 33.33%;
            }
            .mega-sep-1 {
                left: 33.33%;
            }
            .mega-sep-2 {
                left: 66.66%;
            }
        }
        &.column-4 > ul,
        &.column-5 > ul {
            width: 100% !important;
            left: auto;
            right: 0;
        }
        &.column-4 > ul > li {
            width: 25%;

            .mega-sep-1 {
                left: 25%;
            }
            .mega-sep-2 {
                left: 50%;
            }
            .mega-sep-3 {
                left: 75%;
            }
        }
        &.column-5 > ul > li {
            width: 20%;

            .mega-sep-1 {
                left: 20%;
            }
            .mega-sep-2 {
                left: 40%;
            }
            .mega-sep-3 {
                left: 60%;
            }
            .mega-sep-4 {
                left: 80%;
            }
        }

        ul ul {
            display: block !important;
            opacity: 1 !important;
            visibility: visible;
            position: static;
            box-shadow: none;
            width: 100%;
            border: none;
            margin: 0;
            overflow: hidden;

            li {
                display: block;
                width: 100%;
                border: 0 !important;
            }
            a {
                display: block;
                width: 100%;
                border: none;
                transition: none;
                font-size: .9em;

                &:hover {
                    color: white;
                    background: #111;
                }
            }
        }

        &:hover ul ul {
            display: block !important;
        }

    }

    /* MEGA CATEGORY DROPDOWN
     * @since 2.8
    --------------------- */
    > li.mega > ul.submenu-display-items {
        padding: 10px;

        > li.post-nav-item {
            border: 0;
            padding: 10px;
            display: block;
            float: left;
        }
    }
    .post-nav-item-inner {
        margin: 0;
        padding: 0;
    }
    .post-nav-item-thumbnail {
        display: block;
        width: 100%;
        margin: 0 0 .6em;
        overflow: hidden;
        position: relative;
        a {
            padding: 0 !important;
            background: none !important;
        }
    }
    .post-nav-item-text {
        overflow: hidden;
        margin-top: 8px;
    }
    .post-nav-item-title {
        text-transform: inherit;
        font-size: 1.1em;
        line-height: 1.2 !important;
        font-weight: inherit;
        margin: 0;
        letter-spacing: 0;

        a {
            color: inherit;
            display: block;
            padding: 0 !important;
            background: none !important;
            outline: 0;
            line-height: inherit !important;

            &:hover {
                color: inherit;
            }
        }
    }
    .post-nav-item-excerpt {
        display: none; // since 4.0
        text-transform: none;
        letter-spacing: 0;
        font-size: 13px;
        margin: .5em 0 0;
    }
    
}

.dropdown-align-right > .elementor-widget-container > .hnav > .nav-inner > div > ul.menu > li > ul {
    left: auto;
    right: 0;
}

        /**
         * behavior on mobile
         * since v5.4
         */
        @include media( mobile ) {
            .hnav {
                overflow: hidden;
                display: block;
            }
            .hnav > .nav-inner > div {
                overflow: hidden;
            }
            .hnav > .nav-inner > div > ul.menu {
                touch-action: auto !important;
                display: flex !important;
                flex-wrap:  nowrap;

                overflow-x: scroll;
                -ms-overflow-style: none;
                scrollbar-width: none;

                > li {
                    float: none;
                    display: block;
                    
                    > a {
                        white-space: nowrap;
                    }
                }
            }
            // hide the scroll bar on chrome
            .hnav > .nav-inner > div > ul.menu::-webkit-scrollbar {
                display: none;
            }
            .hnav > .nav-inner > div > ul.menu > li ul,
            .hnav > .nav-inner > div > ul.menu > li div {
                display: none !important;
            }
        }

.style-has-sep-between.hnav > .nav-inner > div > ul.menu {
    > li > a {
        position: relative;
    }
    > li + li > a > .mk {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 16%;
        bottom: 16%;
        border: 1px solid #aaa;
        border-width: 0 0 0 1px;
    }
}
.style-hover-border_top.hnav > .nav-inner > div > ul.menu > li,
.style-hover-border_bottom.hnav > .nav-inner > div > ul.menu > li {
    > a  {
        > span {
            position: relative;
            z-index: 100;
        }
        &:before {
            position: absolute;
            z-index: 50;
            content: "";
            display: block;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: black;

            transition: all .3s ease-out;
            transform: scale(1,0);
            transform-origin: 0 0;
        }
        &:hover:before {
            transform: scale(1,1);
        }
    }
    &.current-menu-item > a:before {
        transform: scale(1,1);
    }
}
.style-hover-border_bottom.hnav > .nav-inner > div > ul.menu > li {
    > a:before {
        top: auto;
        bottom: 0;
        transform-origin: 100% 100%;
    }
}

/* VERTICAL MENU
--------------------------------------------------------------------------------- */
.vnav {
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    li {
        display: block;
        
        & + li {
            border-top: 0 solid #999; // by default
        }
        
        /*
        &.menu-item-has-children > a {
            &:after {
                display: inline-block;
                font: normal normal normal 14px/1 "Font Awesome 5 Free";
                font-weight: 900;
                font-size: inherit;
                text-rendering: auto;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                content: "\f107";
                margin-left: 2px;
                color: inherit;
                opacity: .4;
            }
        }
        */
    }
    a {
        display: block;
        color: inherit;
        line-height: 24px;
        position: relative;
        
        border: 0px solid;
        
        &:focus {
            outline: 0;
        }
    }
    .menu {
        display: block;
    }
    ul ul {
        display: none; // toggle form
    }
}

/**
 * since 1.8
 */
.hnav .menu li.menu-item-has-children > a:after {
    margin-left: 5px;
    vertical-align: middle;
}
.el-nav-dropdown-left .menu ul {
    text-align: left;
}
.el-nav-dropdown-center .menu ul {
    text-align: center;
}
.el-nav-dropdown-right .menu ul {
    text-align: right;
}

/**
 * since 5.4
 */
li.menu-item-has-children > a > .caret {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 299;
    
    i {
        font-size: 100%;
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        line-height: 32px;
        height: 32px;
        margin-top: -16px;
    }
}
li.menu-item-has-children.active > a > .caret {
    opacity: .3;
}

/* MEGA MENU
--------------------------------------------------------------------------------- */
.no-menu {
    font-size: 16px;
    font-style: normal;
    a {
        color: inherit;
        font-weight: bold;
        text-decoration: underline;
    }
}
.vnav {
    .style-indicator-angle-down,
    .style-indicator-caret-down,
    .style-indicator-plus {
        > ul.menu > li.mega-custom > a:after,
        > ul.menu > li.mega-for-category > a:after {
            display: none;
        }
    }
}
.hnav ul.menu > li.mega.menu-item-object-fox_block {
    position: static;
    
    ul {
        display: block;
    }
}
.fox_block_dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    overflow: hidden;
    
    opacity: 0;
    visibility: hidden;
    
    ul {
        display: block;
    }
}
.hnav ul.menu {
    > li.mega:hover {
        .fox_block_dropdown {
            opacity: 1;
            visibility: visible;
        }
    }
}

// since 4.3
.nav-thumbnail-loading {
    display: block;
    background: #fafafa;
    // background: transparent; // since 4.6
    position: relative;
    
    padding-bottom: 80%; // by default
    
    .fox-loading-element {
        top: 50%;
        opacity: .4;
    }
}
.nav-thumbnail-wrapper {
    &.pseudo-thumbnail-landscape {
        .nav-thumbnail-loading {
            padding-bottom: 80%;
        }
    }
    &.pseudo-thumbnail-square {
        .nav-thumbnail-loading {
            padding-bottom: 100%;
        }
    }
    &.pseudo-thumbnail-portrait {
        .nav-thumbnail-loading {
            padding-bottom: 125%;
        }
    }
    &.pseudo-thumbnail-large {
        .nav-thumbnail-loading {
            padding-bottom: 66.66%;
        }
    }
}
.mega-sep {
    display: block;
    position: absolute;
    top: 20px;
    bottom: 20px;
    border: 0 solid;
    border-width: 0 0 0 1px;
}

/* FORM
--------------------------------------------------------------------------------- */
body .el-form-reservation {
    
    &.column-1 .rtb-booking-form {
        fieldset,
        .reservation,
        .contact {
            width: 100%;
            float: none;
        }
        
        .add-message {
            text-align: center;
        }
    }
    
}

.form-no-placeholder {
    input::-webkit-input-placeholder {
        color: transparent !important;
    }
    input::-moz-placeholder {
        color: transparent !important;
    }
    input::placeholder {
        color: transparent !important;
    }
    textarea::-webkit-input-placeholder {
        color: transparent !important;
    }
    textarea::-moz-placeholder {
        /* Mozilla Firefox 19+ */
        color: transparent !important;
    }
    textarea::placeholder {
        color: transparent !important;
    }
}
.form-no-label {
    label {
        display: none !important;
    }
}

/* FORM STACK
----------------------------------- */

/* FORM INLINE
----------------------------------- */
.el-form-inline {
    .mc4wp-form-fields {
        display: flex;
        align-items: center;
        justify-content: center;
        
        p {
            margin: 0;
            padding: 0 10px;
            flex: none;
        }
        
        p + p {
            margin-left: -3px;
            
            @include media( mobile ) {
                margin-left: 0;
            }
        }
        
        input[type="text"],
        input[type="email"],
        input[type="url"],
        input[type="tel"] {
            width: 320px;
        }
        
        @include media( tablet ) {
            display: block;
            p {
                padding: 0;
            }
            p + p {
                margin-top: 10px;
            }
            input[type="text"],
            input[type="email"],
            input[type="url"],
            input[type="tel"] {
                width: 100% !important;
            }
        }
        
    }
}


/* POST LIST
--------------------------------------------------------------------------------- */
.post-list-sep.sep-dashed {
    border-style: dashed;
}
.post-list-sep.sep-dotted {
    border-style: dotted;
}

/* POST GRID
--------------------------------------------------------------------------------- */
.style-title-hover-none .post-item-title a:hover,
.style-title-hover-none .title56 a:hover {
    text-decoration: none;
}
.style-title-hover-underline .post-item-title a:hover,
.style-title-hover-underline .title56 a:hover {
    text-decoration: underline;
}
.style-title-hover-line-through .post-item-title a:hover,
.style-title-hover-line-through .title56 a:hover {
    text-decoration:line-through;
}

/* POST TITLE
--------------------------------------------------------------------------------- */
.el-title-tag {
    margin: 0;
}

/* POST META
--------------------------------------------------------------------------------- */
.el-single-meta {
    > * {
        display: inline-block;
        vertical-align: middle;
    }
    
    .sep {
        display: inline-block;
        vertical-align: middle;
        margin: 0 5px;
        
        &:first-child {
            display: none;
        }
    }
}

.elementor .style-link-underline-none {
    a {
        text-decoration: none;
    }
}
.elementor .style-link-underline-rest {
    a {
        text-decoration: underline;
        &:hover {
            text-decoration: none;
        }
    }
}
.elementor .style-link-underline-hover {
    a {
        text-decoration: none;
        &:hover {
            text-decoration: underline;
        }
    }
}
.elementor .style-link-underline-always {
    a {
        text-decoration: underline;
        &:hover {
            text-decoration: underline;
        }
    }
}

/* SHARE
--------------------------------------------------------------------------------- */
.el-share ul {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    li {
        display: block;
        flex: none;
    }
    li + li {
        margin-left: 8px;
    }
}
.el-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    border: 0px solid;
    text-align: center;
    background: black;
    color: white;
    transition: all .3s ease-out;
    
    &:hover {
        background: black;
        color: white;
    }
    i {
        display: block;
    }
    span {
        display: none;
    }
}

/* TILE - since 4.7.3
--------------------------------------------------------------------------------- */
.el-tile {
    position: relative;
    overflow: hidden;
    
    .wrap-link {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 30;
        display: block;
        color: inherit;
        outline: 0;
        cursor: pointer;
    }
    
    .bg-element {
        position: relative;
    }
    .bg-image {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 5;
        img {
            display: block;
            object-fit: cover;
            object-position: center;
            width: 100%;
            height: 100%;
        }
    }
    
    &.tile-16-9 {
        .height-element {
            padding-bottom: 56.25%;
        }
    }
    &.tile-4-3 {
        .height-element {
            padding-bottom: 75%;
        }
    }
    
    &.tile-3-2 {
        .height-element {
            padding-bottom: 66.66%;
        }
    }
    
    &.tile-2-1 {
        .height-element {
            padding-bottom: 50%;
        }
    }
    
    &.tile-1-1 {
        .height-element {
            padding-bottom: 100%;
        }
    }
    
    &.tile-1-2 {
        .height-element {
            padding-bottom: 200%;
        }
    }
    &.tile-2-3 {
        .height-element {
            padding-bottom: 150%;
        }
    }
    &.tile-3-4 {
        .height-element {
            padding-bottom: 125%;
        }
    }
}

/* overlay
-------------------- */
.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,.5);
    transition: all .3s ease-out;
}

/* content
-------------------- */
.tile-content {
    position: absolute;
    left: 0;
    right: 0;
    padding: 5%;
    z-index: 20;
}
.valign-top .tile-content {
    top: 0;
}
.valign-middle .tile-content {
    top: 50%;
    transform: translate(0,-50%);
}
.valign-bottom .tile-content {
    bottom: 0;
}
.tile-title {
    margin: 0;
    color: white;
    & + .tile-subtitle{
        margin-top: 5px;
    }
}
.tile-subtitle {
    display: block;
    color: white;
}

/* padding mode
-------------------- */
.padding-mode {
    .bg-element {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        z-index: 10;
    }
    .height-element {
        display: none;
    }
    .tile-content {
        position: relative;
        padding: 10px;
        z-index: 20;
        transform: none;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        
        .tile-title,
        .tile-subtitle {
            position: relative;
            z-index: 50;
        }
    }
}

/* hover effect
-------------------- */
.hover-zoom {
    .bg-element {
        transition: all .6s ease-out;
    }
    &:hover .bg-element {
        transform: scale(1.1);
    }
}

.hover-shift {
    .bg-element {
        transform: scale(1.1);
        transition: all .2s ease-out;
    }
    &:hover .bg-element {
        transform: scale(1.1) translate(6px ,0);
    }
}

.hover-image {
    .bg-image {
        transition: all .35s ease;
    }
    .bg-image-hover {
        opacity: 0;
        visibility: hidden;
    }
    &:hover .bg-image {
        opacity: 0;
        visibility: hidden;
    }
    &:hover .bg-image-hover {
        opacity: 1;
        visibility: visible;
    }
}

/* SEARCH FORM
--------------------------------------------------------------------------------- */

/* classic
---------------------------- */
.search-hit-btn,
.el-searchform .submit {
    font-size: 16px;
    display: block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    padding: 0;
    transition: all .15s ease-out;

    i {
        display: block;
        margin: 0;
        line-height: inherit;
    }
}
.search-hit-btn {
    background: none !important;
    color: #777;
    &:hover {
        color: #333;
    }
}
.el-searchform .search-field {
    padding-right: 44px;
}

.classic-searchform {
    form {
        display: block;
        position: relative;
        overflow: hidden;
    }
    .search-hit-btn {
        position: absolute;
        top: 50%;
        right: 0;
        margin-top: -22px;
    }
}

/* inline
---------------------------- */
.searchform-minimal-inline {
    position: relative;
    
    form {
        display: block;
        position: relative;
        .submit {
            position: absolute;
            top: 50%;
            right: 0;
            margin-top: -22px;
        }
    }
    
    &.form-align-left {
        .searchform-minimal-inline-dropdown {
            left: 0;
            
            &:before {
                left: 10px;
            }
            &:after {
                left: 9px;
            }
        }
    }
    &.form-align-right {
        .searchform-minimal-inline-dropdown {
            left: auto;
            right: 0;
            
            &:before {
                left: auto;
                right: 10px;
            }
            &:after {
                left: auto;
                right: 9px;
            }
        }
    }
}
.searchform-minimal-inline-dropdown {
    border: 1px solid #ddd;
    position: absolute;
    top: 90%;
    width: 300px;
    background: white;
    padding: 10px;
    box-shadow: 2px 2px 20px rgba(0,0,0,.2);
    z-index: 999999;
    
    transition: all .15s ease-out;
    opacity: 0;
    visibility: hidden;
    
    &:before {
        content: "";
        display: block;
        position: absolute;
        top: -7px;
        
        width: 0; 
        height: 0; 
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid #fff;
        z-index: 30;
        
        
    }
    &:after {
        content: "";
        display: block;
        position: absolute;
        top: -8px;
        
        width: 0; 
        height: 0; 
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #ddd;
        z-index: 20;
    }
    
    .submit {
        background: black;
        color: white;
        height: 40px;
        width: 40px;
        line-height: 40px;
        margin-top: 0 !important;
        top: 0 !important;
    }
}
.form-showup-hover:hover,
.form-showup-click.showing_form {
    .searchform-minimal-inline-dropdown {
        opacity: 1;
        visibility: visible;
    }
}

/* YOUTUBE PLAYER
--------------------------------------------------------------------------------- */
.yt-placement {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    display: block;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease-out, visibility .6s ease-out;
}

.thumbnail-youtube-player {
    .thumbnail-inner {
        position: relative;
        overflow: hidden;
    }
    
    .fluid-width-video-wrapper + * {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    &.played {
        .yt-placement {
            opacity: 1;
            visibility: visible;
        }
        .image-element {
            opacity: 0 !important;
            visibility: hidden !important;
        }
    }
}

/* BANNER
 * since 5.4
--------------------------------------------------------------------------------- */
.el-banner {
    display: block;
}
.the-banner {
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    width: 729px; // by default
    max-width: 100%;
}
.banner-link {
    display: block;
    outline: 0;
    color: transparent;
    text-decoration: none;
    
    position: absolute;
    
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 20;
}
.desktop-link {
    z-index: 30;
}
.tablet-image,
.mobile-image {
    display: none;
}
@include media( tablet ) {
    .tablet-link {
        z-index: 40; 
    }
    .tablet-image {
        display: block;
    }
    .tablet-image + .desktop-image {
        display: none;
    }
}
@include media( mobile ) {
    .mobile-link {
        z-index: 50; 
    }
    .mobile-image {
        display: block;
    }
    .mobile-image + .tablet-image {
        display: none;
    }
    .mobile-image + .desktop-image {
        display: none;
    }
    .tablet-image + .desktop-image {
        display: none;
    }
}

/* TAX
 * since v5.4
--------------------------------------------------------------------------------- */
.el-tax {
    overflow: hidden;
    line-height: 0;
    
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: inline-block;
        overflow: hidden;
    }
    li {
        display: block;
        float: left;
        margin: 0 4px 4px 0;
    }
    a {
        outline: 0;
        display: block;
        text-decoration: none;
        border: 0 solid;
        line-height: 24px;
        padding: 0 8px;
        color: inherit;
        background: #f0f0f0;
        
        &:focus {
            outline: 0;
        }
    }
}
.el-tax-heading {
    margin: 0 0 10px;
}

/* ARCHIVE DESCRIPTION
--------------------------------------------------------------------------------- */
.el-archive-description {
    p {
        margin: 0;
    }
}

/* PAGINATION
--------------------------------------------------------------------------------- */
.el-pagination {
    margin: 40px 0 0;
    clear: both;
    overflow: hidden;
    line-height: 0;
    
    .pagination-inner {
        display: inline-flex;
        align-items: center;
        flex-flow: row wrap;
    }
    
    .page-numbers {
        text-align: center;
        border: 0 solid;
        display: flex;
        justify-content: center;
        align-items: center;
        
        width: 28px;
        height: 28px;
        
        & + .page-numbers {
            margin-left: 2px;
        }
        
        &.prev,
        &.next {
            width: auto !important;
            padding: 0 20px;
        }
        
        &.dots {
            border-color: transparent !important;
        }
    }
    a.page-numbers {
        background: #fafafa;
        color: inherit;
        text-decoration: none;
    }
}
.pagination-align-left .el-pagination {
    text-align: left;
}
.pagination-align-center .el-pagination {
    text-align: center;
}
.pagination-align-right .el-pagination {
    text-align: right;
}

/* SINGLE THUMBNAIL
--------------------------------------------------------------------------------- */
.el-single-thumbnail {
    .container {
        max-width: 100%;
    }
}

/* FOX STICKY SECTION
------------------------------ */
.sticky-section-height {
    display: none;
    height: 60px; // just a number
}
@media (max-width: 767px) {
    .elementor .elementor-hidden-mobile + .sticky-section-height,
    .elementor .elementor-hidden-phone + .sticky-section-height {
        display: none !important;
    }
}
.fox-sticky-section {
    z-index: 980;
    -webkit-transition: all .6s ease-out !important;
    transition: all .6s ease-out !important;
    
    &.elementor-section-stretched {
        -webkit-transition: top .6s ease-out, opacity .3s, visibility .3s !important;
        transition: top .6s ease-out, opacity .3s, visibility .3s !important;
    }
    
    &.before-sticky {
        position: fixed !important;
        top: -300px;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        
        // border: 0 solid $border;
        border: 0;
        // border-width: 0 0 1px; // since 2.9
        
        padding-top: 0;
        padding-bottom: 0;
        
        overflow: hidden; /* when user hovers the menu doesn't behave weird */
    }
    &.is-sticky {
        top: 0;
        overflow: visible;
    }
}
.admin-bar .fox-sticky-section.is-sticky {
    top: 32px;
}
.fox-sticky-section.before-sticky + .sticky-section-height {
    display: block;
}


/* AUTHORS
-------------------------------------------------------------------------------------- */
.fox-authors-wrapper {
    overflow: hidden;
    position: relative;
}

/* grid */
.fox-authors-grid {
    
    display: flex;
    flex-flow: row wrap;
    margin: -60px -30px 0;
    
    position: relative;
    
    .line {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: #c0c0c0; // default color
    }
    
    .fox-user-item {
        
        flex: none;
        width: 100%;
        padding: 60px 30px 0;
        
    }
    
    &.column-2 {
        .fox-user-item {
            width: 50%;
        }
        .line-1 {
            left: 50%;
        }
    }
    &.column-3 {
        .fox-user-item {
            width: 33.33%;
        }
        .line-1 {
            left: 33.33%;
        }
        .line-2 {
            left: 66.66%;
        }
    }
    &.column-4 {
        .fox-user-item {
            width: 25%;
        }
        .line-1 {
            left: 25%;
        }
        .line-2 {
            left: 50%;
        }
        .line-3 {
            left: 75%;
        }
    }
    &.column-5 {
        
        margin: -40px -10px 0;
        
        .fox-user-item {
            width: 20%;
            padding: 40px 10px 0;
        }
        .line-1 {
            left: 20%;
        }
        .line-2 {
            left: 40%;
        }
        .line-3 {
            left: 60%;
        }
        .line-4 {
            left: 80%;
        }
    }
    
    .user-item-avatar {
        margin: 0 0 1em;
    }
    
}
/* authors list */
.fox-authors-list {
    
    .fox-user-item {
        overflow: hidden;
        & + .fox-user-item {
            padding-top: 1.5em;
            margin-top: 1.5em;
        }
    }
    
    &.has-border .fox-user-item + .fox-user-item {
        border-top: 1px solid #c0c0c0;
    }
    /*
    .line {
        @include clearfix;
        margin-top: 2em;
        margin-bottom: 2em;
        display: block;
        background: #c0c0c0;
        height: 1px;
        position: static;
        
        &:first-child {
            display: none;
        }
    }
    */
    
    .user-item-avatar {
        float: left;
        margin: 4px 2em 0 0;
        max-width: 30%;
    }
    .user-item-body {
        overflow: hidden;
    }
    
    &.valign-middle {
        .fox-user-item {
            display: flex;
            align-items: center;
            .user-item-avatar {
                flex: none;
                margin-top: 0;
            }
        }
    }
    
    &.valign-bottom {
        .fox-user-item {
            display: flex;
            align-items: flex-end;
            .user-item-avatar {
                flex: none;
                margin-top: 0;
            }
        }
    }
    
}
.style--description-size-small {
    .user-item-description {
        font-size: .9em;
    }
}

.fox-user-item {
    display: block;
}
.user-item-avatar {
    
    display: block;
    
    a {
        display: block;
        text-decoration: none;
        border: 0;
        
        &:focus {
            outline: 0;
        }
    }
    
    img {
        display: inline-block;
        margin: 0;
        width: 120px;
    }
    
    &.avatar-round img {
        border-radius: 6px;
    }
    &.avatar-circle img {
        border-radius: 50%;
    }
    
}
.user-item-header {
    margin: 0 0 .5em;
}
.user-item-name-wrapper {
    display: inline-flex;
    align-items: center;
    flex-flow:  row wrap;
    
    .user-item-name-meta {
        
        position: relative;
        margin-left: 10px;
        padding-left: 10px;
        
        &:before {
            display: block;
            position: absolute;
            top: 4px;
            bottom: 4px;
            left: 0;
            border-left: 1px solid;
            opacity: .2;
            content: "";
        }
    }
    
}
.user-item-name {
    font-size: 1.3em;
    margin: 0;
    a {
        color: inherit;
        &:focus {
            outline: 0;
        }
        &:hover {
            color: inherit;
        }
    }
}
.user-item-description {
    
    line-height: 1.5;
    p {
        margin: 0;
    }
}
.user-item-social {
    
    margin: .5em 0 0;
    
    ul {
        display: inline-flex;
    }
    
    &.style-plain {
        a {
            font-size: 18px;
            transition: all .15s ease-out;
            
            @include media( mobile-small ) {
                font-size: 15px;
                margin-right: 2px;
            }
            
            &:hover {
                color: inherit;
                opacity: 1;
            }
        }
    }
}

@media (max-width: $ipad) {
    
    .user-item-name {
        
        font-size: 1.1em;
        
    }
    
    .fox-authors-grid {
        
        &.column-4,
        &.column-5 {
            .fox-user-item {
                width: 50%;
            }
            .line-1 {
                left: 50%;
            }
            .line-2,
            .line-3,
            .line-4 {
                display: none;
            }
        }
        
    }
}

@media (max-width: $iphone) {
    
    .fox-authors-grid {
        
        &.column-2,
        &.column-3,
        &.column-4,
        &.column-5 {
            
            .fox-user-item {
                width: 100%;
            }
            
            .line-1,
            .line-2,
            .line-3,
            .line-4 {
                display: none;
            }
            
        }
    }
    
    .fox-authors-list {
        .user-item-avatar {
            // width: 80px;
            // margin-right: 1em;
        }
    }
    
}