/* 所有樣式都限定在 .t180-fcp 內，避免影響其他外掛 */

.t180-fcp .t180-fcp-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;   /* ← 1~3張圖永遠同排居中 */
}

.t180-fcp .t180-fcp-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  /* 寬度由 PHP inline style 的 width / max-width 決定 */
  flex: 0 0 auto;
}

.t180-fcp .t180-fcp-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* full / large 時撐滿整列 */
.t180-fcp .t180-fcp-gallery[data-size="full"]  .t180-fcp-item,
.t180-fcp .t180-fcp-gallery[data-size="large"] .t180-fcp-item {
  flex: 1 1 100%;
  max-width: 100% !important;
  width: 100% !important;
}

/* 播放中動畫 */
.t180-fcp .t180-fcp-item.is-playing {
  animation: t180_fcp_pulse 1.2s infinite;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transition: all 0.3s ease;
}

@keyframes t180_fcp_pulse {
  0%   { transform: scale(1.05); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  50%  { transform: scale(1.10); box-shadow: 0 0 22px rgba(255, 215, 0, 0.7); }
  100% { transform: scale(1.05); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
}

/* 手機響應：圖太大時自動縮 */
@media (max-width: 520px) {
  .t180-fcp .t180-fcp-item {
    max-width: 100% !important;
    width: 100% !important;
  }
}
