/* =====================================================================
   Jeve Mesuwan — theme for Bootstrap 5.3
   Load AFTER bootstrap.min.css. Pages use <html data-bs-theme="dark">.
   Fonts (Ubuntu + Noto Sans Thai) are loaded in include/meta.php.

    1. Brand tokens + Bootstrap overrides
    2. Base
    3. Type helpers
    4. Sections
    5. Buttons + chips
    6. Header + burger
    7. Full-screen menu
    8. Image frames + placeholders
    9. Tiles + arrows
   10. Light band
   11. Photo Collection swiper
   12. Web work — browser / phone mockups, cards, list, clients
   13. Project page — gallery, contact sheet, next link
   14. Lightbox
   15. Reduced motion
   ===================================================================== */

/* ---------- 1. Brand tokens + Bootstrap overrides ---------- */
:root,
[data-bs-theme="dark"] {
  --j-ground: #12110F;
  --j-ink: #ECE8E1;
  --j-soft: #C9C4BA;
  --j-muted: #A39E94;
  --j-dim: #6B665E;
  --j-line: #2A2825;
  --j-line2: #3A3733;
  --j-accent: #E0663F;
  --j-accent-hover: #E8714A;
  --j-tile: #2B2926;
  --j-chrome: #1C1B19;
  --j-ease: cubic-bezier(.7, 0, .2, 1);
  --j-ease-out: cubic-bezier(.2, .7, .2, 1);

  --bs-body-bg: var(--j-ground);
  --bs-body-bg-rgb: 18, 17, 15;
  --bs-body-color: var(--j-ink);
  --bs-body-color-rgb: 236, 232, 225;
  --bs-emphasis-color: var(--j-ink);
  --bs-secondary-color: var(--j-muted);
  --bs-tertiary-color: var(--j-dim);
  --bs-border-color: var(--j-line);
  --bs-link-color: var(--j-ink);
  --bs-link-color-rgb: 236, 232, 225;
  --bs-link-hover-color: var(--j-accent-hover);
  --bs-link-hover-color-rgb: 232, 113, 74;
  --bs-link-decoration: none;
  --bs-primary: var(--j-accent);
  --bs-primary-rgb: 224, 102, 63;
  --bs-focus-ring-color: rgba(224, 102, 63, .5);
  --bs-body-font-family: "Ubuntu", "Noto Sans Thai", sans-serif;
  --bs-font-monospace: "Noto Sans Thai", "Ubuntu", sans-serif;
  --bs-border-radius: 4px;
}
.profile-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto; 
    margin-bottom: 20px;
    box-sizing: border-box;
}
/* ---------- 2. Base ---------- */
body {
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--j-accent);
  outline-offset: 3px;
  box-shadow: none !important;
}
img {
  max-width: 100%;
}
figure {
  margin: 0;
}

/* Wider container (1440 px max) with roomier side padding.
   The gutter is ≥ the widest row gutter (g-5) so rows never overflow on phones. */
.container {
  --bs-gutter-x: 3rem;
}
@media (min-width: 768px) {
  .container {
    --bs-gutter-x: 5rem;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1440px;
  }
}

/* ---------- 3. Type helpers ---------- */
.j-label,
.j-label-sm {
  font-family: var(--bs-font-monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.j-label {
  font-size: 13px;
  color: var(--j-muted);
}
.j-label-sm {
  font-size: 11px;
  color: var(--j-dim);
}
.j-mono {
  font-family: var(--bs-font-monospace);
}
.j-display {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .88;
  margin: 0;
}
.j-h2 {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin: 0;
}
.j-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--j-soft);
  max-width: 46ch;
}
.j-accent {
  color: var(--j-accent);
}
.text-soft {
  color: var(--j-soft) !important;
}
.text-dim {
  color: var(--j-dim) !important;
}
.small {
  font-size: 12px;
}

