/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/** RESOURCES PAGES ---------------------------- **/
.smi-resource-link-list {
    display: flex;
    justify-content: space-between;
    /* flex-wrap: wrap;
    flex-flow: column; */
    /* display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    gap: 10px;
    padding: 10px; */
}

@media (max-width: 1199.98px) {
    .smi-resource-link-list {
        flex-flow: column;
    }
}

.smi-resource-link-column {
    /* flex: 0 0 auto;
    width: 100%; */
}

@media (min-width: 1200px) {
    .smi-resource-link-column {
        flex: 0 0 auto;
        width: calc((100% - 35px) / 2);
    }
}

.smi-resource-link {
    /* flex: 0 0 auto; */

    box-sizing: border-box;
    display: flex;
    align-items: center;

    width: 100%;

    padding: 0rem;
    margin-bottom: 35px;

    background: white !important;
    border: solid 1px #e4e4e4;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;

    font-size: calc((((1.5vw + 1.5vh) / 2) + 24px) / 3);
    line-height: 19px;
}

@media (min-width: 800px) {
    .smi-resource-link-list {
        /* margin-right: -35px; */
    }

    .smi-resource-link {

        /* flex: 0 0 auto; */
        /* width: calc(50% - 35px); */
        /* margin-right: 35px; */
    }
}

@media (min-width: 1300px) {
    .smi-resource-link {
        /* Max font size */
        font-size: 14px;
    }
}

.smi-resource-link-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    max-width: 33vw;
}

.smi-resource-link-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    transition: transform ease 0.3s;
    transform: scale(1);
}

.smi-resource-link:hover .smi-resource-link-image img {
    transform: scale(1.2);
}

.smi-resource-link-content {
    box-sizing: border-box;
    padding: 15px;
    padding-left: 20px;
}

.smi-resource-link-content h4 {
    font-size: inherit !important;
    margin-bottom: 4px;
}

.smi-resource-link-content p,
.smi-resource-link-content ul {
    color: #666 !important;
    margin-bottom: 4px;
}

.smi-resource-link-content p:last-child,
.smi-resource-link-content ul:last-child {
    margin-bottom: 0;
}

/** NEW BROKER SIDEBAR ---------------------------- **/

.widget .team-container.broker {
    margin-bottom: 25px;
}
.widget .team-container.broker .team-desc {
    text-align: left;
}

.widget .team-container.broker img {
    max-width: 100%;
    -webkit-border-radius: 0;
    border-radius: 0;
}

.team-container.broker img {
    padding-top: 0;
}

.team-container.broker .team-media img {
    transform: none;
}

.team-container.broker .team-author-name h3 {
    text-transform: uppercase;
    font-size: 14pt;
    color: #000000;
}

.team-container.broker .team-author-name h3 strong {
    color: #5c0f8c;
}

.team-container.broker .title {
    text-transform: uppercase;
    font-size: 12px;
    color: #808285;
}

.team-container.broker .license {
    text-transform: uppercase;
    font-size: 8px;
    color: #999999;
}

.team-container.broker .phone {
    font-size: 14pt;
    color: #81bc00;
}

.team-container.broker .phone span {
    font-size: 8pt;
    color: #808285;
}

.team-container.broker .email a {
    font-size: 10pt;
    color: #81bc00 !important;
}

.vc_row.wpb_row.vc_row-fluid.vc_row-no-padding {
    left: 15px !important;
}

add_filter( 'gform_replace_merge_tags', 'decode_ampersand_in_field', 10, 7 );
function decode_ampersand_in_field( $text, $form, $entry, $url_encode, $esc_html, $nl2br, $format ) {
    // Replace 60 with your actual form ID
    if ( $form['id'] == 60 ) {
        $text = html_entity_decode( $text, ENT_QUOTES | ENT_XML1, 'UTF-8' );
    }
    return $text;
}