/*
  Global CSS
*/

body:not(.user-admin) .admin-only{
    display: none;
}

/* For Motion ( doesnt opaque in Divi Builder ) */
.fade-in,
.slide-left,
.slide-right,
.scale-up,
.bounce-in {
    opacity: 0;
}

.mce-content-body .fade-in,
.mce-content-body .slide-left,
.mce-content-body .slide-right,
.mce-content-body .scale-up,
.mce-content-body .bounce-in {
    opacity: 1 !important;
}


/*<editor-fold desc="Scrollbar">*/
/* Scrollbar styles */
::-webkit-scrollbar {
    width: 9px;
    height: 12px;
    background-color: var( --white )
}

::-webkit-scrollbar-track {
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var( --dark );
}
/*</editor-fold>*/



.floated-nav-wrapper {
    position: fixed;
    left: 10px;
    top: 45%;
    z-index: 9;
    background: transparent;

    .floated-nav {
        padding: 0 !important;
        list-style-type: none !important;

        li a {
            color: var( --dark );
            font-size: 14px;
            margin-top: 10px;
            writing-mode: vertical-lr;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.2s ease;

            &:hover {
                color: var( --gray );
            }
        }
    }
}

/* Logos in Portfolio Page */
#portfolio-logo img {
    border-radius: 4px;
}

/* Contact info in Contact Page */
.contact-info {
    display: grid;
    gap: 15px;

    a {
        font-size: 20px;
        color: var( --dark );
        display: flex;
        gap: 10px;

        .text {
            border-bottom: 1px solid var( --gray-light );
            transition: all 0.2s ease-in;
            display: inline-block;
            padding-bottom: 5px;

            &:hover {
                border-color: var( --dark );
            }
        }

    }
}




/* --------- DESKTOP --------- */
@media only screen and (min-width: 981px){
    /* Fluid Image Desktop */
    .fluid-image {

        &.fluid-left {
            .et_pb_image_wrap {
                transform: translateX(-17%);
            }
        }

        .et_pb_image_wrap {
            transform: translateX(17%) ;

            img {
                border-radius: var( --bdr-radius );
            }
        }
    }
}


/* --------- TABLET AND BELOW --------- */
@media only screen and (max-width: 980px){
    /* Fluid Image Tablet and Below */
    .fluid-image {
        margin-left: -5% !important;
        margin-right: -5% !important;

        .et_pb_image_wrap {
            width: 100%;
            max-height: 350px;
            overflow: hidden;
            object-fit: cover;

            img {
                width: 100%;
            }
        }
    }

    /* Floated Nav Tablet */
    .floated-nav-wrapper {
        position: sticky;
        width: 100%;
        left: 0px;
        top: 68px;
        background: var( --white );

        .floated-nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
            text-align: center;

            li a {
                font-weight: 600;
                writing-mode: initial;
            }
        }
    }
}


/* --------- MOBILE --------- */
@media only screen and (max-width: 475px){
    /* Fluid Image Mobile */
    .fluid-image {
        .et_pb_image_wrap {
            max-height: 250px;
        }
    }

    /* Contact Mobile */
    .contact-info {
        grid-template-columns: 1fr;

        a {
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 10px;

            .text {
                padding-bottom: 3px;
            }
        }
    }
}


