
/* ========================================
   WORKFLOW CARD BLOCK
======================================== */

.wcb-card {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #000;
    color: #fff;
    cursor: pointer;
}

/* Card Image */

.wcb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Placeholder */

.wcb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #333;
    font-size: 16px;
}

/* ========================================
   OVERLAY
======================================== */

.wcb-overlay {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    box-sizing: border-box;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: rgba(0, 0, 0, 0.62);

    transform: translateY(calc(100% - 110px));

    transition:
        transform 0.45s ease,
        background 0.3s ease;
}

/* Card Content */

.wcb-content {
    width: 100%;
}

/* Heading */

.wcb-heading {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
}

/* Subheading */

.wcb-subheading {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}

/* ========================================
   HIDDEN DESCRIPTION
======================================== */

.wcb-description {
    margin-top: 20px;
    color: #fff;

    opacity: 0;
    transform: translateY(20px);

    transition:
        opacity 0.3s ease,
        transform 0.4s ease;
}

.wcb-description p {
    color: #fff;
    margin: 0 0 15px;
}

/* Button */

.wcb-button-wrap {
    margin-top: 15px !important;
}

.wcb-button {
    display: inline-block;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

/* ========================================
   DESKTOP HOVER ANIMATION
======================================== */

@media (hover: hover) and (pointer: fine) {

    .wcb-card:hover .wcb-overlay {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.76);
    }

    .wcb-card:hover .wcb-description {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ========================================
   MOBILE TAP ANIMATION
   First tap = Open
   Second tap = Close
======================================== */

.wcb-card.wcb-is-open .wcb-overlay {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.76);
}

.wcb-card.wcb-is-open .wcb-description {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   GUTENBERG EDITOR PREVIEW
======================================== */

.wcb-editor-wrapper {
    width: 100%;
}

.wcb-editor-wrapper .wcb-card {
    min-height: 250px;
}

.editor-styles-wrapper .wcb-card {
    cursor: default;
}

/* ========================================
   MOBILE RESPONSIVE STYLING
======================================== */

@media (max-width: 767px) {

    .wcb-card {
        height: 300px;
    }

    .wcb-overlay {
        padding: 22px;

        transform: translateY(calc(100% - 95px));
    }

    .wcb-heading {
        font-size: 24px;
    }

}

/* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {

    .wcb-overlay,
    .wcb-description {
        transition: none;
    }

}