<template>
  <el-card class="case-card" shadow="hover" :body-style="{ padding: '0px' }">
    <img :src="thumb" class="image">
    <div class="body">
      <h3>{{title}}</h3>
      <div class="bottom clearfix caption">
        {{caption}}
      </div>
    </div>
  </el-card>
</template>

<script>
export default {
  name: 'CaseCard',
  props: [
    'thumb',
    'title',
    'caption',
  ],
}
</script>

<style lang="less" scoped>
.case-card {
  width: 100%;
  padding: 0;

  .image {
    width: 100%;
  }

  .body {
    padding: 1.5rem;
    text-align: left;

    h3 {
      margin: 0;
      padding: 0;
      font-weight: 400;
      font-size: 3rem;
      color: #000;
      line-height: 1.2em;
    }

    .caption {
      font-size: 2.4rem;
      color: #727171;
      line-height: 1.2em;
    }
  }
}
</style>