/* --- RESET & BASE --- */
body {
    font-family: 'Scope One', serif; /* Elegant serif for body text */
    margin: 0;
    padding: 0;
    color: #444; /* Soft black, less harsh than #000 */
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #999; }

/* --- HEADER --- */
header {
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: baseline; 
    flex-wrap: wrap;
}

.logo {
    /* THE NEW FONT: Scope One */
    font-family: 'Scope One', serif; 
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* Wide spacing for the 'Fine Art' look */
    color: #222;
    font-weight: 400;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: 'Scope One', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888; 
}
nav a:hover { color: #cc6633; /* The burnt orange accent color */ }

/* --- HOMEPAGE GRID --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem 2rem; 
    padding: 0 5%;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.project-card {
    display: block;
    text-align: center; 
}

.project-card img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    display: block;
    margin-bottom: 1rem;
    filter: grayscale(10%); 
    transition: filter 0.3s, opacity 0.3s;
}

.project-card:hover img {
    filter: grayscale(0%);
    opacity: 0.85;
}

.project-title {
    /* THE NEW FONT: Scope One */
    font-family: 'Scope One', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    color: #666; 
    margin-top: 0.8rem;
}

/* --- PROJECT PAGE SPECIFIC --- */
.container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 2rem; 
}

h1 { 
    font-family: 'Scope One', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem; 
}

.date { 
    color: #888; 
    margin-bottom: 2rem; 
    display: block; 
    font-style: italic;
}

img { 
    max-width: 100%; 
    display: block; 
    margin: 2rem 0; 
    margin-left:auto;
    margin-right:auto;
}

/* --- GALLERY GRID (Inside Projects) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 2rem 0;
}

.gallery-grid a.glightbox {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    transition: opacity 0.2s;
}

/* Add this to center and scale the image */
.gallery-grid a.glightbox img {
    width: 100%;
    height: 100%;
    /* Centers the image and crops the edges so it fills the square */
    object-fit: cover;
    /* Ensures the focus stays on the center of the photo */
    object-position: center; 
    display: block;
}

.gallery-grid a:hover { opacity: 0.8; }

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the thumbnails square crop nicely */
    margin: 0;
}
.gallery-grid.uncropped {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gallery-grid.uncropped a.glightbox {
    display: flex;
    aspect-ratio: auto;
    overflow: hidden;
}
.gallery-grid.uncropped img {
    /* Use 'max' instead of 'fixed' 100% to prevent stretching/cropping */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block;
}

/* --- CAPTIONS --- */
.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9); /* White background for caption */
    color: #333;
    font-family: 'Scope One', serif;
    font-size: 0.75rem;
    padding: 5px 10px;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.gallery-grid a:hover .caption-overlay {
    opacity: 1;
}

.video-container {
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
    margin: 2rem auto;       /* Spacing above/below and auto-margins for centering */
    width: 100%;             /* Allow it to take full width of its parent */
    max-width: 800px;        /* Optional: limit how wide the video can get */
}

/* The actual iframe styling */
.video-container iframe {
    width: 100%;             /* Responsive width within the container */
    height: 450px;           /* Set your specific height in pixels here */
    border: none;            /* Remove default iframe border */
}

/* --- LIGHTBOX CUSTOMIZATION (White Theme) --- */
.goverlay { background: rgba(255, 255, 255, 0.98) !important; }
.gslide-desc { color: #333 !important; background: transparent !important; font-family: 'Scope One', serif !important; }
.gbtn { color: #333 !important; }
.gprev path, .gnext path { fill: #333 !important; }