.feature .feature-wrapper{
    --pad-wrapper: 100px;
    position: relative;
    width: calc(100% - (var(--pad-wrapper) * 2));
    height: calc(100% - (var(--pad-wrapper) * 2));
    padding: var(--pad-wrapper);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.feature[position="top-left"] .feature-wrapper,
.feature[position="left-top"] .feature-wrapper,
.feature[position="center-left"] .feature-wrapper,
.feature[position="left-center"] .feature-wrapper,
.feature[position="bottom-left"] .feature-wrapper,
.feature[position="left-bottom"] .feature-wrapper
{ justify-content: flex-start; text-align: left; }

.feature[position="top-center"] .feature-wrapper,
.feature[position="center-top"] .feature-wrapper,
.feature[position="center-center"] .feature-wrapper,
.feature[position="center"] .feature-wrapper,
.feature[position="bottom-center"] .feature-wrapper,
.feature[position="center-bottom"] .feature-wrapper
{ justify-content: center; text-align: center; }

.feature[position="top-right"] .feature-wrapper,
.feature[position="right-top"] .feature-wrapper,
.feature[position="center-right"] .feature-wrapper,
.feature[position="right-center"] .feature-wrapper,
.feature[position="bottom-right"] .feature-wrapper,
.feature[position="right-bottom"] .feature-wrapper
{ justify-content: flex-end; text-align: right; }

.feature[position="top-left"] .feature-wrapper,
.feature[position="left-top"] .feature-wrapper,
.feature[position="top-center"] .feature-wrapper,
.feature[position="center-top"] .feature-wrapper,
.feature[position="top-right"] .feature-wrapper,
.feature[position="right-top"] .feature-wrapper
{ align-items: flex-start; }

.feature[position="center-left"] .feature-wrapper,
.feature[position="left-center"] .feature-wrapper,
.feature[position="center-center"] .feature-wrapper,
.feature[position="center"] .feature-wrapper,
.feature[position="center-right"] .feature-wrapper,
.feature[position="right-center"] .feature-wrapper
{ align-items: center; }

.feature[position="bottom-left"] .feature-wrapper,
.feature[position="left-bottom"] .feature-wrapper,
.feature[position="bottom-center"] .feature-wrapper,
.feature[position="center-bottom"] .feature-wrapper,
.feature[position="bottom-right"] .feature-wrapper,
.feature[position="right-bottom"] .feature-wrapper
{ align-items: flex-end; }

.feature .feature-image{
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.feature .feature-image video,
.feature .feature-image img,
.feature .feature-image canvas{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.feature .feature-title{
    font-family: 'BigNoodle';
    font-size: 24pt;
    font-weight: 200;
    max-width: 300px;
    margin-bottom: 10px;
}

.feature .feature-description{
    max-width: 300px;
}

.feature .feature-description p{ margin-bottom: 15px; }

#features{
    width: calc(100% - (15px * 2));
    max-width: var(--max-width);
    margin: auto;
    padding: 0 15px;
}

#features .feature{
    margin-bottom: 50px;
    display: block;
}

#features h2{
    text-align: center;
    font-size: 24pt;
    margin: 100px 0 30px;
}

#features .bg-gradient:before{ display: none; }

#features .feature-image{
    width: 75%;
    height: 100%;
    right: auto;
    border: solid 5px rgb(var(--main-color));
}

#features .feature-wrapper,
#features .feature-wrapper.right{ justify-content: flex-end; text-align: left; }
#features .feature-wrapper.left{ justify-content: flex-start; text-align: left; }
#features .feature-wrapper.center{ justify-content: center; text-align: center; left: auto; right: auto; }
#features .feature-wrapper.left .feature-image{ right: 0; left: auto; }
#features .feature-wrapper.center .feature-image{ left: auto; right: auto; }
#features .feature-wrapper.right .feature-image{ left: 0; right: auto; }

#features .feature-title{
    color: rgb(var(--main-color));
}

#features .feature-wrapper:not(.no-img) .feature-caption{
    padding: 50px;
    background-color: rgba(var(--bg-color), 0.85);
}

#features .feature-wrapper.no-img{
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
}

#features .feature-wrapper.no-img:not(.center) .feature-caption{
    display: flex;
    justify-content: center;
    text-align: left;
}

#features .feature-wrapper.no-img:not(.center) .feature-title{
    margin: 0 20px;
    max-width: 200px;
}

#features .feature-wrapper.left.no-img .feature-caption{
    flex-direction: row-reverse;
}

#features .feature-wrapper.left.no-img .feature-description{
    text-align: right;
}

@media screen and (max-width: 825px) {
    section:not(#features) .feature .feature-caption{
        display: none;
    }

    #features .feature .feature-wrapper .feature-image{
        left: 0; right: 0;
        width: 100%;
    }

    #features .feature .feature-wrapper{
        --pad-wrapper: 15px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    #features .feature .feature-wrapper.no-img .feature-caption{
        display: block;
        text-align: center;
    }
    
    #features .feature .feature-wrapper.no-img .feature-title{
        max-width: 100%;
        margin: 0;
    }
}