
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
}

.card:hover img {
    transform: scale(1.01);
    transition: transform .2s ease;
}

.card img {
    width: 100%;
    max-height: 65vh;
    object-fit: cover;
    border-radius: 32px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.4);
    transition: transform .2s ease;
}

.card:hover img {
    transform: scale(1.01);
}

.title {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 1rem;

    text-align: center;

    font-size: 1.3rem;
    font-weight: bold;
    color: white;

    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);

    border-top: 1px solid rgba(255,255,255,0.15);

    z-index: 2;

    text-shadow: 0 2px 6px rgba(0,0,0,.8);
}


.album-grid {
    width: 90%;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

    gap: 2rem;
    margin: 0 auto;
    padding: 1rem;

    box-sizing: border-box;
    position: absolute;
    top: 7rem;
    bottom: 0;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    z-index: 10;
    color: white;
    border: none;
    background: rgba(255,255,255,.04);
    transition: background .2s;
}


.image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 65vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    border-radius: 32px;

    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.image-wrapper::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: var(--bg);
    background-size: cover;
    background-position: center;

    transform: scale(1.2); /* prevents blur edges */
    filter: blur(40px);

    opacity: 0.9;
}

.image-wrapper img {
    position: relative;
    z-index: 1;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    /* optional polish */
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}