/* ═════════════════════════════════════════════════════════════════════
   MindOnShake Pro Gallery & Lightbox Styles
   Modern, Rich UI/UX for WordPress Posts & Pages
   ═════════════════════════════════════════════════════════════════════ */

/* ── Container & Global Reset ───────────────────────────────────────── */
.mos-gallery-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  clear: both;
}

.mos-gallery-wrapper * {
  box-sizing: border-box;
}

/* Reset Tailwind Typography .prose margins inside gallery items */
.prose .mos-gallery-wrapper figure,
.prose .mos-gallery-wrapper img,
.prose .mos-gallery-item,
.prose .mos-gallery-img,
.mos-gallery-wrapper figure,
.mos-gallery-wrapper img {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
}

.prose .mos-gallery-wrapper figcaption {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Hide scrollbars for carousel and thumbnail tracks */
.mos-no-scrollbar::-webkit-scrollbar {
  display: none;
}
.mos-no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Filter Tabs ────────────────────────────────────────────────────── */
.mos-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mos-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.dark .mos-filter-btn {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
}

.mos-filter-btn:hover {
  background: #fff3ec;
  border-color: #ff5e1e;
  color: #ff5e1e;
  transform: translateY(-1px);
}

.dark .mos-filter-btn:hover {
  background: rgba(255, 94, 30, 0.15);
  border-color: #ff5e1e;
  color: #ff8347;
}

.mos-filter-btn.active {
  background: #ff5e1e !important;
  border-color: #ff5e1e !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(255, 94, 30, 0.35);
  transform: translateY(-1px);
}

.mos-filter-count {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
}
.mos-filter-btn.active .mos-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ── Item Filtering Animation ───────────────────────────────────────── */
.mos-gallery-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: transform, opacity;
}

.mos-gallery-item.mos-item-hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.92);
}

/* ── Layout: Bento Grid ─────────────────────────────────────────────── */
.mos-layout-bento {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mos-layout-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
  }

  /* 2x2 Hero tile on small tablet+ */
  .mos-layout-bento .mos-gallery-item:nth-child(1),
  .mos-layout-bento .mos-gallery-item.mos-bento-featured {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }
}

@media (min-width: 768px) {
  .mos-layout-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

  /* 4th item spans 2 columns wide */
  .mos-layout-bento .mos-gallery-item:nth-child(4) {
    grid-column: span 2 / span 2;
  }

  /* 7th item is a 2-row vertical showcase */
  .mos-layout-bento .mos-gallery-item:nth-child(7) {
    grid-row: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .mos-layout-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 280px;
  }

  .mos-layout-bento .mos-gallery-item:nth-child(1),
  .mos-layout-bento .mos-gallery-item.mos-bento-featured {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }

  .mos-layout-bento .mos-gallery-item:nth-child(5) {
    grid-column: span 2 / span 2;
  }
}

/* Bento item container strictly fills the grid area */
.mos-layout-bento .mos-gallery-item {
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
}

/* Bento card fills 100% of the item slot */
.mos-layout-bento .mos-gallery-card {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: block !important;
  overflow: hidden !important;
}

/* Bento photos fill 100% of their area with object-fit: cover */
.mos-layout-bento .mos-gallery-img,
.mos-layout-bento.mos-aspect-original .mos-gallery-img,
.mos-layout-bento.mos-aspect-square .mos-gallery-img,
.mos-layout-bento.mos-aspect-4-3 .mos-gallery-img,
.mos-layout-bento.mos-aspect-16-9 .mos-gallery-img,
.mos-layout-bento.mos-aspect-3-2 .mos-gallery-img,
.mos-layout-bento .mos-gallery-card img,
.mos-layout-bento figure img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  aspect-ratio: auto !important;
  display: block !important;
}

/* ── Layout: Masonry ────────────────────────────────────────────────── */
.mos-layout-masonry {
  column-gap: 1rem;
}

.mos-layout-masonry.mos-cols-1 { column-count: 1; }
.mos-layout-masonry.mos-cols-2 { column-count: 1; }
.mos-layout-masonry.mos-cols-3 { column-count: 1; }
.mos-layout-masonry.mos-cols-4 { column-count: 1; }
.mos-layout-masonry.mos-cols-5 { column-count: 1; }
.mos-layout-masonry.mos-cols-6 { column-count: 1; }

@media (min-width: 640px) {
  .mos-layout-masonry.mos-cols-2 { column-count: 2; }
  .mos-layout-masonry.mos-cols-3 { column-count: 2; }
  .mos-layout-masonry.mos-cols-4 { column-count: 2; }
  .mos-layout-masonry.mos-cols-5 { column-count: 3; }
  .mos-layout-masonry.mos-cols-6 { column-count: 3; }
}

