body {
    font-family: "Albert Sans", sans-serif;
    font-feature-settings: "kern", "liga", "pnum";
    background-color: #ffffff;
    margin: 0;
    padding: 40px 20px;
    color: #333;
    line-height: 1.6;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-weight: 300;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery:hover img {
    opacity: 0.9;
}

.desc {
    padding: 15px;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

a:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .gallery-container {
        gap: 20px;
    }
}

.fav-group { margin-top: 2.5rem; }
.fav-group:first-of-type { margin-top: 0; }
.group-title {
    margin: 0 0 0.75rem;
    font-family: "Albert Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #222;
}

@media (max-width: 420px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
