/* gallery.css */

/* Set dark background for gallery pages */
body.lula-has-gallery {
  background-color: #0a0b0d !important;
  background-image: none !important;
}

/* Hide Astra header on gallery pages */
body.lula-has-gallery .ast-primary-header-bar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

body.lula-has-gallery #ast-desktop-header {
  display: none !important;
}

body.lula-has-gallery #ast-desktop-header .site-primary-header-wrap {
  display: none !important;
}

body.lula-has-gallery #ast-desktop-header .site-header-primary-section-left {
  display: none !important;
}

/* Keep mobile header visible but hide only certain parts */
body.lula-has-gallery #ast-mobile-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 4;
}

body.lula-has-gallery #ast-mobile-header .site-header-section-left {
  display: none !important;
}

body.lula-has-gallery .ast-mobile-header-wrap,
body.lula-has-gallery .ast-primary-header-bar .ast-builder-grid-row {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Position mobile toggle button on right side of mini-bar */
body.lula-has-gallery .ast-mobile-menu-trigger-minimal {
  position: absolute !important;
  top: 8px !important;
  right: 16px !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
  padding: 6px !important;
  color: #b08d57 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.lula-has-gallery #ast-mobile-header .ast-mobile-menu-trigger-minimal {
  position: absolute !important;
  top: 8px !important;
  right: 16px !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.lula-has-gallery .ast-mobile-svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Hide sticky/fixed headers */
body.lula-has-gallery .ast-header-sticked,
body.lula-has-gallery .ast-header-sticked #masthead,
body.lula-has-gallery .ast-sticky-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}

/* Remove content padding on gallery pages */
body.lula-has-gallery .site-content {
  padding: 0 !important;
  margin-top: 0 !important;
  background-color: #0a0b0d !important; /* Crna pozadina ispod galerije */
}

body.lula-has-gallery .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  background-color: #0a0b0d !important; /* Crna pozadina za ast-container */
}

/* Remove any top spacing from page wrapper */
body.lula-has-gallery #page {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: #0a0b0d !important; /* Crna pozadina za page */
}

/* Remove spacing from main content area */
body.lula-has-gallery #primary,
body.lula-has-gallery main#main,
body.lula-has-gallery .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: #0a0b0d !important; /* Crna pozadina */
}

body.lula-has-gallery #content {
  background-color: #0a0b0d !important; /* Crna pozadina za content */
}

/* Ensure lula-mini-bar starts at the very top */
body.lula-has-gallery .lula-mini-bar {
  margin-top: 0 !important;
  padding-top: 10px;
}

/* Hide entry title and header on gallery pages */
body.lula-has-gallery .entry-header,
body.lula-has-gallery .entry-title {
  display: none !important;
}

/* Remove spacing from article and entry content */
body.lula-has-gallery article,
body.lula-has-gallery .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Hide Astra copyright footer on gallery pages */
body.lula-has-gallery #colophon .site-below-footer-wrap,
body.lula-has-gallery #colophon .ast-builder-footer-grid-columns,
body.lula-has-gallery #colophon .ast-footer-copyright {
  display: none !important;
}

/* Remove spacing between gallery and custom footer */
body.lula-has-gallery .lula-gallery {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Add padding to last element inside gallery to maintain spacing */
body.lula-has-gallery .lula-gallery > *:last-child {
  padding-bottom: 32px;
  margin-bottom: 0;
}

body.lula-has-gallery .lula-footer-separator {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Ensure footer starts immediately after gallery */
body.lula-has-gallery #lula-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ensure footer quote has same top spacing as on landing page */
body.lula-has-gallery .lula-footer__quote {
  padding-top: 44px;
  margin-top: 0;
}

@media (max-width: 980px) {
  body.lula-has-gallery .lula-footer__quote {
    padding-top: 40px;
  }
}

/* Mini bar - premium header bar */
.lula-mini-bar {
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  position: relative;
  padding-right: 64px; /* prostor za mobilni toggle */
  margin-top: 0;
}

.lula-mini-bar .lula-container {
  width: min(1200px, calc(100% - 2*32px));
  margin-inline: auto;
}

@media (max-width: 780px) {
  .lula-mini-bar .lula-container {
    width: calc(100% - 2*22px);
  }
}

.lula-mini-bar .trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lula-mini-bar .trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}

.lula-mini-bar .trust-chip::before {
  content: "";
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23b08d57' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.45));
  flex-shrink: 0;
}

.lula-mini-bar .trust-social {
  min-width: 28px;
  justify-content: center;
  color: rgba(255,255,255,.70) !important;
  opacity: .85;
  transition: color .22s ease, opacity .22s ease;
}

.lula-mini-bar .trust-social::before {
  content: none;
}

.lula-mini-bar .trust-social svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
  transition: inherit;
}

