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

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 200;
}

body {
    font-family: 'Libertinus Serif', serif;
    background-color: black;


    overflow-x: hidden;
}

/* Header & Branding */
.main-web {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: .9rem;
    /* Max numeric weight supported by CSS standard */
    letter-spacing: -0.03em;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: left top;
    position: fixed;
    left: 18px;
    top: 190px;
    margin: 0;
    z-index: 1100;

}

.logo a {
    text-decoration: none;
    color: white;
    transition: color 0.7s ease;
}

.logo a:hover,
.logo a.active {
    color: yellow;
    font-weight: 600;
}

.nav-links {
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: right;
    /* Centers the flex items horizontally */
    gap: 50px;
    padding-top: 10px;
    position: fixed;
    top: 18px;
    right: 30px;
    /* Forces the container to start at the left edge */
    width: 100%;
    /* Stretches the container across the full screen */
    background: transparent;
}

/* rgb(63, 191, 255); */
.nav-links a {
    display: flex;
    text-decoration: none;
    color: white;
    transition: color 0.7s ease;
}


.nav-links a:hover,
.nav-links a.active {
    color: yellow;
    font-weight: 400;
}

.card-text {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.5;
    padding-left: 100px;
    padding-right: 100px;
    text-align: left;
    text-decoration: none;

}

.card-text {
    text-decoration: none;
    color: white;

}

.card-text:hover {
    font-weight: 200;
    color: yellow;
    transition: color 5s ease;
}


/* Single Hero Media Layout */
.main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 90px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper .nav-link {
    display: block;
    width: 100%;
    height: 100%;
}

.image-wrapper img,
.image-wrapper video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

/* Horizontal Gallery Layout */
.gallery-container {
    width: 100vw;
    padding-left: 100px;
    /* Adjusted offset to clear the sidebar logo cleanly */
    padding-top: 30px;
}

.horizontal-scroll {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-right: 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-wrapper {
    /* Calculates 50% width minus padding offsets and gap so 2 cards fill the view exactly */
    flex: 0 0 calc((95vw - 200px - 20px) / 2);
    height: 90vh;
    /* Increased from 40vh to give images strong editorial presence */
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.media-box .nav-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-wrapper img,
.gallery-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Layout Container */
.project-detail-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    padding-left: clamp(120px, 15vw, 300px);
    /* Responsive offset clearing rotated logo */
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
    /* Prevents vertical page scrolling */
}

/* Left Column: Fixed Text Info */
.info-column {
    width: 240px;
    flex-shrink: 0;
    height: calc(100vh - 120px);
    margin-right: 40px;
}

.sticky-text-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Right Column: Horizontal Scroll Container */
.horizontal-scroll-container {
    flex: 1;
    min-width: 0;
    /* Ensures container collapses on window resize without squishing content */
    height: calc(100vh - 120px);
}

.horizontal-scroll {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-right: 80px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Shared Media Cards in the Horizontal Track */
.horizontal-scroll .media-card {
    flex: 0 0 calc((95vw - 200px - 20px) / 2);
    height: 100%;
    width: 100%;
    /* Dynamic card width scaling with screen size */
    min-width: 300px;
    scroll-snap-align: start;
    overflow: hidden;
    background-color: transparent;
}

/* Optional: Make the Hero Video card slightly wider than secondary stills */
.horizontal-scroll .hero-card {
    width: clamp(320px, 35vw, 500px);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fullscreen Mode Fix */
.media-card video:fullscreen,
.media-card video:-webkit-full-screen {
    object-fit: contain !important;
    background-color: #000000;
}


/* Right Column: Text & Editorial Meta */
.info-column {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sticky-text-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes back/title to top and description to bottom */
    padding-top: 10px;
    padding-bottom: 600px;
}

/* Top Typography */
.back-link {
    display: block;
    font-size: 0.85rem;
    color: white;
    text-decoration: none;
    margin-bottom: 24px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: white;
    font-weight: 600;
}

.project-meta {
    font-size: 0.85rem;
    color: white;
    font-style: italic;
}

/* Bottom Description */
.description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: white;
    max-width: 320px;
}

/* Caption styling under the image */
.card-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    font-size: 0.85rem;
}

.caption-title {
    font-weight: 600;
    color: white;
}

.caption-meta {
    font-style: italic;
    color: white;
}


.grid-container2 {
    /* 1. Activate the grid layout mode */
    display: grid;

    /* 2. Define 3 equal-width, flexible columns */
    grid-template-columns: repeat(3, 1fr);

    /* 3. Add space (gutters) between grid items */
    gap: 15px;
}

/* Optional styling to help visualize the items */
.item {
    background-color: #3498db;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Lightbox Overlay Hidden by Default */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

/* Expanded Image Formatting */
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    font-family: sans-serif;
}



.archive-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding-left: 90px;
    padding-right: 90px;
    margin: 90px auto;

}

.image-wrapper2 {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper2 .nav-link {
    display: block;
    width: 100%;
    height: 100%;
}

.image-wrapper2 img,
.image-wrapper2 video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}