/*
 * TGE Szablony — Our Portfolio filter variations.
 * Scoped to the actual category filters so lightboxes, navigation and other
 * plugin buttons remain untouched.  Placed after Visual Harmony overrides.
 */
body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
  -webkit-appearance:none!important;appearance:none!important;
  font-family:Montserrat,system-ui,sans-serif!important;
  color:#F5F5F5!important;
  font-style:normal!important;
  text-decoration:none!important;
  text-transform:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  transform:none!important;
  transition:background-color .24s ease,border-color .24s ease,color .24s ease,box-shadow .24s ease!important;
}
body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter::before,
body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter::after {
  content:none!important;display:none!important;
}
body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter:focus-visible {
  outline:2px solid #d5a9bc!important;outline-offset:3px!important;
}
/* 01: sophisticated sharp-edged dark frames */
body.tge-portfolio-filter-frames .tgecg.tgecg--expanded .tgecg-filters {gap:10px!important;}
body.tge-portfolio-filter-frames .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
  background:#151115!important;
  border:1px solid #71344d!important;
  border-radius:5px!important;
  min-height:43px!important;
  padding:10px 17px!important;
  font-size:13px!important;
  font-weight:650!important;
  letter-spacing:.02em!important;
  line-height:1.35!important;
}
body.tge-portfolio-filter-frames .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter:hover {
  background:#2d1420!important;border-color:#a25776!important;
}
body.tge-portfolio-filter-frames .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter.is-active,
body.tge-portfolio-filter-frames .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter[aria-pressed="true"] {
  background:#4D0F28!important;border-color:#7c3451!important;color:#fff!important;
}
/* 02: compact magazine-style tabs, active burgundy underline */
body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters {gap:clamp(10px,2.7vw,34px)!important;}
body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
  background:transparent!important;
  border:0!important;border-bottom:3px solid transparent!important;
  border-radius:0!important;
  padding:10px 4px 8px!important;min-height:38px!important;
  font-size:12px!important;font-weight:700!important;letter-spacing:.085em!important;
  line-height:1.35!important;
}
body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter:hover {
  color:#fff!important;background:rgba(77,15,40,.15)!important;border-bottom-color:#84405b!important;
}
body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter.is-active,
body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter[aria-pressed="true"] {
  background:linear-gradient(180deg,rgba(77,15,40,0) 0%,rgba(77,15,40,.23) 100%)!important;
  border-bottom-color:#4D0F28!important;color:#fff!important;
}
/* 03: smooth small pills; active burgundy, inactive dark */
body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters {gap:9px!important;}
body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
  background:#181216!important;
  border:1px solid #654052!important;
  border-radius:999px!important;
  padding:9px 19px!important;min-height:39px!important;
  font-size:12px!important;font-weight:700!important;letter-spacing:.015em!important;line-height:1.3!important;
}
body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter:hover {
  background:#301420!important;border-color:#a16780!important;
}
body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter.is-active,
body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter[aria-pressed="true"] {
  background:#4D0F28!important;border-color:#75324e!important;color:#fff!important;
}
@media (max-width:767px) {
  /* Let the original gallery choose grid, stack or horizontal scroll.
     Change only the visual treatment and avoid cut-off category names. */
  body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
    min-height:40px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    font-size:clamp(10px,2.7vw,12px)!important;
    padding:9px 10px!important;
    letter-spacing:.01em!important;
  }
  body.tge-portfolio-filter-frames .tgecg.tgecg--expanded .tgecg-filters,
  body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters {gap:8px!important;}
  body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters {gap:8px 12px!important;}
  body.tge-portfolio-filter-tabs .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
    min-height:40px!important;padding:10px 3px 7px!important;
  }
  body.tge-portfolio-filter-pills .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter {
    min-height:40px!important;padding:8px 12px!important;
  }
  body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded.tgecg-mobile-filters-scroll .tgecg-filters > button.tgecg-filter {
    width:auto!important;max-width:none!important;min-width:max-content!important;white-space:nowrap!important;
  }
}
@media (prefers-reduced-motion:reduce){
  body[class*="tge-portfolio-filter-"] .tgecg.tgecg--expanded .tgecg-filters > button.tgecg-filter{transition:none!important;}
}
