<template>
  <div class="q-mt-lg">
    <section class="about7 section-block">
      <div class="pd-img" :style="{backgroundImage:`url('${plugData.ImageUrl1}')`}">
      </div>
      <div class="pd-img" :style="{backgroundImage:`url('${plugData.ImageUrl2}')`}">
      </div>
      <div class="pd-content">
        <!--段落標題 - 圖左-->
        <h2 class="block-title">{{plugData.Title}}</h2>
        <p class="title-teaser">
          {{plugData.Describe}}
        </p>
      </div>
    </section>
  </div>
</template>

<script>
  export default {
    props: ["plugData"]
  };

</script>

<style>
  .about7 {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
  }

  .about7 .pd-img {
    background-size: cover;
    background-position: center;
  }

  .about7>* {
    display: block;
    margin-right: 40px;
    flex-basis: calc(33.333% - 27px);
  }

  .about7> ::before {
    content: "";
    float: left;
    padding-top: 100%;
  }

  .about7> :nth-child(3n) {
    margin-right: 0;
  }

  .about7 .pd-content .block-title {
    font-size: 33px;
    margin-bottom: 20px;
    margin: 0;
    padding: 0;
    line-height: unset;
    font-weight: 600;
  }

  .about7 .pd-content .title-teaser {
    margin-bottom: 10px;
    font-size: 16px;
    color: #999;
  }

  @media only screen and (max-width: 800px) {
    .about7 {
      padding: 20px !important;
    }
  }

  @media only screen and (max-width: 1200px) {
    .about7>* {
      margin-right: 20px !important;
      flex-basis: calc(50% - 10px) !important;
      margin-bottom: 30px !important;
    }

    .about7 .pd-content {
      margin-bottom: 0 !important;
      margin-right: 0 !important;
      flex-basis: 100% !important;
    }

    .about7>:nth-child(even) {
      margin-right: 0 !important;
    }
  }

</style>
