﻿.shuffle-container {
    position: relative;
    overflow: visible;
    width: 100%;
}

.aspect {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

.aspect__inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Add more aspect ratios here */
.aspect--16x9 {
    padding-bottom: 56.25%;
}

.shuffle-item {
    /*float: left;*/
    width: calc(25% - 16px); /* 4 items per row with 16px total margin */
    margin: 8px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    box-sizing: border-box;
}

.shuffle-sizer {
    /*position: absolute;*/
    width: calc(25%); /* Match item width for 4 columns */
}

.shuffle-item.shuffle-item--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.001);
}

.shuffle-item.shuffle-item--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.001);
}


.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    /*border-radius: 4px 4px 0 0;*/
}

.file-image {
    border-radius: 10px;
}

.filter-controls {
    width: 100%;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent
    );
}

.filter-controls::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3)
    );
}

.file-card {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.file-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.file-card:hover .file-image {
    transform: scale(1.05);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    margin-top: auto;
}

.badge-category {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
    backdrop-filter: blur(4px);
}

Responsive breakpoints

@media (max-width: 1800px) {
    .shuffle-item {
        width: calc(33% - 16px);
    }

    .shuffle-sizer {
        width: calc(33%); /* 3 items per row */
    }
}

@media (max-width: 1400px) {
    .shuffle-item {
        width: calc(50% - 16px);
    }

    .shuffle-sizer {
        width: calc(50%); /* 3 items per row */
    }
}

@media (max-width: 992px) {
    .shuffle-item {
        width: calc(100% - 16px);
    }

    .shuffle-sizer {
        width: calc(100%); /* 3 items per row */
    }
}

/*@media (max-width: 576px) {*/
/*    .shuffle-item {*/
/*        width: 100%; !* Use 100%, no calc needed *!*/
/*        margin: 8px 0; !* Just vertical margin *!*/
/*        display: block; !* Make sure it’s block (optional, but helps) *!*/
/*    }*/

/*    .shuffle-sizer {*/
/*        width: 100%;*/
/*    }*/
/*}*/


