/*
 * Orbyt Content Gallery & Lightbox Styles
 * High-performance, responsive galleries for CMS pages: Grid, Masonry, Carousel, Hero
 */

/* ==========================================================================
   Gallery Container & Base Item
   ========================================================================== */

.content-gallery {
  position: relative;
  margin: 28px 0;
  width: 100%;
}

.content-gallery-track,
.content-gallery-grid {
  display: grid;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Layouts */
.content-gallery.is-layout-grid-2 .content-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-gallery.is-layout-grid-3 .content-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-gallery.is-layout-grid-4 .content-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-gallery.is-layout-masonry .content-gallery-grid {
  display: block;
  column-count: 3;
  column-gap: 16px;
}

.content-gallery.is-layout-masonry .content-gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  display: inline-block;
  width: 100%;
}

/* Gap Spacing */
.content-gallery.is-gap-compact .content-gallery-grid,
.content-gallery.is-gap-compact .content-gallery-track {
  gap: 8px;
}
.content-gallery.is-gap-compact.is-layout-masonry .content-gallery-grid {
  column-gap: 8px;
}
.content-gallery.is-gap-compact.is-layout-masonry .content-gallery-item {
  margin-bottom: 8px;
}

.content-gallery.is-gap-normal .content-gallery-grid,
.content-gallery.is-gap-normal .content-gallery-track {
  gap: 16px;
}
.content-gallery.is-gap-normal.is-layout-masonry .content-gallery-grid {
  column-gap: 16px;
}
.content-gallery.is-gap-normal.is-layout-masonry .content-gallery-item {
  margin-bottom: 16px;
}

.content-gallery.is-gap-spacious .content-gallery-grid,
.content-gallery.is-gap-spacious .content-gallery-track {
  gap: 24px;
}
.content-gallery.is-gap-spacious.is-layout-masonry .content-gallery-grid {
  column-gap: 24px;
}
.content-gallery.is-gap-spacious.is-layout-masonry .content-gallery-item {
  margin-bottom: 24px;
}

/* Gallery Figure / Item */
.content-gallery-item {
  margin: 0;
  position: relative;
  background: var(--color-surface, #111520);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(99, 102, 241, 0.15);
}

.content-gallery-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.content-gallery-link[target="_blank"] {
  cursor: pointer;
}

.content-gallery-media {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.content-gallery-img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-gallery-item:hover .content-gallery-img {
  transform: scale(1.04);
}

/* Aspect Ratios */
.content-gallery.is-aspect-16-9 .content-gallery-media {
  aspect-ratio: 16 / 9;
}
.content-gallery.is-aspect-16-9 .content-gallery-img {
  object-fit: cover;
}

.content-gallery.is-aspect-4-3 .content-gallery-media {
  aspect-ratio: 4 / 3;
}
.content-gallery.is-aspect-4-3 .content-gallery-img {
  object-fit: cover;
}

.content-gallery.is-aspect-1-1 .content-gallery-media {
  aspect-ratio: 1 / 1;
}
.content-gallery.is-aspect-1-1 .content-gallery-img {
  object-fit: cover;
}

.content-gallery.is-aspect-natural .content-gallery-media {
  aspect-ratio: auto;
}
.content-gallery.is-aspect-natural .content-gallery-img {
  max-height: 480px;
  object-fit: contain;
}

/* Zoom Pill Badge */
.content-gallery-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.content-gallery-item:hover .content-gallery-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Captions */
.content-gallery-caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text, #cbd5e1);
  padding: 10px 14px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.05));
  margin: 0;
  text-align: left;
}

.content-gallery.has-captions-overlay .content-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(to top, rgba(10, 14, 25, 0.92) 0%, rgba(10, 14, 25, 0.6) 70%, transparent 100%);
  border-top: none;
  color: #fff;
  z-index: 2;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.content-gallery.has-captions-overlay .content-gallery-item:hover .content-gallery-caption {
  opacity: 1;
}

.content-gallery.has-captions-none .content-gallery-caption {
  display: none !important;
}

/* ==========================================================================
   Carousel Layout
   ========================================================================== */

.content-gallery.is-layout-carousel .content-gallery-carousel-viewport {
  position: relative;
  width: 100%;
}

.content-gallery.is-layout-carousel .content-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
}

.content-gallery.is-layout-carousel .content-gallery-track::-webkit-scrollbar {
  display: none;
}

.content-gallery.is-layout-carousel .content-gallery-item {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 260px;
  scroll-snap-align: start;
}

/* Carousel Nav Buttons */
.content-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  user-select: none;
}

