.project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 32px 0 36px;
}

.project-title {
    margin: 0;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-align: center;
}

.project-affiliation-dates {
    display: flex;
    flex-direction: row;
    gap: 28px;
}

.project-header-icon-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.project-header-icon {
    color: rgba(255, 255, 255, 0.75);
    vertical-align: center;
    height: 16px;
    width: auto;
}

.project-affiliation, .project-dates {
    margin: 0;
    color: color-mix(in srgb, var(--white) 86%, transparent);
    font-size: 16px;
    text-shadow: var(--scene-text-halo);
}

.project-technologies {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.project-technologies[hidden] {
    display: none;
}

.project-technology-entry {
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.project-language {
    background: color-mix(in srgb, var(--blue-300) 20%, transparent);
    color: var(--blue-100);
}

.project-tool {
    background: color-mix(in srgb, var(--green-200) 18%, transparent);
    color: var(--green-50);
}

.project-details-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 56px;
    min-height: 500px;
    min-width: 450px;
    padding: 56px 64px;
    box-sizing: border-box;
    width: 100%;
    color: var(--grey-800);
}

.project-details-panel section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-details-panel p {
    margin-top: 0px;
    margin-bottom: 0px;
    color: var(--grey-800);
    font-size: 17px;
    line-height: 1.7;
}

.project-section-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 0px;
    margin-bottom: 4px;
    color: var(--grey-800);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.project-section-title img {
    height: 20px;
    width: auto;
    opacity: 0.75;
}

.project-section-subtitle {
    margin-top: 0px;
    margin-bottom: 0px;
    color: var(--grey-800);
    font-size: 18px;
    font-weight: 600;
}

.project-details-subsection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-image-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.project-image-small {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 250px;
    border-radius: 14px;
    margin: 20px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 0 0 1px color-mix(in srgb, black 6%, transparent);
}

.project-image-small img {
    max-height: 250px;
}

.project-image-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.project-image-caption {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    padding-bottom: 10px;
    font-size: 18px;
    opacity: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 20%,
        rgba(0, 0, 0, 0.5) 100%
    );
    transition: opacity 0.2s ease;
}

.project-image-small:hover .project-image-caption {
    opacity: 1;
}

.project-giwaxpal-equation-container{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.mathjax-equation {
    display: block;
    width: auto;
    text-align: center;
    color: black;
}

.color-swatch-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.color-swatch-group-label {
    color: black;
    margin-bottom: 5px;
}

.color-swatch-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-swatch {
    border-radius: 20px;
    width: 60px;
    height: 60px;
}

#red-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--red-450) 90%
    );
}

#orange-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--orange-300) 90%
    );
}

#yellow-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--yellow-100) 90%
    );
}

#green-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--green-200) 90%
    );
}

#blue-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--blue-300) 90%
    );
}

#magenta-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--magenta-300) 90%
    );
}

#pink-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--pink-300) 90%
    );
}

#white-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        white 90%
    );
}

#grey-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--grey-150) 90%
    );
}

#silver-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--grey-600) 90%
    );
}

#black-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        black 90%
    );
}

#navy-swatch {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        var(--navy-750) 90%
    );
}

.color-swatch-rgb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
}

.color-swatch-label {
    color: black;
}

#sample-tile-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.sample-tile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 540px;
    height: 140px;

    background-color: black;
    border-radius: var(--border-radius);
}

#sample-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    width: 100px;
    height: 100px;
    margin: 10px;
}

#sample-glow-tile-container.golden-glow-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    z-index: 1;
}

#sample-glow-tile-container::before {
    inset: 0;
    z-index: 0;
}

.background-sample-container {
    position: relative;
    width: 400px;
    height: 300px;
    overflow: hidden;
    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 1) 100%
        ),
        radial-gradient(
            ellipse 50% 20% at 0% 50%,
            rgba(250, 107, 80, 1) 0%,
            rgba(247, 95, 165, 1) 40%,
            rgba(1, 27, 85, 0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(1, 27, 85, 1) 50%,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 1) 100%
        );
}

.background-sample-container canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}