/* Kaci Arrington — Custom CSS | Design tokens, component styles, and responsive layout. */

:root {
  --clay-900: #2d221c;
  --clay-700: #5e3f2a;
  --clay-500: #7d4f34;
  --clay-300: #c09a7a;
  --sand-100: #f5eee1;
  --sand-200: #e9dcc7;
  --moss-600: #4f5c42;
  --cream-50: #fcf8f0;
  --border-soft: rgba(45, 34, 28, 0.18);
  --shadow-soft: 0 10px 30px rgba(45, 34, 28, 0.12);
  --focus-ring: 0 0 0 3px var(--clay-500);
  --footer-bg: #2e231d;
  --footer-text: #f0ece6;
  --footer-border: rgba(240, 236, 230, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---- Skip link (a11y) ---- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--clay-900);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 0.35rem 0.35rem;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--clay-900);
  background:
    radial-gradient(circle at 10% 10%, rgba(192, 154, 122, 0.24), transparent 52%),
    radial-gradient(circle at 80% 20%, rgba(79, 92, 66, 0.2), transparent 48%),
    var(--cream-50);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Alegreya", Georgia, serif;
  letter-spacing: 0.01em;
  margin-top: 0;
}

a {
  color: var(--clay-700);
}

a:hover {
  color: var(--clay-900);
}

/* ---- Global focus-visible ring ---- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible,
.buy-now:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.2rem;
}

.site-header {
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  background: rgba(252, 248, 240, 0.88);
}

.rustic-nav .navbar-brand.brand-mark {
  font-family: "Alegreya", serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clay-900);
}

.rustic-nav .nav-link {
  color: var(--clay-900);
  font-weight: 600;
  margin-left: 0.6rem;
}

.rustic-nav .nav-link.active {
  color: var(--clay-500);
}

.navbar-toggler {
  border-color: var(--border-soft);
}

.navbar-toggler-icon {
  filter: invert(20%) sepia(16%) saturate(1023%) hue-rotate(342deg) brightness(90%) contrast(95%);
}

.hero-section {
  padding: 4.25rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(252, 248, 240, 0.98) 0%, rgba(239, 228, 211, 0.88) 100%);
  border-bottom: 1px solid rgba(45, 34, 28, 0.22);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
  margin-bottom: 1rem;
}

.eyebrow {
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--moss-600);
  font-size: 0.78rem;
}

.lead {
  font-size: 1.14rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.hero-feature {
  min-height: 0;
  display: flex;
}

.hero-feature-link {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(45, 34, 28, 0.26);
  box-shadow: 0 18px 48px rgba(26, 17, 13, 0.34);
}

.hero-feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease, filter 420ms ease;
}

.hero-feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 1.5rem 1.4rem;
  background:
    linear-gradient(
      180deg,
      rgba(16, 10, 8, 0.08) 0%,
      rgba(16, 10, 8, 0.24) 48%,
      rgba(16, 10, 8, 0.66) 100%
    );
}

.hero-feature-kicker {
  margin: 0;
  color: rgba(255, 246, 235, 0.92);
  font-size: 0.79rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.hero-feature-overlay h2 {
  margin: 0;
  color: #fff;
  font-family: "Alegreya", Georgia, serif;
  font-size: clamp(2rem, 3.3vw, 2.9rem);
  font-weight: 800;
  line-height: 0.98;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.68), 0 1px 1px rgba(0, 0, 0, 0.7);
}

.hero-feature-cta {
  margin: 0.2rem 0 0;
  color: #fff;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  transition: letter-spacing 260ms ease, transform 260ms ease;
}

.hero-feature-link:hover .hero-feature-image,
.hero-feature-link:focus-visible .hero-feature-image {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.hero-feature-link:hover .hero-feature-cta,
.hero-feature-link:focus-visible .hero-feature-cta {
  letter-spacing: 0.1em;
  transform: translateY(-2px);
}

.btn-rustic {
  border: none;
  border-radius: 0.35rem;
  background: var(--clay-500);
  color: #fff;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.btn-rustic:hover,
.btn-rustic:focus-visible {
  background: var(--clay-700);
  color: #fff;
  box-shadow: 0 4px 12px rgba(45, 34, 28, 0.15);
  transform: translateY(-1px);
}

.btn-rustic:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-outline-rustic {
  border: 1px solid var(--clay-500);
  border-radius: 0.35rem;
  color: var(--clay-700);
  padding: 0.68rem 1.3rem;
  font-weight: 700;
  background: transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.btn-outline-rustic:hover,
.btn-outline-rustic:focus-visible {
  border-color: var(--clay-700);
  color: #fff;
  background: var(--clay-700);
  box-shadow: 0 4px 12px rgba(45, 34, 28, 0.15);
  transform: translateY(-1px);
}

.btn-outline-rustic:active {
  transform: translateY(1px);
  box-shadow: none;
}

.hero-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card {
  border: 1px solid var(--border-soft);
  border-radius: 0.45rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.section-block {
  padding: 3.8rem 0;
}

.section-light {
  background: linear-gradient(180deg, rgba(226, 210, 184, 0.86) 0%, rgba(216, 196, 165, 0.92) 100%);
  border-top: 1px solid rgba(45, 34, 28, 0.3);
  border-bottom: 1px solid rgba(45, 34, 28, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.collection-grid,
.shop-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}

.story-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-tile,
.story-panel,
.product-card {
  border: 1px solid var(--border-soft);
  border-radius: 0.45rem;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.collection-image {
  display: block;
  width: calc(100% + 2.2rem);
  height: 190px;
  margin: -1rem -1.1rem 0.85rem;
  object-fit: cover;
  border-bottom: 1px solid var(--border-soft);
}

/* Link wrapper for collection/product card images */
.product-image-link {
  display: block;
}

