/* Category Showcase Widget */
.category-showcase-widget {
    margin: 0 auto;
    padding: 0;
}

.showcase-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-item {
    width: calc(100% / var(--showcase-cols) - 10px + 10px / var(--showcase-cols));
    margin-bottom: 20px;
}

/* Figure */
.showcase-figure {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    text-align: center;
    cursor: pointer;
    margin: 0;
}

.showcase-figure img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.35s;
}

.showcase-figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.showcase-figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

/* Title */
.showcase-title {
    word-spacing: -0.15em;
    font-weight: 300;
    margin: 0;
    padding: 20px 25px;
    width: 90%;
    height: 50%;
    text-align: left;
    transition: transform 0.35s;
    transform: translate3d(30px, 20%, 0);
    font-size: 1.2em;
}

.showcase-title span {
    font-weight: 600;
}

/* Hover text */
.showcase-hover-text {
    margin: 0;
    letter-spacing: 1px;
    font-size: 92.5%;
    float: right;
    padding: 20px;
    width: 90%;
    height: 50%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(-50%, -50%, 0);
}

/* Hover effects */
.showcase-figure:hover .showcase-title {
    transform: translate3d(0, 0, 0);
}

.showcase-figure:hover .showcase-hover-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.showcase-figure:hover img {
    opacity: 0.6;
}

/* Description */
.showcase-desc {
    padding: 1.2em 25px;
    background-color: transparent;
    line-height: 1.9em;
    color: #777;
    font-size: 0.9em;
    margin: 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive */
@media (max-width: 991px) {
    .showcase-item {
        width: calc(50% - 10px) !important;
    }

    .showcase-title {
        padding: 10px;
        font-size: 1.3em;
    }

    .showcase-hover-text {
        float: right;
        padding: 11px;
        font-size: 61.5%;
    }

    .showcase-desc {
        font-size: 0.85em;
    }
}

@media (max-width: 767px) {
    .showcase-item {
        width: 100% !important;
    }

    .showcase-title {
        padding: 20px;
        font-size: 1.8em;
    }

    .showcase-hover-text {
        float: right;
        padding: 30px;
        font-size: 75.5%;
    }
}

@media (max-width: 480px) {
    .showcase-title {
        padding: 10px;
        font-size: 1.4em;
    }

    .showcase-hover-text {
        float: right;
        padding: 14px;
        font-size: 59.5%;
    }
}
