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

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

</script>

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

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

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

  .about8 .pd-img::before {
    content: '';
    float: left;
    padding-top: 100%;
  }

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

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

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

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

  @media only screen and (max-width: 1200px) {
    .about8 .pd-content {
      margin-bottom: 30px !important;
      margin-right: 0 !important;
      flex-basis: 100% !important;
    }

    .about8>* {
      margin-right: 20px !important;
      flex-basis: calc(50% - 10px) !important;
      margin-bottom: 20px !important;
    }
  }

</style>