/* Instagram attribution link inside product cards */
.product-instagram-link {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--clay-500);
  text-decoration: none;
}

.product-instagram-link:hover {
  color: var(--clay-700);
  text-decoration: underline;
}

.product-instagram-link--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.page-intro {
  padding: 3rem 0 1rem;
  background: linear-gradient(180deg, rgba(252, 248, 240, 0.94) 0%, rgba(243, 232, 215, 0.84) 100%);
  border-bottom: 1px solid rgba(45, 34, 28, 0.22);
}

.page-intro-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.page-intro-copy .lead {
  max-width: 60ch;
}

.instagram-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instagram-card {
  border: 1px solid var(--border-soft);
  border-radius: 0.45rem;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.instagram-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.instagram-meta {
  padding: 0.85rem 1rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.instagram-meta p {
  margin-bottom: 0;
}

.product-details {
  margin-bottom: 0.4rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clay-500);
}

/* Keep shop cards visually uniform across mixed image/text content */
.shop-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-grid .product-card h2 {
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.shop-grid .product-story {
  margin-bottom: 0.85rem;
  display: -webkit-box;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.shop-grid .buy-now {
  margin-top: auto;
}

.shop-grid .product-instagram-link {
  margin-top: 0.55rem;
}

.store-note,
.store-status,
.contact-status {
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
}

.contact-panel {
  border: 1px solid var(--border-soft);
  border-radius: 0.45rem;
  background: #fff;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--border-soft);
  border-radius: 0.35rem;
  padding: 0.66rem 0.75rem;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #a3302a;
}

.field-error {
  color: #a3302a;
  font-size: 0.85rem;
  margin: 0.15rem 0 0.3rem;
}

.contact-list {
  margin: 0;
  padding-left: 1.1rem;
}

.contact-intent-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.contact-intent-list li + li {
  margin-top: 0.3rem;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clay-700);
}

.subscribe-field {
  flex: 1 1 220px;
  max-width: 22rem;
  text-align: left;
}

.subscribe-field input[type="email"] {
  width: 100%;
}

.site-footer {
  margin-top: 2.4rem;
  border-top: 1px solid var(--border-soft);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer a {
  color: var(--sand-100);
}

.footer-title {
  font-size: 1.03rem;
  margin-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
}

/* ---- Kaci's Saddlebag — footer column signup ---- */

.footer-saddlebag-tagline {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.65rem;
}

.footer-form-label {
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--sand-100);
}

.subscribe-form-footer {
  width: 100%;
}

.subscribe-footer-inline {
  display: flex;
  gap: 0.4rem;
}

.subscribe-footer-inline input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(240, 236, 230, 0.4);
  border-radius: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
}

.subscribe-footer-inline input[type="email"]::placeholder {
  color: rgba(240, 236, 230, 0.5);
}

.subscribe-footer-inline input[type="email"][aria-invalid="true"] {
  border-color: #e07070;
}

.subscribe-status {
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.2rem;
}

/* ---- end Saddlebag ---- */

/* ---- Subscribe inline form (main content areas) ---- */

.subscribe-inline {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-inline input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 0.35rem;
  padding: 0.66rem 0.75rem;
  font-size: 1rem;
  color: var(--clay-900);
  background: #fff;
}

.subscribe-inline input[type="email"]::placeholder {
  color: var(--clay-300);
}

.subscribe-inline input[type="email"][aria-invalid="true"] {
  border-color: #a3302a;
}

/* ---- Saddlebag dedicated page panel ---- */

.subscribe-panel {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 0.45rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.subscribe-panel-lead {
  font-size: 1.06rem;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  color: var(--clay-700);
}

/* Stacked name + email/button layout for subscribe panel */
.subscribe-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}

.subscribe-name-field {
  width: 100%;
  max-width: 22rem;
}

.subscribe-stack input[type="text"] {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 0.35rem;
  padding: 0.66rem 0.75rem;
  font-size: 1rem;
  color: var(--clay-900);
  background: #fff;
}

.subscribe-stack input[type="text"]::placeholder {
  color: var(--clay-300);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .contact-grid .contact-panel {
    height: 100%;
  }

  .contact-grid .subscribe-inline {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .hero-grid,
  .page-intro-grid,
  .collection-grid,
  .story-grid,
  .shop-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-inline,
  .subscribe-footer-inline {
    flex-direction: column;
  }

  .hero-feature-link {
    min-height: 340px;
  }

  .subscribe-inline input[type="email"],
  .subscribe-footer-inline input[type="email"],
  .subscribe-inline .btn,
  .subscribe-footer-inline .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .shop-grid .buy-now,
  .shop-grid .product-instagram-link {
    width: 100%;
    text-align: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

/* ---- Forced colors / High Contrast mode ---- */

@media (forced-colors: active) {
  .hero-card,
  .hero-feature-link,
  .instagram-card,
  .collection-tile,
  .story-panel,
  .product-card,
  .contact-panel,
  .fresh-drops-panel {
    border: 2px solid ButtonBorder;
    box-shadow: none;
  }

  .subscribe-inline input[type="email"],
  .subscribe-footer-inline input[type="email"] {
    border: 2px solid ButtonBorder;
    background: Canvas;
    color: CanvasText;
  }

  .subscribe-stack input[type="text"] {
    border: 2px solid ButtonBorder;
    background: Canvas;
    color: CanvasText;
  }

  .site-header {
    backdrop-filter: none;
    border-bottom: 2px solid ButtonBorder;
  }

  .btn-rustic,
  .btn-outline-rustic {
    border: 2px solid ButtonBorder;
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  svg {
    fill: currentColor;
    stroke: currentColor;
  }

  .lightbox-container {
    border: 2px solid ButtonBorder;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    border: 2px solid ButtonBorder;
    color: ButtonText;
    background: Canvas;
  }

  .lightbox-thumb {
    border: 2px solid ButtonBorder;
  }

  .lightbox-thumb--active {
    outline: 3px solid Highlight;
  }
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(14, 9, 7, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* Invisible backdrop for click-to-close */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.lightbox-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100dvh - 2rem);
  background: #1a110d;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

/* Header: count + close */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  flex-shrink: 0;
}

.lightbox-count {
  font-size: 0.8rem;
  color: rgba(240, 230, 215, 0.5);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 230, 215, 0.85);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Stage: prev / zoom-area / next */
.lightbox-stage {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 0;
  gap: 0;
}

.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(240, 230, 215, 0.55);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

/* Zoom area — overflow auto so native zoom/pinch can scroll the image */
.lightbox-zoom-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* allow pinch-zoom without blocking single-finger swipe navigation */
  touch-action: pan-x pan-y pinch-zoom;
  max-height: calc(100dvh - 11rem);
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 260ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-img--visible {
  opacity: 1;
}

/* Caption */
.lightbox-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 0.6rem 1rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.lightbox-title {
  color: rgba(240, 230, 215, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-details {
  color: rgba(240, 230, 215, 0.45);
  font-size: 0.82rem;
}

.lightbox-shop-link {
  margin-left: auto;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

/* Thumbnail strip */
.lightbox-thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 1rem 0.65rem;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  /* hide scrollbar visually but keep it functional */
  scrollbar-width: none;
}

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

.lightbox-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  padding: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 180ms ease, border-color 180ms ease;
}

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

.lightbox-thumb:hover,
.lightbox-thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.lightbox-thumb--active {
  border-color: var(--clay-300);
  opacity: 1;
}

/* Gallery card trigger */
.instagram-lightbox {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.instagram-lightbox:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.instagram-lightbox img {
  transition: transform 300ms ease, filter 300ms ease;
}

.instagram-card:hover .instagram-lightbox img,
.instagram-lightbox:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

/* lightGallery tuning */
.lg-backdrop {
  background-color: rgba(14, 9, 7, 0.92);
}

.lg-outer .lg-thumb-outer {
  background: #1a110d;
}

.lg-outer .lg-thumb-item {
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
  border-color: var(--clay-300);
}

.lg-outer .lg-sub-html h4,
.lg-outer .lg-sub-html p {
  color: rgba(240, 230, 215, 0.95);
}

.lg-outer .lg-sub-html {
  background: linear-gradient(180deg, rgba(20, 13, 10, 0.94) 0%, rgba(20, 13, 10, 0.98) 100%);
  padding: 1rem 1.25rem 1.1rem !important;
  text-align: center;
}

.lg-outer .lg-sub-html h4 {
  margin: 0 0 0.45rem;
  font-family: "Alegreya", Georgia, serif;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
}

.lg-outer .lg-sub-html p {
  margin: 0 0 0.4rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
  font-weight: 700;
  line-height: 1.28;
}

.lg-outer .lg-sub-html p:last-of-type {
  margin-bottom: 0;
}

.lg-outer .lg-sub-html a {
  color: var(--sand-100);
  font-weight: 800;
  text-decoration: underline;
}

/* Responsive: tighter on mobile */
@media (max-width: 600px) {
  .lightbox {
    padding: 0;
  }

  .lightbox-container {
    max-height: 100dvh;
    border-radius: 0;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 2.25rem;
    font-size: 2rem;
  }

  .lightbox-zoom-area {
    max-height: calc(100dvh - 9rem);
  }

  .lightbox-thumb {
    width: 42px;
    height: 42px;
  }

  .lg-outer .lg-thumb-item {
    width: 96px !important;
    height: 72px !important;
  }
}
