/**
 * ByNazar Scroll Image - Widget Styles
 * Author: Nazar Abbas Khan
 * Website: https://bynazar.com/
 */

/* Container */
.bynazar-scroll-image {
    position: relative;
    overflow: hidden;
    display: block;
}

.bynazar-scroll-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Image Thumb */
.bynazar-scroll-image .thumb {
    position: relative;
    width: 100%;
    height: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    transition-property: background-position;
    transition-timing-function: ease-in-out;
    transition-duration: 3s;
}

.bynazar-scroll-image:hover .thumb {
    background-position: bottom center;
}

/* Link wrapper */
a.bynazar-scroll-image-link {
    display: block;
    text-decoration: none;
}

a.bynazar-scroll-image-link:hover,
a.bynazar-scroll-image-link:focus {
    text-decoration: none;
}

/* Overlay */
.bynazar-scroll-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Badge */
.bynazar-scroll-image .bynazar-badge {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 10;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.bynazar-scroll-image .bynazar-badge.badge-right {
    left: auto;
    right: 0;
}

/* Mask Shapes - Uses Elementor's mask shapes */
.bynazar-scroll-image.mask-circle .thumb {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.bynazar-scroll-image.mask-flower .thumb {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.bynazar-scroll-image.mask-sketch .thumb {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.bynazar-scroll-image.mask-triangle .thumb {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.bynazar-scroll-image.mask-blob .thumb {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.bynazar-scroll-image.mask-hexagon .thumb {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 767px) {
    .bynazar-scroll-image .bynazar-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}
