.and-book-detail-layout {
  gap: 0px 28px;
}

/* 分頁列 sticky 固定：祖先若 overflow:hidden 會失效，書籍詳情頁改為 visible */
body.page-book-detail .container,
body.page-book-detail .container .wrap,
body.page-book-detail .and-inner-layout,
body.page-book-detail .layout-right {
  overflow: visible;
}

/* 本頁 site header 不吸頂，滾動後讓分頁列可貼齊視窗最上方 */
body.page-book-detail .and-header {
  position: relative;
  z-index: 100;
}

/* 內容區上方 banner */
/* ========== 單書頁 Banner 輪播 ==========
   切版原本是 220px 高、背景圖寫死的空 div；接資料庫後改為 swiper 輪播，
   結構與活動專區 Banner 相同（include/banner_section.php 共用元件）。
   高度依經理確認的限定尺寸 950 × 300 換算：容器滿寬時比例 3.167:1，
   用 aspect-ratio 讓它跟著容器寬度縮放，圖片不會被拉扁。
   沒有 Banner 資料時整個元件不輸出，不留空框。 */
.and-book-detail-banner-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  position: relative;
}

.and-book-detail-banner-wrap .and-book-detail-banner-swiper {
  width: 100%;
  aspect-ratio: 950 / 300;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* 不支援 aspect-ratio 的舊瀏覽器：退回固定高度（950 寬時的 300） */
@supports not (aspect-ratio: 1 / 1) {
  .and-book-detail-banner-wrap .and-book-detail-banner-swiper {
    height: 300px;
  }
}

.and-book-detail-banner-wrap .swiper-slide {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.and-book-detail-banner-wrap .swiper-slide > a {
  position: relative;
  z-index: 1;
}

.and-book-detail-banner-wrap .swiper-slide-active,
.and-book-detail-banner-wrap .swiper-slide-active > a {
  pointer-events: auto;
}

/* 左右箭頭（沿用 swiper.css 的 prev.png / next.png，僅調整尺寸） */
.and-book-detail-banner-wrap .swiper-button-prev,
.and-book-detail-banner-wrap .swiper-button-next {
  width: 36px;
  height: 36px;
  margin-top: -18px;
  background-size: 36px 36px;
  z-index: 30;
  pointer-events: auto;
}

.and-book-detail-banner-wrap .swiper-button-prev {
  left: 12px;
}

.and-book-detail-banner-wrap .swiper-button-next {
  right: 12px;
}

.and-book-detail-banner-wrap .and-book-detail-banner-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  line-height: 0;
  transform: none;
  z-index: 20;
  pointer-events: auto;
}

.and-book-detail-banner-wrap .and-book-detail-banner-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: width 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.and-book-detail-banner-wrap .and-book-detail-banner-pagination .swiper-pagination-bullet:hover {
  border-color: #f58220;
}

.and-book-detail-banner-wrap .and-book-detail-banner-pagination .swiper-pagination-bullet-active {
  width: 50px;
  background: #f58220;
  border-color: #f58220;
  box-shadow: 0 2px 2px rgba(245, 130, 32, 0.35);
}

/* ========== 書籍資訊區（白底） ========== */
.and-book-hero {
  background: #ffffff;
  margin-bottom: 36px;
}

.and-book-hero__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.and-book-hero__badge {
  flex-shrink: 0;
  display: inline-block;
  /* margin-top: 6px; */
  padding: 12px 20px;
  border-radius: 15px;
  background: #f0f0f0;
  color: #222222;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.and-book-hero__titles {
  flex: 1;
  min-width: 0;
}

.and-book-hero__title {
  margin: 0 0 0px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #191919;
  letter-spacing: 0.5px;
}

/* 絕版標示：接在書名後面，沿用舊站的紅字作法（andbooks_old/book.php:283-304）。
   依「當前瀏覽版本」判斷——同一本書的紙本可能絕版、電子書還在賣。 */
.and-book-oop {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 400;
  color: #c0392b;
  white-space: nowrap;
}

.and-book-hero__subtitle {
  margin: 0;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
}

.and-book-hero__body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px 40px;
  align-items: start;
  margin-bottom: 28px;
}

/* 左側圖庫 */
.and-book-gallery__main {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  /* 固定比例，換圖時外框高度不變 */
  aspect-ratio: 3 / 4;
  box-sizing: border-box;
}

.and-book-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.and-book-gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #555555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 0;
  z-index: 2;
}

.and-book-gallery__zoom i {
  font-size: 14px;
}

.and-book-gallery__thumb-wrap {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
}

.and-book-gallery__arrow {
  border: none;
  background: transparent;
  color: #9c9c9c;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.and-book-gallery__arrow-icon {
  display: inline-block;
  width: 10px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
  background: none;
  background-image: none;
  font-size: 0;
  line-height: 0;
  overflow: visible;
  color: transparent;
  flex-shrink: 0;
}

/* 外層：飛鏢整體輪廓（描邊色） */
.and-book-gallery__arrow-icon::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: #666565;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