.content-gallery-nav:hover {
  background: rgba(99, 102, 241, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.content-gallery-nav.content-gallery-prev {
  left: -16px;
}

.content-gallery-nav.content-gallery-next {
  right: -16px;
}

/* Dots */
.content-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.content-gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.content-gallery-dot.is-active {
  width: 26px;
  background: var(--color-primary, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   Hero Showcase Layout
   ========================================================================== */

.content-gallery.is-layout-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-gallery-hero-main {
  width: 100%;
}

.content-gallery-hero-main .content-gallery-item {
  width: 100%;
}

.content-gallery-hero-main .content-gallery-media {
  max-height: 520px;
}

.content-gallery-hero-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.content-gallery-thumb-btn {
  flex: 0 0 86px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-gallery-thumb-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.content-gallery-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--color-primary, #6366f1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px) scale(1.04);
}

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

/* ==========================================================================
   Single Standalone Image Figure
   ========================================================================== */

.content-single-image {
  margin: 28px 0;
  background: var(--color-surface, #111520);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
  max-width: 100%;
}

.content-single-image:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.content-single-image a {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}

.content-single-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 650px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.content-single-caption {
  font-size: 13px;
  color: var(--color-text, #cbd5e1);
  padding: 10px 16px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.05));
  margin: 0;
}

.content-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
  margin: 4px 0;
}

/* ==========================================================================
   Full Screen Lightbox Modal
   ========================================================================== */

.content-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(7, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.content-lightbox-overlay.is-open {
  opacity: 1;
}

.content-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
}

.content-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.1) rotate(90deg);
}

.content-lightbox-viewport {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.content-lightbox-overlay.is-open .content-lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.content-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.content-lightbox-arrow:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-50%) scale(1.12);
}

.content-lightbox-prev {
  left: 24px;
}

.content-lightbox-next {
  right: 24px;
}

.content-lightbox-footer {
  margin-top: 16px;
  max-width: 800px;
  text-align: center;
  color: #f1f5f9;
}

.content-lightbox-counter {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--color-primary, #818cf8);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.content-lightbox-caption {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Admin Editor Toolbar & Gallery Builder Modal
   ========================================================================== */

.content-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-top: 8px;
}

.content-editor-toolbar .toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-editor-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gallery Builder Modal Dialog */
.gallery-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 8, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal-dialog {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: var(--color-surface, #131724);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.02));
}

.gallery-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-bright, #fff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted, #94a3b8);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.gallery-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
}

.gallery-config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-config-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, #94a3b8);
}

.gallery-upload-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gallery-upload-dropzone:hover,
.gallery-upload-dropzone.is-dragover {
  border-color: var(--color-primary, #6366f1);
  background: rgba(99, 102, 241, 0.1);
}

.gallery-images-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-image-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 8px 12px;
}

.gallery-image-row-thumb {
  width: 54px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.gallery-image-row-inputs {
  display: flex;
  flex-grow: 1;
  gap: 8px;
}

.gallery-image-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.02));
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .content-gallery.is-layout-grid-3 .content-gallery-grid,
  .content-gallery.is-layout-grid-4 .content-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-gallery.is-layout-masonry .content-gallery-grid {
    column-count: 2;
  }
  .content-gallery.is-layout-carousel .content-gallery-item {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 580px) {
  .content-gallery.is-layout-grid-2 .content-gallery-grid,
  .content-gallery.is-layout-grid-3 .content-gallery-grid,
  .content-gallery.is-layout-grid-4 .content-gallery-grid {
    grid-template-columns: 1fr;
  }
  .content-gallery.is-layout-masonry .content-gallery-grid {
    column-count: 1;
  }
  .content-gallery.is-layout-carousel .content-gallery-item {
    flex: 0 0 85%;
  }
  .content-gallery-nav.content-gallery-prev {
    left: 4px;
  }
  .content-gallery-nav.content-gallery-next {
    right: 4px;
  }
}


/* ==========================================================================
   Gallery & Single Image Modal Form Controls, Polish & Dark Theme
   ========================================================================== */

.gallery-modal-backdrop[hidden] {
  display: none !important;
}