@media (min-width: 768px) {
  .mos-layout-masonry.mos-cols-3 { column-count: 3; }
  .mos-layout-masonry.mos-cols-4 { column-count: 3; }
  .mos-layout-masonry.mos-cols-5 { column-count: 4; }
  .mos-layout-masonry.mos-cols-6 { column-count: 4; }
}

@media (min-width: 1024px) {
  .mos-layout-masonry.mos-cols-4 { column-count: 4; }
  .mos-layout-masonry.mos-cols-5 { column-count: 5; }
  .mos-layout-masonry.mos-cols-6 { column-count: 6; }
}

.mos-layout-masonry .mos-gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* ── Layout: Classic Grid ───────────────────────────────────────────── */
.mos-layout-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .mos-layout-grid.mos-cols-2,
  .mos-layout-grid.mos-cols-3,
  .mos-layout-grid.mos-cols-4,
  .mos-layout-grid.mos-cols-5,
  .mos-layout-grid.mos-cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .mos-layout-grid.mos-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mos-layout-grid.mos-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mos-layout-grid.mos-cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mos-layout-grid.mos-cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .mos-layout-grid.mos-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mos-layout-grid.mos-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mos-layout-grid.mos-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ── Gap Spacing Presets ─────────────────────────────────────────────── */
.mos-gap-none { gap: 0 !important; column-gap: 0 !important; }
.mos-gap-none .mos-layout-masonry .mos-gallery-item { margin-bottom: 0 !important; }

.mos-gap-small { gap: 0.5rem !important; column-gap: 0.5rem !important; }
.mos-gap-small .mos-gallery-item { margin-bottom: 0.5rem !important; }

.mos-gap-medium { gap: 1rem !important; column-gap: 1rem !important; }
.mos-gap-medium .mos-gallery-item { margin-bottom: 1rem !important; }

.mos-gap-large { gap: 1.5rem !important; column-gap: 1.5rem !important; }
.mos-gap-large .mos-gallery-item { margin-bottom: 1.5rem !important; }

.mos-gap-xl { gap: 2rem !important; column-gap: 2rem !important; }
.mos-gap-xl .mos-gallery-item { margin-bottom: 2rem !important; }

/* ── Aspect Ratio Presets ───────────────────────────────────────────── */
.mos-aspect-square .mos-gallery-img { aspect-ratio: 1 / 1; object-fit: cover; }
.mos-aspect-4-3 .mos-gallery-img    { aspect-ratio: 4 / 3; object-fit: cover; }
.mos-aspect-16-9 .mos-gallery-img   { aspect-ratio: 16 / 9; object-fit: cover; }
.mos-aspect-3-2 .mos-gallery-img    { aspect-ratio: 3 / 2; object-fit: cover; }
.mos-aspect-original .mos-gallery-img { height: auto; }

/* ── Layout: Carousel / Slider ──────────────────────────────────────── */
.mos-layout-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.mos-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 0.5rem 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.mos-layout-carousel-container .mos-gallery-item {
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin-bottom: 0 !important;
}

@media (min-width: 640px) {
  .mos-layout-carousel-container .mos-gallery-item {
    flex: 0 0 55%;
    scroll-snap-align: start;
  }
}

@media (min-width: 768px) {
  .mos-layout-carousel-container .mos-gallery-item {
    flex: 0 0 38%;
  }
}

@media (min-width: 1024px) {
  .mos-layout-carousel-container .mos-gallery-item {
    flex: 0 0 30%;
  }
}

/* Carousel Prev / Next Buttons */
.mos-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #0f172a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.dark .mos-carousel-nav-btn {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(51, 65, 85, 0.6);
  color: #ffffff;
}

.mos-carousel-nav-btn:hover {
  background: #ff5e1e !important;
  border-color: #ff5e1e !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 30px -4px rgba(255, 94, 30, 0.45);
}

.mos-carousel-prev { left: 0.75rem; }
.mos-carousel-next { right: 0.75rem; }

/* Carousel Dots Indicator */
.mos-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
}

.mos-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  padding: 0;
}

.dark .mos-carousel-dot {
  background: rgba(71, 85, 105, 0.6);
}

.mos-carousel-dot.active {
  width: 1.75rem;
  background: #ff5e1e;
  box-shadow: 0 2px 8px rgba(255, 94, 30, 0.4);
}

