html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

*. {
    box-sizing: border-box;
}
@font-face{
  font-family: 'draft';
  src: url(fonts/XiaoLinweb-Regular.otf) format('opentype');
  font-weight: 400;
  font-style: normal;
}

body {
    font-family: "draft", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: black;
    background-color: #fff;
    font-variant-numeric: oldstyle-nums stacked-fractions;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: none;
    height: 100vh;
    width: 100%;
    font-family: draft;
    opacity: 1;
    transition: 2s all ease-in;
    overflow: hidden;
}

.main {
    overflow: hidden;
}
.background {
    width: 100%;
    height: 100%;
    position: fixed;
    display: none;
    overflow: hidden;
    overflow-x: hidden;
    /* transition: 2s all ease-in; */
    /* background: red; */
}

body * {
    font-family: draft;
}

a {
    color: black;
}

a:hover, a:focus, a:active {
    color: #000;
    text-decoration: none;
}

.info {
    position: fixed;
    right: 60px;
    top: 8.1vh;
    z-index: 1000;
    width: 100%;
    display: none;
}

.info a {
    text-align: center;
    font-size: 19px;
    display: block;
}

.info .info-a {
    position: absolute;
    right: 60px;
}

.info a:hover {
    color: #ECBFB0;
}

.info div a {
    display: block;
}

.contents {
    margin-left: 20px;
    margin-right: 20px;
    height: 100vh;
}

.title {
    position: absolute;
    bottom: 0px;
    width: 100%;
}

.vh80 {
    height: 80vh;
    top: 10vh;
    position: relative;
}

.trigger-text, .trigger-subtitle {
    /* background-color: whitesmoke;*/
    right: 0;
    font-size: 19px;
    transition: .2s all ease-in;
    overflow: hidden;
    overflow-y: hidden;
    padding-left: 0;
    z-index: 100000;
}


.trigger-video {
    right: 0;
    font-size: 19px;
}

.trigger {
    cursor: pointer;
    line-height: 50px;
}

.trigger-video {
    margin-top: 0vh;
    margin-left: 0px;
}

.my-effect {
    bottom: 16vh;
}

.trigger-text .title {
    bottom: 16vh;

}

.title {
    transition: .5s all ease-in;
}

.trigger-video .title {
    padding-right: 0px;
}

.trigger-subtitle {
    text-align: center;
    position: absolute;
    min-width: 248px;
    z-index: 10000;
    /* left: 994px; */
    top: 0;
}

.trigger-subtitle.special-index {
    /* left: 746px; */

}

.trigger-video, .trigger-text {
    font-size: 45px;
    /*background-color: #9d9d9d;*/
}

.video-index {
    overflow: hidden;
    overflow-y: hidden;
    height: 100%;
    margin-top: 30px;
    padding-bottom: 30px;
    /* background-color: white; */
}

.wrap {
    transition: .2s all ease-in;
    padding-top: 0px;
}

.wrap::-webkit-scrollbar {
    width: 0 !important;
}

.content-slider > li:first-child {
    padding-top: 0;
}

p {
    margin: 0;
}

.video-subtitle {
    /* height: 68px; */
    min-width: 250px;
    position: absolute;
    /*bottom: calc(150px + 6px);*/
    bottom: 17vh;
    /*padding-left: 16px;*/
    padding-left:6px;
    transition: .5s all ease-in;
    text-align: left;
    font-size: 18px;
    display: none;
    right: -16px;
    padding-top: 0px;
}


#mep_0 {
    /* position: relative; */
}

.mejs__controls {
    opacity: 1 !important;
    background: none !important;
}

.mejs__controls .mejs__time-rail {
    display: none;
}

.mejs__button > button {
    right: 0px;
}

.mejs__overlay-button {
    display: none;
}

.mejs__container {
    background-color: transparent !important;
}

#simple-vertical {
    width: 100%;
    color: #FFF;
}

.blockSample {
    left: 20px;
    top: 20px;
    padding: 6px 8px;
    background: #FFF;
    color: #000;
}

.lSAction > a {
    background-image: url('../images/controls.png') !important;
}

.img-responsive {
    width: 250px;
    height: 141px;
}

