.tfg-category-gallery-slider,
.tfg-category-gallery-slider * {
  box-sizing: border-box;
}

.tfg-category-gallery-slider {
  --tfg-cgs-bg: #f4efe5;
  --tfg-cgs-text: #071322;
  --tfg-cgs-muted: #475569;
  --tfg-cgs-gold: #c09553;
  --tfg-cgs-navy: #071322;
  --tfg-cgs-radius: 22px;
  --tfg-cgs-card-shadow: 0 28px 70px rgba(0, 0, 0, .16);
  --tfg-cgs-transition: .65s cubic-bezier(.22, .61, .36, 1);
  --tfg-cgs-section-x: 0px;
  --tfg-cgs-section-y: 0px;
  --tfg-cgs-header-x: 0px;
  --tfg-cgs-header-y: 0px;
  --tfg-cgs-tabs-x: 0px;
  --tfg-cgs-tabs-y: 0px;
  --tfg-cgs-slider-x: 0px;
  --tfg-cgs-slider-y: 0px;
  --tfg-cgs-side-offset: 360px;
  --tfg-cgs-card-gap: 0px;
  --tfg-cgs-side-y: 24px;
  --tfg-cgs-side-scale: .92;
  --tfg-cgs-active-x: 0px;
  --tfg-cgs-active-y: 0px;
  --tfg-cgs-active-scale: 1;
  --tfg-cgs-active-rotate: 0deg;
  --tfg-cgs-prev-x: calc(-1 * var(--tfg-cgs-side-offset));
  --tfg-cgs-prev-y: var(--tfg-cgs-side-y);
  --tfg-cgs-prev-scale: var(--tfg-cgs-side-scale);
  --tfg-cgs-prev-rotate: 0deg;
  --tfg-cgs-prev-opacity: .86;
  --tfg-cgs-prev-blur: 0px;
  --tfg-cgs-next-x: var(--tfg-cgs-side-offset);
  --tfg-cgs-next-y: var(--tfg-cgs-side-y);
  --tfg-cgs-next-scale: var(--tfg-cgs-side-scale);
  --tfg-cgs-next-rotate: 0deg;
  --tfg-cgs-next-opacity: .86;
  --tfg-cgs-next-blur: 0px;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--tfg-cgs-bg);
  color: var(--tfg-cgs-text);
  font-family: Inter, Arial, sans-serif;
  transform: translate3d(var(--tfg-cgs-section-x), var(--tfg-cgs-section-y), 0);
}

.tfg-category-gallery-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.6), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(192,149,83,.12), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(7,19,34,.08), transparent 32%);
  opacity: .8;
  z-index: 0;
}

.tfg-category-gallery-slider .tfg-cgs-inner {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(54px, 6vw, 96px) clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 2;
}

.tfg-category-gallery-slider .tfg-cgs-header {
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 48px);
  transform: translate3d(var(--tfg-cgs-header-x), var(--tfg-cgs-header-y), 0);
}

.tfg-category-gallery-slider .tfg-cgs-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 4.3vw, 68px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0 0 20px;
  color: var(--tfg-cgs-text);
}

.tfg-category-gallery-slider .tfg-cgs-heading-highlight {
  color: var(--tfg-cgs-gold);
  font-style: italic;
}

.tfg-category-gallery-slider .tfg-cgs-description {
  max-width: 680px;
  margin: 0 auto;
  color: var(--tfg-cgs-muted);
  line-height: 1.65;
  font-size: clamp(15px, 1.25vw, 18px);
}

.tfg-category-gallery-slider .tfg-cgs-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0 0 clamp(44px, 6vw, 82px);
  position: relative;
  z-index: 8;
  transform: translate3d(var(--tfg-cgs-tabs-x), var(--tfg-cgs-tabs-y), 0);
}

.tfg-category-gallery-slider .tfg-cgs-tab {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(7, 19, 34, .12);
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color .28s ease, background .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease;
  color: var(--tfg-cgs-text);
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(7, 19, 34, .04);
}

.tfg-category-gallery-slider .tfg-cgs-tab:hover,
.tfg-category-gallery-slider .tfg-cgs-tab.is-active {
  background: var(--tfg-cgs-gold);
  color: #fff;
  border-color: var(--tfg-cgs-gold);
  box-shadow: 0 14px 30px rgba(192, 149, 83, .25);
  transform: translateY(-1px);
}

