{!-- Determine image settings based on ci_image_size using Stash --} {if ci_image_size == "Tiny"} {exp:stash:set name="ci_img_width_1" scope="user"}400{/exp:stash:set} {exp:stash:set name="ci_img_max_height_1" scope="user"}300{/exp:stash:set} {exp:stash:set name="ci_img_width_2" scope="user"}800{/exp:stash:set} {exp:stash:set name="ci_img_max_height_2" scope="user"}600{/exp:stash:set} {exp:stash:set name="ci_img_container_class" scope="user"}medium-2{/exp:stash:set} {if:elseif ci_image_size == "Very Small"} {exp:stash:set name="ci_img_width_1" scope="user"}500{/exp:stash:set} {exp:stash:set name="ci_img_max_height_1" scope="user"}350{/exp:stash:set} {exp:stash:set name="ci_img_width_2" scope="user"}1000{/exp:stash:set} {exp:stash:set name="ci_img_max_height_2" scope="user"}700{/exp:stash:set} {exp:stash:set name="ci_img_container_class" scope="user"}medium-3{/exp:stash:set} {if:elseif ci_image_size == "Small"} {exp:stash:set name="ci_img_width_1" scope="user"}600{/exp:stash:set} {exp:stash:set name="ci_img_max_height_1" scope="user"}400{/exp:stash:set} {exp:stash:set name="ci_img_width_2" scope="user"}1200{/exp:stash:set} {exp:stash:set name="ci_img_max_height_2" scope="user"}800{/exp:stash:set} {exp:stash:set name="ci_img_container_class" scope="user"}medium-4{/exp:stash:set} {if:elseif ci_image_size == "Medium"} {exp:stash:set name="ci_img_width_1" scope="user"}600{/exp:stash:set} {exp:stash:set name="ci_img_max_height_1" scope="user"}400{/exp:stash:set} {exp:stash:set name="ci_img_width_2" scope="user"}1200{/exp:stash:set} {exp:stash:set name="ci_img_max_height_2" scope="user"}800{/exp:stash:set} {exp:stash:set name="ci_img_container_class" scope="user"}medium-5{/exp:stash:set} {if:elseif ci_image_size == "Large"} {exp:stash:set name="ci_img_width_1" scope="user"}600{/exp:stash:set} {exp:stash:set name="ci_img_max_height_1" scope="user"}400{/exp:stash:set} {exp:stash:set name="ci_img_width_2" scope="user"}1200{/exp:stash:set} {exp:stash:set name="ci_img_max_height_2" scope="user"}800{/exp:stash:set} {exp:stash:set name="ci_img_container_class" scope="user"}medium-7{/exp:stash:set} {if:else} {exp:stash:set name="ci_img_width_1" scope="user"}600{/exp:stash:set} {exp:stash:set name="ci_img_max_height_1" scope="user"}400{/exp:stash:set} {exp:stash:set name="ci_img_width_2" scope="user"}1200{/exp:stash:set} {exp:stash:set name="ci_img_max_height_2" scope="user"}800{/exp:stash:set} {exp:stash:set name="ci_img_container_class" scope="user"}medium-6{/exp:stash:set} {/if}
{if ci_image_hyperlink} {/if} {ci_image_description} {if ci_image_hyperlink} {/if} {if ci_image_caption}

{ci_image_caption}

{/if}