@charset "UTF-8";
/* =======================================
 * [p-home.scss]
 * 首頁專屬樣式 (美感優化版)
 * ======================================= */
/* 🎛 濾鏡按鈕（作品分類） */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  margin-top: 32px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark, #333);
  background-color: var(--color-white, #fff);
  border: 1px solid var(--color-gray-bg, #eee);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--color-cta, #e6e0ff);
  color: var(--color-dark, #431f9c);
  border-color: var(--color-cta, #e6e0ff);
  box-shadow: 0 4px 10px rgba(67, 31, 156, 0.2);
  transform: scale(1.02);
}

/* 🖼 圖片牆（Gallery） - "Naive Blue" 佈局 */
.portfolio-gallery {
  display: grid !important;
  float: none !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 56px;
}

.gallery-item {
  float: none !important;
  width: 100% !important;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  /* [!!] 關鍵修改 #1：
   * 1. 移除 'background' (使其透明)
   * 2. 移除 'box-shadow'
   * 3. 擴展 'transition' 以包含陰影
   */
  background: transparent;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */ /* <- 移除預設陰影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* <- 擴展 transition */
}

/* [!!] 關鍵新增 #2：
 * 增加 'hover' 效果，使其「浮動」
 */
.gallery-item:hover {
  transform: translateY(-5px); /* 向上浮動 5px */
  /* 在 hover 時才加上陰影，創造浮動感 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-item img,
.gallery-item picture {
  width: 100%;
  height: 100%;
  object-fit: contain; /* (維持原始比例) */
  object-position: center;
  max-width: 100%;
}