.lula-mini-bar .trust-social:hover {
  color: #b08d57 !important;
  opacity: 1;
}

.lula-mini-bar .trust-social:hover svg {
  opacity: 1;
}

.lula-mini-bar .trust-link {
  color: rgba(255,255,255,.70) !important;
  opacity: .9;
  transition: color .22s ease, opacity .22s ease;
}

.lula-mini-bar .trust-link:hover {
  color: #b08d57 !important;
  opacity: 1;
}

.lula-gallery,
.lula-single {
  --lula-bg: #0f0f11;
  --lula-gold: #c89a4b;
  --lula-text: #e8e5de;
  --lula-muted: rgba(232, 229, 222, 0.68);
  --lula-divider: linear-gradient(90deg, transparent, rgba(200, 154, 75, 0.4), transparent);
  --lula-panel-bg: rgba(15, 15, 17, 0.7);
  --lula-radius: 14px;
  --lula-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  --lula-font-family: "Inter", sans-serif;
  --lula-texture-url: none;
  --lula-gallery-overlay-url: none;

  background: var(--lula-bg);
  background-image:
    var(--lula-texture-url),
    var(--lula-gallery-overlay-url);
  background-size: cover, cover;
  background-repeat: repeat, no-repeat;
  background-position: center, center;
  background-blend-mode: multiply, normal;
  color: var(--lula-text);
  font-family: var(--lula-font-family, "Inter", sans-serif);
  border-radius: var(--lula-radius);
  box-shadow: var(--lula-shadow);
  line-height: 1.6;
}

.lula-gallery {
  position: relative;
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: rgba(20, 18, 16, 0.98);
  background-image:
    radial-gradient(circle at top, rgba(200, 154, 75, 0.08), transparent 55%),
    var(--lula-texture-url),
    var(--lula-gallery-overlay-url);
  background-size: cover, 200% 200%, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center, center, center;
  background-blend-mode: normal, multiply, normal;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Brončana crta iznad galerije koja nestaje pri krajevima */
.lula-gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 105%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 154, 75, 0.6), transparent);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.lula-gallery::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(108px, 16.2%, 162px);
  z-index: 99;
  pointer-events: none;
  
  /* Premium fade-out prijelaz kao na story sekciji */
  background:
    radial-gradient(
      ellipse 140% 100% at 50% 100%,
      rgba(10, 10, 12, 0.92) 0%,
      rgba(12, 11, 10, 0.68) 35%,
      rgba(15, 13, 12, 0.38) 60%,
      transparent 85%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(8, 8, 10, 0.15) 25%,
      rgba(10, 10, 12, 0.35) 50%,
      rgba(10, 10, 12, 0.65) 75%,
      rgba(10, 10, 12, 0.95) 100%
    );
}

.lula-gallery__header {
  position: relative;
  /* Mora biti iznad layout/results slojeva (koji su z-index 100/101),
     da dropdown (sort) ostane klikabilan i kad se otvori preko grid-a. */
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 1px solid rgba(200, 154, 75, 0.18);
  padding-bottom: 18px;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

.lula-gallery__header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lula-gold), transparent);
  opacity: 0.9;
}

.lula-gallery__controls {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  position: relative;
  z-index: 111;
}

.lula-gallery__titles {
  max-width: 720px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.lula-gallery__eyebrow {
  color: var(--lula-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.lula-gallery__title {
  margin: 0 0 8px;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  position: relative;
}

.lula-gallery__title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lula-gold), transparent);
  opacity: 0.9;
}

