.project-post-page .toc-mobile-wrap,
.project-post-page .post-sidebar,
.project-post-page #reading-progress-bar {
    display: none !important;
}

.project-post-page .post-main {
    margin-inline: 0;
    margin-inline-end: auto;
    max-width: 100%;
}

.project-post-page .article-content,
.project-post-page .article-content p {
    text-align: start;
}

.project-back {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}

.project-back a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-back a:hover {
    color: var(--link-hover, #1d4ed8);
}

.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.15rem;
    margin-top: 0.75rem;
}

.project-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.project-post-page .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    color: var(--navy-text, #0f172a);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-post-page .project-link:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Photo album */

.project-album {
    position: relative;
    width: min(100%, 920px);
    margin: 0 auto 2rem;
    outline: none;
}

.project-album-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    max-height: 640px;
    background: #0f172a;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.1);
}

.project-album-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.project-album-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.project-album-media {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #0f172a;
}

.project-album-slide img.project-album-media {
    object-fit: cover;
}

.project-album-slide video.project-album-media {
    object-fit: contain;
}

.project-album-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-album-btn:hover,
.project-album-btn:focus-visible {
    background: rgba(15, 23, 42, 0.88);
}

.project-album-prev {
    inset-inline-start: 12px;
}

.project-album-next {
    inset-inline-end: 12px;
}

.project-album-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.project-album-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.project-album-dot.is-active {
    background: #fff;
    width: 18px;
}

.project-post-page .byline-end {
    flex-wrap: wrap;
    justify-content: flex-end;
    white-space: normal;
    row-gap: 0.2rem;
}

@media (max-width: 900px) {
    .project-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-album-viewport {
        border-radius: 10px;
    }
}

[data-theme="dark"] .project-post-page .project-link {
    border-color: #334155;
    color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {
    .project-album-slide {
        transition: none;
    }
}