.tfg-category-gallery-slider .tfg-cgs-tab:focus-visible,
.tfg-category-gallery-slider .tfg-cgs-nav:focus-visible,
.tfg-category-gallery-slider .tfg-cgs-card-link:focus-visible,
.tfg-category-gallery-slider .tfg-cgs-portfolio-button:focus-visible {
  outline: 2px solid var(--tfg-cgs-gold);
  outline-offset: 4px;
}

.tfg-category-gallery-slider .tfg-cgs-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(var(--tfg-cgs-slider-x), var(--tfg-cgs-slider-y), 0);
}

.tfg-category-gallery-slider .tfg-cgs-stage {
  position: relative;
  height: clamp(430px, 42vw, 580px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: visible;
}

.tfg-category-gallery-slider .tfg-cgs-card {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border-radius: var(--tfg-cgs-radius);
  box-shadow: var(--tfg-cgs-card-shadow);
  transition:
    transform var(--tfg-cgs-transition),
    opacity .45s ease,
    filter .45s ease,
    box-shadow .45s ease,
    border-color .45s ease;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,95,130,.45), transparent 38%),
    linear-gradient(180deg, #0b2a36 0%, #071923 55%, #020b12 100%);
  opacity: 0;
  pointer-events: none;
  width: clamp(390px, 34vw, 560px);
  height: clamp(380px, 34vw, 480px);
}

.tfg-category-gallery-slider .tfg-cgs-card.has-fallback .tfg-cgs-card-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 124, 168, .38), transparent 34%),
    radial-gradient(circle at 22% 80%, rgba(217, 166, 79, .18), transparent 35%),
    linear-gradient(180deg, #0b2a36 0%, #071923 55%, #020b12 100%);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-active {
  width: clamp(390px, 34vw, 560px);
  height: clamp(380px, 34vw, 480px);
  transform: translate3d(calc(-50% + var(--tfg-cgs-active-x)), calc(-50% + var(--tfg-cgs-active-y)), 0) rotate(var(--tfg-cgs-active-rotate)) scale(var(--tfg-cgs-active-scale));
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  border: 2px solid rgba(184,135,53,.95);
  box-shadow: 0 34px 90px rgba(0,0,0,.22), 0 0 0 7px rgba(184,135,53,.08);
  filter: none;
}

.tfg-category-gallery-slider .tfg-cgs-card.is-prev {
  width: clamp(290px, 24vw, 410px);
  height: clamp(320px, 27vw, 430px);
  transform: translate3d(calc(-50% + var(--tfg-cgs-prev-x)), calc(-50% + var(--tfg-cgs-prev-y)), 0) rotate(var(--tfg-cgs-prev-rotate)) scale(var(--tfg-cgs-prev-scale));
  z-index: 3;
  opacity: var(--tfg-cgs-prev-opacity);
  pointer-events: auto;
  cursor: pointer;
  filter: saturate(.9) brightness(.92) blur(var(--tfg-cgs-prev-blur));
}

.tfg-category-gallery-slider .tfg-cgs-card.is-next {
  width: clamp(290px, 24vw, 410px);
  height: clamp(320px, 27vw, 430px);
  transform: translate3d(calc(-50% + var(--tfg-cgs-next-x)), calc(-50% + var(--tfg-cgs-next-y)), 0) rotate(var(--tfg-cgs-next-rotate)) scale(var(--tfg-cgs-next-scale));
  z-index: 3;
  opacity: var(--tfg-cgs-next-opacity);
  pointer-events: auto;
  cursor: pointer;
  filter: saturate(.9) brightness(.92) blur(var(--tfg-cgs-next-blur));
}

