body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2c2c2c;
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #444;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #e0e0e0;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 1rem;
}

.category-buttons {
    margin-bottom: 1rem;
}

.category-buttons button {
    padding: 0.6rem 1.2rem;
    border: 2px solid #444;
    background-color: #333;
    color: #f0f0f0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    border-radius: 20px;
}

.category-buttons button.active,
.category-buttons button:hover {
    background-color: #555;
    border-color: #777;
}

.search-container {
    margin-top: 1rem;
}

#search-bar {
    width: 50%;
    padding: 0.8rem;
    border-radius: 25px;
    border: 2px solid #444;
    background-color: #333;
    color: #f0f0f0;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#search-bar:focus {
    border-color: #777;
    box-shadow: 0 0 10px rgba(119, 119, 119, 0.5);
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background-color: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item .title {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* Lightbox styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox.hidden {
    display: none;
}

#lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

#lightbox-title {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 1.5rem;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
}

.close-btn, .prev-btn, .next-btn {
    position: absolute;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.close-btn:hover, .prev-btn:hover, .next-btn:hover {
    color: #bbb;
}

.close-btn {
    top: 20px;
    right: 30px;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}