.lula-gallery__subtitle {
  margin: 0;
  opacity: 0.8;
  font-style: normal;
  font-size: 0.99rem;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-gallery__tabs {
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(48, 38, 30, 0.92), rgba(26, 21, 17, 0.9));
  border: 1px solid rgba(200, 154, 75, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: visible;
  backdrop-filter: blur(8px);
  grid-column: 2;
  justify-self: center;
}

.lula-gallery__tab {
  position: relative;
  color: var(--lula-text);
  text-decoration: none;
  padding: 11px 24px;
  border: 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-radius 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(8px);
  min-width: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border-radius: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  /* sigurnosno: nikad ne rasteži tabove u fleks kontejneru (ako tema nešto override-a) */
  flex: 0 0 auto;
  white-space: nowrap;
}

.lula-gallery__tab + .lula-gallery__tab {
  border-left: 1px solid rgba(176,141,87,.55);
}

.lula-gallery__tab:nth-child(1) {
  flex-basis: 25%;
}

.lula-gallery__tab:nth-child(2) {
  flex-basis: 40%;
}

.lula-gallery__tab:nth-child(3) {
  flex-basis: 35%;
}

.lula-gallery__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: 0;
  transition: background 0.18s ease, border-radius 0.18s ease;
  z-index: -1;
}

.lula-gallery__tab.is-first {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.lula-gallery__tab.is-last {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.lula-gallery__tab:hover::before,
.lula-gallery__tab:focus-visible::before {
  background: transparent;
  border-radius: 0;
}

.lula-gallery__tab:hover,
.lula-gallery__tab:focus-visible {
  color: var(--lula-text);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border-color: rgba(176,141,87,.40);
  outline: none;
  z-index: 1;
}

.lula-gallery__tab.is-first:hover::before,
.lula-gallery__tab.is-first:focus-visible::before {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.lula-gallery__tab.is-last:hover::before,
.lula-gallery__tab.is-last:focus-visible::before {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.lula-gallery__tab.is-active {
  color: #0b0c0f;
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
  border-color: rgba(176,141,87,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.22);
  transform: translateY(0);
  border-radius: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.lula-gallery__tab.is-active.is-first {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.lula-gallery__tab.is-active.is-last {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.lula-gallery__tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(176,141,87,1);
  border-bottom: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 5;
}

.lula-gallery__filters-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(8px);
  color: var(--lula-text);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select: none;
  text-decoration: none;
}

.lula-gallery__filters-toggle:hover,
.lula-gallery__filters-toggle:focus,
.lula-gallery__filters-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  border-color: rgba(176,141,87,.40);
  /* Override Astra plavi background/outline */
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)) !important;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)) !important;
  outline: none !important;
}

.lula-gallery__filters-toggle:active {
  transform: translateY(0px);
  box-shadow: none;
  /* Override Astra plavi background/outline */
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)) !important;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)) !important;
  outline: none !important;
}

.lula-gallery__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 87, 0.78);
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  filter: drop-shadow(0 14px 38px rgba(0,0,0,.38));
  color: #0b0c0f;
  position: relative;
  overflow: visible;
  grid-column: 3;
  justify-self: end;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  height: 41px;
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  width: auto;
  max-width: 100%;
  z-index: 25;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lula-gallery__sort * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lula-gallery__sort *::selection {
  background: rgba(176,141,87,0.35);
  color: #0b0c0f;
}

.lula-gallery__sort *::-moz-selection {
  background: rgba(176,141,87,0.35);
  color: #0b0c0f;
}

.lula-gallery__sort-label {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lula-gallery__sort-select {
  display: none;
}

/* Kad JS napravi custom dropdown, sakrij "stari" SVG caret da ne bude dvostruk */
.lula-gallery__sort.is-enhanced .lula-gallery__sort-icon {
  display: none !important;
}

.lula-gallery__sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: transparent;
  border: 0;
  color: #0b0c0f;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  min-height: 19px;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Astra/global button hover/focus često ubacuje plavu pozadinu – mi to gasimo */
.lula-gallery__sort-toggle:hover,
.lula-gallery__sort-toggle:active,
.lula-gallery__sort-toggle:focus,
.lula-gallery__sort-toggle:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.lula-gallery__sort-value {
  color: #0b0c0f;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.3;
  padding-right: 24px;
}

.lula-gallery__sort-caret {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #0b0c0f;
  border-bottom: 2px solid #0b0c0f;
  transform: rotate(45deg);
  margin-left: 6px;
  flex-shrink: 0;
}

.lula-gallery__sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(176,141,87,1);
  border: 1px solid rgba(176, 141, 87, 0.9);
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
  overflow: hidden;
  /* Extra safety: unutar headera želimo da menu bude na vrhu */
  z-index: 130;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.lula-gallery__sort.is-open .lula-gallery__sort-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lula-gallery__sort-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #0b0c0f;
  cursor: pointer;
}

