:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --accent-color: #4da6ff;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
header {
    background-color: var(--card-bg);
    width: 100%;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    box-sizing: border-box;
}
header h2 { margin: 0 0 10px 0; font-size: 1.5rem; }
header p { margin: 5px 0; font-size: 1rem; color: #b3b3b3; }
header a { color: var(--accent-color); text-decoration: none; }
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    font-size: 1.1rem;
}
.pagination a img { width: 35px; height: 35px; filter: invert(1); transition: transform 0.2s; } 
.pagination a:hover img { transform: scale(1.1); }
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}
.gallery-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}
.gallery-item a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 6px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background-color: #000;
}
.gallery-item span { font-size: 1rem; font-weight: 500; }