.stack-container {
    position: relative;
    margin: auto;
}

.stack-card {
    border-radius: var(--border-radius);
    position: absolute;
    display: inline-block;
    font-size: 16px;
    overflow: hidden;
}

.editor-visual-editor .stack-card {
    position: relative !important;
}

.stack-card img {
    width: 100%;
    margin-bottom: 0;
    display: block;
}

.stack-card-info{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity .3s;
    border-radius: var(--border-radius);
    text-align: center;
    z-index: 2;
}

.stack-card:hover .stack-card-info{
    opacity: 1;
}
