/* ============================================================
   SHADA — Custom Styles
   Verdana 12px base. Hierarchy via capitalization + tracking.
   No border-radius. See --color-* tokens below for full palette.
   ============================================================ */

/* ── Design tokens (CSS custom properties) ───────────────────
   Mirror of tailwind.config.js — update both together.
   Usage in CSS:  color: var(--color-accent);
   ──────────────────────────────────────────────────────────── */
:root {
  /* Accent */
  --color-accent:                  #FF0067;

  /* Primary scale */
  --color-primary:                 #000000;
  --color-primary-container:       #3b3b3b;
  --color-primary-fixed:           #5e5e5e;
  --color-secondary:               #5f5e5e;

  /* On-colors */
  --color-on-primary:              #e2e2e2;
  --color-on-surface:              #1a1c1c;
  --color-on-surface-variant:      #474747;
  --color-on-background:           #1a1c1c;

  /* Surface scale */
  --color-background:              #ffffff;
  --color-surface:                 #f9f9f9;
  --color-surface-container-low:   #f3f3f4;
  --color-surface-container:       #eeeeee;
  --color-surface-container-high:  #e8e8e8;
  --color-surface-variant:         #e2e2e2;

  /* Outlines / errors */
  --color-outline:                 #777777;
  --color-outline-variant:         #c6c6c6;
  --color-error:                   #ba1a1a;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 12px;
  touch-action: manipulation; /* disable double-tap zoom */
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;      /* global base tracking */
  color: #1a1c1c;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lock scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background-color: #000000;
  color: #e2e2e2;
}


/* ----- Header ----- */
#shada-header {
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 1024px) {
  #shada-header {
    height: 90px;
  }
}


/* ----- Mobile Menu Overlay ----- */
#menu-mobile-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#menu-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ----- Desktop Menu Panel ----- */
/* (3) appears solidly from under the menu button — fade + tiny drop, no slide */
#menu-desktop-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

#menu-desktop-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}


/* ----- Menu Accordion ----- */
.menu-section-items {
  display: none;
  flex-direction: column;
}

.menu-section-items.open {
  display: flex;
}


/* ----- Product Page Accordions ----- */
.accordion-content {
  display: none;
}

.accordion-content.open {
  display: block;
}


/* ----- Size Select — native select overlay trick ----- */
.size-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
}


/* ----- Buttons ----- */
.btn-primary {
  display: block;           /* (5) block so width fills container */
  width: 100%;
  background-color: #000000;
  color: #e2e2e2;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  height: 46px;
  padding: 0 16px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
  line-height: 1;
  text-align: center;
}

.btn-primary:active {
  background-color: #000000;
}


/* ----- Size error message ----- */
/* (6) shown when user clicks Add to Bag without a size */
#size-error-msg {
  display: none;
  font-size: 12px;
  color: #FF0067;     /* accent */
  letter-spacing: 0.02em;
  margin-top: 6px;
}

#size-error-msg.visible {
  display: block;
}


/* ----- Mobile Gallery — horizontal scroll slider ----- */
/* (8) */
.gallery-mobile-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
}

.gallery-mobile-track::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

.gallery-mobile-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100%;
}

.gallery-mobile-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* (9) Navigation dots 4×4 */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 0 10px;
}

.gallery-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #c6c6c6;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.gallery-dot.active {
  background-color: #000000;
}


/* ----- Desktop Gallery — vertical stack with gap ----- */
/* (7) small gap between images */
.gallery-desktop-image + .gallery-desktop-image {
  margin-top: 8px;
}


/* ----- Accordion body — shared content wrapper ----- */
.accordion-body {
  font-size: 12px;
  line-height: 1.25;
  color: #474747;
}

.accordion-body p {
  margin-bottom: 1.25em;  /* exactly one line */
}

.accordion-body p:last-child {
  margin-bottom: 0;
}


/* gap between composition text and fabric gallery = 2 paragraphs (2 × 1.25em) */
.fabric-gallery-block {
  margin-top: 2.5em;
}


/* ----- Fabric Gallery (Composition accordion) ----- */
/* Mobile: horizontal scroll-snap, 16:9 aspect ratio */
.fabric-gallery-mobile-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}

.fabric-gallery-mobile-track::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}

.fabric-gallery-mobile-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.fabric-gallery-mobile-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Desktop fabric gallery: single-image slider with arrows */
.fab-slider {
  position: relative;
}

.fab-arrow {
  position: absolute;
  top: 127px;
  transform: none;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease;
  line-height: 0;
}

.fab-slider:hover .fab-arrow:not(.fab-arrow-hidden) {
  opacity: 1;
}

.fab-arrow-left  { left: 10px; }
.fab-arrow-right { right: 10px; }

.fab-arrow-hidden { display: none !important; }

.fab-arrow-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.fab-arrow-flip {
  transform: scaleX(-1);
}

.fab-slider-dots {
  margin-top: 8px;
  text-align: center;
}


/* ----- Cart icon pulse — on addItem ---- */
@keyframes cart-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.25); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.cart-pulse {
  animation: cart-pulse 0.35s ease;
}


