/* Modern Cinematic Reset */
body { 
    margin: 0; 
    padding: 0; 
    background-color: #000; /* Deep black background */
    color: #fff; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    
}

/* The Name/Logo Box (Left side) */
.logo-box {
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    line-height: 1.1;
}

.logo-box h1 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-box p {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: normal;
}

/* Menu Navigation (Right side) */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    background-color: #fff;
    color: #000;
    text-decoration: none;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

/* Portfolio Grid Section */
main {
    padding: 0;
    margin-top: 0;
}

.grid {
    display: block; /* Since you only have one main image here */
    width: 100%;
}

.project {
    width: 100%;
    height: 75vh; /* Example height for the whole project frame */
    overflow: hidden;
}

.main {
    width: 100%;
    height: 85vh; /* Your desired final height */
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

.main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}


/* Container to hold both the image and the hidden text */
.project-content {
    position: relative;
    width: 100%;
    height: 70vh; /* Matches your existing image frame height */
    background-color: #000; /* What the image fades 'into' */
    overflow: hidden;
}


/* The Overlay: Invisible by default */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Mouse clicks go through to the link */
}

/* Hover States */
.project:hover img {
    opacity: 0.4; /* Fades the image */
    transform: scale(1.05); /* Optional: slight cinematic zoom */
}

.project:hover .overlay {
    opacity: 1; /* Shows the title */
}

/* Style for the overlay text */
.overlay p {
    color: #fff;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
}

.project img {
    width: 100%;
    height: 75vh;         /* This is your "frame" height */
    object-fit: cover;    /* This forces the image to fill the 55vh height without squishing */
    border: 1px solid #333;
    padding: 0;           /* Changed from 5px to 0 to take up the entire frame */
    box-sizing: border-box; 
    transition: border-color 0.3s;
}

.project img:hover {
    border-color: #fff;
}

#writing {
    margin-top: 100px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

h2 {
    font-size: 14px;
    letter-spacing: 4px;
}

img.short-cinematic {
    height: 50vh;      /* 50% of the screen height */
    width: calc(100% - 250px); 
    object-fit: cover; 
    display: block;    /* Helps with alignment */
    margin-left: 0;
    margin-right: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.film-detail-container {
    display: flex;
    align-items: flex-start; /* Keeps the poster from stretching to match the video height */
    gap: 50px;
}

.poster-column {
    flex: 0 0 350px; /* This fixes the width at 350px, making the height scale up proportionally */
}

.poster-column img {
    width: 100%;
    height: 700px;      /* Set the specific large height you want */
    object-fit: cover;  /* Ensures the image fills the area without being squished */
    object-position: center;
}

.content-column {
    flex: 2;            /* Takes up 2 parts (wider than the poster) */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Makes the video responsive */
.video-wrapper {
    position: relative;
    padding-bottom: 36.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 30vh;
    left: 18vh;
    width: 100%;
    height: 100%;
}

.bio-container-1 {
    position: relative; 
    width: 100%;
    min-height: 500px; /* Ensures the container has space for the photo */
}

.bio-photos-1 {
    position: absolute;   /* Takes it out of the normal document flow */
    top: 50px;           /* Exact distance from the top */
    right: 400px;         /* Offset from the right side */
    
    width: 150px;        /* Small square size */
    height: 150px;       /* Match width for a square */
    
    object-fit: cover;   /* Keeps the image from looking squashed */
    object-position: center;
    
    border-radius: 4px;  /* Optional: slight rounding like a photo print */
}

.bio-container-2 {
    position: relative; 
    width: 100%;
    min-height: 100px; /* Ensures the container has space for the photo */
}

.bio-photos-2 {
    position: absolute;   /* Takes it out of the normal document flow */
    top: 50px;           /* Exact distance from the top */
    right: 400px;         /* Offset from the right side */
    
    width: 150px;        /* Small square size */
    height: 150px;       /* Match width for a square */
    
    object-fit: cover;   /* Keeps the image from looking squashed */
    object-position: center;
    
    border-radius: 4px;  /* Optional: slight rounding like a photo print */
}

