body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #111;
    color: white;
    margin: 0;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
}

.flicker-text {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; }
    20% { opacity: 0.7; }
    40% { opacity: 1; }
    60% { opacity: 0.5; }
    80% { opacity: 0.9; }
    100% { opacity: 1; }
}

.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    color: white;
}

/* Responsive styles */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-image {
        height: 150px;
    }
}