.blog-post-page {
    padding-top: 140px;
}

.blog-post {
    padding-left: var(--padding-side);
    padding-right: var(--padding-side);
}

.post-meta {
    margin-bottom: 20px;
}

.post-date {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tx2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Cascadia Code', monospace;
}

.post-title {
    margin-bottom: 80px;
}

.section-heading {
    font-size: clamp(42px, 4vw, 100px);
    line-height: 1.1;
    display: block;
}

.section-heading span[data-speed] {
    display: inline-block;
    position: relative;
    z-index: -1;
}

/* Post Hero Section */
.post-hero-section {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.post-hero-img {
    display: block;
    max-width: 600px;
    max-height: 500px;
    object-fit: contain;
    height: auto;
    flex-shrink: 0;
}

/* .post-connector-line {
    position: absolute;
    bottom: 5%;
    right: 35%;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 10;
} */

.post-content-container {
    position: relative;
    /* padding-top: 40px; */
}

/* .post-content-line-vector {
    position: absolute;
    top: -20px;
    left: 0;
    transform: translate(-80%, -100%);
    z-index: 99;
} */

.post-subtitle {
    /* font-size: clamp(24px, 3vw, 36px); */
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 500px;
}

.post-body {
    max-width: 600px;
}

.post-body p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 25px;
}

/* Gallery Section Refresh */
/* .post-gallery-section {
    margin-bottom: 100px;
} */

/* Replica Styles for Gallery (sync with styles.css) */
/* .gallery-project-images-container {
    position: relative;
    height: 500px;
    width: 100vw;
    margin-left: calc(var(--padding-side) * -1);
    padding: 0 var(--padding-side);
    display: flex;
    gap: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-project-images-container::-webkit-scrollbar {
    display: none;
}

.gallery-item-wrapper {
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item-wrapper img,
.gallery-item-wrapper video {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.gallery-item-caption {
    font-size: 13px;
    color: var(--tx2);
    font-family: inherit;
    text-transform: capitalize;
} */

/* Tablet Responsiveness */
/* @media (max-width: 1024px) {
    .post-hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-hero-img {
        width: 100%;
    }
} */

.gallery-project-images-container {
    position: relative;
    margin-top: 80px;
    height: 500px;
    width: 100vw;
    margin-left: -100px;
    padding: 0 100px;
    /* max-height: 85vh; */
    display: flex;
    gap: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: auto;
    /* Required for custom inertia */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    user-select: none;
    -webkit-user-drag: none;

    /* Scroll Snap for mobile */
    scroll-snap-type: x mandatory;
}

@media (max-width: 768px) {
    .gallery-project-images-container {
        padding: 0 var(--padding-side);
        margin-left: calc(var(--padding-side) * -1);
        gap: 20px;
        height: 400px;
    }
}

.gallery-project-images-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.gallery-project-images-container:active {
    cursor: grabbing;
}

.gallery-project-images-container img,
.gallery-project-images-container video {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    pointer-events: auto;
    /* Allow interactions like clicking for muting */
    user-select: none;
    -webkit-user-drag: none;
    scroll-snap-align: center;
}

/* Video Mute/Unmute Toggle UI */

.video-wrapper {
    position: relative;
    height: 100%;
    width: auto;
    display: inline-block;
    flex-shrink: 0;
}

.video-wrapper:hover .mute-ui-container {
    background-color: rgba(255, 255, 255, 0.3);
}

.mute-ui-container {
    --mute-ui-svg-size: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    user-select: none;
    fill: var(--tx);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    z-index: 10;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.mute-ui-container .mute-svg {
    position: absolute;
    animation: keyframes-fill .5s;
    width: var(--mute-ui-svg-size);
    height: var(--mute-ui-svg-size);
}

.mute-ui-container .voice-svg {
    position: absolute;
    display: none;
    animation: keyframes-fill .5s;
    width: var(--mute-ui-svg-size);
    height: var(--mute-ui-svg-size);
}

/* ------ On check event ------ */
.mute-ui-container input:checked~.mute-svg {
    display: none;
}

.mute-ui-container input:checked~.voice-svg {
    display: block;
}

/* ------ Hide the default checkbox ------ */
.mute-ui-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* ------ Animation ------ */
@keyframes keyframes-fill {
    0% {
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }

    50% {
        transform: rotate(-10deg) scale(1.2);
    }
}

.gallery-project-images-container .video-wrapper video {
    height: 100%;
    width: auto;
}

@media (max-width: 1024px) {
    .post-hero-section {
        gap: 60px;
    }

    .post-hero-img {
        width: 50%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blog-post-page {
        padding-top: 120px;
    }

    .post-meta {
        margin-bottom: 10px;
    }

    .post-date {
        font-size: 12px;
    }

    .post-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .post-hero-section {
        flex-direction: column;
        gap: 40px;
    }

    .post-hero-img {
        width: 100%;
        max-width: none;
        max-height: 400px;
    }

    .post-content-container {
        width: 100%;
    }

    .post-body p {
        font-size: 15px;
        line-height: 1.7;
    }

    .gallery-project-images-container {
        height: 350px;
        margin-top: 40px;
        gap: 15px;
    }
}