/* ---------- 4. Sections ---------- */
.j-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (max-width: 767.98px) {
  .j-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
/* Top rule line. Note: also sets 12px as the default text size inside —
   any text in a .j-rule block without its own size comes out at 12px. */
.j-rule {
  border-top: 1px solid var(--j-line);
  font-size: 12px;
}

/* ---------- 5. Buttons + chips ---------- */
.btn {
  --bs-btn-font-family: var(--bs-body-font-family);
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0;
  --bs-btn-font-size: 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn-accent {
  --bs-btn-color: var(--j-ground);
  --bs-btn-bg: var(--j-accent);
  --bs-btn-border-color: var(--j-accent);
  --bs-btn-hover-color: var(--j-ground);
  --bs-btn-hover-bg: var(--j-ink);
  --bs-btn-hover-border-color: var(--j-ink);
  --bs-btn-active-color: var(--j-ground);
  --bs-btn-active-bg: var(--j-ink);
  --bs-btn-active-border-color: var(--j-ink);
  --bs-btn-font-weight: 400;
}
.btn-ghost {
  --bs-btn-color: var(--j-ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--j-line2);
  --bs-btn-hover-color: var(--j-ink);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--j-ink);
  --bs-btn-active-color: var(--j-ink);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: var(--j-ink);
}
.btn-sm-pill {
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-font-size: 14px;
  min-height: 44px;
}

/* filter tabs */
.btn-filter {
  --bs-btn-color: var(--j-muted);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--j-line2);
  --bs-btn-hover-color: var(--j-ink);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--j-dim);
  --bs-btn-active-color: var(--j-ground);
  --bs-btn-active-bg: var(--j-ink);
  --bs-btn-active-border-color: var(--j-ink);
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-font-family: var(--bs-font-monospace);
  --bs-btn-font-size: 13px;
  min-height: 44px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn-filter .count {
  opacity: .6;
}

/* round icon buttons */
.btn-icon {
  --bs-btn-color: var(--j-ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--j-line2);
  --bs-btn-hover-color: var(--j-ground);
  --bs-btn-hover-bg: var(--j-ink);
  --bs-btn-hover-border-color: var(--j-ink);
  --bs-btn-active-color: var(--j-ground);
  --bs-btn-active-bg: var(--j-ink);
  --bs-btn-active-border-color: var(--j-ink);
  --bs-btn-disabled-color: var(--j-ink);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--j-line2);
  --bs-btn-disabled-opacity: .3;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  justify-content: center;
  flex: none;
}
.btn-icon.btn-sm-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

.j-chip {
  display: inline-block;
  font-family: var(--bs-font-monospace);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--j-line2);
  border-radius: 999px;
  color: var(--j-muted);
}

/* ---------- 6. Header + burger ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  color: var(--j-ink);
  border-bottom: 1px solid transparent;
  transition: transform .4s var(--j-ease), background-color .3s, color .3s, border-color .3s;
}
.site-header.is-solid {
  background: rgba(18, 17, 15, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--j-line);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.menu-open .site-header {
  color: var(--j-ground);
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.site-header .brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
}
.site-header .brand:hover {
  color: inherit;
  opacity: .75;
}
.site-header .brand b {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
  font-stretch: 75%;
  text-transform: uppercase;
}
.site-header .brand span {
  font-family: var(--bs-font-monospace);
  font-size: 12px;
  opacity: .6;
}
.menu-open .header-cta {
  visibility: hidden;
}

/* burger: two lines → X */
.burger {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgba(236, 232, 225, .22);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color .3s, transform .2s;
}
.burger:hover {
  border-color: currentColor;
  transform: scale(1.04);
}
.burger span {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--j-ease), right .35s var(--j-ease);
}
.burger span:nth-child(1) {
  transform: translateY(-4px);
}
.burger span:nth-child(2) {
  transform: translateY(4px);
  right: 23px;
}
.burger:hover span:nth-child(2) {
  right: 15px;
}
.menu-open .burger {
  border-color: rgba(18, 17, 15, .25);
}
.menu-open .burger span:nth-child(1) {
  transform: rotate(45deg);
}
.menu-open .burger span:nth-child(2) {
  transform: rotate(-45deg);
  right: 15px;
}

