{% extends "@templates/"~template~"/view/base.html.twig" %}

{% block javascript %}
    <script src="{{ asset('media/Public/vendor/lightbox/dist/js/lightbox.min.js') }}"></script>
    {{ parent() }}
{% endblock %}

{% block breadcrumbs %}
    <section class="breadcrumbSection">
        <div class="grid-container">
            <div class="grid-x grid-padding-x">
                <div class="cell">
                    {{ wo_render_breadcrumbs() }}
                </div>
            </div>
        </div>
    </section>
{% endblock %}

{% block content %}
<div class="grid-container">
    <div class="grid-x wi-photo-details">
        <div class="cell">
            <h1>{{ photo.title }}</h1>
            <div class="wi-photo-details-image">
                <img src="{{ absolute_url(asset(photo.photo)) }}" alt="{{ photo.title }}">
            </div>
            {% if photo is not null %}
                <div class="wi-gallery-content">{{ photo.content|raw }}</div>
            {% endif %}
        </div>
    </div>
</div>
{% endblock %}
