@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/SuisseIntlTrial-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/SuisseIntlTrial-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

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

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

body {
    background-color: #F4F4F4;
    color: #000000;
    /* Using local Suisse Int'l font */
    font-family: 'Suisse Intl', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Subtle physical film grain texture overlay */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Left Navigation */
nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    z-index: 60;
    mix-blend-mode: difference;
}

nav a, nav a:visited {
    text-decoration: none;
    color: #ffffff;
}

nav a:hover {
    color: #aaaaaa;
}

/* Main Content */
main {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Masonry Grid */
.masonry {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.masonry-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.masonry-col img,
.masonry-col video {
    width: 100%;
    /* Let the media define its own height, but enforce max-width */
    object-fit: cover;
    display: block;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
}

.masonry-col img.loaded,
.masonry-col video.loaded {
    opacity: 1;
    transform: translateY(0);
}

.masonry-col img:hover.loaded,
.masonry-col video:hover.loaded {
    opacity: 0.8;
}

/* Image Anti-Theft Protections */
img, video {
    -webkit-touch-callout: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
    cursor: zoom-out;
}

.lightbox img,
.lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: default;
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    nav {
        top: 1rem;
        left: 1rem;
        gap: 0.1rem; /* tighter stacking */
        font-size: 0.85rem; /* smaller font */
    }

    main {
        margin-left: 0; /* Images span full width of screen */
        padding: 0;
    }
    
    .masonry {
        gap: 0.25rem;
    }
    
    .masonry-col {
        gap: 0.25rem;
    }
}

/* Video Volume Button Styles */
.video-container {
    position: relative;
    width: 100%;
}
.volume-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, opacity 0.3s ease;
    padding: 0;
}
.volume-btn svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.6));
}

@media (hover: hover) {
    .volume-btn {
        opacity: 0;
    }
    .video-container:hover .volume-btn {
        opacity: 1;
    }
    .volume-btn:hover {
        color: rgba(255, 255, 255, 1);
    }
}

/* Bio Container Animation */
.bio-container {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
}
.bio-container.loaded {
    opacity: 1;
    transform: translateY(0);
}
