/* =========================================================
   BANGKOK MOTORHAUS - GLOBAL DARK THEME
   ========================================================= */

/* 1. พื้นหลังหลักและตัวอักษร */
body {
    background-color: #121212 !important;
    color: #b0b0b0 !important;
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
}

/* 2. หัวข้อ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* 3. ลิงก์ */
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* 4. ปุ่มหลัก */
.bm-btn-primary {
    background-color: #ffd700;
    color: #000000 !important;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.bm-btn-primary:hover {
    background-color: #ffffff;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 5. การ์ด */
.bm-card {
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bm-card:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
}

/* =========================================================
   BANGKOK MOTORHAUS - GALLERY GRID
   ใช้กับกลุ่มรูปภาพในข่าว
   ========================================================= */

/* กล่องคลุมรูปทั้งหมด */
.image-group-wrapper {
    margin: 25px 0;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* ข้อความบอกว่าคลิกดูภาพใหญ่ได้ */
.image-group-label {
    color: #ffd700;
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

/* ซ่อนข้อความเก่า */
.image-group-wrapper strong {
    display: none !important;
}

/* Grid รูปภาพ - Mobile */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* รูปภาพ */
.gallery-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    box-shadow: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover */
.gallery-preview img:hover {
    transform: translateY(-4px);
    filter: brightness(1.12);
}

/* Tablet / Desktop */
@media (min-width: 768px) {
    .gallery-preview {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .gallery-preview img {
        height: 160px;
    }
}

/* จอใหญ่ */
@media (min-width: 1200px) {
    .gallery-preview img {
        height: 180px;
    }
}

/* === BMH news gallery: preview-friendly grid (drafts use Astra template, lack .bmh-single-news-ci wrapper) 2026-06-25 v3 === */
body.single-post .gallery-preview,
body.single-post .bmh-news-gallery{
  margin:26px 0 !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  padding:12px !important;
  border:1px solid rgba(255,212,0,0.18) !important;
  border-radius:8px !important;
  background:linear-gradient(135deg,rgba(255,212,0,0.055),rgba(255,255,255,0.024)) !important;
}
body.single-post .bmh-news-gallery.columns-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
body.single-post .bmh-news-gallery.columns-4{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
body.single-post .bmh-news-gallery.columns-5{grid-template-columns:repeat(5,minmax(0,1fr)) !important;}
body.single-post .bmh-news-gallery figure{
  display:block !important; width:100% !important; max-width:100% !important; margin:0 !important; padding:0 !important;
}
body.single-post .bmh-news-gallery img{
  width:100% !important; height:210px !important; max-height:210px !important; margin:0 !important; padding:0 !important;
  object-fit:cover !important; object-position:center center !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,0.12) !important;
  background:radial-gradient(circle at 50% 35%,rgba(255,212,0,0.12),transparent 40%),rgb(9,9,9) !important;
  cursor:zoom-in !important;
}
body.single-post .bmh-news-gallery figcaption{
  display:block !important; position:static !important; width:100% !important;
  margin:8px 0 0 !important; padding:0 !important;
  font-size:13px !important; line-height:1.55 !important;
  color:rgb(170,170,170) !important; text-align:center !important;
  background:none !important;
}
/* === end BMH gallery preview fix === */