<template>
  <!--圖片連結 - 圖右-->
  <div class="q-mt-lg">
    <section class="tour6 section-block">
      <div class="pd-content">
        <h2 class="block-title">{{plugData.Title}}</h2>
        <p class="title-teaser">
          {{plugData.Describe}}
        </p>
      </div>
      <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>
    </section>
  </div>
</template>

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

</script>

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

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

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

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

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

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

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

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

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

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

    .tour6 .pd-content {
      padding: 0 10px !important;
      margin-bottom: 20px !important;
      margin-right: 0 !important;
      flex-basis: 100% !important;
    }
  }

</style>
