body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    background-color: #1c1b1b;
    color: #fff;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    margin: 30px 0;
    color: #f9c22e;
    text-shadow: 2px 2px 4px #000;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-link {
    animation: fadeIn 0.7s ease-in-out both;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.5);
}

.card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #444;
}

.card h2 {
    font-size: 1.2rem;
    color: #ffd700;
    margin: 15px 10px 5px;
}

.card h3 {
    font-size: 0.95rem;
    color: #ddd;
    margin: 0 10px 10px;
}

.card p {
    font-size: 0.9rem;
    color: #c1c1ff;
    margin: 0 15px 20px;
}

.back {
    text-align: center;
    margin: 40px 0;
}

.back a {
    color: #ffc107;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #ffc107;
    padding: 8px 16px;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back a:hover {
    background-color: #ffc107;
    color: #000;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