.tfg-category-gallery-slider .tfg-cgs-card.is-prev-2,
.tfg-category-gallery-slider .tfg-cgs-card.is-prev-3,
.tfg-category-gallery-slider .tfg-cgs-card.is-prev-4,
.tfg-category-gallery-slider .tfg-cgs-card.is-prev-5,
.tfg-category-gallery-slider .tfg-cgs-card.is-next-2,
.tfg-category-gallery-slider .tfg-cgs-card.is-next-3,
.tfg-category-gallery-slider .tfg-cgs-card.is-next-4,
.tfg-category-gallery-slider .tfg-cgs-card.is-next-5 {
  width: clamp(290px, 24vw, 410px);
  height: clamp(320px, 27vw, 430px);
  pointer-events: auto;
  cursor: pointer;
  filter: saturate(.9) brightness(.92);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-prev-2 {
  transform: translate3d(calc(-50% - ((var(--tfg-cgs-side-offset) * 2) + var(--tfg-cgs-card-gap))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .88));
  z-index: 2;
  opacity: calc(var(--tfg-cgs-prev-opacity) * .72);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-next-2 {
  transform: translate3d(calc(-50% + ((var(--tfg-cgs-side-offset) * 2) + var(--tfg-cgs-card-gap))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .88));
  z-index: 2;
  opacity: calc(var(--tfg-cgs-next-opacity) * .72);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-prev-3 {
  transform: translate3d(calc(-50% - ((var(--tfg-cgs-side-offset) * 3) + (var(--tfg-cgs-card-gap) * 2))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .78));
  z-index: 1;
  opacity: calc(var(--tfg-cgs-prev-opacity) * .54);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-next-3 {
  transform: translate3d(calc(-50% + ((var(--tfg-cgs-side-offset) * 3) + (var(--tfg-cgs-card-gap) * 2))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .78));
  z-index: 1;
  opacity: calc(var(--tfg-cgs-next-opacity) * .54);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-prev-4 {
  transform: translate3d(calc(-50% - ((var(--tfg-cgs-side-offset) * 4) + (var(--tfg-cgs-card-gap) * 3))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .68));
  z-index: 1;
  opacity: calc(var(--tfg-cgs-prev-opacity) * .38);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-next-4 {
  transform: translate3d(calc(-50% + ((var(--tfg-cgs-side-offset) * 4) + (var(--tfg-cgs-card-gap) * 3))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .68));
  z-index: 1;
  opacity: calc(var(--tfg-cgs-next-opacity) * .38);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-prev-5 {
  transform: translate3d(calc(-50% - ((var(--tfg-cgs-side-offset) * 5) + (var(--tfg-cgs-card-gap) * 4))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .6));
  z-index: 1;
  opacity: calc(var(--tfg-cgs-prev-opacity) * .25);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-next-5 {
  transform: translate3d(calc(-50% + ((var(--tfg-cgs-side-offset) * 5) + (var(--tfg-cgs-card-gap) * 4))), calc(-50% + var(--tfg-cgs-side-y)), 0) scale(calc(var(--tfg-cgs-side-scale) * .6));
  z-index: 1;
  opacity: calc(var(--tfg-cgs-next-opacity) * .25);
}

.tfg-category-gallery-slider .tfg-cgs-card.is-hidden,
.tfg-category-gallery-slider .tfg-cgs-card.is-filtered-out {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(.72);
  z-index: 1;
}

.tfg-category-gallery-slider .tfg-cgs-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-radius: inherit;
}

.tfg-category-gallery-slider .tfg-cgs-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform .6s ease, opacity .35s ease, filter .35s ease;
}

.tfg-category-gallery-slider .tfg-cgs-card:hover .tfg-cgs-card-image {
  transform: scale(1.055);
}

.tfg-category-gallery-slider .tfg-cgs-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 12%, rgba(0,0,0,.78) 100%);
  z-index: 1;
}

.tfg-category-gallery-slider .tfg-cgs-badge {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--tfg-cgs-gold);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tfg-category-gallery-slider .tfg-cgs-card-content {
  position: absolute;
  left: 28px;
  right: 78px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
  transform: translate3d(var(--tfg-cgs-content-x, 0px), var(--tfg-cgs-content-y, 0px), 0);
}

.tfg-category-gallery-slider .tfg-cgs-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}

.tfg-category-gallery-slider .tfg-cgs-card-meta,
.tfg-category-gallery-slider .tfg-cgs-card-location,
.tfg-category-gallery-slider .tfg-cgs-card-description {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
}

.tfg-category-gallery-slider .tfg-cgs-card-description {
  margin-top: 10px;
  color: rgba(255,255,255,.78);
}

.tfg-category-gallery-slider .tfg-cgs-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(184,135,53,.85);
  color: #d9a64f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.tfg-category-gallery-slider .tfg-cgs-card:hover .tfg-cgs-card-arrow {
  background: rgba(192,149,83,.95);
  color: #fff;
  transform: translateX(3px);
}

.tfg-category-gallery-slider .tfg-cgs-nav {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--tfg-cgs-navy);
  color: var(--tfg-cgs-gold);
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all .3s ease;
  display: grid;
  place-items: center;
}

.tfg-category-gallery-slider .tfg-cgs-nav svg,
.tfg-category-gallery-slider .tfg-cgs-card-arrow svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.tfg-category-gallery-slider .tfg-cgs-control-icon-image {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
}

.tfg-category-gallery-slider .tfg-cgs-control-icon-text {
  display: inline-flex;
  line-height: 1;
}

.tfg-category-gallery-slider .tfg-cgs-nav:hover {
  background: var(--tfg-cgs-gold);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.tfg-category-gallery-slider .tfg-cgs-prev { left: 0; }
.tfg-category-gallery-slider .tfg-cgs-next { right: 0; }

.tfg-category-gallery-slider .tfg-cgs-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.tfg-category-gallery-slider .tfg-cgs-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tfg-category-gallery-slider .tfg-cgs-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(7,19,34,.28);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.tfg-category-gallery-slider .tfg-cgs-dot.is-active {
  background: var(--tfg-cgs-gold);
  transform: scale(1.25);
}

.tfg-category-gallery-slider .tfg-cgs-pagination {
  color: var(--tfg-cgs-gold);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tfg-category-gallery-slider .tfg-cgs-button-wrap {
  display: flex;
  justify-content: center;
  margin: 26px 0 0;
  position: relative;
  z-index: 5;
}

.tfg-category-gallery-slider .tfg-cgs-portfolio-button {
  --tfg-cgs-button-x: 0px;
  --tfg-cgs-button-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--tfg-cgs-navy);
  color: #fff;
  border: 1px solid rgba(7, 19, 34, .16);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .03em;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  transform: translate3d(var(--tfg-cgs-button-x), var(--tfg-cgs-button-y), 0);
  box-shadow: 0 16px 34px rgba(7, 19, 34, .14);
}

.tfg-category-gallery-slider .tfg-cgs-portfolio-button:hover {
  background: var(--tfg-cgs-gold);
  color: #fff;
  border-color: var(--tfg-cgs-gold);
  transform: translate3d(var(--tfg-cgs-button-x), calc(var(--tfg-cgs-button-y) - 2px), 0);
  box-shadow: 0 20px 42px rgba(192, 149, 83, .24);
}

.tfg-category-gallery-slider .tfg-cgs-empty {
  margin: 40px auto 0;
  max-width: 620px;
  padding: 26px 28px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(7,19,34,.1);
  color: var(--tfg-cgs-muted);
}

.tfg-category-gallery-slider .tfg-cgs-empty[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .tfg-category-gallery-slider {
    --tfg-cgs-side-offset: 280px;
    --tfg-cgs-side-y: 20px;
    --tfg-cgs-side-scale: .86;
  }

  .tfg-category-gallery-slider .tfg-cgs-heading {
    font-size: clamp(36px, 5vw, 56px);
  }

  .tfg-category-gallery-slider .tfg-cgs-card.is-active {
    width: min(58vw, 500px);
    height: 430px;
  }

  .tfg-category-gallery-slider .tfg-cgs-card.is-prev,
  .tfg-category-gallery-slider .tfg-cgs-card.is-next {
    width: min(34vw, 330px);
    height: 360px;
  }
}

@media (max-width: 767px) {
  .tfg-category-gallery-slider {
    --tfg-cgs-side-offset: 0px;
    --tfg-cgs-side-y: 0px;
  }

  .tfg-category-gallery-slider .tfg-cgs-inner {
    padding: 44px 18px 54px;
  }

  .tfg-category-gallery-slider .tfg-cgs-header {
    margin-bottom: 26px;
  }

  .tfg-category-gallery-slider .tfg-cgs-heading {
    font-size: clamp(30px, 10vw, 44px);
  }

  .tfg-category-gallery-slider .tfg-cgs-description {
    font-size: 15px;
  }

  .tfg-category-gallery-slider .tfg-cgs-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px 12px;
    margin-bottom: 32px;
    scroll-snap-type: x proximity;
  }

  .tfg-category-gallery-slider .tfg-cgs-tab {
    scroll-snap-align: start;
    padding: 11px 20px;
  }

  .tfg-category-gallery-slider .tfg-cgs-stage {
    height: 480px;
  }

  .tfg-category-gallery-slider .tfg-cgs-card.is-active {
    width: min(88vw, 390px);
    height: 440px;
  }

  .tfg-category-gallery-slider .tfg-cgs-card.is-prev,
  .tfg-category-gallery-slider .tfg-cgs-card.is-next,
  .tfg-category-gallery-slider .tfg-cgs-card[class*="is-prev-"],
  .tfg-category-gallery-slider .tfg-cgs-card[class*="is-next-"] {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0) scale(.72);
  }

  .tfg-category-gallery-slider .tfg-cgs-nav {
    display: none;
  }

  .tfg-category-gallery-slider .tfg-cgs-card-content {
    left: 22px;
    right: 64px;
    bottom: 22px;
  }

  .tfg-category-gallery-slider .tfg-cgs-card-title {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tfg-category-gallery-slider,
  .tfg-category-gallery-slider * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
