.gallery-no-tags {
    background-color: var(--bs-body-bg);
    padding: 1rem 1.25rem;
    margin: 0;
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--bs-border-color);
}

.grid-gallery-overview {
    background-color: white;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
    border-radius: 8px;
}

.grid-gallery-overview-item {
    position: relative;
    width: 100%;
    height: 150px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .grid-gallery-overview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .grid-gallery-overview-item {
        aspect-ratio: 4 / 3;
        padding-top: 0;
    }

    .gallery-card-header {
        height: auto;
    }

    .gallery-card-overlay {
        height: 100%;
    }

    .gallery-card-title-title {
        font-size: 0.8rem!important;
    }
}

.grid-gallery-overview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.gallery-card-header {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    height: 100px;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 100%);
}

.gallery-card-header img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery-card-title {
    position: absolute;
    bottom: 0;
    padding-left: 16px;
    padding-right: 16px;
    color: white;
}

.gallery-card-title-title {
    color: white;
    font-size: medium;
    font-weight: 400;
}