.lula-gallery__sort-option:hover,
.lula-gallery__sort-option:focus-visible {
  background: rgba(48, 38, 30, 0.92);
  color: var(--lula-text);
  outline: none;
}

.lula-gallery__sort-option.is-active {
  background: rgba(48, 38, 30, 0.92);
  color: var(--lula-text);
}

.lula-gallery__sort-menu:focus-visible {
  outline: 2px solid var(--lula-gold);
  outline-offset: 2px;
}


.lula-gallery__sort-select:focus-visible {
  outline: none;
}

.lula-gallery__sort:focus-within {
  outline: 2px solid var(--lula-gold);
  outline-offset: 2px;
}

.lula-gallery__sort-icon {
  width: 14px;
  height: 14px;
  color: #0b0c0f;
  flex-shrink: 0;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lula-gallery__sort:hover {
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.80) 100%);
  border-color: rgba(176, 141, 87, 0.85);
}

.lula-gallery__chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--lula-radius);
  padding: 10px 12px;
}

.lula-gallery__chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lula-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--lula-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.lula-chip__remove {
  font-weight: 700;
}

.lula-gallery__reset {
  color: var(--lula-gold);
  text-decoration: none;
  font-weight: 600;
}

.lula-gallery__layout {
  position: relative;
  z-index: 100; /* Iznad fade-out sloja (koji je z-index: 99) */
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.lula-gallery__filters {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: sticky;
  top: 20px;
}

.lula-gallery__filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lula-filter__group {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.lula-filter__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lula-filter__title {
  margin: 0;
  font-size: 1rem;
}

.lula-filter__list {
  display: grid;
  gap: 8px;
}

.lula-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--lula-muted);
  line-height: 1.35;
  min-width: 0;
  font-weight: 400;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filter__item input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(200, 154, 75, 0.7);
  border-radius: 4px;
  background: rgba(15, 15, 17, 0.6);
  display: grid;
  place-content: center;
  margin: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lula-filter__item input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: var(--lula-text);
  clip-path: polygon(14% 54%, 0 68%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
}

.lula-filter__item input[type="checkbox"]:checked {
  background: rgba(200, 154, 75, 0.25);
  border-color: var(--lula-gold);
}

.lula-filter__item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.lula-filter__item span,
.lula-filter__item a {
  color: var(--lula-muted);
  text-decoration: none;
  word-break: break-word;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filter__price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lula-filter__price input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--lula-text);
  border-radius: var(--lula-radius);
  padding: 8px 10px;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filters {
  width: 100%;
  max-width: 260px;
  flex: 0 0 260px;
  background-color: var(--lula-panel-bg);
  background-image: url('/wp-content/themes/astra-child-lula/assets/img/podloga-galerija-siva.webp');
  background-repeat: repeat;
  background-position: center;
  background-size: 200% 200%;
  background-blend-mode: multiply;
  border-left: 1px solid rgba(200, 154, 75, 0.35);
  border-right: 1px solid rgba(200, 154, 75, 0.35);
  border-top: none;
  border-bottom: none;
  border-radius: var(--lula-radius);
  padding: 14px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filters::before,
.lula-filters::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 154, 75, 0.45), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.lula-filters::before {
  left: 0;
}

.lula-filters::after {
  right: 0;
}

.lula-filters__title {
  margin: 12px 0 0 14px;
  font-size: 1.21rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filters__divider {
  height: 1.1px;
  background: var(--lula-divider);
  margin: 10px 0 6px;
}

.lula-filter-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--lula-text);
  padding: 11px 4px;
  text-align: left;
  cursor: pointer;
  font-weight: 400;
  min-height: 44px;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

/* Normalize interactive states: avoid WP/Astra default focus blue */
.lula-filter-row:hover,
.lula-filter-row:focus,
.lula-filter-row:focus-visible {
  background: rgba(200, 154, 75, 0.08);
}

.lula-filter-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lula-divider);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.lula-filter-row:hover::after,
.lula-filter-row:focus-visible::after {
  opacity: 0.9;
}

.lula-filter-row.is-open {
  background: rgba(200, 154, 75, 0.06);
}

.lula-filter-row.is-open::after {
  opacity: 0.9;
}

.lula-filter-row.is-open .lula-filter-row__chev {
  transform: rotate(90deg);
}

