.navbar-brand.logo-control img.logo-img {
    max-height:unset;
}

#t4-footer{
    background-color: #e0eaac;
}
.t4-footnav .container{
  text-align: center;
}
.ja-position-4 {
    margin-bottom: 120px;
}
div#t4-section-1 {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    clip-path: polygon(0 0, 100% 0%, 100% 88%, 48% 100%, 0 89%);

}

#t4-megamenu-mainmenu {
    /*width: 300px;
    left: 400px;*/
}
@media (min-width: 576px) {

}
@media (min-width: 768px) {

}
@media (min-width: 1200px) {

}
@media (min-width: 1400px) {

}
    
.navbar-brand {
    width: 120px;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: -50px;
    z-index: 1;
}
.navbar-brand.logo-control img.logo-img-sm {
    max-height: 132px;
}
@media (min-width: 576px) {
    .container{
        --t4-gutter-x: 0rem;
    }
    
}

@media (min-width: 768px) {
    .t4-masthead-inner {
        padding: 3rem 0;
    }
}


@media (min-width: 992px) {
    .navbar-brand{
        width: unset;
    }
}

/*文章內文*/
.item-page .article-body{
  width: 100%;
}

/*愛鄉出版品mod*/
.multi-item div.owl-carousel div.owl-nav{
    width: 90%;
    place-self: center;
    button.owl-prev,button.owl-next{
        width: 40px;
        height: 40px;
        background: #ffffff8a;
    }
}

/*首頁捷徑acm*/
.acm-features.style-5 .features-list{
    .fd-item .fd-item-inner{
        /*background-color: pink;*/
        border: 1px solid #ddd;
        box-shadow: #ddd -5px 2px 9px 0px;
        border-radius: 8px;
        
        .fd-item-media{
            overflow: hidden;
            object-fit: cover;
            max-height: 180px;
        }
    
        .fd-item-media img{
            border-radius: 8px 8px 0 0;
            transition: all 0.2s ease;
        
            &:hover{
                transform: scale(1.05);
            }
        }
    }
    .fd-item-content{
        padding:20px;
    }
}

/*長橫條卡片：類別文章清單，故事館*/
.list-box .category-desc{
    border: unset;
    > img{
        max-width: 50%;
    }
}

