/* ========================================
   Simple Diapo - 輪播圖樣式
   所有裝置都完整顯示圖片，不裁切
   ======================================== */

/* ========================================
   基本容器設定
   ======================================== */
  .simple-diapo-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
  }
  
  /* Gallery 區塊設定 */
  .simple-diapo {
    display: block;
    width: 100%;
  }
  
  .simple-diapo figure {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* ========================================
     標題連結
     ======================================== */
  .simple-diapo-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: block;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 5rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }

  .simple-diapo-title:hover {
    color: rgba(255, 255, 255, 1);
  }

  /* ========================================
     Slide 幻燈片設定
     ======================================== */
  .simple-diapo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    z-index: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 第一張圖片預設顯示 */
  .simple-diapo-slide:first-child {
    opacity: 1;
    z-index: 1;
    visibility: visible;
  }
  
  /* ========================================
     圖片設定
     填滿容器，比例不變，超出裁切（object-fit: cover）
     ======================================== */
  .simple-diapo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  /* ========================================
     左右箭頭按鈕
     ======================================== */
  .simple-diapo-prev,
  .simple-diapo-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: rgba(242, 240, 240, 0.4);
    border: none;
    padding: 0.5em 0.8em;
    cursor: pointer;
    z-index: 10;
    font-size: 1.8rem;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
    display: block;
  }

  .simple-diapo-prev:hover,
  .simple-diapo-next:hover {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(242, 240, 240, 0.8);
  }
  
  .simple-diapo-prev {
    left: 20px;
  }
  
  .simple-diapo-next {
    right: 20px;
  }
  
  /* ========================================
     Dots 導航點
     ======================================== */
  .simple-diapo-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  
  .simple-diapo-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
  }
  
  .simple-diapo-dot.active,
  .simple-diapo-dot:hover,
  .simple-diapo-dot:focus {
    background: rgba(255, 255, 255, 1);
  }
  
  /* ========================================
     轉場效果模式
     ======================================== */
  /* Slide 模式 */
  .simple-diapo-container.slide .simple-diapo-slide {
    transition: transform 0.5s ease;
  }
  
  /* Fade 模式 */
  .simple-diapo-container.fade .simple-diapo-slide {
    transition: opacity 0.5s ease;
  }
  
  /* ========================================
     桌面版 fallback-absolute 定位
     當 relative 定位失效時使用
     ======================================== */
  .simple-diapo-container.fallback-absolute {
    position: absolute !important;
    top: 0;
    left: 330px; /* 左側選單寬度 300px + 30px 間距 */
    right: 0;
    bottom: 0;
    z-index: 1;
    width: calc(100vw - 330px);
  }
  
  /* ========================================
     平板版（1024px 以下）
     ======================================== */
  @media (max-width: 1024px) {
    .simple-diapo-container {
      height: 80vh;
      min-height: 80vh;
    }
    
    .simple-diapo-prev,
    .simple-diapo-next {
      font-size: 1.5rem;
      padding: 0.4em 0.7em;
    }
  }
  
  /* ========================================
     手機版（768px 以下）
     ======================================== */
  @media (max-width: 768px) {
    
    /* 容器設定 */
    .simple-diapo-container {
      height: 70vh;
      min-height: 70vh;
    }
    
    /* Slide 設定 */
    .simple-diapo-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* 圖片設定 - 填滿容器，比例不變，超出裁切 */
    .simple-diapo-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    
    /* 隱藏左右箭頭 */
    .simple-diapo-prev,
    .simple-diapo-next {
      display: none;
    }
    
    /* Dots 位置調整 */
    .simple-diapo-dots {
      bottom: 20px;
    }
    
    /* fallback-absolute 在手機版的設定 */
    .simple-diapo-container.fallback-absolute {
      position: relative !important;
      top: 0;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      height: 70vh !important;
      min-height: 70vh !important;
    }
  }
  
  /* ========================================
     小螢幕手機（480px 以下）
     ======================================== */
  @media (max-width: 480px) {
    .simple-diapo-container {
      height: 70vh;
      min-height: 70vh;
    }
    
    .simple-diapo-container.fallback-absolute {
      height: 70vh !important;
      min-height: 70vh !important;
      width: 95vw !important;
    }
    
    .simple-diapo-dots {
      bottom: 15px;
      gap: 6px;
    }
    
    .simple-diapo-dot {
      width: 10px;
      height: 10px;
    }
  }