/* Custom overrides for a more professional, serious style */

:root {
  --bs-primary: #343a40; /* Dark Charcoal Gray */
  --bs-primary-rgb: 52, 58, 64;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #212529 !important; /* Extremely dark gray */
  border-color: #212529 !important;
  color: #ffffff !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

a {
  color: #495057; /* Neutral grey */
}

a:hover {
  color: #212529;
}

/* Timeline bubble colors */
.timeline .timeline-image {
  background-color: var(--bs-primary) !important;
}
.timeline .timeline-image h4 {
  color: #ffffff !important;
}

/* Custom modal gallery styling */
.gallery-modal-carousel-img {
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

.gallery-caption-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 2rem;
}

/* Bigger Carousel & Modal Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Override Header Background */
header.masthead {
    background-image: url("../assets/img/horror_header.png") !important;
    background-size: cover;
    background-position: center;
    padding-top: 26rem !important;
}

header.masthead .masthead-heading {
    font-size: 3.5rem !important;
}

/* Match the books carousel typography exactly to the thriller section */
#book h3.section-subheading, #book .section-subheading.h3 {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Ensure gallery thumbnails are tappable on Android without delay */
.gallery-trigger {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: block;
}

/* Gallery modal caption below the image */
#galleryCarousel .gallery-caption-box {
    position: static !important;
    display: block !important;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}
