.bw-hover-box {
    position: relative;
    display: block;
    width: 100%;
}

.bw-hover-box .bw-box-link {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    color: transparent;
    background: transparent;
}

.bw-hover-box .bw-box-link .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bw-hover-box .bw-box-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    text-indent: 0;
    color: inherit;
}


/* Style 1 */

.bw-hover-box.bw-style-1 .bw-featured-image {
    margin-bottom: 24px;
    overflow: hidden;
}

.bw-hover-box .bw-featured-image,
.bw-hover-box:hover .bw-featured-image,
.bw-hover-box.is-hovered .bw-featured-image {
    transition: all .22s ease-out;
    -webkit-transition: all .22s ease-out;
}

.bw-hover-box.bw-style-1 .bw-title {
    font-weight: 500;
    color: #353640;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 4px;
    padding: 0;
}

.bw-hover-box.bw-style-1 .bw-description {
    color: #62636b;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

.bw-hover-box .bw-hover-1 img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: scale(1.06);
    -webkit-transform: scale(1.06);
    transition: transform .22s ease-out;
    -webkit-transition: transform .22s ease-out;
}

.bw-hover-box.bw-left .bw-hover-1 img,
.bw-hover-box.bw-style-1.bw-left .bw-hover-1 img {
    margin-left: 0;
    margin-right: auto;
}

.bw-hover-box.bw-center .bw-hover-1 img,
.bw-hover-box.bw-style-1.bw-center .bw-hover-1 img {
    margin-left: auto;
    margin-right: auto;
}

.bw-hover-box.bw-right .bw-hover-1 img,
.bw-hover-box.bw-style-1.bw-right .bw-hover-1 img {
    margin-left: auto;
    margin-right: 0;
}

.bw-hover-box.bw-left .bw-content-box,
.bw-hover-box.bw-style-1.bw-left .bw-content-box {
    text-align: left;
}

.bw-hover-box.bw-center .bw-content-box,
.bw-hover-box.bw-style-1.bw-center .bw-content-box {
    text-align: center;
}

.bw-hover-box.bw-right .bw-content-box,
.bw-hover-box.bw-style-1.bw-right .bw-content-box {
    text-align: right;
}

.bw-hover-box:hover .bw-hover-1 img,
.bw-hover-box.is-hovered .bw-hover-1 img {
    transform: scale(1.22);
    -webkit-transform: scale(1.22);
}


/* Style 2 */

.bw-hover-box.bw-style-2 {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    line-height: normal;
}

.bw-hover-box.bw-style-2 .bw-hero {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
    transform: scale(1);
    -webkit-transform: scale(1);
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bw-hover-box.bw-style-2 .bw-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.bw-hover-box.bw-style-2:hover .bw-hero,
.bw-hover-box.bw-style-2.is-hovered .bw-hero {
    transform: scale(1.14);
    -webkit-transform: scale(1.14);
}

.bw-hover-box.bw-style-2 .bw-box-overlay {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: rgba(7, 25, 163, 0);
    transition: background 0.18s ease-out;
    -webkit-transition: background 0.18s ease-out;
}

.bw-hover-box.bw-style-2:hover .bw-box-overlay,
.bw-hover-box.bw-style-2.is-hovered .bw-box-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.bw-hover-box.bw-style-2 .bw-title-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 100%;
    height: auto;
    max-height: 85%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

.bw-hover-box.bw-style-2.bw-left .bw-title-box {
    text-align: left;
}

.bw-hover-box.bw-style-2.bw-center .bw-title-box {
    text-align: center;
}

.bw-hover-box.bw-style-2.bw-right .bw-title-box {
    text-align: right;
}

.bw-hover-box.bw-style-2 .bw-title-box .bw-typography {
    position: relative;
    display: block;
    width: 100%;
    top: auto;
    left: auto;
    padding: 0;
    opacity: 0;
    transform: translateY(18px);
    -webkit-transform: translateY(18px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    -webkit-transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    will-change: opacity, transform;
}

.bw-hover-box.bw-style-2:hover .bw-title-box .bw-typography,
.bw-hover-box.bw-style-2.is-hovered .bw-title-box .bw-typography {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.bw-hover-box.bw-style-2 .bw-typography .bw-title {
    font-weight: 500;
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 4px;
    padding: 0;
    letter-spacing: 0;
}

.bw-hover-box.bw-style-2 .bw-typography .bw-description {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}


/* Responsive alignment */
@media (max-width: 1024px) {
    .bw-hover-box.tablet-bw-left .bw-content-box,
    .bw-hover-box.tablet-bw-left.bw-style-2 .bw-title-box {
        text-align: left;
    }

    .bw-hover-box.tablet-bw-center .bw-content-box,
    .bw-hover-box.tablet-bw-center.bw-style-2 .bw-title-box {
        text-align: center;
    }

    .bw-hover-box.tablet-bw-right .bw-content-box,
    .bw-hover-box.tablet-bw-right.bw-style-2 .bw-title-box {
        text-align: right;
    }

    .bw-hover-box.tablet-bw-left .bw-hover-1 img {
        margin-left: 0;
        margin-right: auto;
    }

    .bw-hover-box.tablet-bw-center .bw-hover-1 img {
        margin-left: auto;
        margin-right: auto;
    }

    .bw-hover-box.tablet-bw-right .bw-hover-1 img {
        margin-left: auto;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .bw-hover-box.mobile-bw-left .bw-content-box,
    .bw-hover-box.mobile-bw-left.bw-style-2 .bw-title-box {
        text-align: left;
    }

    .bw-hover-box.mobile-bw-center .bw-content-box,
    .bw-hover-box.mobile-bw-center.bw-style-2 .bw-title-box {
        text-align: center;
    }

    .bw-hover-box.mobile-bw-right .bw-content-box,
    .bw-hover-box.mobile-bw-right.bw-style-2 .bw-title-box {
        text-align: right;
    }

    .bw-hover-box.mobile-bw-left .bw-hover-1 img {
        margin-left: 0;
        margin-right: auto;
    }

    .bw-hover-box.mobile-bw-center .bw-hover-1 img {
        margin-left: auto;
        margin-right: auto;
    }

    .bw-hover-box.mobile-bw-right .bw-hover-1 img {
        margin-left: auto;
        margin-right: 0;
    }

    .bw-hover-box.bw-style-1 .bw-title,
    .bw-hover-box.bw-style-2 .bw-typography .bw-title {
        font-size: 22px;
    }
}
