/*
File: layout.css
Site-wide layout overrides for Divi and WordPress
*/

/* DIVI LAYOUT OVERRIDES */
*:focus { 
    outline: 0 !important;
}

body {
    overflow-x: hidden;
}

.et_pb_section:not(.et_pb_fullwidth_section) {
    padding: var(--size-large) 0;
}

.et_pb_row {
    width: var(--row-width);
    max-width: var(--row-max-width);
    padding: var(--size-medium) 0;
}

.et_pb_module {
    margin-bottom: var(--size-medium);
}

.et_pb_module.et-last-child,
.et_pb_module:last-child {
    margin-bottom: 0;
}

.rf-centered--row {
    display: flex;
}

.rf-centered--row .et_pb_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Removing extra space under gallery images */
.et_pb_gallery_image a {
    line-height: 0 !important;
}

#rf-body .rf-contact--blurb .et_pb_blurb_content {
    margin: 0;
}

/* TABLET AND MOBILE RESPONSIVE */
@media (max-width: 980px) {
    .rf-centered--row {
        flex-direction: column;
    }
    
    .rf-centered--row .et_pb_image {
        max-width: 500px;
    }
    
    .rf-centered--row .et_pb_column:first-child {
        margin-bottom: 3rem;
    }
    
    /* Flip the order of columns on tablet and mobile */
    .rf-flip {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .rf-flip .et_pb_column:last-child {
        margin-bottom: 3rem !important;
    }
    
    .rf-flip .et_pb_column:first-child {
        margin-bottom: 0px !important;
    }
}
