﻿/*.row.list-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}*/

/*.item.columns.grid-default {
    flex: 1 1 240px;
    max-width: 245px;
}*/

.card-wrapper {
    position: relative;
    width: 100%;
    height: 100%; 
}

.card-placeholder {
    height: auto;  
}


.card {
    position: relative;
    width: 100%;
    /*border-radius: 8px;*/
    overflow: hidden;
  
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: top center;
    z-index: 1;
    color: white;
}

    .card img {
        width: 100%;
        display: block;
        box-shadow: 0 1px 12px #8230c68a;
    }

.card-content {
    background-color: #8230c6;
    padding: 0px 15px 15px;
    display: none;
}

.card-wrapper:hover .card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: scale(1.3) translateY(-10px);
    z-index: 10;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8);
    background-color: #8230c6;
}

.card-wrapper:hover .card-content {
    display: block;
}

.buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.1s;
}

    .icon-btn:hover {
        background-color: rgba(255,255,255,0.4);
    }

.meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #aaa;
    margin: 0px 0 0px;
    padding: 10px 15px 0px;
}

    .meta span {
        margin-right: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 3px;
    }

.tags {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: #ccc;
    gap: 6px;
}

.tag::after {
    content: '•';
    margin-left: 6px;
}

.tag:last-child::after {
    content: '';
}
.meta h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: 12px;
    line-height: 1.4em;
    max-height: 2.8em; /* 2 lines * line-height */
    transition: max-height 0.3s ease;
    font-weight:100;
}

/* On hover, remove the clamp */
.card-wrapper:hover .meta h6 {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}
@media screen and (max-width: 600px) {
    .card-wrapper:hover .card {
        position: relative;
        transform: none;
        box-shadow: none;
    }

    .card-content {
        display: block;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .meta, .tags {
        font-size: 12px;
        background-color: #8230c6;
    }

    .row.list-group {
        gap: 15px;
        padding: 10px;
    }
}
