/* Shared layout for Interactive Media project pages */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Syne:wght@600;700&display=swap');

body.media-project {
    background-color: #ffffff;
    color: #333;
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body.media-project h1,
body.media-project h2,
body.media-project h3 {
    font-family: 'Syne', Arial, sans-serif;
}

.project-page {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 40px 24px 0;
}

.project-page .title {
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 16px;
}

.project-page .title h1 {
    font-size: 1.8em;
    margin: 0 0 6px;
    color: #333;
}

.project-page .title h2,
.project-page .title .meta {
    font-size: 1em;
    font-weight: normal;
    color: #666;
    margin: 0;
}

.text-block {
    max-width: 720px;
    margin-bottom: 28px;
}

.text-block h2 {
    font-size: 1.15em;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.text-block h3 {
    font-size: 1.05em;
    color: #444;
    margin: 20px 0 10px;
}

.text-block .description,
.project-page .description {
    margin: 0 0 12px;
    font-size: 1em;
    line-height: 1.7;
    color: #666;
}

.text-block .description a,
.project-page .description a {
    color: #333;
}

.text-block ul.description,
.text-block .description ul,
.project-page .description ul {
    padding-left: 20px;
    list-style-type: disc;
    color: #666;
    margin: 0 0 12px;
}

.text-block ul.description li,
.text-block .description li,
.project-page .description li {
    margin-bottom: 6px;
}

.project-page .description ol {
    padding-left: 20px;
    color: #666;
    margin: 8px 0;
}

.video-block,
.docs-block,
.gallery-block {
    margin-bottom: 36px;
}

.video-block h2,
.docs-block h2,
.gallery-block h2 {
    font-size: 1.15em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.video-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.video-frame {
    position: relative;
    width: 66.666%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 24px;
    border: 1px solid #eee;
}

.doc-card .label {
    display: block;
    font-weight: bold;
    color: #333;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #555;
    color: white;
}

.btn.secondary {
    background: #555;
}

.btn.secondary:hover {
    background: #777;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.image-gallery a {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .project-page {
        padding: 28px 16px 0;
    }

    .project-page .title h1 {
        font-size: 1.5em;
    }

    .video-frame {
        width: 100%;
    }

    .doc-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
