.my-gallery {
  display: grid;
  gap: 10px;
}
.my-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.my-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.my-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.my-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.my-gallery.cols-6 { grid-template-columns: repeat(6, 1fr); }

.my-gallery .item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.ck-content .my-gallery { display: grid; gap: 10px; }
.ck-content .my-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ck-content .my-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ck-content .my-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ck-content .my-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.ck-content .my-gallery.cols-6 { grid-template-columns: repeat(6, 1fr); }
.ck-content .my-gallery .item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}


.album {
  max-width: 800px;
  margin: auto;
}

.album-slider img {
  width: 100%;
  border-radius: 8px;
}

/* === 縮圖區 === */
.album-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 0 2px; /* ✅ 左右留白避免切邊 */
  box-sizing: border-box;
}

/* ✅ 改成 RWD 動態 gap */
@media (min-width: 992px) {
  .album-thumbs {
    gap: 8px;
  }
}
@media (max-width: 991px) and (min-width: 576px) {
  .album-thumbs {
    gap: 6px;
  }
}
@media (max-width: 575px) {
  .album-thumbs {
    gap: 4px;
  }
}

.album-thumbs img {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: all 0.4s ease;
  object-fit: cover;
  box-sizing: border-box;
  outline: 2px solid transparent; /* ✅ 避免紅框被裁切 */
  outline-offset: -2px;
  opacity: 0.6;
  height: auto;
}

.album-thumbs img:hover {
  opacity: 0.9;
}

/* === 當前縮圖動畫更明顯 === */
.album-thumbs img.active {
  border-color: #f55;
  transform: scale(1.08);
  opacity: 1;
  animation: thumbActiveBlink 0.5s ease;
}

/* ✅ 更明顯的紅框閃動與亮度動畫 */
@keyframes thumbActiveBlink {
  0% {
    border-color: transparent;
    filter: brightness(0.8);
    transform: scale(1.0);
  }
  50% {
    border-color: #ff7777;
    filter: brightness(1.2);
    transform: scale(1.1);
  }
  100% {
    border-color: #f55;
    filter: brightness(1);
    transform: scale(1.08);
  }
}

/* --- RWD 高度設定 --- */
@media (min-width: 992px) {
  .album-thumbs img { height: 80px; }
}
@media (max-width: 991px) and (min-width: 576px) {
  .album-thumbs img { height: 70px; }
}
@media (max-width: 575px) {
  .album-thumbs img { height: 60px; }
}

.slick-placeholder {
  background: #f0f0f0;
  border: 1px dashed #aaa;
  min-height: 200px ;
  padding: 10px;
  color: #555;
  text-align: center;
  font-style: italic;
  display: flex;
  align-items: center;     /* 垂直置中 */
  justify-content: center; /* 水平置中 */
}