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

body {
    font-family: 'Inter', sans-serif;
    background-color: #fcfcfc;
    color: #1a1a1a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #777;
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.icon a i {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a.active {
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
}

/* --- Gallery Grid (Masonry Layout) --- */
.gallery-container {
    column-count: 3;
    column-gap: 20px;
    padding: 2rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .gallery-container {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(n+10) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 2rem 2rem;
    font-size: 0.8rem;
    color: #666;
}

.social-links {
    margin-top: 10px;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

@media (max-height: 928px) {
    .lightbox-content {
        max-height: 75vh;
    }
}

@media (max-height: 700px) {
    .lightbox-content {
        max-height: 70vh;
    }
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #1a1a1a;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
    line-height: 1;
}

.close-btn:hover {
    color: #888;
    transform: rotate(90deg);
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #1a1a1a;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
    user-select: none;
    z-index: 1001;
}

.lightbox-nav:hover {
    color: #888;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}