/* --------------------------------------------------
 * Custom Flex Block - base layout
 * Per instance settings (columns, gap, padding, etc.)
 * are compiled in td_flex_block_custom::get_custom_css()
 * -------------------------------------------------- */

.td_flex_block_custom .td_block_inner {
    display: flex;
    flex-wrap: wrap;
}
.td_flex_block_custom .td_module_wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    box-sizing: border-box;
}
.td_flex_block_custom .td-module-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

/* --------------------------------------------------
 * Module: image + centered overlay title
 * -------------------------------------------------- */

.td_module_flex_custom.td_module_wrap {
    padding-bottom: 0;
}
.td_module_flex_custom .td-module-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
.td_module_flex_custom .td-image-wrap {
    display: block;
    height: 100%;
}
.td_module_flex_custom .td-thumb-css {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
}
.td_module_flex_custom .td-module-meta-info {
    position: absolute;
    background-color: rgba(9, 8, 9, 0.39);
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    display: table;
    text-align: center;
    width: 100%;
    padding: 10px 20px;
    margin: 0;
}
.td_module_wrap.td_module_flex_custom .entry-title {
    font-size: 27px;
    font-weight: 500;
    line-height: 34px;
    margin: 0;
}
.td_module_flex_custom .entry-title a {
    color: #fff;
}

/* Mobile: stack in 1 column below 767px regardless of desktop setting,
   unless a responsive value was set from the composer (those media
   queries are printed after this file and win by cascade order) */
@media (max-width: 767px) {
    .td_flex_block_custom .td_module_wrap {
        width: 100%;
    }
}
