.elementor-widget-vd-project-loop-card,
.elementor-widget-vd-project-loop-card > .elementor-widget-container {
    height: 100%;
}

.vd-project-card {
    display: grid;
    grid-template-rows: 255px minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--e-global-color-color_border, #e8e4dc);
    border-radius: 8px;
    background: var(--e-global-color-color_white, #fff);
    box-shadow: 0 12px 34px rgba(23, 32, 39, 0.065);
}

.vd-project-compare {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--e-global-color-color_surface, #dfe3e4);
    user-select: none;
}

.vd-project-compare > img,
.vd-project-before img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vd-project-before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
}

.vd-project-before img {
    width: var(--vd-ba-width, 600px);
    max-width: none;
}

.vd-project-range {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.vd-project-divider {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    pointer-events: none;
    transform: translateX(-50%);
}

.vd-project-divider::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 27, 32, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    content: "\2194";
    font-size: 18px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.vd-project-image-label {
    position: absolute;
    z-index: 3;
    top: 14px;
    padding: 6px 9px;
    border-radius: 100px;
    font-family: var(--e-global-typography-badge-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-badge-font-size, 9px);
    font-weight: var(--e-global-typography-badge-font-weight, 800);
    letter-spacing: var(--e-global-typography-badge-letter-spacing, 0);
    line-height: var(--e-global-typography-badge-line-height, 1.2);
    text-transform: uppercase;
    pointer-events: none;
}

.vd-project-image-label.is-before {
    left: 14px;
    color: #fff;
    background: rgba(13, 21, 26, 0.82);
}

.vd-project-image-label.is-after {
    right: 14px;
    color: var(--e-global-color-color_dark, #172027);
    background: #fff;
}

.vd-project-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    gap: 10px 18px;
    padding: 18px 20px;
}

.vd-project-heading {
    min-width: 0;
}

.vd-project-service {
    display: block;
    margin-bottom: 5px;
    color: var(--e-global-color-color_primary, #e87524);
    font-family: var(--e-global-typography-overline-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-overline-font-size, 9px);
    font-weight: var(--e-global-typography-overline-font-weight, 800);
    letter-spacing: var(--e-global-typography-overline-letter-spacing, 0);
    line-height: var(--e-global-typography-overline-line-height, 1.2);
    text-transform: uppercase;
}

.vd-project-heading h3 {
    margin: 0;
    color: var(--e-global-color-color_dark, #172027);
    font-family: var(--e-global-typography-type_h4-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-type_h4-font-size, 19px);
    font-weight: var(--e-global-typography-type_h4-font-weight, 800);
    letter-spacing: var(--e-global-typography-type_h4-letter-spacing, 0);
    line-height: var(--e-global-typography-type_h4-line-height, 1.2);
}

.vd-project-location {
    align-self: start;
    padding: 6px 10px;
    border-radius: 100px;
    color: var(--e-global-color-color_dark, #172027);
    background: var(--e-global-color-color_surface, #f5f3ee);
    font-family: var(--e-global-typography-badge-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-badge-font-size, 10px);
    font-weight: var(--e-global-typography-badge-font-weight, 800);
    line-height: var(--e-global-typography-badge-line-height, 1.2);
    white-space: nowrap;
}

.vd-project-copy > p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--e-global-color-color_muted, #657079);
    font-family: var(--e-global-typography-text_sm-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-text_sm-font-size, 12px);
    font-weight: var(--e-global-typography-text_sm-font-weight, 400);
    letter-spacing: var(--e-global-typography-text_sm-letter-spacing, 0);
    line-height: var(--e-global-typography-text_sm-line-height, 1.65);
}

.vd-project-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    align-items: center;
    gap: 4px 12px;
    padding-top: 12px;
    border-top: 1px solid var(--e-global-color-color_border, #e8e4dc);
    margin-top: 4px;
}

.vd-project-actions > span:first-child {
    color: var(--e-global-color-color_muted, #8a949a);
    font-family: var(--e-global-typography-text_xs-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-text_xs-font-size, 11px);
    font-weight: var(--e-global-typography-text_xs-font-weight, 400);
    line-height: var(--e-global-typography-text_xs-line-height, 1.45);
}

.elementor-widget-vd-project-loop-card a.vd-project-gallery-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--e-global-color-color_white, #fff);
    background: var(--e-global-color-color_dark, #172027);
    font-family: var(--e-global-typography-button_text-font-family, Manrope), sans-serif;
    font-size: var(--e-global-typography-button_text-font-size, 11px);
    font-weight: var(--e-global-typography-button_text-font-weight, 800);
    letter-spacing: var(--e-global-typography-button_text-letter-spacing, 0);
    line-height: var(--e-global-typography-button_text-line-height, 1.2);
    text-transform: var(--e-global-typography-button_text-text-transform, none);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.elementor-widget-vd-project-loop-card a.vd-project-gallery-button:hover,
.elementor-widget-vd-project-loop-card a.vd-project-gallery-button:focus-visible {
    color: #fff;
    background: var(--e-global-color-color_primary, #e87524);
}

.vd-project-gallery-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .vd-project-card {
        grid-template-rows: 225px minmax(0, 1fr);
    }

    .vd-project-copy {
        padding: 18px;
    }

    .vd-project-actions {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 420px) {
    .vd-project-copy {
        grid-template-columns: 1fr;
    }

    .vd-project-location {
        grid-row: 2;
        justify-self: start;
    }

    .vd-project-copy > p,
    .vd-project-actions {
        grid-column: 1;
    }

    .vd-project-actions {
        grid-template-columns: 1fr;
    }

    .vd-project-gallery-button {
        grid-column: 1;
    }
}
