<?php get_header(); ?>

<main id="main" class="wpbs-content-area">
    <?php while (have_posts()) : the_post(); ?>
        
        <?php if (wpbs_is_studio_page()) : ?>
            <!-- Bootstrap Studio page — render raw content, no wrapper -->
            <?php the_content(); ?>
        <?php else : ?>
            <!-- Standard page with container -->
            <div class="container py-5">
                <article <?php post_class(); ?>>
                    <header class="mb-4">
                        <h1 class="display-5 fw-bold"><?php the_title(); ?></h1>
                    </header>
                    <div class="entry-content">
                        <?php the_content(); ?>
                    </div>
                </article>
            </div>
        <?php endif; ?>
        
    <?php endwhile; ?>
</main>

<?php get_footer(); ?>
