{# --- The day column, under the lines: tinted when it holds an unavailable event --- #}
{# --- Horizontal lines + hour labels (background layer) --- #}
{# Header spacer row (matches the 1.75rem header in grid-template-rows) #}
{# One row per slot in the visible window #}
{% for label in timegrid_slot_labels %}
{% if label %}
{{ label }}
{% endif %}
{% endfor %}
{# --- Events overlay (foreground layer) --- #}
{# Overlapping events share their cluster's width; the others take the whole column. #}
{% for cluster in days.0.timegrid_clusters %}
{% for ev in cluster.events %}{% cal_include "timegrid_event" %}{% endfor %}