@font-face {
    font-family: 'Diatype';
    src: url('fonts/ABCDiatype-Regular.woff2') format('woff2'),
         url('fonts/ABCDiatype-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Apply it to the whole site */
body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    font-family: 'Diatype', Helvetica, Arial, sans-serif; /* Fallbacks included */
    -webkit-font-smoothing: antialiased; /* Makes pro fonts look crisper */
    -moz-osx-font-smoothing: grayscale;
}

/* Simple Fixed Sidebar */
.sidebar {
    width: 220px;
    height: 100vh;
    position: fixed;
    border-right: 1px solid #eee; /* Subtle divider instead of a heavy color */
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    background: #fff;
}

/* Navigation Links */
.sidebar a {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    font-size: 16px;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: #FF708A; /* Simple blue highlight on hover */
}

/* Active Page Highlight */
.sidebar a.active {
    font-weight: 500;       /* Diatype Medium is often better than Bold for active states */
    color: #FF708A;        /* A clean, professional blue (adjust hex to your preference) */
    pointer-events: none;  /* Optional: prevents clicking the link for the page you're already on */
}

/* Optional: Add a small dot or indicator */
.sidebar a.active::after {
    content: " ●";          /* A small bullet point */
    font-size: 8px;
    margin-right: 8px;
    vertical-align: middle;
}

/* The "Contact" Button */
.contact-btn {
    margin-top: 20px;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

/* Content Area - Increased margin-left for breathing room */
.content {
    margin-left: 300px;      /* Sidebar (220px) + 80px of empty space */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 60px 40px; 
    box-sizing: border-box;
}

.full-height-image {
    height: 90vh;       /* The image will take up 90% of the screen height */
    width: auto;        /* Keeps the proportions correct */
    max-width: 100%;    /* Ensures it doesn't spill over horizontally */
    display: block;
    object-fit: contain; /* Professional scaling */
}

/* Updated Header: Normal header size, Left Aligned */
.page-main-header {
    width: 100%;
    max-width: 1000px;
    font-size: 32px;         /* Larger, prominent header size */
    font-weight: 600;        /* Bold but clean */
    color: #111;             /* Darker for better hierarchy */
    margin-bottom: 60px; 
    text-align: left;        /* Explicitly left aligned */
}

.page-subtitle {
    width: 100%;
    max-width: 1000px;
    text-align: left;
    margin-top: -40px;    /* Pulls it closer to the main header */
    margin-bottom: 60px;  /* Creates space before the first project starts */
}

.page-subtitle p {
    font-size: 16px;
    line-height: 1.4;
    color: #888;
    margin: 0 0 1em 0; /* Changed from 0 to '0 0 20px 0' to add space below each line */
    font-weight: 400;
}

/* Ensure the project block also stays left-aligned in the container */
.project-block {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps everything inside left-aligned */
}

/* --- Slideshow Related Part --- */
.slideshow {
    display: flex;
    overflow-x: auto;          /* Enables horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snaps images into place */
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 10px;      /* Space for scrollbar if visible */
}

/* Hide scrollbars for a cleaner look */
.slideshow::-webkit-scrollbar { display: none; }
.slideshow { -ms-overflow-style: none; scrollbar-width: none; }

.slideshow img {
    height: 75vh;              /* Set a consistent height for the slider */
    width: auto;
    scroll-snap-align: center; /* Snaps to center of image */
    flex-shrink: 0;            /* Prevents images from squishing */
}

/* Layout for Caption and Paragraphs */
.project-info {
    display: flex;
    gap: 50px;
    text-align: left;
    align-items: flex-start;
    width: 100%;
}

.project-info:not(:has(.description)) .caption {
    flex: 1;
}

.caption {
    /* (100% / 3) = ~33%. We subtract a bit for the gap */
    width: 30%; 
    flex-shrink: 0; /* Prevents it from getting squeezed */
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.description {
    /* (100% / 3 * 2) = ~66% */
    width: 70%;
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    /* This ensures it has "invisible" height even when empty */
    min-height: 20px; 
    padding-top: 1em;
}

.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Clips anything outside the single active slide */
}

.slideshow {
    display: flex;
    overflow-x: hidden;      /* Keeps the "loop" clean */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;             /* Occupies the width of its parent (.project-block or .content) */
    max-width: 1000px;       /* Matches your content max-width */
    margin: 0 auto 30px auto; /* Centers the block itself */
}

.slideshow::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center; /* Centers the image inside the slide */
    align-items: center;
}

.slide img {
    height: 75vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* This ensures that even if the image is narrow, it sits in the middle */
    margin: 0 auto; 
}

/* Buttons sitting on top of the image edges */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4); /* Subtle background */
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slide-btn.left { left: 0; }
.slide-btn.right { right: 0; }

.about-section {
    width: 100%;
    max-width: 1000px;
    text-align: left;
}

.artist-statement {
    max-width: 700px; /* Shorter line lengths are easier to read */
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 80px;
    color: #111;
}

.cv-container {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.cv-row {
    display: flex;
    margin-bottom: 40px;
    gap: 40px;
}

.cv-category {
    flex: 0 0 200px; /* Fixed width for the headers */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.cv-details {
    flex: 1;
}

.cv-details p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.5;
}

.cv-details span {
    display: inline-block;
    width: 80px; /* Aligns the years */
    color: #666;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .cv-row {
        flex-direction: column;
        gap: 10px;
    }
    .cv-category {
        margin-bottom: 5px;
    }
}