/* ---------- 7. Full-screen menu (Bootstrap Offcanvas, top) ---------- */
.site-menu.offcanvas-top {
  --bs-offcanvas-height: 100vh;
  --bs-offcanvas-bg: var(--j-ink);
  --bs-offcanvas-color: var(--j-ground);
  --bs-offcanvas-border-width: 0;
  --bs-offcanvas-transition: transform .6s var(--j-ease);
  height: 100dvh;
}
.site-menu .offcanvas-body {
  padding: 0;
}
.site-menu a {
  color: var(--j-ground);
}
.site-menu a:hover {
  color: var(--j-accent);
}
.site-menu .menu-inner {
  min-height: 100%;
  padding-top: 120px;
  padding-bottom: 40px;
}
.offcanvas-backdrop.show {
  opacity: 0;
}

.mlink {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(18, 17, 15, .12);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--j-ease-out), transform .7s var(--j-ease-out);
}
.site-menu.show .mlink,
.site-menu.showing .mlink {
  opacity: 1;
  transform: none;
}
.site-menu .mlink:hover {
  color: var(--j-ground);
}
.mlink small {
  font-family: var(--bs-font-monospace);
  font-size: 13px;
  color: var(--j-dim);
  width: 40px;
  flex: none;
}
.mlink span {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -.02em;
  transition: transform .35s var(--j-ease-out), color .2s;
}
.mlink:hover span {
  transform: translateX(16px);
  color: var(--j-accent);
}

.menu-side {
  opacity: 0;
  transition: opacity .5s .4s;
}
.site-menu.show .menu-side,
.site-menu.showing .menu-side {
  opacity: 1;
}
.social a {
  padding: 12px 0;
  display: inline-block;
}

/* ---------- 8. Image frames + placeholders ---------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--j-tile);
  overflow: hidden;
}
.ratio > .ph {
  position: absolute; /* keep Bootstrap's ratio positioning */
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--j-ease-out), opacity .6s;
}
.ph img.loading {
  opacity: 0;
}
.ph .fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-weight: 800;
  font-stretch: 65%;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 44px);
  line-height: .9;
  color: #4A4640;
}
.ratio-4x5 {
  --bs-aspect-ratio: 125%;
}
.ratio-16x10 {
  --bs-aspect-ratio: 62.5%;
}
.frame {
  overflow: hidden;
  border-radius: 4px;
}

/* ---------- 9. Tiles + arrows ---------- */
.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--j-ink);
}
.tile:hover {
  color: var(--j-ink);
}
.tile:hover .ph img {
  transform: scale(1.03);
}
.tile .tt {
  transition: color .2s;
}
.tile:hover .tt {
  color: var(--j-accent-hover);
}

.arrow {
  display: inline-block;
  color: var(--j-muted);
  transition: transform .2s, color .2s;
}
a:hover .arrow {
  color: var(--j-accent-hover);
  transform: translateX(4px);
}
a:hover .arrow.up {
  transform: translate(3px, -3px);
}

/* ---------- 10. Light band ---------- */
.j-band {
  background: var(--j-ink);
  color: var(--j-ground);
}
.j-band .j-label {
  color: #5A554D;
}
.j-band ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.j-band li {
  padding: 14px 0;
  border-top: 1px solid rgba(18, 17, 15, .15);
  font-size: 17px;
}

