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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Takes up at least 100% of the viewport height */
}

main {
    flex: 1; 
}

.page-shell {
    width: 100%;
    margin: 0;
}

#landing-container {
    display: block;
    width: 100%;
    margin-left: 0;
}

#gallery-container {
    display: none;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    background: transparent;
    box-shadow: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.is-home,
.navbar.is-gallery {
    background: transparent;
    box-shadow: none;
}

.nav-content {
    margin: 0 auto;
    padding: 1.2rem 4rem 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.29) 90%);
}

/* Keep the grid hidden or invisible while assets are downloading */
.photos-grid.is-loading {
    opacity: 0;
    pointer-events: none; /* Prevents clicks before it's ready */
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Outfit', cursive;
    color: #444444;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    font-family: 'Outfit', cursive;
    font-size: 0.8rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 2px 7px rgba(0,0,0,0.6);
}

.nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-link.active {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.landing-section {
    position: relative;
    display: block;
    width: 100%;
    margin-left: 0;
    background: #f3f0eb;
    border-bottom: none;
}

.landing-background {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f3f0eb;
}

.landing-background img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center top;
    filter: none;
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
    color: #111;
    padding: 6rem 1.5rem 4rem;
}

.landing-kicker {
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(17, 17, 17, 0.8);
    margin-bottom: 1rem;
}

.landing-content h2 {
    font-family: 'Outfit', cursive;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.05;
    color: #111111;
    margin-bottom: 1rem;
}

.landing-copy {
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(17, 17, 17, 0.8);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.landing-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-button:hover {
    transform: translateY(-2px);
}

.landing-button.primary {
    background: #111111;
    color: #ffffff;
}

.landing-button.secondary {
    border: 1px solid rgba(17, 17, 17, 0.3);
    color: #111111;
    background: rgba(255, 255, 255, 0.7);
}

#gallery-container,
.gallery-container {
    padding: 3rem 1rem 0;
    margin-top: 0;
    margin-bottom: 0;
}

#gallery {
    padding-top: 0.5rem;
}

.folder-section,
.folder-view {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.folder-section h2,
.folder-view h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.photos-grid {
    columns: 3;
    column-gap: 0.2rem;
    margin-bottom: 0;
}

.gallery-item {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    break-inside: avoid;
    margin-bottom: 0.2rem;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    filter: brightness(0.9);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.empty-folder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    padding: 0 1rem;
    transition: opacity 0.3s;
    opacity: 0.7;
}

.lightbox-nav:hover {
    opacity: 1;
}

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

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

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .gallery-item:nth-child(3n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(5n + 2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .nav-content {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Base footer container */
.footer {
    background-color: #121212; /* A modern, deep black instead of harsh pure black */
    color: #ffffff;
    padding: 2rem 2rem;
    margin-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Spacing between social icons and copyright text */
    font-family: sans-serif; /* Fallback font, change to match your site */
}

/* Container for social media links */
.footer-socials {
    display: flex;
    gap: 1.5rem; /* Spacing between individual icons */
}

/* Individual social media links/icons */
.footer-socials a {
    color: #ffffff;
    font-size: 1.25rem; /* Adjust icon size here */
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

/* Hover effect for icons */
.footer-socials a:hover {
    transform: translateY(-3px); /* Subtle lift effect */
}
