<template>
  <!--圖片連結 - 圖左-->
  <div class="q-mt-lg">
    <section class="tour5 section-block">
      <a @click="OpenNewUrl(plugData.LinkUrl1)" :title="plugData.TripTitle1" class="pd-img"
        :style="{backgroundImage:`url('${(plugData.TripImage1&&plugData.TripImage1!=''?plugData.TripImage1:plugData.ImageUrl1)}')`}"></a>
      <a @click="OpenNewUrl(plugData.LinkUrl2)" :title="plugData.TripTitle2" class="pd-img"
        :style="{backgroundImage:`url('${(plugData.TripImage2&&plugData.TripImage2!=''?plugData.TripImage2:plugData.ImageUrl2)}')`}"></a>
      <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>
  .tour5 {
    display: flex;
    padding: 20px 0;
    flex-wrap: wrap;
  }

  .tour5>* {
    display: block;
    margin-right: 20px;
    flex-basis: calc(33.333% - 15px);
  }

  .tour5 .pd-img::before {
    content: "";
    float: left;
    padding-top: 100%;
    box-sizing: border-box;
  }

  .tour5 .pd-img {
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: var(--q-color-primary);
  }

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

  .tour5 .pd-content .block-title {
    font-size: 32px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    line-height: unset;
  }

  .tour5 .pd-content .title-teaser {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    padding: 0;
    margin: 0;
  }

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

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

    .tour5> :nth-child(even) {
      margin-right: 0;
    }

    .tour5 .pd-content {
      padding: 0 10px;
      margin-bottom: 0;
      margin-right: 0;
      flex-basis: 100%;
    }
  }

</style>
