/* --------------------------------------------------------------
   Base widget styling
-------------------------------------------------------------- */

.btw-brandthumb-widget,
.btw-brandthumb-shortcode,
.btw-brandthumb-block,
.btw-brandthumb-pagelayer,
.btw-brandthumb-elementor {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--btw-brandthumb-gap, 24px);
    text-align: center;
}

.btw-brandthumb-orientation-vertical {
    flex-direction: column;
}

.btw-brandthumb-align-left {
    justify-content: flex-start;
}

.btw-brandthumb-align-center {
    justify-content: center;
}

.btw-brandthumb-align-right {
    justify-content: flex-end;
}

.btw-brandthumb-group {
    display: inline-block;
    min-width: 0;
    text-align: center;
    vertical-align: top;
}

.btw-brandthumb-children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btw-brandthumb-children-orientation-vertical {
    flex-direction: column;
}

.btw-brandthumb-no-wrap,
.btw-brandthumb-no-wrap .btw-brandthumb-children {
    flex-wrap: nowrap;
}

.btw-brandthumb-item {
    display: inline-block;
    vertical-align: top;
    text-align: center;
}

.btw-brandthumb-parent {
    display: block;
    margin-bottom: 12px;
}

.btw-brandthumb-widget img,
.btw-brandthumb-shortcode img,
.btw-brandthumb-block img,
.btw-brandthumb-pagelayer img,
.btw-brandthumb-elementor img {
    max-width: 100%;
    height: auto;
    transition: all 0.25s ease;
}

.btw-brandthumb-name {
    display: block;
    color: var(--btw-brandthumb-name-color, inherit);
    font-family: var(--btw-brandthumb-name-family, inherit);
    font-size: var(--btw-brandthumb-name-size, 16px);
    font-weight: var(--btw-brandthumb-name-weight, 400);
    line-height: 1.3;
    text-align: inherit;
}

.btw-brandthumb-name-position-above .btw-brandthumb-name {
    margin-bottom: var(--btw-brandthumb-name-spacing, 6px);
}

.btw-brandthumb-name-position-below .btw-brandthumb-name {
    margin-top: var(--btw-brandthumb-name-spacing, 6px);
}

.btw-brandthumb-name-position-beside .btw-brandthumb-item > a,
.btw-brandthumb-name-position-beside .btw-brandthumb-item {
    display: inline-flex;
    align-items: center;
    gap: var(--btw-brandthumb-name-spacing, 6px);
}

.btw-brandthumb-name-align-left .btw-brandthumb-name {
    text-align: left;
}

.btw-brandthumb-name-align-center .btw-brandthumb-name {
    text-align: center;
}

.btw-brandthumb-name-align-right .btw-brandthumb-name {
    text-align: right;
}

.btw-brandthumb-item:hover .btw-brandthumb-name {
    color: var(--btw-brandthumb-hover-name-color, var(--btw-brandthumb-name-color, inherit));
    font-family: var(--btw-brandthumb-hover-name-family, var(--btw-brandthumb-name-family, inherit));
    font-size: var(--btw-brandthumb-hover-name-size, var(--btw-brandthumb-name-size, 16px));
    font-weight: var(--btw-brandthumb-hover-name-weight, var(--btw-brandthumb-name-weight, 400));
}


/* --------------------------------------------------------------
   Hover effects
-------------------------------------------------------------- */

.btw-hover-zoom img {
    transform: scale(1);
}
.btw-hover-zoom:hover img {
    transform: scale(1.1);
}

.btw-hover-fade img {
    opacity: 1;
}
.btw-hover-fade:hover img {
    opacity: 0.7;
}

.btw-hover-lift img {
    transform: translateY(0);
}
.btw-hover-lift:hover img {
    transform: translateY(-5px);
}
