.hover-box {
    position: relative;
    display: inline-block;
    overflow: hidden;
    /* clip-path: polygon(50px 0, 100% 0, 100% 100%, 0% 100%, 0% 50px); */
    min-height: 450px;
    object-fit: cover;
    cursor: pointer;
}

.hover-box-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.hover-box-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.hover-box-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    opacity: 1;
    transition: 0.3s ease;
    /* Background color or gradient is applied inline from PHP render method */
}

.hover-box-heading {
    position: absolute;
    display: block;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 30px;
    color: #fff;
    text-align: left;
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    z-index: 2;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hover-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.2s ease;
    object-fit: cover;
}

video.hover-media:hover {
    pointer-events: none;
    cursor: pointer !important;
}

.hover-box:hover .hover-box-overlay {
    opacity: 0;
}

.hover-box:hover .hover-media {
    opacity: 1;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .hover-box,
    .hover-box-image img {
        min-height: 300px;
    }

    .hover-box-heading {
        padding: 15px;
    }

    .hover-media {
        display: none !important;
    }

    .hover-box:hover .hover-box-overlay {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .hover-box-mobile,
    .hover-box-mobile .hover-box-image {
        max-height: 500px;
        width: 100%;
    }

    .hover-box-mobile .hover-box-image {
        display: flex;
        align-items: center;
    }

    .hover-box-mobile .hover-box-image img {
        width: 100% !important;
    }
}
