@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;
}

// 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));
}

.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% - var(--alpha-gap) * 4 + 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% - var(--alpha-gap) * 4 + 2 * var(--alpha-el-section-gap));
    }

    .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% - var(--alpha-gap) * 4 + 2 * var(--alpha-el-section-gap));
    }

    .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-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;
    }
}