.album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;

    /* Center the entire grid */
    justify-content: center;

}



.album-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.album-item:hover {
    transform: scale(1.02);
}

.album-item img {
    width: 100%;
    height: auto;
    display: block;
}

.album-caption {
    padding: 10px 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}


.album-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    height: 220px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.album-card:hover {
    transform: scale(1.03);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.album-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: bottom 0.35s ease;
}

.album-card:hover .album-overlay {
    bottom: 0;
}

.album-overlay h3 {
    margin: 0;
    font-size: 1.3rem;
}

.album-overlay p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}