.list-box .blog-items .items-row {
    .item{
        margin-bottom: 25px;
        .item-inner{
            background-color: #fefefe;
            box-shadow: #ddd -5px 2px 9px 0px;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding-bottom: 0;
            margin-bottom: 0;
            transition: all 0.2s ease;
            figure.item-image:after{
                background: -webkit-linear-gradient(bottom, #e8519e, #c77ff2);
            }
            figure.item-image{
                overflow: hidden;
                height: 170px;
                border-radius: 8px 8px 0 0;
                img{
                    border-radius: 8px 8px 0 0;
                }
            }
            .intro-content{
                align-self: flex-end;
                p{
                    justify-self: right;
                    margin-right: 20px;
                }
            }
            .item-content{
                padding: 19px 9px 9px 9px;
                .page-header h2{
                    font-size: 1.1rem;
                }
            }
        }
        &:hover{
            .item-inner{
                box-shadow: #ccc -5px 2px 9px 0px;
            }

        }
    }
}
@media (min-width: 768px) {
    .list-box .blog-items .items-row {
        .item{
            .item-inner{
                figure.item-image{
                    height: 100%;
                    max-height: 200px;
                    border-radius: 8px 0 0 8px;
                    clip-path: polygon(0 0, 100% 0%, 92% 100%, 0% 100%);
                    img{
                        border-radius: 8px 0 0 8px;
                    }
                }
    
            }
        }
    }
}

/*標籤圖片*/
span.tag-body .item-image img {
    display: block;
    max-width: 100%;
    width: 311px;
}

/*單頁文章標籤*/


.article-inner .tags.list-inline li a{
    background: #8eac8b;
    box-shadow: #ccc -2px 2px 4px 0px;
    color: #fff;
    transition: all 0.2s ease;
    &:hover{
        background: #768e73;
        color: #fff;
    }
}

/*部落格文章列表*/
.blog-box .com-content-category-blog .blog-items{
    .item{
        .item-inner{
            border: 1px solid #ddd;
            box-shadow: #ddd -5px 2px 9px 0px;
            border-radius: 8px;
            .item-content{
                margin: 15px;
                .intro-content{
                    .readmore{
                        /*float: right;*/
                        text-align: end;
                    }
                }
            }
            &:hover {
                figure img {
                    -webkit-transform: scale(1.1);
                    transform: scale(1.1);
                    -webkit-transition: all 0.2s ease-in-out;
                    transition: all 0.2s ease-in-out;
                }
                .item-intro img {
                    -webkit-transform: unset;
                    transform: unset;
                    -webkit-transition: unset;
                    transition: unset;
                }
            }
        }
    }
}


/*用於mod_menu 模組，讓li圖文排版RWD，縣政故事*/
/*模組手動加入.mod-menu-card*/
.mod-menu-card.t4-module .module-inner .module-ct {
    nav.navbar ul{
        flex-direction: row;
    }
    nav.navbar ul li.nav-item.active a{
        font-weight: unset;

    }
    nav.navbar ul li.nav-item{
        padding: 5px 10px;
        margin: 5px 0;
        a{
            overflow: hidden;
            border: 1px solid #ddd;
            padding-top: 0;
            border-radius: 8px;
            box-shadow: #ddd -5px 2px 9px 0px;
        }
    
        div.link-type div.img-wrapper {
            overflow: hidden;
        }
        div.link-type div.image-title {
            display: block;
            text-align: center;
            color: #084298;
            font-size: 1.25em;
            text-wrap: auto;
            padding: 10px;
        }
    }
    nav.navbar > li.active > a{
        font-weight: unset;
    }
    nav.navbar ul li.nav-item a img{
        width: 385px;
        height: 180px;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        transition: transform 0.2s ease;
    
        &:hover {
            transform: scale(1.05); /* 滑鼠移入時放大 5% */
        }
    }
}

 /*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
    .mod-menu-card .module-inner .module-ct{
        nav.navbar ul li.nav-item{
            width: 50%;
        }

    }

}

 /*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    
}

 /*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .mod-menu-card .module-inner .module-ct{
        nav.navbar ul li.nav-item{
            width: 33%;
        }

    }
    
}

 /*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    
}

 /*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {
    
}

/*模組大綱文章*/
/*模組手動加入.outline*/

.outline{
    .mod-articles-item {
        flex-direction: column;
        display: flex;
    }
    .mod-articles-title a{
      color: #fff;
    }
    ul.mod-list {
        list-style: none;
        padding-left: 0;
        margin: 11px 0px;
        background: #2a739c;
        li{
          border-bottom: 1px solid #ddd;
          padding: 0 23px;
          background-color: #2a739c;
            &:has(.active) {
                    background-color: #1e5270;
            }
            &:hover{
                  background-color: #1e5270;
            }
        }
    }
}

/*標籤列表頁面*/
.com-tags.tag-category{
  ul.com-tags__category{
    li.noshow{
      display: none;
    }
  }
}

/*標籤文章列表頁面*/


.com-tags-tag.tag-category{
    .list-group{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    
        li.list-group-item{
            display: flex;
            flex-direction: column;
            background-image: linear-gradient(352deg, #e0e0e0, #eeffeb);
            border-bottom: unset;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: #ddd -5px 2px 9px 0px;
            a{
                overflow: hidden;
                order: 1;
                margin-top: -16px;
                border-radius: 8px 8px 0 0;
                font-weight: 300;
                color: #373737;

                    img{
                        object-fit: cover;
                        width: 385px;
                        height: 180px;
                        aspect-ratio: auto;
                        transform: scale(1.05);
                        transition: transform 0.2s ease;
                    }
                img:hover{
                    transform: scale(1.1);
                }
            }

            h3{
                order: 2;
                padding-left: 15px;
            }

            .tag-body{
                order: 3;
                padding: 15px;
                p{
                    color: #373737;   
                }
                ul.tags.list-inline.align-right {
                    text-align: right;
                }
            }
        }
    }

}

@media (min-width: 576px) {
    .com-tags-tag.tag-category{
        .list-group{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            li.list-group-item {
            }
        }
    }
}
@media (min-width: 992px) {
    .com-tags-tag.tag-category{
        .list-group{
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            li.list-group-item {
            }
        }
    }
}



/*國會問政紀錄*/
.senator-archive #t4-main-body{
    /*background-color: pink;*/
}

.senator-archive .row{
    flex-wrap: nowrap;
    overflow: auto;
}

.senator-archive .tl-item {
  transform: translate3d(0, 0, 0);
  position: relative;
  width: 23%;
  height: 70vh;
  min-height: 600px;
  color: #fff;
  overflow: hidden;
  transition: width 0.5s ease;
  border: 1px solid #677420d6;

  h3.page-header a{
      color: #fff;
      font-size: 0.7em;
  }

  &:before,
  &:after {
    transform: translate3d(0, 0, 0);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  &:after {
    /*background: color-mix(in srgb, #e0251b 85%, transparent);*/
    background: #677420;
    opacity: 0.85;
    transition: opacity 0.5s ease;
  }

  &:before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgb(40 47 16) 75%);
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  &:hover {
    width: 27% !important;

    &:after {
      opacity: 0;
    }

    &:before {
      opacity: 1;
      transform: translate3d(0, 0, 0) translateY(0);
      transition: opacity 1s ease, transform 1s ease 0.25s;
    }

    .tl-content {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.75s ease 0.5s;
    }

    .tl-bg {
      filter: grayscale(0);
    }
  }
}
.senator-archive .tl-content {
  transform: translate3d(0, 0, 0) translateY(25px);
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 0.618em;
  top: 55%;
  opacity: 0;

  a{
    color: #fff;
  }
  .category-desc{
    border: unset;
    padding: 0.1rem;
  }
}
.senator-archive{
    .tl-year {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translateX(-50%) translateY(-50%);
       z-index: 1;
       border-top: 1px solid #fff;
       border-bottom: 1px solid #fff;

        p {
          font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial,
          sans-serif;
          font-size: 1.728rem;
          line-height: 0;
        }
    }
    .tl-bg {
      transform: translate3d(0, 0, 0);
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background-size: cover;
      background-position: center center;
      transition: filter 0.5s ease;
      filter: grayscale(100%);
    }
}

@media (min-width: 992px) {

}
@media (min-width: 1200px) {
    .senator-archive .tl-item {
      width: 15%;
      h3.page-header a{
          font-size: 0.8em;
      }
      &:hover {
        width: 17% !important;
      }
    }
}
@media (min-width: 1400px) {
    .senator-archive .tl-item {
      width: 11%;
      h3.page-header a{
          font-size: 0.8em;
      }
      &:hover {
        width: 14% !important;
      }
    }
}

/*RS!blog*/
.rsblog-main-container{
    #rsblog-container{
        display: flex;
        flex-flow: wrap;
    }
    .rsblog-post{
        width: 50%;
        .ais-rsblog{
            display: flex;
            flex-direction: column;
            margin: 9px;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 8px;
            box-shadow: #ddd -5px 2px 9px 0px;
            h2.rsblog-entry-title{
             font-size: 1.3em;
             a{
                color: #000;
             }
            }
            header{
                /*order: 2;*/
                .rsblog-entry-meta{
                   display: none;
                }
            }
            .rsblog-entry-content{
                /*order: 1;*/
            }
            footer.rsblog-entry-meta{

                display: none;
            }
        }

    }
}
.rsblog-main-post-container{
    article.rsblog-post{
        footer.rsblog-entry-meta{
            border-top: unset;
            border-bottom: unset;
        }
        .rsblog-entry-header {
            margin-bottom: 30px;
            text-align: center;
        }

    }

}

/*反濱南年表*/
.article-inner ul.yr-table {
    border-left: 2px solid #1e5270;
    text-indent: -38px;
    padding-left: 8px;
    list-style-type: none;
    li{
      margin-bottom: 2em;
      padding-left: 1em;
      &:before{
        content: "◉";
        color: #1e5270;
        padding-right: 20px;
        font-size: 1.6em;
        vertical-align: middle;
      }
      span.year{
        font-size: 1.5em;
        color: #1e5270;
        font-style: italic;
        font-weight: 800;
        &:after{
          content: "\A";
          font-weight: 800;
          color: #1e5270;
          white-space: pre; 
        }
      }
    }
}


/*出版品*/
@media (min-width: 420px) {
    .bookshelf .article-inner {
    }
}

@media (min-width: 991px) {
    .bookshelf .article-inner {
        background-image: url(/images/wooden_bookshelf.png);
        background-size: 92%;
        background-repeat: repeat-y;
        background-position: 84px -84px;
    }
}