/* 內層：遮住中心讓外框看起來是空心 */
.and-book-gallery__arrow-icon::after {
  content: "";
  display: block;
  position: absolute;
  inset: 1.8px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

.and-book-gallery__arrow-icon--prev {
  transform: scaleX(-1);
}

.and-book-gallery__thumb-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.and-book-gallery__thumb-list::-webkit-scrollbar {
  display: none;
}

.and-book-gallery__thumb {
  /* 一屏完整顯示 4 則（3 個 gap） */
  flex: 0 0 calc((100% - 18px) / 4);
  width: calc((100% - 18px) / 4);
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.and-book-gallery__thumb.is-active {
  border-color: #f58220;
}

.and-book-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

/* 右側資訊 */
.and-book-info__switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 170px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #191919;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.and-book-info__switch:hover {
  background: #ebebeb;
}

.and-book-info__switch i {
  font-size: 15px;
  color: #f58220;
}

.and-book-info__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  letter-spacing: 1px;
}

.and-book-info__meta li {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px 12px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #2b2b2b;
}

.and-book-info__arrow {
  display: inline-block;
  width: 10px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
  background: none;
  background-image: none;
  font-size: 0;
  line-height: 0;
  overflow: visible;
  color: transparent;
}

.and-book-info__arrow::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: #666565;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

.and-book-info__arrow::after {
  content: "";
  display: block;
  position: absolute;
  inset: 1.8px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

.and-book-info__arrow--inline {
  display: inline-block;
  margin: 0 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* 標籤固定寬＋左右撐齊；冒號以 ::after 貼在右側外 */
.and-book-info__meta .meta-label {
  position: relative;
  flex: 0 0 4.75em;
  width: 4.75em;
  margin-right: 1.15em;
  color: #2b2b2b;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
}

/* 英文標籤（如 ISBN）：略加字距，避免看起來擠在一起 */
.and-book-info__meta .meta-label--en {
  letter-spacing: 0.22em;
  text-align: left;
  text-align-last: auto;
}

.and-book-info__meta .meta-label::after {
  content: "：";
  position: absolute;
  left: 100%;
  top: 0;
  letter-spacing: 0;
}

.and-book-info__meta .meta-value {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  color: #2b2b2b;
  font-weight: 400;
  letter-spacing: 1px;
}

.and-book-info__meta .meta-link {
  color: #f58220;
  text-decoration: underline;
  font-weight: 400;
}

.and-book-info__meta .meta-value--price {
  color: #e23500;
  font-weight: 400;
  font-size: 15px;
}

/* 底部三列：關鍵字、哪裡買、得獎（僅右欄） */
.and-book-extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.and-book-extra__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 14px 20px;
  border-radius: 15px;
  background: #f5f7f6;
}

.and-book-extra__icon {
  color: #f58220;
  font-size: 16px;
  flex-shrink: 0;
}

.and-book-extra__label {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 400;
  color: #2b2b2b;
}

.and-book-extra__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.and-book-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e4e4e4;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

a.and-book-chip:hover {
  background: #f58220;
  color: #ffffff;
}

/* 【工程師注意】哪裡買標籤：背景色由資料庫設定（book_source.bgcolor），請輸出 --store-bg；
   文字一律白字、不由資料庫設定（2026-08-14 確認），故不需輸出 --store-color */
.and-book-store {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--store-bg, #888888);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.and-book-store:hover {
  opacity: 0.88;
}

/* Tabs：錨點導覽 + 全文展開；分頁列吸在視窗最上方 */
.and-book-tabs {
  /* margin-bottom: 36px; */
}

/* 電腦版：維持原本一列六格樣式；吸頂貼齊 top: 0 */
.and-book-tabs__nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: 12px;
  overflow: hidden;
  background: #2f2f2f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.and-book-tabs__btn {
  display: block;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  padding: 15px 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  position: relative;
}

.and-book-tabs__btn + .and-book-tabs__btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.and-book-tabs__btn:hover {
  color: #ffffff;
}

.and-book-tabs__btn.is-active {
  color: #f58220;
  font-weight: 400;
}

.and-book-tabs__content {
  background: #ffffff;
  padding: 8px 5px 10px;
}

.and-book-panel {
  display: block;
  padding: 28px 0;
  /* 吸頂分頁列高度，對齊點擊後的滾動位置 */
  scroll-margin-top: calc(var(--and-tabs-h, 52px) + 8px);
}

.and-book-panel + .and-book-panel {
  border-top: 1px solid #d8d8d8;
}

/* 內容分節的標題（內容簡介／作者／目錄／序／相關書摘／精選影音）
   2026-08-31：標籤由 h3 改為 h2——h1 是書名，這些是它底下的第一層分節，
   原本用 h3 會造成 h1→h3 跳級。樣式跟著選擇器改，外觀完全不變。 */
.and-book-panel h2 {
  margin: 0 0 20px;
  color: #f58220;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.and-book-panel h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 10px;
  flex-shrink: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 35% 50%);
}