/* ----- Footer ----- */
#shada-footer {
  background-color: #e2e2e2;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 0;
  text-align: center;
  line-height: 2;
}

@media (min-width: 1024px) {
  .footer-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
    text-align: left;
    line-height: normal;
  }
}


/* ================================================================
   CART PAGE
   ================================================================ */

/* Steps nav — visible on desktop, hidden on mobile */
.cart-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border-bottom: 1px solid #c6c6c6;
}

@media (max-width: 767px) {
  .cart-steps { display: none; }
}

.cart-step {
  position: relative;
  padding: 20px 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #777777;          /* inactive — outline */
}

.cart-step.active {
  color: #1a1c1c;          /* on-surface */
}

.cart-step.active::after {
  content: '';
  position: absolute;
  bottom: -1px;            /* sits on top of container border */
  left: 0;
  width: 100%;
  height: 2px;
  background: #000000;
}

/* Item rows */
.cart-item-inner {
  display: flex;
  gap: 48px;
  padding: 40px 0;
  position: relative;
}

.cart-item-divider {
  border-top: 1px solid #e8e8e8; /* surface-container-high */
}

.cart-item-img {
  width: 220px;
  flex-shrink: 0;
  background-color: #f3f3f4; /* surface-container-low */
}

.cart-item-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  flex: 1;
  padding-top: 8px;
}

.cart-item-title {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #1a1c1c;
}

/* SIZE | QTY | PRICE grid */
.cart-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 380px;
}

.cart-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-col-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #777777;  /* outline */
}

.cart-col-label--right { text-align: right; }

.cart-cell {
  border: 1px solid #c6c6c6; /* outline-variant */
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* QTY cell with hover-reveal +/- buttons */
.cart-qty-cell {
  border: 1px solid #c6c6c6;
  height: 48px;
  display: flex;
  align-items: center;
}

.cart-qty-btn {
  width: 32px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;                   /* hidden by default */
  transition: opacity 0.15s ease;
}

.cart-qty-cell:hover .cart-qty-btn {
  opacity: 1;                   /* reveal on hover */
}

.cart-qty-input {
  flex: 1;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  border: none;
  outline: 0;
  box-shadow: none;
  background: transparent;
  width: 100%;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.cart-qty-input:focus,
.cart-qty-input:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
  border: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* QTY input — mobile inline variant (no border, just text + numpad) */
.cart-qty-mob,
.cart-mob-qty-input {
  max-width: 100px;
  width: 34px;
  height: 20px;            /* match icon height → row aligns cleanly */
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  flex-shrink: 0;
  flex-grow: 0;
}

/* SIZE select in cart — fills the bordered container */
.cart-size-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 0 12px;
}
.cart-size-select:focus {
  outline: none;
  box-shadow: none;
}

/* PRICE */
.cart-price {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* REMOVE */
.cart-remove-btn {
  position: absolute;
  bottom: 40px;
  right: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #777777;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.cart-remove-btn:hover { opacity: 0.45; }

/* Summary row */
.cart-summary {
  margin-top: 0;
}

/* Inner wrapper carries the border — sits inside px-4/px-10 padding so aligns with items */
.cart-summary-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #c6c6c6;
}

.cart-summary-note {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #777777;
}

.cart-summary-amount {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cart-summary-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cart-summary-total {
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Empty bag */
.cart-empty-msg {
  text-align: center;
  padding: 80px 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #777777;
}

/* Mobile — stack image above info */
@media (max-width: 767px) {
  .cart-item-inner {
    flex-direction: column;
    gap: 20px;
  }

  .cart-item-img {
    width: 100%;
    max-width: 280px;
  }

  .cart-remove-btn {
    position: static;
    display: block;
    margin-top: 20px;
  }

  .cart-item-grid {
    max-width: 100%;
  }
}


/* ================================================================
   HOME PAGE — PRODUCT GRID
   ================================================================
   · 4+ products → 4-col full-width grid, tall portrait images
   · < 4 products → flex centered, image max-height 600px (800px xl)
   · Mobile 1-2 products → 1 column
   · Mobile 3+ products  → 2 columns
   data-count on .home-grid drives mobile rules.
   ================================================================ */

.home-grid {
  display: grid;
  gap: 0;
}

/* Full width — 4 or more products */
.home-grid--full {
  grid-template-columns: repeat(4, 1fr);
}

/* 5 products → 5 equal columns */
.home-grid--full[data-count="5"] {
  grid-template-columns: repeat(5, 1fr);
}

.home-grid--full .home-card-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

@media (min-width: 768px) {
  .home-grid--full .home-card-img {
    aspect-ratio: 2 / 3;
  }
}

/* Centered — fewer than 4 products */
.home-grid--centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 140px;
}

.home-grid--centered .home-card {
  flex: 0 1 500px;
}

.home-grid--centered .home-card-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .home-grid--centered .home-card-img {
    aspect-ratio: 2 / 3;
  }
}

/* Card */
.home-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.home-card-label {
  padding: 20px 2px 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #1a1c1c;
  text-align: center;
}

/* COMING SOON card — non-clickable, muted */
.home-card--coming-soon {
  cursor: default;
}

.home-card-coming-soon {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
}

/* Cart — mobile bottom section */
@media (max-width: 767px) {
  /* Amount row stretches full width: label left, total right */
  .cart-summary-amount {
    flex: 1;
    justify-content: space-between;
    gap: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .home-grid,
  .home-grid--full,
  .home-grid--full[data-count="5"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 42px;
  }

  .home-card-img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 2 / 3;
    max-height: none !important;
  }

}

/* ================================================================
   STICKY FOOTER — all screen sizes
   body is a flex column; main stretches to fill available space,
   pushing the footer to the bottom on short pages.
   ================================================================ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ================================================================
   DESKTOP (≥ 1024px) — vertically center product grid in viewport
   ================================================================ */
@media (min-width: 1024px) {

  main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 5vh;
  }

  .home-grid--full,
  .home-grid--centered {
    width: 100%;
  }

}

/* ================================================================
   CONTENT PAGES — legal, about, complete
   ================================================================ */

/* ── Shared body wrapper ─────────────────────────────────────── */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.about-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Page title (h1) ─────────────────────────────────────────── */
.legal-h1 {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid #c6c6c6;
}

/* ── Section heading (h2) ────────────────────────────────────── */
.legal-h2 {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1c1c;
  margin-top: 36px;
  margin-bottom: 14px;
}

/* ── Body text ───────────────────────────────────────────────── */
.legal-p {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: #474747;
  margin-bottom: 14px;
}

.about-p {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 2.1;
  color: #474747;
  margin-bottom: 28px;
}

/* ── Inline links ────────────────────────────────────────────── */
.legal-p a {
  color: #1a1c1c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Lists ───────────────────────────────────────────────────── */
.legal-ul {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: #474747;
  margin-bottom: 14px;
  padding-left: 18px;
  list-style: disc;
}

.legal-ol {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: #474747;
  margin-bottom: 14px;
  padding-left: 18px;
  list-style: decimal;
}

.legal-ul li,
.legal-ol li { margin-bottom: 4px; }

/* ── "Last updated" note ─────────────────────────────────────── */
.legal-updated {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #777777;
  margin-bottom: 40px;
}

/* ── Complete / Success page ─────────────────────────────────── */
.complete-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 0 24px 80px;
}

.complete-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1c1c;
  margin-bottom: 24px;
}