/* ── Gallery Card & Visual Aesthetics ───────────────────────────────── */
.mos-gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .mos-gallery-card {
  background: #1e293b;
}

/* Border radius presets */
.mos-radius-none .mos-gallery-card { border-radius: 0; }
.mos-radius-rounded-lg .mos-gallery-card { border-radius: 0.5rem; }
.mos-radius-rounded-2xl .mos-gallery-card { border-radius: 1rem; }
.mos-radius-rounded-3xl .mos-gallery-card { border-radius: 1.5rem; }

/* Image element inside card */
.mos-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform;
}

/* Hover Effect: Zoom */
.mos-hover-zoom:hover .mos-gallery-img {
  transform: scale(1.07);
}

/* Hover Effect: Lift */
.mos-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}
.mos-hover-lift:hover .mos-gallery-img {
  transform: scale(1.04);
}

/* Hover Effect: Glow */
.mos-hover-glow:hover {
  box-shadow: 0 0 25px 2px rgba(255, 94, 30, 0.35);
  transform: translateY(-2px);
}
.mos-hover-glow:hover .mos-gallery-img {
  transform: scale(1.05);
}

/* ── Overlays & Micro-Interactions ──────────────────────────────────── */
.mos-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.45) 50%, rgba(2, 6, 23, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
}

.mos-gallery-card:hover .mos-gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Always Visible Caption Style */
.mos-caption-always .mos-gallery-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.3) 45%, rgba(2, 6, 23, 0) 80%);
}

/* Floating Pill Caption Style */
.mos-caption-pill .mos-gallery-overlay {
  padding: 0.75rem;
  justify-content: flex-end;
  background: none;
}
.mos-caption-pill .mos-caption-content {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
}

/* Overlay Titles & Descriptions */
.mos-overlay-title {
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mos-overlay-caption {
  font-family: var(--font-caption, "Lora", serif);
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(241, 245, 249, 0.9);
  margin-top: 0.25rem;
  margin-bottom: 0;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Corner Category Badge */
.mos-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

/* Corner Expand Icon Button */
.mos-expand-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mos-gallery-card:hover .mos-expand-btn {
  opacity: 1;
  transform: translateY(0);
}

.mos-expand-btn:hover {
  background: #ff5e1e !important;
  border-color: #ff5e1e !important;
  transform: scale(1.1) !important;
}

/* ═════════════════════════════════════════════════════════════════════
   World-Class Rich Lightbox Modal
   ═════════════════════════════════════════════ */
.mos-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.mos-lightbox-modal.mos-lb-active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Header Bar */
.mos-lb-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0) 100%);
  z-index: 10;
}

.mos-lb-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mos-lb-counter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.mos-lb-title {
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

.mos-lb-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mos-lb-action-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9375rem;
}

.mos-lb-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.05);
}

.mos-lb-close-btn:hover {
  background: #ff5e1e !important;
  border-color: #ff5e1e !important;
  color: #ffffff !important;
}

/* Lightbox Viewport & Image Stage */
.mos-lb-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem 1rem;
}

.mos-lb-img-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mos-lb-image {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  cursor: zoom-in;
  will-change: transform;
}

.mos-lb-image.mos-lb-zoomed {
  max-width: none;
  max-height: none;
  transform: scale(2);
  cursor: grab;
}

.mos-lb-image.mos-lb-zoomed:active {
  cursor: grabbing;
}

/* Lightbox Prev / Next Chevrons */
.mos-lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 15;
  font-size: 1.125rem;
}

.mos-lb-nav-btn:hover {
  background: #ff5e1e !important;
  border-color: #ff5e1e !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px -4px rgba(255, 94, 30, 0.5);
}

.mos-lb-prev { left: 1rem; }
.mos-lb-next { right: 1rem; }

/* Lightbox Footer & Caption Strip */
.mos-lb-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0) 100%);
  z-index: 10;
}

.mos-lb-caption-text {
  font-family: var(--font-caption, "Lora", serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(241, 245, 249, 0.9);
  text-align: center;
  max-width: 48rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Lightbox Thumbnails Strip */
.mos-lb-thumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 90vw;
  padding: 0.25rem;
}

.mos-lb-thumb {
  flex: 0 0 3.75rem;
  height: 3.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #1e293b;
}

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

.mos-lb-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.mos-lb-thumb.active {
  opacity: 1;
  border-color: #ff5e1e;
  transform: scale(1.08);
  box-shadow: 0 4px 14px 0 rgba(255, 94, 30, 0.45);
}

/* Lightbox Toast / Notification */
.mos-lb-toast {
  position: absolute;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 30;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mos-lb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
