* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #dadee3;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

.header-space {
    width: 300px;
    min-height: 100vh;
    background-color: transparent;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    min-height: 100vh;
    margin-left: 300px;
}

.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

@media (max-width: 992px) {
    .header-space {
        width: 280px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .gallery-title {
        font-size: 3rem;
    }
    
    .gallery-grid {
        gap: 20px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: -70px;
    }
    
    .next-btn {
        right: -70px;
    }
}

@media (max-width: 768px) {
    .header-space {
        width: 280px;
    }
    
    .main-content {
        padding: 25px;
        margin-left: 0;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .gallery-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .lightbox-nav {
        position: fixed;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .prev-btn {
        left: 20px;
    }
    
    .next-btn {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .header-space {
        display: none;
    }
    
    .main-content {
        padding: 20px 15px;
        margin-left: 0;
    }
    
    .gallery-title {
        font-size: 2.2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px);
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .lightbox-close {
        top: -50px;
        font-size: 2rem;
    }
}