/* ---------- 11. Photo Collection swiper (allproject.php) ---------- */
.swiper-track {
  --pad: max(calc(var(--bs-gutter-x, 5rem) * .5), calc((100% - 1440px) / 2 + 2.5rem));
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px var(--pad) 8px;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.swiper-track::-webkit-scrollbar {
  display: none;
}
.swiper-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.swiper-card {
  flex: none;
  width: clamp(250px, 26vw, 360px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--j-ink);
  animation: cardIn .5s var(--j-ease-out) both;
}
.swiper-card:hover {
  color: var(--j-ink);
}
.swiper-card img {
  -webkit-user-drag: none;
}
.swiper-card:hover .ph img {
  transform: scale(1.04);
}
.swiper-card .ct {
  font-size: 22px;
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.15;
  transition: color .2s;
}
.swiper-card:hover .ct {
  color: var(--j-accent-hover);
}

.swiper-card .now-viewing {
  color: var(--j-accent);
}

.badge-num,
.badge-ai {
  position: absolute;
  top: 14px;
  z-index: 1;
  font-family: var(--bs-font-monospace);
  font-weight: 400;
  border-radius: 999px;
  padding: 5px 9px;
}
.badge-num {
  left: 14px;
  font-size: 12px;
  color: var(--j-ink);
  background: rgba(18, 17, 15, .7);
}
.badge-ai {
  right: 14px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--j-ground);
  background: var(--j-ink);
}

.swiper-progress {
  --bs-progress-bar-bg: var(--j-accent);
  --bs-progress-bg: var(--j-line);
  --bs-progress-height: 2px;
  height: 2px;
  background: var(--j-line);
  border-radius: 2px;
}
.swiper-progress .progress-bar {
  transition: width .25s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .swiper-track {
    gap: 16px;
  }
  .swiper-card {
    width: 78vw;
  }
}

/* ---------- 12. Web work — mockups, cards, list, clients ---------- */
.browser {
  border-radius: 10px;
  overflow: hidden;
  background: var(--j-chrome);
  border: 1px solid var(--j-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--j-line);
}
.browser-bar .dots {
  display: flex;
  gap: 6px;
}
.browser-bar .dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--j-line2);
}
.browser-bar .url {
  flex: 1;
  max-width: 340px;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--j-ground);
  font-family: var(--bs-font-monospace);
  font-size: 10px;
  color: var(--j-dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* screen: a long screenshot that scrolls top → bottom on hover */
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #E9E3D6;
  container-type: size;
}
.screen .page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 3.2s cubic-bezier(.45, 0, .25, 1);
}
.screen .page img {
  width: 100%;
  height: auto;
}
.scroller:hover .screen .page,
.scroller:focus-visible .screen .page {
  transform: translateY(calc(-100% + 100cqh));
}

/* drawn placeholder page, used when a screenshot is missing (see jeve.js) */
.faux {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bs-font-monospace);
  font-size: 12px;
  color: var(--j-dim);
  background-repeat: no-repeat;
}

.phone {
  width: 150px;
  flex: none;
  border-radius: 26px;
  border: 6px solid var(--j-line);
  background: var(--j-line);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.phone .screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--j-ink);
  animation: cardIn .5s var(--j-ease-out) both;
}
.work-row {
  padding: 22px 0;
  border-top: 1px solid var(--j-line);
  color: var(--j-ink);
}
.work-card:hover,
.work-row:hover,
.feat:hover {
  color: var(--j-ink);
}
.work-card .wt,
.work-row .wt {
  transition: color .2s;
}
.work-card:hover .wt,
.work-row:hover .wt {
  color: var(--j-accent-hover);
}

/* Home "Web Work": 2-column grid on tablet / desktop, sideways swipe on phones */
@media (max-width: 767.98px) {
  .work-swipe {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .5rem;
  }
  .work-swipe::-webkit-scrollbar {
    display: none;
  }
  .work-swipe > .col {
    flex: 0 0 85%; /* a slice of the next card shows, so people know to swipe */
    max-width: 85%;
    margin-top: 0;
    scroll-snap-align: start;
  }
}

