/* Shared lightbox + sticky-book styles. */
.el-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 8, 12, 0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.el-lightbox.is-open { opacity: 1; }
.el-lightbox[hidden] { display: none; }
.el-lightbox__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border-radius: 4px;
  cursor: zoom-out;
  background: #111;
}
.el-lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 28px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms ease;
}
.el-lightbox__close:hover, .el-lightbox__close:focus { background: rgba(255,255,255,0.24); outline: none; }

/* Sticky mobile book button */
.sticky-book {
  display: none;
}
@media (max-width: 720px) {
  .sticky-book {
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--brand-accent, #2b1b1b);
    color: var(--brand-on-accent, #fff);
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
    text-decoration: none;
  }
  .sticky-book:hover, .sticky-book:focus { filter: brightness(0.94); }
  /* Push page content up so the sticky bar doesn't overlap the footer. */
  body { padding-bottom: 64px; }
}

/* Horizontal-scroll gallery utility (apply data-mobile-scroll to a container) */
@media (max-width: 720px) {
  [data-mobile-scroll] {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  [data-mobile-scroll] > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  [data-mobile-scroll] img { width: 100%; height: auto; }
}
