/* use the main site styles */
@import url("style.css");

/* layout */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* projects section */
.project-list {
    padding-top: calc(var(--space-xl) + 1.5rem);
    padding-bottom: var(--space-xl);
}

/* only the word PROJECTS centered */
.project-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
}

/* stacked list */
.project-list-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* space between project cards */
}

/* each project card, Work-style hover */
.project-card {
    background: #fafafa;
    border-radius: var(--work-radius);
    border: 1px solid #e8e8e8;
    box-shadow: var(--work-shadow-outer);
    padding: 1.75rem 1.9rem 2.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr);
    gap: 1.75rem;
    align-items: stretch;
    transition: box-shadow var(--work-ease-shadow);
}

.project-card:hover {
    box-shadow: var(--work-shadow-hover);
}

/* media wrapper: stretch to match text column height on 2-col layout */
.project-image-wrap {
    overflow: hidden;
    border-radius: 12px;
    align-self: stretch;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* IMPORTANT: style both image and video the same */
.project-image-wrap img,
.project-image-wrap video,
.project-media {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    transition: transform var(--work-ease-media);
}

@media (min-width: 901px) {
    .project-image-wrap img,
    .project-image-wrap video,
    .project-media {
        min-height: 16rem;
    }
}

.project-card:hover .project-image-wrap img,
.project-card:hover .project-image-wrap video,
.project-card:hover .project-media {
    transform: scale(var(--work-hover-scale));
}

/* Sound (portrait / vertical video): scale proportionally, no cropping */
.project-card--sound .project-image-wrap--sound {
    justify-content: center;
    align-items: center;
}

.project-card--sound .project-image-wrap--sound video {
    width: auto;
    max-width: min(100%, 20rem);
    max-height: min(72vh, 36rem);
    height: auto;
    flex: 0 0 auto;
    min-height: 0;
    object-fit: contain;
    transform: none;
}

.project-card--sound:hover .project-image-wrap--sound video {
    transform: none;
}

@media (max-width: 900px) {
    .project-card--sound .project-image-wrap--sound video {
        max-width: min(72vw, 18rem);
        max-height: min(62vh, 32rem);
    }
}

/* text side */
.project-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-name {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.project-subheading {
    font-size: 0.85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.4rem;
}

.project-text {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #333;
}

/* responsive */
@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 2.4rem;
        letter-spacing: .12em;
        margin-bottom: 3rem;
    }
}

@media (max-width: 600px) {
    .project-title {
        font-size: 2rem;
    }

    .project-text {
        font-size: .95rem;
    }
}
