/* Start custom CSS *//* ITS Projects archive v3.1 (light gallery) — native JetEngine Listing Grid + JetSmartFilters output, styled for ITS.
   Scoped to this template (.its-arc-toolbar, .its-jsf-slot-*, #its-projects, gallery 1bdd557c). Breakpoints = Elementor: tablet ≤1024, mobile ≤767. */

/* COUNTRY TOOLBAR (top of the light gallery): [ ŠALIS ] | Visi projektai | Austrija 01 | Lietuva 01 | Vokietija 01 |   3 projektai */
body .elementor nav.its-arc-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 0; padding: 0; border-top: 1px solid rgba(18,20,18,.12); border-bottom: 1px solid rgba(18,20,18,.12); }
body .elementor nav.its-arc-toolbar > p { display: flex; align-items: center; padding: 0 clamp(24px, 2.6vw, 40px) 0 0; border-right: 1px solid rgba(18,20,18,.12); }

.its-jsf-slot-filter { display: block; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.its-jsf-slot-filter::-webkit-scrollbar { display: none; }
.its-jsf-slot-filter .jet-smart-filters-radio, .its-jsf-slot-filter .jet-filter { margin: 0; }
.its-jsf-slot-filter .jet-radio-list, .its-jsf-slot-filter .jet-radio-list-wrapper { display: block; margin: 0; padding: 0; }
.its-jsf-slot-filter fieldset { display: flex; flex-wrap: nowrap; align-items: stretch; width: max-content; min-width: 0; margin: 0; padding: 0; border: 0; }
.its-jsf-slot-filter .jet-radio-list__row { flex: 0 0 auto; margin: 0; padding: 0; border-right: 1px solid rgba(18,20,18,.12); }
.its-jsf-slot-filter .jet-radio-list__item { position: relative; display: block; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.its-jsf-slot-filter .jet-radio-list__input { display: block !important; position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.its-jsf-slot-filter .jet-radio-list__decorator, .its-jsf-slot-filter .jet-filters-counter, .its-jsf-slot-filter .jet-filter-label { display: none !important; }
.its-jsf-slot-filter .jet-radio-list__button { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; margin: 0; padding: 26px clamp(22px, 2.2vw, 34px) 25px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: background-color .35s ease; }
.its-jsf-slot-filter .jet-radio-list__button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #4E7A24; transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.its-jsf-slot-filter .jet-radio-list__label { font-family: "Poppins", sans-serif; font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; color: #5E655B; transition: color .3s ease; }
.its-jsf-slot-filter .its-arc-seg-n { font-family: "Poppins", sans-serif; font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: rgba(18,20,18,.42); transition: color .3s ease; }
.its-jsf-slot-filter .jet-radio-list__item:hover .jet-radio-list__button { background: rgba(18,20,18,.025); }
.its-jsf-slot-filter .jet-radio-list__item:hover .jet-radio-list__label { color: #121412; }
.its-jsf-slot-filter .jet-radio-list__input:checked + .jet-radio-list__button { background: #FFFFFF; }
.its-jsf-slot-filter .jet-radio-list__input:checked + .jet-radio-list__button::before { transform: scaleX(1); }
.its-jsf-slot-filter .jet-radio-list__input:checked + .jet-radio-list__button .jet-radio-list__label { color: #121412; font-weight: 600; }
.its-jsf-slot-filter .jet-radio-list__input:checked + .jet-radio-list__button .its-arc-seg-n { color: #4E7A24; }
.its-jsf-slot-filter .jet-radio-list__input:focus-visible + .jet-radio-list__button { outline: 2px solid #4E7A24; outline-offset: -2px; }
.its-jsf-slot-filter .jet-radio-list__input:focus-visible + .jet-radio-list__button .jet-radio-list__label { color: #121412; }

.its-jsf-slot-count { display: flex; align-items: center; justify-content: flex-end; padding: 0 0 0 clamp(24px, 2.6vw, 40px); }
.its-arc-count { display: flex; align-items: baseline; gap: 8px; margin: 0; white-space: nowrap; font-family: "Poppins", sans-serif; }
.its-arc-count__n { font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -.02em; color: #121412; font-variant-numeric: tabular-nums; }
.its-arc-count__w { font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: .02em; color: #5E655B; }

/* PROJECT GALLERY — equal cards, 3 / 2 / 1 columns. Card (listing item #378): 16:10 photo + ITS green plate: country, title + arrow, spec row Galia | Metai | Vieta. */
#its-projects, #its-projects .jet-listing-grid { width: 100%; }
#its-projects .jet-listing-grid__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; width: 100%; margin: 0; padding: 0; transition: opacity .35s ease, translate .35s ease; }
#its-projects .jet-listing-grid__item { width: auto; max-width: none; flex: none; margin: 0; padding: 0; min-width: 0; display: flex; }
#its-projects .jet-listing-grid__item > .elementor { width: 100%; display: flex; }
#its-projects .jet-listing-grid__item > .elementor > .its-arc-card { width: 100%; }
#its-projects .its-arc-spec-cell:has(.its-arc-spec-v:empty) { display: none; }
#its-projects .its-arc-spec-cell:has(.its-arc-spec-v:empty) + .its-arc-spec-cell { padding-left: 24px; }
#its-projects .its-arc-spec:not(:has(.its-arc-spec-v:not(:empty))) { display: none; }
#its-projects .its-arc-spec-cell:last-child { border-right: 0; }

#its-projects.is-loading .jet-listing-grid__items, #its-projects .jet-filters-loading .jet-listing-grid__items { opacity: .32; translate: 0 6px; pointer-events: none; }
#its-projects.is-loading { cursor: progress; }
@keyframes its-arc-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
#its-projects.is-fresh .jet-listing-grid__item { animation: its-arc-in .7s cubic-bezier(.33, 1, .68, 1) both; }
#its-projects.is-fresh .jet-listing-grid__item:nth-child(2) { animation-delay: .06s; }
#its-projects.is-fresh .jet-listing-grid__item:nth-child(3) { animation-delay: .12s; }
#its-projects.is-fresh .jet-listing-grid__item:nth-child(4) { animation-delay: .18s; }
#its-projects.is-fresh .jet-listing-grid__item:nth-child(n+5) { animation-delay: .24s; }

#its-projects .jet-listing-not-found { display: block; width: 100%; margin: 0; padding: 0; text-align: left; }
.its-arc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 56px 56px 60px; background: #FFFFFF; border: 1px solid rgba(18,20,18,.08); border-radius: 2px; }
.its-arc-empty p { margin: 0; }
.its-arc-empty__k { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 12px; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; color: #4E7A24; }
.its-arc-empty__t { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: #121412; text-wrap: balance; }
.its-arc-empty__x { max-width: 46ch; font-family: "Poppins", sans-serif; font-size: 16px; line-height: 1.65; color: #5E655B; }
.its-arc-empty__btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; margin-top: 12px; padding: 0 34px; border-radius: 2px; background: #4E7A24; color: #FFFFFF; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .25s ease; }
.its-arc-empty__btn:hover, .its-arc-empty__btn:focus { background: #3F651C; color: #FFFFFF; }
.its-arc-empty__btn:focus-visible { outline: 2px solid #4E7A24; outline-offset: 3px; }
.its-arc-empty__btn span { display: inline-block; transition: transform .3s ease; }
.its-arc-empty__btn:hover span { transform: translateX(4px); }

.its-jsf-slot-pager:not(:has(.jet-filters-pagination__item)) { display: none; }
.its-jsf-slot-pager .jet-filters-pagination { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: clamp(48px, 4.4vw, 72px) 0 0; padding: 26px 0 0; border: 0; border-top: 1px solid rgba(18,20,18,.12); background: none; }
.its-jsf-slot-pager .jet-filters-pagination__item { margin: 0; padding: 0; text-decoration: none; }
.its-jsf-slot-pager .jet-filters-pagination__item.next, .its-jsf-slot-pager .jet-filters-pagination__item:last-child { margin-left: auto; }
.its-jsf-slot-pager .jet-filters-pagination__item:focus-visible { outline: 2px solid #4E7A24; outline-offset: 4px; }
.its-jsf-slot-pager .jet-filters-pagination__link { display: inline-block; padding: 12px 0; border: 0; border-radius: 0; background: none; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 15px; line-height: 1.3; color: #121412; cursor: pointer; transition: color .25s ease; }
.its-jsf-slot-pager .jet-filters-pagination__item:hover .jet-filters-pagination__link { color: #4E7A24; background: none; }

@media (max-width: 1279px) {
  #its-projects .jet-listing-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ITS ENERGY-LINE SIGNATURE (light gallery): same technique and stroke as the approved homepage Services stream (0.7px green strokes, edges dissolved with masks). Bottom negative space, behind the cards. Decorative only, static. */
body .elementor [data-id="1bdd557c"] > .e-con, body .elementor [data-id="1bdd557c"] > div { position: relative; z-index: 1; }
body .elementor [data-id="1bdd557c"]::before { content: ""; position: absolute; z-index: 0; pointer-events: none; top: auto; left: 0; right: 0; bottom: 0; height: 210px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 420' preserveAspectRatio='none' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='%236F9F3A' stop-opacity='0.55'/%3E%3Cstop offset='0.45' stop-color='%236F9F3A' stop-opacity='0.42'/%3E%3Cstop offset='0.78' stop-color='%236F9F3A' stop-opacity='0.2'/%3E%3Cstop offset='1' stop-color='%236F9F3A' stop-opacity='0.06'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath stroke='url(%23g)' stroke-width='.7' vector-effect='non-scaling-stroke' d='M-40 330C260 389 470 363 700 304C930 266 1120 310 1300 222C1380 189 1420 150 1480 102M-40 333C260 391 470 368 700 310C930 271 1120 313 1300 226C1380 192 1420 152 1480 104M-40 336C260 393 470 373 700 316C930 276 1120 315 1300 230C1380 195 1420 155 1480 106M-40 339C260 395 470 377 700 323C930 282 1120 318 1300 233C1380 199 1420 158 1480 109M-40 342C260 397 470 383 700 331C930 288 1120 321 1300 238C1380 203 1420 161 1480 112M-40 346C260 400 470 388 700 339C930 295 1120 324 1300 242C1380 207 1420 164 1480 115M-40 349C260 402 470 394 700 346C930 301 1120 328 1300 247C1380 211 1420 168 1480 118M-40 353C260 405 470 399 700 354C930 308 1120 331 1300 251C1380 215 1420 171 1480 121M-40 356C260 407 470 405 700 362C930 314 1120 334 1300 256C1380 219 1420 174 1480 124M-40 360C260 409 470 411 700 369C930 320 1120 337 1300 260C1380 223 1420 177 1480 126M-40 363C260 412 470 416 700 377C930 327 1120 340 1300 265C1380 227 1420 180 1480 129M-40 367C260 414 470 422 700 385C930 333 1120 344 1300 269C1380 231 1420 184 1480 132M-40 370C260 417 470 427 700 392C930 340 1120 347 1300 274C1380 235 1420 187 1480 135M-40 374C260 419 470 433 700 400C930 346 1120 350 1300 278C1380 239 1420 190 1480 138'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 72%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 72%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%, #000 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }

@media (max-width: 1024px) {
  body .elementor nav.its-arc-toolbar > p { padding-right: 24px; }
  .its-jsf-slot-filter .jet-radio-list__button { gap: 10px; padding: 22px 20px 21px; }
  .its-jsf-slot-count { padding-left: 24px; }
  .its-arc-count__n { font-size: 24px; }
  #its-projects .jet-listing-grid__items { gap: 20px; }
  .its-arc-empty { padding: 44px 40px 48px; }
  body .elementor [data-id="1bdd557c"]::before { height: 170px; background-size: 150% 100%; opacity: .85; }
  body .elementor [data-id="ee13e44"], body .elementor [data-id="1bdd557c"] { padding-left: 28px; padding-right: 28px; }
  body .elementor [data-id="fb2827d"] { gap: 0; }
}

@media (max-width: 767px) {
  body .elementor nav.its-arc-toolbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label count" "rail rail"; border-bottom: 0; }
  body .elementor nav.its-arc-toolbar > p { grid-area: label; padding: 18px 0; border-right: 0; }
  .its-jsf-slot-count { grid-area: count; padding: 0; }
  .its-jsf-slot-filter { grid-area: rail; width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px; border-top: 1px solid rgba(18,20,18,.12); border-bottom: 1px solid rgba(18,20,18,.12); scroll-snap-type: x proximity; scroll-padding-inline: 20px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); }
  .its-jsf-slot-filter fieldset { border-left: 1px solid rgba(18,20,18,.12); }
  .its-jsf-slot-filter .jet-radio-list__row { scroll-snap-align: start; }
  .its-jsf-slot-filter .jet-radio-list__button { gap: 8px; min-height: 52px; padding: 17px 18px 16px; }
  .its-arc-count__n { font-size: 20px; }
  .its-arc-count__w { font-size: 12px; }
  #its-projects .jet-listing-grid__items { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #its-projects .its-arc-spec-cell:has(.its-arc-spec-v:empty) + .its-arc-spec-cell { padding-left: 20px; }
  .its-arc-empty { gap: 12px; padding: 32px 24px 36px; }
  .its-arc-empty__t { font-size: 22px; }
  .its-arc-empty__x { font-size: 15px; }
  .its-arc-empty__btn { height: 48px; padding: 0 24px; }
  .its-jsf-slot-pager .jet-filters-pagination { margin-top: 40px; padding-top: 20px; }
  body .elementor [data-id="1bdd557c"]::before { height: 120px; background-size: 170% 100%; opacity: .7; }
  body .elementor [data-id="ee13e44"], body .elementor [data-id="1bdd557c"] { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  #its-projects .jet-listing-grid__items, .its-jsf-slot-filter .jet-radio-list__button, .its-jsf-slot-filter .jet-radio-list__button::before, .its-jsf-slot-filter .jet-radio-list__label { transition: none; }
  #its-projects.is-loading .jet-listing-grid__items { translate: none; }
  #its-projects.is-fresh .jet-listing-grid__item { animation: none; }
}/* End custom CSS */