@font-face {
    font-family: 'authentic-sans';
    src: url('./AUTHENTICSans-60.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'authentic-sans';
    src: url('./AUTHENTICSans-90.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

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

:root {
    --bg: #fafafa;
    --text: #000;
    --dotted-color: #000000;
    --spacing: 2rem;
    --dash-length: 4px;
    --dash-spacing: 16px;
    --sidebar-width: 360px;
}

body {
    font-family: 'authentic-sans', sans-serif;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* INFO CONTAINER */
.info-container {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg);
    padding: var(--spacing);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Horizontal dividers */
.info-current, .info-location, .info-links {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    position: relative;
}

/* FIXED: Lines extend from screen edge to container edge */
.info-current::before, 
.info-location::before, 
.info-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * var(--spacing));
    right: calc(-1 * var(--spacing));
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(var(--dash-spacing) - var(--dash-length)),
        var(--dotted-color) calc(var(--dash-spacing) - var(--dash-length)),
        var(--dotted-color) var(--dash-spacing)
    );
}

/* Custom vertical dashed line on right */
.info-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(var(--dash-spacing) - var(--dash-length)),
        var(--dotted-color) calc(var(--dash-spacing) - var(--dash-length)),
        var(--dotted-color) var(--dash-spacing)
    );
}

.info-name {
    font-family: 'authentic-sans', sans-serif;
    font-weight: 900;
    font-size: 35px;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
}

.info-birth {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.info-about {
    font-size: 14px;
    line-height: 1.6;
}

.info-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.info-link:hover {
    text-decoration: underline;
    text-decoration-color: #5c6fd0;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    background-color: transparent;
}

/* ===== GALLERY PAGE STYLES ===== */

/* RIGHT GRID */
.gallery-container {
    margin-left: 360px;
    padding: var(--spacing);
    min-height: 100vh;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* PROJECT LINK STYLES */
.project-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.project-link:hover {
    transform: translateY(-2px);
}

/* Override the existing hover effect on project-thumb */
.project-link:hover .project-thumb {
    transform: none;
}

/* Keep the background image and other styles working */
.project-link .project-thumb {
    pointer-events: none;
}

.project-link .project-label {
    pointer-events: none;
}

.project-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Category indicator container */
.category-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

/* Category circle */
.category-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Category text */
.category-text {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    white-space: nowrap;
}

/* Category colors - define your categories */
.category-branding { background-color: #FFD700; }
.category-publication { background-color: #5c6fd0; }
.category-explorations { background-color: #8bd63a; }
.category-web { background-color: #FF6B6B; }
.category-packaging { background-color: #A78BFA; }
.category-editorial { background-color: #FF9F43; }
.category-typography { background-color: #0EA5E9; }


/* PROJECT ITEM CONTAINER */
.project-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* PROJECT THUMB */
.project-thumb {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* VIDEO THUMBNAIL */
.thumbnail-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* GALLERY PREVIEW */
.gallery-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

/* SLIDESHOW */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Hover effect for gallery */
.project-thumb:hover .gallery-preview {
    opacity: 1;
}

/* ===== PROJECT DETAIL PAGE STYLES ===== */

.project-detail-container {
    margin-left: 360px;
    padding: var(--spacing);
    min-height: 100vh;
}

.project-detail {
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Header with back arrow next to title */
.project-header {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
    position: relative;
}

/* Back arrow */
.back-arrow {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    padding: 4px 5px;
    margin-right: 5px;

}

.back-arrow:hover {
    text-decoration: none;
    transform: translateX(-4px);
    border-radius: 4px;
}

.project-title {
    font-family: 'authentic-sans', sans-serif;
    font-weight: 900;
    color: #7e361b;
    font-size: 35px;
    line-height: 1.1;
    margin: 0;
}

.project-meta {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-year {
    font-size: 18px;
    font-weight: 400;
    color: #000000b5;
    opacity: 0.7;
}

.project-content {
    max-width: 1200px;
}

.project-description {
    text-align: left;
    margin-left: 2.5rem;
    margin-bottom: 3rem;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.detail-item {
    font-size: 16px;
}

.project-media {
    margin-bottom: 1rem;
    background: transparent;  /* ADD THIS */
}

.project-main-media {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;  /* CHANGE from contain to cover */
    display: block;
    margin-left: 0;  /* CHANGE from 0.7rem to 0 */
}
/* Specific styles for video element */
video.project-main-media {
    background-color: transparent;   
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-left: 0;
    grid-auto-rows: auto;  /* ADD THIS - lets rows size independently */
    align-items: start;     /* ADD THIS - aligns items to top */
}

.gallery-item {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.gallery-item1 {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4/3; 
}

.gallery-item2 {
    grid-column: 1;
    grid-row: 1 / 3;  /* CHANGE: spans rows 1 and 2 */
    aspect-ratio: 3/4;
    max-width: 600px;
    max-height: 800px;
}

.gallery-item2p {
    grid-column: 2;
    grid-row: 1 / 3;  /* CHANGE: spans rows 1 and 2 */
    aspect-ratio: 3/4;
    max-width: 600px;
    max-height: 800px;
}

.gallery-item3 {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 4/3;
}


.gallery-item4 {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.gallery-item5 {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.gallery-item6 {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 4/3;
}

.gallery-item7 {
    grid-column: 1;
    grid-row: 3;
    aspect-ratio: 4/3;  /* matches gallery-item and gallery-item3 */
}

.gallery-item8 {
    grid-column: 2;
    grid-row: 3;
    aspect-ratio: 4/3;  /* matches gallery-item and gallery-item3 */
}

.gallery-item img,
.gallery-item1 img,
.gallery-item2 img,
.gallery-item2p img,
.gallery-item3 img,
.gallery-item3p img,
.gallery-item4 img,
.gallery-item5 img,
.gallery-item6 img,
.gallery-item7 img,
.gallery-item8 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.media-caption {
    font-size: 13px;
    color: #616060;
    margin-top: 0.4rem;
    opacity: 0.8;
    text-align: right;
}

.media-caption2 {
    font-size: 13px;
    color: #616060;
    margin-top: 0rem;
    opacity: 0.8;
    text-align: right;
}


/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    /* Project detail page responsive */
    .project-detail-container {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .project-header {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }
    
    .back-arrow {
        font-size: 28px;
        order: 1;
    }
    
    .project-title {
        font-size: 36px;
        order: 2;
        flex: 1;
    }
    
    .project-meta {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .project-description {
        font-size: 16px;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.source-link {
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color:#7e361b;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}