.gallery-modal-dialog {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: var(--color-surface, #0d131f) !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.14)) !important;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text, #cbd5e1);
  box-sizing: border-box;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
}

.gallery-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-bright, #ffffff) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-modal-close {
  background: transparent !important;
  border: none !important;
  color: var(--color-text-muted, #94a3b8) !important;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.gallery-modal-close:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.gallery-modal-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom Scrollbar for Modal */
.gallery-modal-body::-webkit-scrollbar,
.gallery-images-list::-webkit-scrollbar,
#media-library-grid::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.gallery-modal-body::-webkit-scrollbar-track,
.gallery-images-list::-webkit-scrollbar-track,
#media-library-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.gallery-modal-body::-webkit-scrollbar-thumb,
.gallery-images-list::-webkit-scrollbar-thumb,
#media-library-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.gallery-modal-body::-webkit-scrollbar-thumb:hover,
.gallery-images-list::-webkit-scrollbar-thumb:hover,
#media-library-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary, #00f0ff);
}

/* Modal Form Controls: Selects */
.gallery-modal-dialog .orb-select,
.gallery-modal-dialog select {
  background-color: #0b101b !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 11px !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.14)) !important;
  color: var(--color-text-bright, #ffffff) !important;
  border-radius: 8px !important;
  padding: 9px 34px 9px 12px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  height: 40px !important;
}

.gallery-modal-dialog .orb-select:hover,
.gallery-modal-dialog select:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.gallery-modal-dialog .orb-select:focus,
.gallery-modal-dialog select:focus {
  outline: none !important;
  border-color: var(--color-cyan, #00f0ff) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25) !important;
  background-color: #070a12 !important;
}

.gallery-modal-dialog select option {
  background-color: #0d131f !important;
  color: #f8fafc !important;
  padding: 8px 12px !important;
}

/* Modal Form Controls: Inputs */
.gallery-modal-dialog .orb-input,
.gallery-modal-dialog input[type="text"],
.gallery-modal-dialog input[type="url"] {
  background-color: #0b101b !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.14)) !important;
  color: var(--color-text-bright, #ffffff) !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 40px !important;
}

.gallery-modal-dialog .orb-input:hover,
.gallery-modal-dialog input[type="text"]:hover,
.gallery-modal-dialog input[type="url"]:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.gallery-modal-dialog .orb-input:focus,
.gallery-modal-dialog input[type="text"]:focus,
.gallery-modal-dialog input[type="url"]:focus {
  outline: none !important;
  border-color: var(--color-cyan, #00f0ff) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25) !important;
  background-color: #070a12 !important;
}

.gallery-modal-dialog .orb-input::placeholder,
.gallery-modal-dialog input[type="text"]::placeholder,
.gallery-modal-dialog input[type="url"]::placeholder {
  color: var(--color-text-muted, #64748b) !important;
  opacity: 0.85;
}

/* Checkboxes */
.gallery-modal-dialog input[type="checkbox"] {
  accent-color: var(--color-cyan, #00f0ff);
  width: 16px;
  height: 16px;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 8px;
}

/* Dropzone Styling */
.gallery-upload-dropzone {
  border: 2px dashed rgba(0, 240, 255, 0.35) !important;
  background: rgba(0, 240, 255, 0.03) !important;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gallery-upload-dropzone:hover,
.gallery-upload-dropzone.is-dragover {
  border-color: var(--color-cyan, #00f0ff) !important;
  background: rgba(0, 240, 255, 0.08) !important;
}

/* Modal Buttons */
.gallery-modal-dialog .orbyt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.gallery-modal-dialog .orbyt-btn-sm {
  height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  width: auto;
}

.gallery-modal-dialog .orbyt-btn-xs {
  height: 32px;
  padding: 6px 12px;
  font-size: 12px;
  width: auto;
}

.gallery-modal-dialog .orbyt-btn-primary {
  background: linear-gradient(135deg, var(--color-primary, #00f0ff), #00b0ff) !important;
  color: #06090e !important;
  border: 1px solid transparent !important;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25) !important;
}

.gallery-modal-dialog .orbyt-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35) !important;
}

.gallery-modal-dialog .orbyt-btn-primary:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.gallery-modal-dialog .orbyt-btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.16)) !important;
  color: var(--color-text-bright, #ffffff) !important;
}

.gallery-modal-dialog .orbyt-btn-secondary:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  border-color: var(--color-cyan, #00f0ff) !important;
  color: var(--color-cyan, #00f0ff) !important;
}

.gallery-modal-dialog .orbyt-btn-outline {
  background: transparent !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.18)) !important;
  color: var(--color-text-bright, #ffffff) !important;
}

.gallery-modal-dialog .orbyt-btn-outline:hover {
  border-color: var(--color-primary, #00f0ff) !important;
  color: var(--color-primary, #00f0ff) !important;
  background: rgba(0, 240, 255, 0.05) !important;
}

.gallery-modal-dialog .orbyt-btn-ghost {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--color-text-muted, #94a3b8) !important;
}

.gallery-modal-dialog .orbyt-btn-ghost:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.gallery-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.02));
}

/* Image Row Controls */
.gallery-image-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 8px 12px;
}

.gallery-image-row .orb-input {
  height: 36px !important;
  font-size: 12.5px !important;
}