/* client logos / names grid */
.client-grid {
  border-top: 1px solid var(--j-line);
  border-left: 1px solid var(--j-line);
}
.client-cell {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-right: 1px solid var(--j-line);
  border-bottom: 1px solid var(--j-line);
  font-weight: 700;
  font-stretch: 80%;
  font-size: 18px;
  color: var(--j-soft);
  text-align: center;
}
.client-cell.tbd {
  color: #4A4640;
}
.client-cell img {
  max-height: 48px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: .8;
  transition: opacity .2s, filter .2s;
}
.client-cell:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- 13. Project page — gallery, contact sheet, next link ---------- */
/* gallery photo: the link hugs the photo; the watermark sits on its corner */
.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--j-tile);
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .7s var(--j-ease-out), opacity .6s;
}
.shot:hover img {
  transform: scale(1.025);
}
.shot img.loading {
  opacity: 0;
}

.g-quote p {
  font-weight: 700;
  font-stretch: 75%;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.g-note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--j-muted);
  max-width: 40ch;
  margin: 0;
}

/* contact sheet thumbnails */
.thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--j-tile);
  overflow: hidden;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--j-ease-out);
}
.thumb:hover img {
  transform: scale(1.06);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.thumb:hover::after {
  border-color: var(--j-accent);
}
.thumb small {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-family: var(--bs-font-monospace);
  font-size: 10px;
  color: var(--j-ink);
  background: rgba(18, 17, 15, .7);
  padding: 2px 5px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity .2s;
}
.thumb:hover small {
  opacity: 1;
}
.thumb.ratio > small {
  top: auto;
  left: 6px;
  width: auto;
  height: auto;
}

/* "Next series" link at the bottom of a project page */
.next-link {
  display: block;
  color: var(--j-ink);
}
.next-link:hover {
  color: var(--j-ink);
}
.next-link .next-title {
  transition: color .25s;
}
.next-link:hover .next-title {
  color: var(--j-accent-hover);
}
.next-link img {
  transition: transform .8s var(--j-ease-out);
}
.next-link:hover img {
  transform: scale(1.03);
}

/* ---------- 14. Lightbox (Bootstrap fullscreen modal + carousel) ---------- */
.lightbox .modal-content {
  background: rgba(10, 9, 8, .97);
  color: var(--j-ink);
  border: 0;
}
.lightbox .modal-header,
.lightbox .modal-footer {
  border: 0;
}
.lightbox .carousel {
  touch-action: pan-y; /* horizontal swipes go to the carousel */
}
.lightbox .carousel,
.lightbox .carousel-inner,
.lightbox .carousel-item {
  height: 100%;
}
.lightbox .carousel-item {
  text-align: center;
}
.lightbox .carousel-item.active,
.lightbox .carousel-item-next,
.lightbox .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--j-line);
}
.lightbox .carousel-control-prev,
.lightbox .carousel-control-next {
  width: auto;
  opacity: 1;
  padding: 0 16px;
}
@media (max-width: 575.98px) {
  .lightbox .carousel-control-prev,
  .lightbox .carousel-control-next {
    display: none;
  }
}

/* the photo is centred; its frame hugs it so the watermark sits on the photo */
.lightbox .lb-stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.lightbox .lb-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.lightbox .lb-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px); /* room for the header + caption bar */
  user-select: none;
  -webkit-user-drag: none;
}

/* watermark — bottom-right of the photo, in the gallery and the lightbox */
.shot::after,
.lightbox .lb-frame::after {
  content: "© Jeve Mesuwan";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font: 500 10px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.lightbox .lb-frame::after {
  right: 18px;
  bottom: 16px;
  font-size: 11px;
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  html,
  .swiper-track {
    scroll-behavior: auto !important;
  }
}
.blink-smooth {
  animation: blink-smooth 1.5s ease-in-out infinite alternate;
}

@keyframes blink-smooth {
  from { opacity: 1; }
  to { opacity: 0.2; } /* Keeps it slightly visible for readability */
}

/* Accessibility: Turns off animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blink-smooth {
    animation: none;
  }
}
