/* Connor Roberts - Blender Project Portfolio */

body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.site-header .site-title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 600;
    margin: 0;
    color: #c9d1d9;
}

.site-header .site-subtitle {
    color: #8b949e;
    margin: 0.25rem 0 0;
    font-size: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #58a6ff;
}

.breadcrumb-item.active {
    color: #8b949e;
}

.content-section {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.index-section {
    margin-bottom: 2.5rem;
}

.index-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.project-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid #30363d;
}

.project-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-card:first-child {
    padding-top: 0;
}

.project-card-thumb {
    flex-shrink: 0;
    width: 320px;
    max-width: 100%;
    height: 200px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-thumb img,
.project-card-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card-body {
    flex: 1;
    min-width: 0;
}

.project-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.project-card-body h3 a {
    color: #c9d1d9;
    text-decoration: none;
}

.project-card-body h3 a:hover {
    color: #58a6ff;
}

.project-card-desc {
    margin: 0;
    color: #c9d1d9;
}

.text-media-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
}

.text-media-table td {
    vertical-align: top;
    padding: 0 0 1.5rem;
}

.text-media-table td:first-child {
    padding-right: 1.5rem;
    width: 55%;
}

.text-media-table td:last-child {
    width: 45%;
}

.media-cell a {
    display: block;
    cursor: pointer;
}

.media-cell a:focus {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

.media-cell img,
.media-cell video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #30363d;
    display: block;
}

.media-cell img:hover {
    border-color: #58a6ff;
}

.media-cell video {
    width: 100%;
}

.text-media-table tr:last-child td {
    padding-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #30363d;
    display: block;
}

.gallery-item img:hover {
    border-color: #58a6ff;
}

.gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #8b949e;
}

.media-stack img,
.media-stack video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #30363d;
    margin-bottom: 1rem;
    display: block;
}

.media-stack video {
    width: 100%;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #30363d;
}

.site-footer p {
    text-align: center;
    margin: 0 0 0.5rem;
    color: #8b949e;
    font-size: 0.875rem;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.site-footer .footer-fan-note {
    font-size: 0.8125rem;
    color: #6e7681;
}

@media (max-width: 767px) {
    .project-card {
        flex-direction: column;
    }

    .project-card-thumb {
        width: 100%;
    }

    .text-media-table td,
    .text-media-table td:first-child,
    .text-media-table td:last-child {
        display: block;
        width: 100%;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .text-media-table .media-cell {
        padding-bottom: 1.5rem;
    }
}
