/*
Theme Name:		 Studio Cameron
Theme URI:
Description:	 Studio Cameron
Author:			 Vertanet
Author URI:
Template:		 Divi
Version:		 1.0.0
Text Domain:	 studio-cameron
*/

/*
 * Header & menu
 */

/* Always use mobile menu */

#main-header {
    display: block!important;
}
#top-menu-nav {
    display: none!important;
}
#et_mobile_nav_menu {
    display: block!important;
}
.et_mobile_menu {
    margin-top: 10px;
}

/* Reposition hamburger icon */
@media (min-width: 981px) {
    div#et-top-navigation {
        position: absolute !important;
        right: 0;
        top: 0;
        height: 100%;
        width: 25% !important;
        display: flex;
        align-items: center;
        padding-top: 0!important;
    }
}
@media (max-width: 600px) {
    /* Correct logo on small devices */
    .et_header_style_centered #logo {
        max-width: 60% !important;
        float: left;
        margin-top: 23px;
    }
    /* Make hamburger weight less to match logo */
    .hamburger-inner, .hamburger-inner:after, .hamburger-inner:before {
        height: 1px;
    }
}

/* Transparent header, controlled by ACF field per page */
@media (min-width: 981px) {
    .transparent-header #main-header:not(.et-fixed-header) {
        background: none;
    }
    html:not(.et-fb-top-html) .transparent-header #et-main-area {
        margin-top: -130px; /* Adjust to header height if changed */
    }
    .transparent-header #main-header:not(.et-fixed-header) #logo, .transparent-header #main-header:not(.et-fixed-header) .hamburger-box {
        filter: brightness(0) invert(1);
    }
}

/*
 * Popups
 */
.dipi-popup-wrapper {
    max-width: 430px !important;
}
.the-edit-modal label {
    display:none;
}
.the-edit-modal {
    padding: 15px 0 2px 0;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.70);
}
.the-edit-modal h2 {
    color: #fff;
    font-size: 38px;
    line-height: 1.2em;
    max-width: 250px;
    margin: 0 auto 5px auto;
}
.the-edit-modal img{
    margin: 20px 0 10px 0;
}
.the-edit-modal .et_pb_row {
    width: 100% !important;
    padding: 0!important;
}
.the-edit-modal .et_pb_row .et_pb_text, .the-edit-modal .et_pb_row .et_pb_code {
    width: 90%;
    margin: 0 auto;
}
.the-edit-modal .et_pb_row .et_pb_text {
    padding: 0 15px;
}

/*
 * Forms
 */
.nf-form-fields-required {
    display: none;
}
.nf-form-content .list-select-wrap .nf-field-element>div, .nf-form-content input:not([type=button]), .nf-form-content textarea {
    background: #eedddb!important;
    color: #4c0e13!important;
}
.nf-form-content input[type=submit] {
    width: 100% !important;
    cursor: pointer;
}
.nf-error .nf-error-msg, .nf-error-msg, .ninja-forms-req-symbol {
    color: #eedddb!important;
}
.nf-error-field-errors {
    text-align: center;
}
.nf-field-container {
    margin-bottom: 15px!important;
}
.nf-error.field-wrap .nf-field-element:after {
    background: #000000!important;
}
.nf-error input.ninja-forms-field {
    border-color: #000 !important;
}

/*
 * Module styling
 */
.hide-thumbnails .dipi-image-gallery-thumbs {
    display: none;
}

.the-edit-section label {
    display: none;
}
@media (min-width: 981px) {
    .the-edit-section nf-fields-wrap nf-field:not(:last-of-type) {
        width: calc(50% - 6px);
        display: inline-block;
    }
    .the-edit-section nf-fields-wrap nf-field:first-of-type {
        margin-right: 12px;
    }
    .the-edit-section  .nf-form-content input[type=submit] {
        width: 200px!important;
        border-radius: 100px;
        margin: 22px auto 0 auto;
        display: block;
    }
    .nf-error-wrap.nf-error {
        display: none!important;
    }
}

/*
 * Overrides
 */

.et_pb_row {
    width: 90%;
}
.et_pb_title_container {
    display: flex;
    flex-direction: column-reverse;
}
footer .et_pb_social_media_follow_network_0_tb_footer a.icon {
    background: none !important;
    background-color: transparent!important;
}
/* Fix Pixel blog slider showgin bits of prev/next items */
.dipi-blog-slider-main {
    position: relative;
}
.dipi-blog-slider-main:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 11px;
    background: #fff;
    z-index: 1000;
}
.dipi-blog-slider-main:after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 11px;
    background: #fff;
    z-index: 1000;
}
h2.wp-block-heading {
    margin: 25px 0;
}
.wp-block-pullquote {
    border: none !important;
    background: #eedddb;
}
blockquote {
    border-left: 0 !important;
}
figure.wp-block-image {
    position: relative;
}
figcaption.wp-element-caption {
    color: #ffffff;
    bottom: 4px;
    right: 13px;
    position: absolute;
    font-size: 16px;
    text-shadow: 2px 1px #000;
    margin: 0;
}
.mt--30 {
    margin-top: -30px;
}
/* Slick slider */
.slick-slide img {
    display: block;
    height: 650px;
}
ul.slick-dots {
    position: relative!important;
    margin-top: 0!important;
    bottom: unset!important;
}
.slick-dots li {
    width: 175px!important;
    height: 30px!important;
    margin: 25px 0px!important;
}
button.slick-prev.slick-arrow, button.slick-next.slick-arrow {
    transform: unset !important;
    top: 300px !important;
}
@media (max-width: 768px) {
    .slick-slide img {
        height: unset;
    }
    .mg-slick-carousel button.slick-prev.slick-arrow, .mg-slick-carousel button.slick-next.slick-arrow, .mg-slick-carousel .slick-dots {
        display:none!important;
    }
    .slick-slide.slick-cloned {
        display:none!important;
    }
    .mg-slick-carousel .slick-track {
        width: 100% !important;
        transform: unset !important;
    }
    .mg-slick-carousel .slick-slide {
        margin-bottom: 25px;
    }
}