/* =========================================================
   Hero banner: ภาพเปลี่ยนอัตโนมัติแบบ crossfade
   ใช้ร่วมกันทุกหน้า (index, menu, contact, booking)
   ========================================================= */

.hero-header {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;   /* ความเร็วการเฟด (ต้องตรงกับ FADE_MS ใน js/hero-banner.js) */
}

.hero-slide.prev   { opacity: 1; z-index: 1; }   /* ภาพเดิม: ค้างไว้ด้านล่างระหว่างที่ภาพใหม่ค่อยๆ ชัดขึ้น */
.hero-slide.active { opacity: 1; z-index: 2; }   /* ภาพใหม่: ค่อยๆ ชัดซ้อนขึ้นมา */

/* เงาดำบางๆ ให้ตัวหนังสืออ่านง่ายไม่ว่าภาพจะสว่างแค่ไหน (ลบได้ถ้าไม่ต้องการ) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, .35);
    pointer-events: none;
}

.hero-header > .container {
    position: relative;
    z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition-duration: .01s; }
}
