/* ===== GALLERY PAGE STYLES ===== */
.gallery-container {
    min-height: calc(100vh - 120px);
    padding: 20px;
    background: #0000ff !important;
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.loading-text {
    font-family: 'Courier New', monospace;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

.gallery-title {
    font-size: 48px;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 30px;
    animation: colorCycle 5s infinite;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    grid-auto-rows: auto;
}

.gallery-item {
    width: 100%;
    border: 3px solid #000;
    overflow: visible;
    background: #000;
    box-shadow: 5px 5px 0 #000;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="24" viewBox="0 0 16 24"><path fill="white" stroke="black" stroke-width="1" d="M1,1 L1,16 L5,12 L7,19 L9,18 L7,11 L12,11 Z"/></svg>'), pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 8px 8px 0 #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
}

/* Fullscreen image view */
.gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="24" viewBox="0 0 16 24"><path fill="white" stroke="black" stroke-width="1" d="M1,1 L1,16 L5,12 L7,19 L9,18 L7,11 L12,11 Z"/></svg>'), pointer;
}

.gallery-fullscreen img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border: 5px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

/* Desktop: Grid layout */
@media screen and (min-width: 900px) {
    .gallery-container {
        padding: 40px;
    }
    
    .gallery-title {
        font-size: 72px;
        margin-bottom: 50px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablet: 2 columns */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .gallery-title {
        font-size: 56px;
    }
}