.lula-filter-row__label {
  font-size: 0.98rem;
  white-space: normal;
  word-break: break-word;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filter-row__chev {
  color: rgba(200, 154, 75, 0.7);
  font-size: 1.1rem;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.lula-filter-row[aria-expanded="true"] .lula-filter-row__chev {
  transform: rotate(90deg);
}

.lula-filter-panel {
  position: relative;
  padding: 8px 6px 12px 18px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--lula-muted);
  min-width: 0;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-filter-panel[hidden] {
  display: none !important;
}

.lula-filter-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lula-divider);
  opacity: 0.55;
}

.lula-filter-panel--price,
.lula-filter-panel--height {
  gap: 12px;
}

.lula-price-filter,
.lula-height-filter {
  display: grid;
  gap: 12px;
}

.lula-price-inputs,
.lula-height-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lula-price-field,
.lula-height-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.lula-price-field__label,
.lula-height-field__label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lula-price-field input[type="number"],
.lula-height-field input[type="number"] {
  width: 100%;
  background: rgba(15, 15, 17, 0.65);
  border: 1px solid rgba(200, 154, 75, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--lula-text);
  font-size: 0.95rem;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-price-slider,
.lula-height-slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.lula-price-track,
.lula-price-fill,
.lula-height-track,
.lula-height-fill {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
}

.lula-price-track,
.lula-height-track {
  background: rgba(12, 12, 14, 0.75);
  border: 1px solid rgba(200, 154, 75, 0.35);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 17, 0.4);
}

.lula-price-fill,
.lula-height-fill {
  background: linear-gradient(90deg, rgba(200, 154, 75, 0.85), rgba(222, 186, 110, 0.95));
  box-shadow: 0 0 6px rgba(200, 154, 75, 0.35);
}

.lula-price-range-input,
.lula-height-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 28px;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  box-shadow: none;
  outline: none;
}

body.lula-has-gallery .lula-price-range-input,
body.lula-has-gallery .lula-height-range-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.lula-price-range-input::-webkit-slider-runnable-track,
.lula-height-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.lula-has-gallery .lula-price-range-input::-webkit-slider-runnable-track,
body.lula-has-gallery .lula-height-range-input::-webkit-slider-runnable-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.lula-has-gallery .lula-price-range-input::-webkit-slider-thumb,
body.lula-has-gallery .lula-height-range-input::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: rgba(48, 38, 30, 1) !important;
  background-image: none !important;
  border: 2px solid rgba(176, 141, 87, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
  margin-top: -7px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  pointer-events: auto !important;
}

.lula-price-range-input::-moz-range-track,
.lula-height-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.lula-has-gallery .lula-price-range-input::-moz-range-track,
body.lula-has-gallery .lula-height-range-input::-moz-range-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.lula-has-gallery .lula-price-range-input::-moz-range-thumb,
body.lula-has-gallery .lula-height-range-input::-moz-range-thumb {
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: rgba(48, 38, 30, 1) !important;
  background-image: none !important;
  border: 2px solid rgba(176, 141, 87, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  pointer-events: auto !important;
}

body.lula-has-gallery .lula-price-range-input:hover::-webkit-slider-thumb,
body.lula-has-gallery .lula-height-range-input:hover::-webkit-slider-thumb,
body.lula-has-gallery .lula-price-range-input:hover::-moz-range-thumb,
body.lula-has-gallery .lula-height-range-input:hover::-moz-range-thumb {
  border-color: rgba(176, 141, 87, 1) !important;
  box-shadow: 0 0 0 2px rgba(200, 154, 75, 0.5), 0 2px 8px rgba(200, 154, 75, 0.45) !important;
}

body.lula-has-gallery .lula-price-range-input:focus-visible::-webkit-slider-thumb,
body.lula-has-gallery .lula-height-range-input:focus-visible::-webkit-slider-thumb,
body.lula-has-gallery .lula-price-range-input:focus-visible::-moz-range-thumb,
body.lula-has-gallery .lula-height-range-input:focus-visible::-moz-range-thumb {
  border-color: rgba(176, 141, 87, 1) !important;
  box-shadow: 0 0 0 3px rgba(200, 154, 75, 0.65), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  outline: none !important;
}

.lula-price-range-input--min,
.lula-height-range-input--min {
  z-index: 2;
}

.lula-price-range-input--max,
.lula-height-range-input--max {
  z-index: 3;
}

@media (max-width: 560px) {
  .lula-price-inputs,
  .lula-height-inputs {
    grid-template-columns: 1fr;
  }
}

.lula-filters__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.lula-filters__actions .lula-btn {
  flex: 1 1 auto;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: calc(var(--lula-radius) - 2px);
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-radius 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.lula-filters__actions .lula-btn--primary {
  color: #0b0c0f;
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
  border-color: rgba(176,141,87,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  filter: drop-shadow(0 14px 38px rgba(0,0,0,.38));
}

.lula-filters__actions .lula-btn--primary:hover {
  transform: translateY(0);
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.80) 100%);
  border-color: rgba(176,141,87,.85);
}

.lula-filters__actions .lula-btn--ghost {
  color: var(--lula-text);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.18);
}

