@import '../../../../assets/sass/config';
@import '../../../../assets/sass/mixins';
@import '../../../../assets/sass/direction';

.row>.elementor-section {
    --alpha-gap: inherit;
}

// Gap Normal
.elementor-column-gap-normal {
    --alpha-el-section-gap: 10px;
}

// Gap Wider
.elementor-column-gap-wider {
    --alpha-el-section-gap: 25px;
}

.elementor .testimonial img,
.slider-wrapper .elementor .testimonial img {
    border-radius: inherit;
}

.elementor-column.sticky-sidebar-wrapper .pin-wrapper {
    width: 100%;
}

.elementor-shape .elementor-shape-fill {
    fill: initial;
}

// Video
.elementor-widget-video .elementor-widget-container {
    overflow: unset;
}

.elementor-widget-video>.elementor-widget-container {
    overflow: hidden;
}

.elementor-widget-video .elementor-custom-embed-image-overlay:not(.btn) {
    cursor: auto;
}

// Logo
.elementor-widget-udesign_header_site_logo a {
    display: inline-block;
}

// Author box
.elementor-element.elementor-widget-udesign_single_author_box .elementor-widget-container .post-author-detail .author-avatar {
    margin-#{$right}: 3rem;
}

// Breadcrumb
.elementor-widget .breadcrumb {
    padding: 0;
}

// Comments
.elementor-widget-container>.comments {
    padding-top: 0;
}

// Half Container
.col-half-section {
    width: 100%;
    min-height: 1px;
    position: relative;
}

.elementor-container>.elementor-column>.col-half-section,
.elementor-container>.elementor-row>.elementor-column>.col-half-section {
    max-width: calc(var(--alpha-container-width) / 2 - var(--alpha-gap) * 2 + var(--alpha-el-section-gap));
}

.elementor-edit-area-active .elementor-element-empty.col-half-section {
    margin: 0;
}

.elementor-edit-area-active .col-half-section.col-half-section-right,
.col-half-section-right {
    justify-self: if-ltr(flex-start, flex-end);
    margin-left: auto
}

@include mq(lg, 'max') {

    .elementor-container>.elementor-column>.col-half-section-desktop,
    .elementor-container>.elementor-row>.elementor-column>.col-half-section-desktop {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .elementor-section-full_width>.elementor-container>.elementor-column>.col-half-section-desktop,
    .elementor-section-full_width>.elementor-container>.elementor-row>.elementor-column>.col-half-section-desktop {
        width: calc(100% - 60px + 2 * var(--alpha-el-section-gap));
    }

    .elementor-section-full_width>.elementor-column-gap-no>.elementor-column>.col-half-section-desktop,
    .elementor-section-full_width>.elementor-column-gap-no>.elementor-row>.elementor-column>.col-half-section-desktop {
        padding: 0;
    }
}

@include mq(md, 'max') {

    .elementor-container>.elementor-column>.col-half-section-tablet,
    .elementor-container>.elementor-row>.elementor-column>.col-half-section-tablet {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .elementor-section-full_width>.elementor-container>.elementor-column>.col-half-section-tablet,
    .elementor-section-full_width>.elementor-container>.elementor-row>.elementor-column>.col-half-section-tablet {
        width: calc(100% - 60px + 2 * var(--alpha-el-section-gap));
    }

    .elementor-section-boxed>.elementor-container>.elementor-column>.col-half-section-tablet,
    .elementor-section-boxed>.elementor-container>.elementor-row>.elementor-column>.col-half-section-tablet {
        width: 100%;
    }

    .elementor-section-full_width>.elementor-column-gap-no>.elementor-column>.col-half-section-tablet,
    .elementor-section-full_width>.elementor-column-gap-no>.elementor-row>.elementor-column>.col-half-section-tablet {
        padding: 0;
    }
}

@include mq(sm, 'max') {

    .elementor-container>.elementor-column>.col-half-section-mobile,
    .elementor-container>.elementor-row>.elementor-column>.col-half-section-mobile {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .elementor-section-full_width>.elementor-container>.elementor-column>.col-half-section-mobile,
    .elementor-section-full_width>.elementor-container>.elementor-row>.elementor-column>.col-half-section-mobile {
        width: calc(100% - 60px + 2 * var(--alpha-el-section-gap));
    }

    .elementor-section-boxed>.elementor-container>.elementor-column>.col-half-section-mobile,
    .elementor-section-boxed>.elementor-container>.elementor-row>.elementor-column>.col-half-section-mobile {
        width: 100%;
    }

    .elementor-section-full_width>.elementor-column-gap-no>.elementor-column>.col-half-section-mobile,
    .elementor-section-full_width>.elementor-column-gap-no>.elementor-row>.elementor-column>.col-half-section-mobile {
        padding: 0;
    }
}

@media (max-width: 479px) {

    .elementor-column-gap-no>.elementor-column>.col-half-section,
    .elementor-column-gap-no>.elementor-row>.elementor-column>.col-half-section {
        width: calc(100% - 40px);
    }

    .elementor-section-full_width>.elementor-container>.elementor-column>.col-half-section,
    .elementor-section-full_width>.elementor-container>.elementor-row>.elementor-column>.col-half-section {
        width: calc(100% + 2 * var(--alpha-el-section-gap) - 40px);
    }

    .elementor-section-boxed>.elementor-container>.elementor-column>.col-half-section,
    .elementor-section-boxed>.elementor-container>.elementor-row>.elementor-column>.col-half-section {
        width: 100%;
    }

    .elementor-section-full_width>.elementor-column-gap-no>.elementor-column>.col-half-section,
    .elementor-section-full_width>.elementor-column-gap-no>.elementor-row>.elementor-column>.col-half-section {
        padding: 0;
    }
}