@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #ffffff;
    box-sizing: border-box;
}

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    color: #000000;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links a.active {
    color: #000000;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4f46e5;
}

/* Main Content Area */
.main-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-header {
    text-align: center;
    margin: 40px 0 30px;
}

.gallery-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #000000;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.gallery-header p {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
    width: 100%;
    max-width: 900px;
}

.filter-tab {
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab.active {
    color: #000000;
}
.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4f46e5;
}

/* Gallery Masonry */
.gallery {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .gallery { column-count: 2; }
}
@media (max-width: 600px) {
    .gallery { column-count: 1; }
}

.photo-card {
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

/* Intersection Observer reveal classes */
.photo-card.card-hidden {
    opacity: 0;
}
.photo-card.card-visible {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    image-orientation: from-image;
}

.photo-card:hover img {
    transform: scale(1.02);
}

.crop-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.photo-card:hover .crop-btn {
    opacity: 1;
}

.crop-btn:hover {
    background: #ffffff;
    border-color: #999;
}

/* People name overlay on hover */
.people-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 24px 10px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.photo-card:hover .people-overlay {
    opacity: 1;
}

.people-tag {
    background: rgba(255,255,255,0.9);
    color: #1f2937;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.btn-load-more {
    margin: 40px auto;
    background: #6366f1;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-load-more:hover {
    background: #4f46e5;
}

/* Login Container Update */
.container {
    max-width: 500px;
    width: 100%;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eeeeee;
}

.btn-google {
    background: #4f46e5;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    margin: 16px 0;
    width: 100%;
}

.btn-google:hover {
    background: #4338ca;
}