.video-index ul, .video-index li {
    list-style: none;
}

.video-index ul {
    padding-left: 0;
    margin: 0;
}

.video-index li {
    margin-bottom: 5px;
}

.video-index li:last-child {
    margin-bottom: 0px;
}

::-webkit-scrollbar {
    width: 3px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.content-slider .thumb-image {
    display: none;
}

.thumb-text {
    /*border-bottom: 1px solid grey;*/
    text-align: center;
    padding: 5px 5px;
    transition: .2s all ease-in;
}
.vp-controls-wrapper {
    display: none !important;
}
.thumb-text h2 {
    /*background-color: #9d9d9d;
    color: white;*/
}

.thumb-project:hover {
    color: #ECBFB0;
    cursor: pointer;
}
#thumb-bk[src=""] {
    display: none;
}
#thumb-bk {
    width: 250px !important;
    height: 141px !important;
    background: white;
    z-index: 99;
    bottom: 104px;
}

#thumb-bk::before {
    position: absolute;
    width: 250px;
    height: 141px;
    content: ' ';
    background-image: url('../images/t-bk.png');
    background-color: transparent;
    background-repeat: no-repeat;
}

.video-column {
    z-index: 100;
    width: calc(100% - 15px);
    position: absolute;
    bottom: 0px;
}

.write {
    font-size: 45px;
    display: inline-block;
    width: auto;
    line-height: 50px;
}

.project-name {
    line-height: 18px;
    margin-bottom: 6px;
}

.project-name-2 {
    /* padding-top: 10px; */
    /* margin-top: -5px; */
    line-height: 18px;
}

.content-slider {
    text-align: center;
    padding-bottom: 30px;
}
ul.content-slider li.thumb-div div.thumb-text.thumb-project h3.subtitle-text,
ul.content-slider li.thumb-text h2.index-header,
ul.content-slider li.thumb-div div.thumb-text.thumb-project h4.subtitle2-text,
.index-maker {
    font-size: 19px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

ul.content-slider li.thumb-div div.thumb-text.thumb-project h3.subtitle-text {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: -10px !important;

}
.movie-title {
    cursor: pointer;
}
.movie-title, .index-maker-description {
    margin: 0;
    font-size: 19px;
}

.index-maker-description {
    margin-top: 5px;
    display: none;
}
.thumb-div.viewed {
    color: rgba(153,153,153,0.6);
}

.thumb-div.viewed.active {
    color: #ECBFB0;
}

.index-maker {
    margin-bottom: 0px !important;
    margin-top: 20px !important;
}

ul.content-slider li.thumb-text h2.index-header,
div.thumb-text.thumb-project h2.index-header {
    margin-top: 20px !important;
}

ul.content-slider > li:first-child > h2.index-header {
    margin-top: 0 !important;
}

#fade_effect {
    visibility: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.trigger-text {
    width: 160px;
    display: inline-block;
    float: left;
}
.video-wrapper {
    width: calc(100vw - 200px);
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    padding-left: 6px;
    /* max-width: 1250px; */
}

.thumb-div img {
    display: none;
    width: 200px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (max-width: 1260px) {

    .trigger-video .title {
        /*bottom: -0px;*/
    }

    #thumb-bk {
        /* bottom: -0px !important; */
    }

    .trigger-text .title {
        /*bottom: -0px;*/
    }

    .video-subtitle {
        /*bottom: 8px;*/
        padding-top: 0;
    }

    #fade_effect {
        width: 557px !important;
        height: 313px !important;
        /*max-width: 80vw;*/
        max-width: 557px;
    }

    .trigger-subtitle {
        left: auto !important;
    }
}

