/* ===== Global Reset & Box Sizing ===== */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

/* Styling */

body {
    height: 100%;
    font-family: "Geist Mono", monospace;
    font-size: 0.68rem;
    line-height: 135%;
    color: #000000d9;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    /* color: rgba(0, 0, 0, 0.6); */
}

a.view-more-link,
a#close-btn {
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.header-content,
.header-title,
.project-title,
.info-header span,
.about-label,
footer {
    text-transform: uppercase;
    letter-spacing: 0.02rem;
}


p.project-tags {
    text-transform: uppercase;
}

p.project-subtitle {
    color: rgba(0, 0, 0, 0.6);
}



/* ===== Header ===== */
.header,
.info-header {
    background: #fff;
    display: flex;
    align-items: center;
    height: 1.5rem;
    padding: 0 0.75rem;
    z-index: 2;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: space-between;
}

header.project-detail-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    z-index: 2;
    height: 1.5rem;
    padding: 0 0.5rem;
    gap: 1.5rem;
}

.header-title {
    grid-column: 1 / 3;
}

.project-detail-header .project-subtitle {
    grid-column: 4 / 7;
    text-align: left;
}

.project-detail-header .close-btn {
    grid-column: 7 / 8;
    justify-self: end;
}

/* ===== Main Layout ===== */
.columns-container {
    display: flex;
    height: 100vh;
    position: relative;
}

.left-column,
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

.scrollable.portfolio-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollable.portfolio-list::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

.vertical-divider {
    width: 1px;
    background: #eee;
    align-self: stretch;
    position: relative;
    z-index: 1;
    margin: 0;
    pointer-events: none;
}

.columns-container.is-loading-scroll {
    opacity: 0;
}

.columns-container.is-loaded-scroll {
    opacity: 1;
}

/* ===== Project Content ===== */
.project-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    margin-bottom: 1rem;
}

.project-container:last-child {
    border-bottom: none;
}

.project-thumbnail-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block; 
}

.project-content-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 1rem 0 1.5rem 0;
    align-items: start;
}

.project-left,
.project-right {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 0.25rem;

}

p.project-desc {
    margin-bottom: 1rem;
}

.project-caption {
    font-size: 0.95em;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 0.5em;
}

/* ===== Information Page Grid Layout ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    height: 100vh;
    padding: 1rem 0.75rem;
    align-items: start;
    overflow: hidden;
}

.about-label {
    grid-column: 1 / 2;
}

.about-content {
    grid-column: 2 / 5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.did-you-know-section {
    grid-column: 6 / 8;
}

/* ===== Footer ===== */
.global-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1.5rem;
    padding: 0 0.75rem;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* ===== Project Details Page (project.html) ===== */
.project-detail-layout {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0.5rem 3rem 0.5rem;
    min-height: 100vh;
}

.project-info {
    grid-column: 1 / span 3;
    position: sticky;
    top: 2rem;
    align-self: start;
    margin-right: 2rem;
}

.project-images-container {
    grid-column: 4 / span 4;
    height: 100%;
    overflow-y: auto;
}

/* ===== Project Images Grid ===== */
.project-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
}

.landscape-row {
    grid-column: span 2;
}

.portrait-row {
    display: contents;
}

.single-portrait-row {
    display: block;
    grid-column: span 1;
    width: 100%;
}

.single-portrait-col {
    width: 100%;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== Design Fact Section ===== */
.design-fact-section {
    max-width: 400px;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto;
    text-align: center;
}

#design-fact-content img {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    /* border-radius: 6px; */
}