.lula-filters__actions .lula-btn--ghost:hover {
  color: var(--lula-text);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border-color: rgba(176,141,87,.40);
}

.lula-filters__mobile-close {
  margin-top: 10px;
  display: none;
  justify-content: flex-end;
}

.lula-filters__mobile-close .lula-btn {
  border: 1px solid rgba(200, 154, 75, 0.5);
  color: var(--lula-text);
  background: transparent;
  border-radius: var(--lula-radius);
  padding: 8px 12px;
  font-weight: 600;
}

.lula-filters__mobile-close .lula-btn:hover {
  background: rgba(200, 154, 75, 0.1);
}

.lula-gallery__grid {
  position: relative;
  z-index: 102; /* Iznad results i fade-out sloja */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 16px;
}

.lula-gallery__empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--lula-radius);
  padding: 24px;
  text-align: center;
  grid-column: 1 / -1;
}

.lula-gallery .lula-card {
  position: relative;
  z-index: 105; /* Iznad fade-out sloja da budu uvijek vidljive */
  background: rgba(12, 10, 8, 0.5);
  border: 1px solid rgba(200, 154, 75, 0.35);
  border-radius: 11px;
  overflow: hidden;
  height: 100%;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lula-gallery .lula-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(200, 154, 75, 0.55);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.35);
}

.lula-gallery .lula-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.lula-gallery .lula-card__link::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200, 154, 75, 0.28);
  border-radius: 7px;
  pointer-events: none;
  z-index: 1;
}

.lula-gallery .lula-card__media {
  position: relative;
  height: 187px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(12, 10, 8, 0.7);
  z-index: 2;
}

.lula-gallery .lula-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.lula-gallery .lula-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  position: relative;
}

.lula-gallery .lula-card__image--placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  height: 100%;
}

.lula-gallery .lula-card__badge {
  position: absolute;
  top: 11px;
  right: 11px;
  background: var(--lula-gold);
  color: var(--lula-bg);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
}

.lula-gallery .lula-card__logo {
  display: none !important;
}

.lula-gallery .lula-card__body::before {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 38px;
  height: 38px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.4));
  z-index: 3;
  display: none;
}

.lula-gallery .lula-card.has-card-logo .lula-card__body::before {
  display: block;
  width: 38px !important;
  height: 38px !important;
}

