<?php
$section1 = get_field('section_1');
$section2 = get_field('section_2');
?>

<?php /* Template Name: Wnętrza */ ?>

<?php get_header() ?>

<section class="page interiors interiors1">
    <div class="page__row">
        <div class="page__left">
            <img src="<?php echo $section1['image'] ?>" />
        </div>
        <div class="page__right">
            <div class="page__titles">
                <h1><?php echo get_the_title() ?></h1>
                <div class="page__title"><?php echo $section1['title'] ?></div>
            </div>

            <div class="page__desc description">
                <?php echo $section1['description'] ?>
            </div>
        </div>
    </div>
</section>

<?php get_template_part('parts/apartment_visualizations'); ?>

<section class="page interiors interiors2">
    <div class="page__row">
        <div class="page__right">
            <div class="page__titles">
                <div class="main_title"><?php echo $section2['title'] ?></div>
                <div class="page__title"><?php echo $section2['subtitle'] ?></div>
            </div>

            <div class="page__desc description">
                <?php echo $section2['description'] ?>
            </div>
        </div>
    </div>

    <div class="interiors2__images">
        <?php foreach ($section2['images'] as $image): ?>
            <img src="<?php echo $image ?>" />
        <?php endforeach; ?>
    </div>
</section>

<?php get_footer('contact') ?>