@media only screen and (max-width: 992px) {

    .thumb-div img {
        display: block;
    }

    .trigger {
        text-align: left !important;
    }
    .title {
        position: static;
    }

    .trigger-text .title {
        bottom: -0px;
    }

    .trigger-video .title {
        position: absolute;
        top: 0;
    }

    .video-column.title {
        position: relative;
    }

    .video-index {
        max-width: 100%;
        display: block;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 0px;
        position: relative;
        overflow: hidden;
        overflow-y: hidden;
    }

    .video-subtitle {
        position: relative;
        height: auto;
        bottom: 0;
        padding-left: 0 !important;
    }

    .trigger-video {
        visibility: visible;
    }

    .trigger-subtitle {
        margin-top: 10px;
        position: inherit;
        display: none;
        right: 0 !important;


    }

    .contents > div.row {
        position: relative;
    }

    .video-wrapper {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0 !important;
    }

    .video-wrapper > div {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0 !important;
    }

    .vh80 {
        height: auto;
        width: calc(100% - 40px) !important;
    }

    .contents {
        margin-top: 13vh;
    }
    .vh80 {
        top: 0px;
    }

    .mobile-title {
        display: block !important;
        padding-left: 15px;
    }

    .mobile {
        display: block;
    }

    .info {
        right: 0px;
    }

    #thumb-bk {
        display: none !important;
    }

    .video-subtitle {
        padding-left: 0 !important;
        display: block;
    }


    .trigger-text {
        margin-left: 0px !important;
    }

    #fade_effect {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
    }
    body {
        overflow: hidden;
        position: relative;
    }

    #info {
        display: block;
    }

    #info a {
        display: block !important;
    }

    .video-column{
        width: 100%;
    }

    .contents {
        height: auto;
        /* position: fixed; */
        width: 100%;
        padding: 0;
    }

    .main {
        height: 100vh;
        position: fixed;
        width: 100%;
        overflow: hidden;
    }

    #mobile-list {
        padding-top: calc(13vh + 80px)

    }

    .mobile-scroll-title {
        width: 92%;
        margin: 0 auto;
    }

    .vh80 {
        position: relative;
    }

    .trigger-text .title {
        display: table;
        position: relative;
        width: 92%;
    }

    #mobile-list > .mobile-vid > iframe {
        height: 35vh;
        width: 92%;
        margin: 0 auto;
        display: block;
    }
}


.trigger-text {
    margin-top: 0px !important;
}

.title {
    font-size: 50px !important;
}

.video-title {
    z-index: 98;
    width:100%;
}
.video-title, .trigger-video {
    margin-top: 0px !important;
}

.mejs__button>button {
    background-image: url('../images/attachment.png') !important;
    background-size: cover !important;
}


#video-height {
    min-height: 45vw;
    height: 100%;
}
#video-height::after, #video-height::before {
    display: table;
    content: " ";
    clear: both;
    width: 100%;
}
/*
.video-index:after {
    position: absolute;
    content: "";
    left: 0px;
    top: 86%;
    height: 14%;
    width: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
  }

  .video-index:before {
    position: absolute;
    content: "";
    left: 0px;
    top: 30px;
    height: 75px;
    width: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  } */


.video-index::after {
    bottom: 0;
}

.dott {
    width: 14px;
    text-align: right;
    display: inline-block;
}
@media (min-width: 1260px) and (max-width: 1799px) {
    /*.size-1 #fade_effect {
        width: 557px !important;
        height: 313px !important;
        /*max-width: 70vw;*/
    /*    max-width: 100%;
        margin-bottom: 16px;
    } */
    .size-1 #fade_effect {
        width: 673px !important;
        height: 392px !important;
        /*max-width: 70vw;*/
        max-width: 100%;
        margin-bottom: 16px;
    }
    .size-2 #fade_effect {
        width: 836px !important;
        height: 470px !important;
        /*max-width: 70vw;*/
        max-width: 836px;
    }
    .size-3 #fade_effect {
        width: 979px !important;
        height: 551px !important;
        /*max-width: 70vw;*/
        max-width: 979px;
    }

    .size-4 #fade_effect {
        width: 1077px !important;
        height: 606px !important;
        /*max-width: 70vw;*/
        max-width: 1077px;
    }
    /* 外層容器，左對齊影片 */
.video-content {
    display: flex;
    justify-content: flex-start;   /* ✅ 改成左對齊 */
    align-items: center;         /* ✅ 垂直置中 */
    height: 100vh;
}

/* 影片容器區塊 */
.size-5 .video-column {
    flex-shrink: 0;
    margin-left: 1px;       /* ✅ 根據 ujint. 左邊距離調整 */
    margin-right: 20px;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Vimeo 包覆層 */
.size-5 #fade_effect {
    width: 300px;
    height: 100vh;
    max-width: 26%;
    aspect-ratio: 9 / 16;
    display: block;
    background-color: transparent;
}