.lula-gallery .lula-card__body {
  padding: 15px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 2;
  flex: 1;
  background-color: rgba(16, 13, 10, 0.92);
  background-image: linear-gradient(180deg, rgba(22, 18, 14, 0.95), rgba(12, 10, 8, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  background-size: cover, auto;
}

.lula-gallery .lula-card__body > * {
  position: relative;
  z-index: 1;
  order: 50;
}

.lula-gallery .lula-card__logo {
  order: 0;
}

.lula-gallery .lula-card__title {
  margin: 0;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  color: rgba(235, 225, 200, 0.9) !important;
  order: 2;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-gallery .lula-card__title::after {
  content: none;
}

.lula-gallery .lula-card__one-liner {
  margin: 0;
  color: rgba(235, 225, 200, 0.85) !important;
  order: 1;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

.lula-gallery .lula-card__one-liner::after {
  content: "";
  display: block;
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(200, 154, 75, 0.65) 0%,
    rgba(200, 154, 75, 0.65) 60%,
    rgba(200, 154, 75, 0) 100%
  );
  margin-top: 7px;
}

.lula-gallery .lula-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  margin-top: 3px;
  order: 3;
}

.lula-gallery .lula-card__price {
  font-weight: 700;
  color: var(--lula-gold);
}

.lula-gallery .lula-card__progress {
  font-size: 0.70rem;
  opacity: 0.7;
  text-align: right;
  color: rgba(235, 225, 200, 0.85) !important;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.lula-gallery .lula-card__available {
  display: block;
  opacity: 1;
  font-size: 1em;
  color: rgba(235, 225, 200, 0.85) !important;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.lula-gallery .lula-card__tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 7px 0 0;
  order: 4;
}

.lula-gallery .lula-card__tag-row {
  color: rgba(235, 225, 200, 0.85) !important;
  font-size: 0.79rem;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.5;
  white-space: nowrap;
}

.lula-gallery .lula-card[data-card-bg="1"] .lula-card__body {
  background-image: var(--kl-card-bg-1, none), linear-gradient(180deg, rgba(22, 18, 14, 0.95), rgba(12, 10, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  background-size: cover, cover, auto;
  background-position: center, center, top left;
}

.lula-gallery .lula-card[data-card-bg="2"] .lula-card__body {
  background-image: var(--kl-card-bg-2, none), linear-gradient(180deg, rgba(22, 18, 14, 0.95), rgba(12, 10, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  background-size: cover, cover, auto;
  background-position: center, center, top left;
}

.lula-gallery .lula-card[data-card-bg="3"] .lula-card__body {
  background-image: var(--kl-card-bg-3, none), linear-gradient(180deg, rgba(22, 18, 14, 0.95), rgba(12, 10, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  background-size: cover, cover, auto;
  background-position: center, center, top left;
}

.lula-gallery .lula-card[data-card-bg="4"] .lula-card__body {
  background-image: var(--kl-card-bg-4, none), linear-gradient(180deg, rgba(22, 18, 14, 0.95), rgba(12, 10, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  background-size: cover, cover, auto;
  background-position: center, center, top left;
}

.lula-gallery .lula-card[data-card-bg="5"] .lula-card__body {
  background-image: var(--kl-card-bg-5, none), linear-gradient(180deg, rgba(22, 18, 14, 0.95), rgba(12, 10, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  background-size: cover, cover, auto;
  background-position: center, center, top left;
}

.lula-gallery .lula-card[data-card-logo="1"] .lula-card__logo {
  background-image: var(--kl-card-logo-1, none);
}

.lula-gallery .lula-card[data-card-logo="1"] .lula-card__body::before {
  background-image: var(--kl-card-logo-1, none);
}

.lula-gallery .lula-card[data-card-logo="2"] .lula-card__logo {
  background-image: var(--kl-card-logo-2, none);
}

.lula-gallery .lula-card[data-card-logo="2"] .lula-card__body::before {
  background-image: var(--kl-card-logo-2, none);
}

.lula-gallery .lula-card[data-card-logo="3"] .lula-card__logo {
  background-image: var(--kl-card-logo-3, none);
}

.lula-gallery .lula-card[data-card-logo="3"] .lula-card__body::before {
  background-image: var(--kl-card-logo-3, none);
}

.lula-gallery .lula-card[data-card-logo="4"] .lula-card__logo {
  background-image: var(--kl-card-logo-4, none);
}

.lula-gallery .lula-card[data-card-logo="4"] .lula-card__body::before {
  background-image: var(--kl-card-logo-4, none);
}

.lula-gallery .lula-card[data-card-logo="5"] .lula-card__logo {
  background-image: var(--kl-card-logo-5, none);
}

.lula-gallery .lula-card[data-card-logo="5"] .lula-card__body::before {
  background-image: var(--kl-card-logo-5, none);
}

@media (max-width: 720px) {
  .lula-gallery .lula-card__media {
    height: 170px;
  }

  .lula-gallery .lula-card__logo {
    width: 34px !important;
    height: 34px !important;
  }

  .lula-gallery .lula-card__body::before {
    width: 34px !important;
    height: 34px !important;
  }
}

.lula-gallery__series {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lula-gallery__series-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding-bottom: 11px;
  position: relative;
}

.lula-gallery__series-title {
  margin: 0;
  position: relative;
  width: 100%;
  color: rgba(235, 225, 200, 0.9) !important;
}

/* Brončana crta ispod naslova serije - ide do 60% širine, fade-out od 50% */
.lula-gallery__series-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 1.3px;
  background: linear-gradient(
    90deg,
    rgba(200, 154, 75, 0.9) 0%,
    rgba(200, 154, 75, 0.9) 50%,
    rgba(200, 154, 75, 0) 100%
  );
  pointer-events: none;
}

.lula-gallery__series-desc {
  margin: 0;
  color: rgba(235, 225, 200, 0.85) !important;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif !important;
  font-style: italic !important;
  font-weight: 200 !important;
  font-size: 0.81rem !important;
}

/* Separator između serija: dvije crte s 4 puna kruga između njih */
.lula-gallery__series-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 27px 0;
  width: 100%;
  position: relative;
}

.lula-gallery__series-separator-line {
  flex: 1 1 auto;
  height: 2px;
  min-width: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 154, 75, 0.3) 10%,
    rgba(200, 154, 75, 0.5) 20%,
    rgba(200, 154, 75, 0.5) 80%,
    rgba(200, 154, 75, 0.3) 90%,
    transparent 100%
  );
}

.lula-gallery__series-separator-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.lula-gallery__series-separator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(200, 154, 75, 0.9);
  display: block;
  box-shadow: 0 0 5px rgba(200, 154, 75, 0.6);
}

.lula-gallery__results {
  position: relative;
  z-index: 101; /* Iznad layout-a i fade-out sloja */
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 48px; /* Dodatni razmak da se kartice vide iznad fade-out prijelaza */
}

.lula-gallery__pagination {
  display: flex;
  justify-content: center;
}

.lula-gallery__pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--lula-radius);
  padding: 10px 12px;
}

.lula-gallery__page-btn {
  color: var(--lula-text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--lula-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.lula-gallery__page-btn--primary {
  background: linear-gradient(135deg, #c89a4b, #a8762c);
  color: var(--lula-bg);
  border-color: #c89a4b;
}

.lula-gallery__page-info {
  opacity: 0.8;
}

.lula-single {
  padding: 32px;
  margin-bottom: 32px;
}

.lula-single__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lula-single__back {
  color: var(--lula-gold);
  text-decoration: none;
  font-weight: 600;
}

.lula-single__title {
  margin: 0;
  font-size: 1.8rem;
}

.lula-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lula-single__badge {
  background: var(--lula-gold);
  color: var(--lula-bg);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.lula-single__price {
  font-weight: 700;
  color: var(--lula-gold);
}

.lula-single__available,
.lula-single__progress {
  opacity: 0.9;
}

.lula-single__media {
  overflow: hidden;
  border-radius: var(--lula-radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lula-single__image {
  width: 100%;
  height: auto;
  display: block;
}

.lula-single__one-liner {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
}

.lula-single__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lula-single__tags {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
}

.lula-single__tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 10px;
}

@media (max-width: 960px) {
  .lula-gallery__filters-toggle {
    display: inline-flex;
    margin: 10px auto 16px;
  }

  .lula-gallery__layout {
    grid-template-columns: 1fr;
  }

  .lula-gallery__filters {
    position: fixed;
    inset: 0;
    max-width: 420px;
    background: transparent;
    z-index: 10000;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    padding: 150px 16px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .lula-gallery.is-filters-open .lula-gallery__filters {
    transform: translateX(0);
  }

  .lula-filters {
    max-width: 100%;
    flex: 1 1 auto;
    border-radius: calc(var(--lula-radius) + 2px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .lula-gallery.is-filters-open .lula-gallery__header,
  .lula-gallery.is-filters-open .lula-gallery__controls,
  .lula-gallery.is-filters-open .lula-gallery__tabs,
  .lula-gallery.is-filters-open .lula-gallery__sort {
    position: relative;
    z-index: 0;
  }

  .lula-filters__mobile-close {
    display: flex;
  }

  .lula-gallery__header {
    flex-direction: column;
    align-items: center;
  }

  .lula-gallery__controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lula-gallery__tabs {
    grid-column: 1;
    justify-self: center;
    /* ne rasteži "pill" wrapper preko cijelog reda */
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .lula-gallery__sort {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .lula-gallery,
  .lula-single {
    padding: 22px;
  }

  .lula-gallery__filters-close {
    display: inline-flex;
  }

  .lula-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(179px, 1fr));
  }

  .lula-gallery__chips {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .lula-gallery__tabs {
    width: min(100%, 360px);
    padding: 0;
  }

  .lula-gallery__tab {
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}
