:root {
    --accent-color: #2ae;
    --background-color: #012;
    --card-color: #123;
    --text-color: #fff;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

header {
    margin-bottom: 40px;
}

h1 {
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.container {
    margin: 0 auto;
    max-width: 800px;
    padding: 20px 20px;
}

.section {
    margin-bottom: 10px;
}

.centered {
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.gallery-item {
    margin: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    max-width: 200px;
    text-align: center;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-item figcaption {
    margin-top: 8px;
    font-family: sans-serif;
    font-weight: bold;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    user-select: none;
}

.modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    border-radius: 4px;
}

.page-indicator {
    color: #aaa;
    font-family: sans-serif;
    margin-top: 15px;
    font-size: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1010;
}
.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1010;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
.nav-btn.prev { position: absolute; left: 20px; }
.nav-btn.next { position: absolute; right: 20px; }

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
    .modal-content {
        max-width: 95%;
    }
}
