/* ========================================
   MOVIE 影片區塊
======================================== */

.movie-section {
  position: relative;
  display: grid;
  width: 100%;
  align-items: center;  
}

/* MOVIE 背景 */
.movie-background {
  grid-area: 1 / 1;

  align-self: center;

  width: 100%;
  height: 500px;

  object-fit: cover;
  object-position: center;

  z-index: 0;
}

/* MOVIE 內容 */
.movie-content {
  grid-area: 1 / 1;

  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 90%;
  max-width: 1500px;
	min-width: 0;

  margin: 0 auto;

  text-align: center;

  z-index: 2;
}

/* =========================
   MOVIE 標題
========================= */

.movie-title {
  color: #fff;
}


/* 標題裝飾 */
.movie-title-decoration {
  display: block;

  width: 420px;
  max-width: 70%;

  margin: 0 auto;
}


/* =========================
   影片區
========================= */

.movie-slider {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  margin-top: 35px;
}

/* 影片可視範圍 */
.movie-list-viewport {
  width: calc(360px * 3 + 35px * 2);
  max-width: 100%;

  margin: 0 auto;

  overflow: hidden;
}


/* 滑動本體 */
.movie-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  gap: 35px;

  width: max-content;

  /* 這裡不要 auto */
  margin: 0;

  transform: translate3d(0, 0, 0);

  transition: transform 0.55s ease-in-out;

  will-change: transform;
  backface-visibility: hidden;
}


/* 每一張影片 */
.movie-item {
  position: relative;

  display: grid;

  width: 360px;
  flex: 0 0 359px;

  padding: 0;

  border: 1px solid #a78245;
  background: transparent;

  overflow: hidden;

  cursor: pointer;
}


/* 封面與播放按鈕放在同一格 */
.movie-item > img:first-child,
.movie-play {
  grid-area: 1 / 1;
}


/* 影片封面 */
.movie-item > img:first-child {
  display: block;

  width: 100%;
  height: auto;

  filter: brightness(0.45);

  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}


/* hover */
.movie-item:hover > img:first-child {
  filter: brightness(1);

  transform: scale(1.02);
}


/* 播放按鈕 */
.movie-play {
  position: relative;

  justify-self: center;
  align-self: center;

  width: 80px !important;
  height: auto;

  pointer-events: none;

  z-index: 2;
}


/* =========================
   左右切換按鈕
========================= */
.movie-arrow-wrap {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 25px;

  margin-top: 30px;
}

.movie-arrow {
  position: relative;

  flex: 0 0 auto;

  width: 55px;

  border: none;
  background: transparent;

  cursor: pointer;

  z-index: 5;
}


.movie-arrow img {
  display: block;

  width: 100%;
  height: auto;

  transition: filter 0.2s ease;
}


.movie-arrow:hover img {
  filter: brightness(0.65);
}


/* ========================================
   MOVIE YouTube 彈窗
======================================== */

.movie-modal {
  position: fixed;

  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 99999;
}


.movie-modal.is-open {
  opacity: 1;
  visibility: visible;
}


/* 黑色遮罩 */
.movie-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.75);
}


/* 彈窗本體 */
.movie-modal-content {
  position: relative;

  width: 1000px;
  max-width: 85%;

  z-index: 2;
}


/* YouTube */
.movie-video {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;
}


.movie-video iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: none;
}


/* 關閉按鈕 */
.movie-close {
  position: absolute;

  top: -50px;
  right: 0px;

  width: 65px;

  border: none;
  background: transparent;

  cursor: pointer;

  z-index: 3;
}


.movie-close img {
  display: block;

  width: 100%;
  height: auto;

  transition: filter 0.2s ease;
}


.movie-close:hover img {
  filter: brightness(0.7);
}
/* ========================================
   ipad
======================================== */

/* ========================================
   手機版/mini
======================================== */
@media (max-width:780px){
.movie-content {
width: 80%;
}
	
.movie-title {
 font-size: 35px;
}
/* 每一張影片 */
.movie-item {
  flex: 0 0 310px;
}
	
.movie-arrow {
  width: 45px;
}
	
.movie-list {
  gap: 15px;
}
	
  } 
/*手機板範圍 */