/* Vimeo iframe */
.size-5 #fade_effect iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;         /* ✅ 移除位移 */
    margin-top: 12vh;        /* ✅ 用 margin 微調即可，防止飛出畫面 */
    border: none;
    display: block;
}

/* ✅ 右側標題文字區塊 */
.size-5 .project-name,
.size-5 .project-name-2 {
  margin-left: clamp(300px, 22vw + 2rem, 600px);
  font-size: 18px;
  white-space: nowrap;
  text-align: left;
  display: block;
  z-index: 2;
}

/* ✅ 第二行標題文字間距 */
.size-5 .project-name-2 {
  margin-top: 8px;
}

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


    .wrapper .video-column .write, .wrapper .video-column .to-hide {
        font-variant-numeric: oldstyle-nums stacked-fractions;
        vertical-align: bottom;
        line-height: 1;
        position: absolute;
        bottom: 16.7vh;
        min-width:  1000px;
    }
    .trigger-text .title {
bottom:150px;
}
 .video-subtitle {
  bottom:  calc(150px + 6px);
}
.my-effect{
    bottom:150px;
}
}

.movie-title:hover {
    color: #ECBFB0;
}
.special-index {
    right: 210px;
    display: none;
}

.playlist:hover {
    color: #ECBFB0;
}

.mobile-index {
    display: none;
}

.mobile .contents {
    margin-top: 20vh;
}
.mobile .video-column {
    bottom: inherit;
}
.mobile.landscape .contents {
    margin-top: 16vh;
}
.mobile.landscape .info {
    top: 3.1vh;
}

.mobile.landscape .trigger-text {
    /* width: 2.5em !important; */
    width: 120px !important;
}
.mobile.landscape .trigger {
    text-align: right !important;
}

.mobile.landscape .video-wrapper {
    width: calc(100vw - 150px) !important;
}

.mobile.landscape #fade_effect {
    width: 70% !important;
    /* float: left; */
    position: relative !important;
    /* top: 40px; */
    display: inline-block;
    height: calc((100vw - 150px) * 0.7 * 0.5625) !important;
}
/*.mobile.landscape .video-subtitle {
    /* width: 28%; */
    /* float: left; */
   /* min-width: inherit;
    top: -50px; */
    /* padding-left: 16px !important; */
    /*position: relative !important;
    display: inline-block;
    width: calc(30% - 18px);
}*/

/*18-08*/

.mobile.landscape .video-column {
    position: relative;
}

.mobile.landscape .video-subtitle {
    min-width: inherit;
    top: 50%;
    transform: translate(0%, -25%);
    padding-left:6px !important;
    position: absolute!important;
    display: inline-block;
    width: calc(30% - 18px);
}

.mobile.landscape .trigger-video {
    min-height: inherit !important;
}
.mobile.landscape .vh80 {
    height: 80vh;
}

.mobile.landscape .title {
    position: absolute !important;
    top: 120px !important;

}

.mobile.landscape .trigger-video .title {
    top: inherit;
}

.mobile.landscape .video-column {
    /* height: 100%; */
    top: 40px !important;
    /* position: absolute;
    bottom: 0; */


}

.real-mobile .mejs__controls {
    /*display: none !important;*/
}


.playlist-wrapper {
    min-width: 248px;
    float: left;
}

.mejs__fullscreen-button {
    position: absolute;
    right: 0;
}

/* .mejs__inner {
    width: 100%;
    height: 100%;
} */
.mejs__fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    background-color: black;
}

.mejs__fullscreen .video-column {
    z-index: 1000000;
}

.mejs__fullscreen .main {
    z-index: 100000;
}
h2.movie-title {
    text-decoration: none;
}




/*IPHONE 6/7/8 */
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
 .mobile.landscape .title {
        position: absolute !important;
        top: 35% !important;
 }

 }

/*IPHONE 8 + */
@media only screen
    and (device-width : 414px)
    and (device-height : 736px)
    and (-webkit-device-pixel-ratio : 3)
    and (orientation : landscape)
 {

 .mobile.landscape .title {
        position: absolute !important;
        top: 38% !important;
 }

}