.and-book-panel p {
  margin: 0px 0 14px;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.and-book-panel p:last-child {
  margin-bottom: 0;
}

/* 編輯器內容外層（.editor 的行距／字距／標籤樣式見 css_editor.css，前後台共用）。
   .editor 本身有 padding:20px 0，但 .and-book-panel 已經有 padding:28px 0、
   h3 也有 margin-bottom:20px，兩層疊起來間距會過鬆，所以在這裡歸零。
   圖片的 max-width 保底寫在 css_editor.css 的 .editor img，全站共用，這裡不重複。 */
.and-book-panel .editor {
  padding: 0;
}

@media screen and (max-width: 1200px) {
  .and-book-hero__body {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  .and-book-hero__title {
    font-size: 24px;
  }
}

@media screen and (max-width: 900px) {
  .and-book-hero__head {
    flex-direction: column;
    gap: 10px;
  }

  .and-book-hero__badge {
    margin-top: 0;
    align-self: flex-start;
  }

  .and-book-hero__body {
    grid-template-columns: 1fr;
  }

  .and-book-gallery {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .and-book-extra__row {
    border-radius: 20px;
    padding: 14px 16px;
  }

  /* 手機版：單列橫滑、精簡高度 */
  .and-book-tabs__nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0 0 10px 10px;
    background: rgba(36, 36, 36, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  .and-book-tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .and-book-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 6px 11px;
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .and-book-tabs__btn + .and-book-tabs__btn::before {
    display: none;
  }

  .and-book-tabs__btn:hover {
    color: #ffffff;
    background: transparent;
  }

  .and-book-tabs__btn.is-active {
    color: #ffffff;
    background: #f58220;
  }

  .and-book-panel {
    padding: 24px 0;
    scroll-margin-top: calc(var(--and-tabs-h, 44px) + 10px);
  }
}

@media screen and (max-width: 600px) {
  .and-book-hero__title {
    font-size: 20px;
  }

  .and-book-info__meta li {
    font-size: 15px;
  }

  .and-book-info__meta .meta-label {
    flex-basis: 4.75em;
    width: 4.75em;
  }

  .bd-excerpt-item {
    flex-direction: column;
    gap: 14px;
  }

  .bd-excerpt-item__img {
    width: 100%;
    max-width: 370px;
    /* height: 180px; */
  }
}

/* ========== 書籍介紹專用：相關書摘（獨立，不共用 digests） ========== */
.bd-excerpt-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bd-excerpt-item {
  display: flex;
  flex-direction: row;
  gap: 22px;
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e4e4e4;
}

.bd-excerpt-item:first-child {
  padding-top: 8px;
}

.bd-excerpt-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bd-excerpt-item__img {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  background: #eeeeee;
}

.bd-excerpt-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bd-excerpt-item:hover .bd-excerpt-item__img img {
  transform: scale(1.04);
}

.bd-excerpt-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bd-excerpt-item__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bd-excerpt-item__badge {
  display: inline-block;
  background: #3d3d3d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  line-height: 1.4;
}

.bd-excerpt-item__date {
  font-size: 13px;
  font-weight: 400;
  color: #aaaaaa;
  letter-spacing: 1px;
}

.bd-excerpt-item__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  color: #111111;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.bd-excerpt-item:hover .bd-excerpt-item__title {
  color: #f58220;
}

.bd-excerpt-item__text {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.bd-excerpt-item__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.bd-excerpt-item__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #b5b5b5;
  color: #313131;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bd-excerpt-item__more .and-ui-btn__arrow {
  color: currentColor;
}

.bd-excerpt-item:hover .bd-excerpt-item__more {
  background: #f58220;
  border-color: #f58220;
  color: #ffffff;
}

/* ========== 書籍介紹專用：精選影音（獨立，不共用 index） ========== */
.bd-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.bd-video-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bd-video-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #eeeeee;
  padding-bottom: 56.25%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bd-video-card:hover .bd-video-card__thumb {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

.bd-video-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bd-video-card:hover .bd-video-card__thumb img {
  transform: scale(1.04);
}

.bd-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 40px;
  border-radius: 10px;
  background: #ff0000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.bd-video-card__title {
  margin: 15px 0 0 !important;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.45;
}

.bd-video-card:hover .bd-video-card__title {
  color: #f58220;
}

@media screen and (max-width: 900px) {
  .bd-excerpt-item__img {
    flex-basis: 140px;
    width: 140px;
    /* height: 140px; */
  }

  .bd-excerpt-item__title {
    font-size: 16px;
  }

  .bd-video-grid {
    grid-template-columns: 1fr;
    /* max-width: 520px; */
  }
}

@media screen and (max-width: 767px) {
  .bd-excerpt-item {
    flex-direction: column;
    gap: 14px;
  }

  .bd-excerpt-item__img {
    flex-basis: auto;
    width: 100%;
    height: inherit;
    margin: 0 auto;
  }
}
