a {
    text-decoration: underline;
    text-underline-offset: 6px;
    color: var(--color-accent);
    transition: ease-out 0.25s;
}

a:hover {
    text-underline-offset: 8px;
    transition: ease-in 0.1s;
}

.below-image {
    margin-top: 80px !important;
}

.project-content {
    padding: 80px 40px;
}

.main-details {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.main-details h1 {
    margin: 64px 0 24px;
    max-width: 640px;
    height: 224px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    order: 1;
}

.project-info p {
    color: var(--color-darkgray);
    margin-top: 8px;
}

.project-info {
    text-align: right;
}

.project-text {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    order: 2;
}

.project-description {
    width: 50%;
}

.project-description p {
    margin: 8px 0 24px;
    font-size: 18px;
    line-height: 150%;
}

.project-description .section-label {
    font-weight: 700;
    margin-bottom: 0px;
    color: var(--color-navy);
}

.project-description ol {
    color: var(--color-accent);
    line-height: 240%;
    font-weight: 500;
    list-style-position: inside;
    padding: 0px;
    margin: 0px;
    font-size: 18px;
}

.project-details {
    width: 50%;
    text-align: right;
}

.project-detail {
    margin-top: 48px;
}

.project-detail .label {
    font-size: 16px;
    font-weight: 600;
    line-height: 0%;
}

.project-navigation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    order: 3;
}

.project-navigation-end {
    max-width: 720px;
    margin: 64px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.project-thumbnail {
    margin-top: 64px;
    border-radius: 16px;
    min-width: 120px;
    order: 4;
}

.content-details {
    max-width: 1200px;
    margin: 0 auto;
}

.content-details img {
    border-radius: 16px;
}

.content-details .feature-img {
    margin-top: 24px;
    width: 100%;
}

.content-details .small-img {
    width: 500px;
    margin: 24px auto 0px;
}

.content-details .medium-img {
    width: 880px;
    margin: 24px auto 0px;
}

.project-images-center {
    text-align: center;
}

@media screen and (max-width: 920px) {
    .content-details .medium-img {
        width: 90%;
    }
}

@media screen and (max-width: 530px) {
    .content-details .small-img {
        width: 340px;
    }
}

.content-details h2,
.content-details p,
.content-details h3,
.content-details ul {
    max-width: 720px;
    margin: 0 auto;
}

.content-details h2 {
    margin-top: 64px;
}

.content-details p {
    margin-top: 24px;
    font-size: 18px;
    line-height: 150%;
}

.content-details ul {
    list-style-position: outside;
    font-size: 18px;
    line-height: 150%;
    margin-top: 24px;
}

.content-details li {
    margin-left: 16px;
}

.content-details .subsection {
    margin-top: 64px;
}

iframe {
    margin-top: 32px;
    border-radius: 16px;
}

.project-images {
    margin-top: 24px;
    display: flex;
    gap: 8px;
}

.project-images-vert {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.project-images .color-group {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 8px;
}

.project-images .colors {
    flex: 1;
    height: 200px;
    border-radius: 16px;
}

.paragraph-title {
    color: var(--color-accent)
}

.button-section {
    max-width: 720px;
    margin: 32px auto;
}

.openImageText {
    margin-top: 24px !important;
    font-style: italic;
    display: none;
}

hr {
    width: 100%;
    margin-top: 64px;
    border: none;
    height: 1px;
    background-color: var(--color-mediumgray);
}

#backToTop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

#backToTop {
    display: none;
    /* hidden by default */
}

@media (max-width: 948px) {
    .project-header {
        flex-direction: column;
    }

    .project-info {
        text-align: left;
    }

    .project-text {
        flex-direction: column;
        order: 3;
    }

    .subtitle-small {
        margin: 0 0 24px;
        padding: 0px;
    }

    .project-thumbnail {
        width: 100%;
        height: auto;
    }

    .project-thumbnail.small {
        margin-top: 16px;
    }

    .project-description {
        width: 100%;
    }

    .project-details {
        text-align: left;
        width: 100%;
    }

    .project-images {
        flex-direction: column;
    }

    iframe {
        height: 300px;
    }

    .project-navigation, .project-navigation-end {
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .project-navigation {
        order: 2;
    }
}

@media (max-width: 520px) {
    .project-images .colors {
        height: 100px;
    }

    .openImageText {
        display: block;
    }
}

@media (max-width: 400px) {
    .project-navigation, .project-navigation-end {
        margin-top: 16px;
        flex-direction: column-reverse;
        gap: 8px;
        text-align: center;
    }
}