/*IPHONE X*/

@media only screen
    and (min-device-width : 375px)
    and (max-device-height : 812px)
    and (-webkit-device-pixel-ratio : 3)
    and (orientation : landscape)
 {

 .mobile.landscape .title {
        position: absolute !important;
        top: 47% !important;
 }
}










@media(min-width:1800px){
/*.size-1 #fade_effect {
        width: 557px !important;
        height: 313px !important;
        /*max-width: 70vw;*/
    /*    max-width: 100%;
        margin-bottom: 16px;
    } */
    .size-1 #fade_effect {
      width: 673px !important;
    height: 392px !important;
    /*max-width: 70vw;*/
    max-width: 100%;
    margin-bottom: 16px;
    }
    .size-2 #fade_effect {
        width: 49% !important;
        height: auto !important;
        /*max-width: 70vw; 41% */
        max-width: 100%;
    }
    .size-3 #fade_effect {
        width: 60% !important;
        height: auto !important;
        /*max-width: 70vw;*/
        max-width: 100%;
    }

    .size-4 #fade_effect {
        width: 80% !important;
        height: auto !important;
        /*max-width: 70vw;*/
        max-width: 100%;
    }
    /* 外層容器，左對齊影片 */
.video-content {
    display: flex;
    justify-content: flex-start;   /* ✅ 改成左對齊 */
    align-items: center;         /* ✅ 垂直置中 */
    height: 100vh;
}

/* 影片容器區塊 */
.size-5 .video-column {
    flex-shrink: 0;
    margin-left: 1px;       /* ✅ 根據 ujint. 左邊距離調整 */
    margin-right: 20px;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Vimeo 包覆層 */
.size-5 #fade_effect {
    width: 300px;
    height: 100vh;
    max-width: 26%;
    aspect-ratio: 9 / 16;
    display: block;
    background-color: transparent;
}

/* Vimeo iframe */
.size-5 #fade_effect iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;         /* ✅ 移除位移 */
    margin-top: 12vh;        /* ✅ 用 margin 微調即可，防止飛出畫面 */
    border: none;
    display: block;
}

/* ✅ 右側標題文字區塊 */
.size-5 .project-name,
.size-5 .project-name-2 {
  margin-left: clamp(300px, 22vw + 2rem, 600px);
  font-size: 18px;
  white-space: nowrap;
  text-align: left;
  display: block;
  z-index: 2;
}

/* ✅ 第二行標題文字間距 */
.size-5 .project-name-2 {
  margin-top: 8px;
}

}

/*css for the font*/
@media(min-width:1921px)

{
    body {
    font-size: 100%;
}
.playlist-wrapper a
{
    font-size: 1.7em!important;
}
.movie-title,ul.content-slider li.thumb-text h2.index-header,.index-maker{
    margin: 0;
    font-size: 1.3em!important;
}
.video-index li {
    margin-bottom: 8px;
}


}



@media(min-width:2800px)

{
    body {
    font-size: 100%;
}
.playlist-wrapper a
{
    font-size: 2.5em!important;
}
.movie-title,ul.content-slider li.thumb-text h2.index-header,.index-maker{
    margin: 0;
    font-size: 1.8em!important;
}
.video-index li {
    margin-bottom: 12px;
}

}


/* ---------- 手機 RWD ---------- */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .size-5 .video-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    margin: 0 auto;
    height: auto;
  }

  .size-5 #fade_effect {
    width: 100vw;
    height: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
  }

  .size-5 #fade_effect iframe {
    width: 100%;
    height: auto;
    min-height: 60vh;
    object-fit: contain;
    margin-top: 0;
    display: block;
  }

  .size-5 .project-name,
  .size-5 .project-name-2 {
    margin-left: 20px;
    margin-top: 12px;
    font-size: 14px;
    white-space: normal;
  }
}
/* 強制斜體（含手機）*/
.index-maker,
.force-italic{
  font-style: normal !important;   /* 避免被假 italic 影響 */
  display: inline-block;
  transform: skewX(-12deg);
  -webkit-transform: skewX(-12deg);
  transform-origin: left center;
}

