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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Minimal Navigation */
.photos-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.photos-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photos-nav-logo {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    transition: opacity 0.3s ease;
}

.photos-nav-logo:hover {
    opacity: 0.6;
}

.photos-nav-back {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
    transition: color 0.3s ease;
}

.photos-nav-back:hover {
    color: #1a1a1a;
}

/* Photos Header */
.photos-header {
    margin-top: 120px;
    text-align: center;
    padding: 4rem 2rem 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.photos-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.photos-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.02em;
}

/* Photos Main */
.photos-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Photo Collections */
.photo-collection {
    margin-bottom: 4rem;
}

.photo-collection:last-child {
    margin-bottom: 2rem;
}

.collection-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    color: #1a1a1a;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover .photo-image {
    transform: scale(1.05);
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 2001;
}

.photo-modal-close:hover {
    opacity: 0.6;
}

.photo-modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.photo-modal-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.photo-modal-prev,
.photo-modal-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.photo-modal-prev:hover,
.photo-modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-modal-prev {
    left: 2rem;
}

.photo-modal-next {
    right: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photos-nav-container {
        padding: 0 1rem;
    }

    .photos-title {
        font-size: 2rem;
    }

    .photos-subtitle {
        font-size: 0.875rem;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }

    .photos-header {
        padding: 2rem 1rem 1rem;
        margin-top: 100px;
    }

    .photos-main {
        padding: 1rem;
    }

    .photo-collection {
        margin-bottom: 3rem;
    }

    .collection-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .photo-modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    .photo-modal-nav {
        padding: 0 1rem;
    }

    .photo-modal-prev,
    .photo-modal-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .photo-modal-prev {
        left: 1rem;
    }

    .photo-modal-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }

    .photo-item {
        aspect-ratio: 4/3;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-item {
    animation: fadeIn 0.6s ease-out;
}

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.3s; }
.photo-item:nth-child(4) { animation-delay: 0.4s; }
.photo-item:nth-child(5) { animation-delay: 0.5s; }
.photo-item:nth-child(6) { animation-delay: 0.6s; }
