body {
    margin: 0;
    padding: 0;
}

.mesh-close-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: none;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
}

.mesh-close-btn:hover {
    background-color: #DCDCDC;
}

.mesh-close-btn .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mesh-page {
    font-family: 'Roboto', sans-serif;
    padding: 2rem;
    overflow-x: hidden;
}

.mesh-section {
    margin-bottom: 0;
    padding-bottom: 6.25rem;
}

.mesh-section:last-of-type {
    padding-bottom: 12.5rem;
}

.mesh-project-heading {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    margin-bottom: 4rem;
}

.mesh-project-date {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.06em;
    margin: 0;
    color: #000;
}

.mesh-project-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.045em;
    margin: 0;
    text-transform: lowercase;
}

.mesh-project-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 155%;
    letter-spacing: 0.06em;
    margin: 0;
    color: #4B5563;
}

.mesh-project-divider {
    border: 0;
    border-top: 1px solid #000;
    width: 100vw;
    max-width: 1440px;
    height: 0;
    margin-top: 0;
    margin-bottom: 6.25rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.mesh-media-block {
    margin-bottom: 4rem;
}

.mesh-media-block:last-child {
    margin-bottom: 0;
}

.mesh-media {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #E5E5E5;
    object-fit: contain;
    background: #fff;
}

.mesh-placeholder {
    aspect-ratio: 9 / 19.5;
    background: #F4F4F4;
    color: #9A9A9A;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid #E5E5E5;
}

.mesh-placeholder-wide {
    aspect-ratio: 16 / 9;
    min-height: 12rem;
}

.mesh-caption {
    color: #727272;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.333;
    letter-spacing: 0.4px;
    margin: 1rem 0 0 0;
}

.mesh-media-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.mesh-media-row > .mesh-media,
.mesh-media-row > .mesh-placeholder,
.mesh-media-row > .mesh-video-hover {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    aspect-ratio: 446 / 776;
    height: auto;
    object-fit: contain;
}

.mesh-media-row > .mesh-video-hover .mesh-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mesh-video-hover {
    display: block;
    width: 100%;
    line-height: 0;
}

.mesh-page video {
    -webkit-playsinline: true;
    playsinline: true;
}

@media (min-width: 1440px) {
    .mesh-header {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    .mesh-section {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    .mesh-section .mesh-project-desc {
        max-width: 700px;
    }
    .mesh-project-divider {
        width: 1440px;
        margin-left: calc(50% - 720px);
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .mesh-page {
        padding-left: 20px;
        padding-right: 20px;
    }
    .mesh-section h2 {
        text-align: left !important;
        margin: 0 !important;
        font-size: 24px !important;
        min-width: 0;
        word-wrap: break-word;
    }
    .mesh-project-date {
        font-size: 14px;
    }
    .mesh-project-heading {
        align-items: flex-start;
    }
    .mesh-section .mesh-project-desc {
        text-align: left !important;
    }
    .mesh-media-row {
        flex-direction: column;
        gap: 1rem;
    }
    .mesh-page video {
        object-fit: contain !important;
        max-width: 100% !important;
        height: auto !important;
    }
}
