/* ==========================================================================
   Image Gallery Styles
   ========================================================================== */

/* ============================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* ============================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    padding-left: 20px;
}

/* ============================================================================
   FILTER COMPONENTS
   ========================================================================== */

.filter-container {
    text-align: left;
    margin-bottom: 30px;
    padding-left: 20px;
}

.filter-link {
    color: #ffffff;
    text-decoration: underline;
    padding: 10px 0;
    margin-right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
    display: inline-block;
}

.filter-link:hover {
    color: #cccccc;
}

.filter-link.active {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

/* ============================================================================
   GALLERY COMPONENTS
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.about-content {
    grid-column: 1 / -1;
    padding: 20px 0;
    padding-left: 20px;
}

.about-content h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-content p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.lazy-image {
    opacity: 0;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.lazy-image.loaded {
    opacity: 1;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================================
   STATE COMPONENTS
   ========================================================================== */

.loading-state {
    text-align: center;
    padding: 40px;
    color: #ffffff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333333;
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #ffffff;
}

/* ============================================================================
   LIGHTBOX COMPONENTS
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    max-width: 70vw;
    max-height: 90vh;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333333;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* ============================================================================
   UTILITY CLASSES
   ========================================================================== */

.hidden {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .filter-link {
        margin-right: 15px;
        padding: 8px 16px;
    }
    
    .lightbox {
        padding: 10px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-nav {
        font-size: 18px;
        padding: 12px 16px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-link {
        margin-right: 0;
        margin-bottom: 5px;
    }
} 