.complete-text {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #1a1c1c;
  margin-bottom: 64px;
}

.complete-meanwhile {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #1a1c1c;
  margin-bottom: 24px;
}

.complete-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.complete-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF0067;
  text-decoration: none;
}

.complete-link:hover { opacity: 0.75; }


/* ============================================================
   LIGHTBOX PROGRESS BAR — 2px black line at top of viewport
   ============================================================ */
.lb-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #000;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
}

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */

/* Overlay backdrop */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  cursor: default;
  overflow: hidden;
}

.lb-overlay.lb-open {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 9010;
  background: none;
  border: none;
  color: #000000;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
  font-family: Verdana, sans-serif;
}

.lb-close:hover { opacity: 1; }

/* Zoom (loupe) button — desktop only, sits left of × */
.lb-zoom {
  position: absolute;
  top: 24px;
  right: 68px;
  z-index: 9010;
  display: block;
  background: none;
  border: none;
  color: #000000;
  padding: 8px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.lb-zoom:hover { opacity: 1; }

.lb-zoom svg { display: block; width: 20px; height: 20px; }

/* icon swaps + → − in zoom mode */
.lb-zoom .lb-zoom-minus { display: none; }
.lb-overlay.lb-zoomed .lb-zoom .lb-zoom-plus  { display: none; }
.lb-overlay.lb-zoomed .lb-zoom .lb-zoom-minus { display: block; }

/* Zoom mode: image at natural 1:1 size, 2-axis cursor-driven pan */
@media (min-width: 1024px) {
  .lb-overlay.lb-zoomed .lb-img {
    height: auto;
    max-width: none;
  }
}

/* Image wrapper */
.lb-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

/* Desktop image: 200vh tall, cursor-driven scroll */
.lb-img {
  display: block;
  width: auto;
  height: 200vh;
  max-width: 100%;
  object-fit: contain;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

/* Mobile image: 110vh, JS transform pinch-zoom (UI stays fixed) */
@media (max-width: 1023px) {
  .lb-img {
    height: 110vh;
    touch-action: none;
    transform-origin: center center;
    cursor: default;
  }
  .lb-img-wrap {
    touch-action: none;
  }
}

/* Desktop image: pointer cursor (click to close) */
@media (min-width: 1024px) {
  .lb-img {
    cursor: zoom-out;
  }
}

/* Thumbnail strip — desktop only */
.lb-thumbs {
  position: absolute;
  top: 20px;
  left: 20px;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 9010;
}

.lb-thumbs::-webkit-scrollbar { display: none; }

.lb-thumb {
  display: block;
  width: 48px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.12);
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.15s, border-color 0.15s;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-thumb:hover       { opacity: 0.85; }
.lb-thumb-active      { opacity: 1; border-color: rgba(0,0,0,0.65); }
