﻿/* General Styles */
.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

/* Card Styles */
.album-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

    .album-card:hover {
        transform: translateY(-5px); /* Subtle lift on hover */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

/* Image Cover Section */
.album-cover {
    height: 220px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .album-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.album-card:hover .album-cover img {
    transform: scale(1.05); /* Slight zoom effect */
}

/* Card Title */
.album-title {
    padding: 10px 15px;
    text-align: center;
}

    .album-title h4 {
        font-size: 1.2em;
        font-weight: 600;
        color: #333;
    }

/* Layered Background Effect */
.album-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background-color: rgba(0, 0, 0, 0.05);
    z-index: -1;
    transform: rotate(-1.5deg);
    border-radius: 10px;
}

.album-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background-color: rgba(0, 0, 0, 0.03);
    z-index: -2;
    transform: rotate(-3deg);
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .album-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjust grid for smaller screens */
    }
}

@media (max-width: 480px) {
    .album-container {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .album-card {
        max-width: 100%; /* Full-width card on mobile */
    }
}
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjust grid for smaller screens */
    }
}

@media (max-width: 480px) {
    .album-container {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .album-card {
        max-width: 100%; /* Full-width card on mobile */
    }
}