.tga-gallery-section,
.tga-gallery-section * {
  box-sizing: border-box;
}

.tga-gallery-section {
  --tga-gallery-bg: #ffffff;
  --tga-gallery-navy: #193955;
  --tga-gallery-gold: #d9a441;
  --tga-gallery-title-color: #123b72;
  --tga-gallery-title-size: 56px;
  --tga-gallery-title-mobile: 36px;
  --tga-gallery-desktop: 3;
  --tga-gallery-tablet: 2;
  --tga-gallery-mobile: 1;
  --tga-gallery-current: var(--tga-gallery-desktop);
  --tga-gallery-gap: 8px;
  --tga-gallery-radius: 10px;
  --tga-gallery-max: 1420px;
  --tga-gallery-ratio: 4 / 3;
  --tga-gallery-fit: cover;
  --tga-gallery-speed: 650ms;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(58px, 7vw, 96px) 24px clamp(62px, 7vw, 92px);
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--tga-gallery-gold) 10%, transparent) 0 1px, transparent 2px) 0 0 / 24px 24px,
    var(--tga-gallery-bg);
  color: var(--tga-gallery-navy);
  font-family: inherit;
}

.tga-gallery-section::before {
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -90px;
  width: 360px;
  height: 360px;
  border: 1px solid color-mix(in srgb, var(--tga-gallery-gold) 25%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.tga-gallery-container {
  width: min(var(--tga-gallery-max), 100%);
  margin-inline: auto;
}

.tga-gallery-heading-wrap {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  text-align: center;
}

.tga-gallery-eyebrow {
  margin: 0 0 10px;
  color: var(--tga-gallery-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tga-gallery-heading {
  margin: 0;
  color: var(--tga-gallery-title-color);
  font-size: var(--tga-gallery-title-size);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tga-gallery-heading-line {
  display: block;
  width: 66px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--tga-gallery-gold) 18% 82%, transparent);
}

.tga-gallery-description {
  max-width: 650px;
  margin: 16px auto 0;
  color: color-mix(in srgb, var(--tga-gallery-navy) 68%, #ffffff);
  font-size: 17px;
  line-height: 1.7;
}

.tga-gallery-slider {
  position: relative;
  padding-inline: 3px;
  touch-action: pan-y;
}

.tga-gallery-viewport {
  overflow: hidden;
  border-radius: var(--tga-gallery-radius);
}

.tga-gallery-track {
  display: flex;
  align-items: stretch;
  gap: var(--tga-gallery-gap);
  transform: translate3d(0, 0, 0);
  transition: transform var(--tga-gallery-speed) cubic-bezier(0.22, 0.75, 0.28, 1);
  will-change: transform;
}

.tga-gallery-slide {
  position: relative;
  flex: 0 0 calc((100% - (var(--tga-gallery-current) - 1) * var(--tga-gallery-gap)) / var(--tga-gallery-current));
  min-width: 0;
  aspect-ratio: var(--tga-gallery-ratio);
  overflow: hidden;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--tga-gallery-navy) 12%, transparent);
  border-radius: var(--tga-gallery-radius);
  background: color-mix(in srgb, var(--tga-gallery-navy) 7%, #ffffff);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--tga-gallery-navy) 12%, transparent);
}

.tga-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tga-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--tga-gallery-fit);
  object-position: center;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.3, 1), filter 300ms ease;
}

.tga-gallery-slide:hover .tga-gallery-image {
  filter: saturate(1.05);
  transform: scale(1.035);
}

.tga-gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(9, 31, 50, 0.88));
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
}

.tga-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: color-mix(in srgb, var(--tga-gallery-navy) 88%, transparent);
  box-shadow: 0 8px 24px rgba(7, 25, 42, 0.25);
  color: #ffffff;
  cursor: pointer;
  opacity: 0.94;
  transform: translateY(-50%);
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.tga-gallery-arrow:hover,
.tga-gallery-arrow:focus-visible {
  border-color: var(--tga-gallery-gold);
  background: var(--tga-gallery-gold);
  color: var(--tga-gallery-navy);
  opacity: 1;
  outline: none;
}

.tga-gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.tga-gallery-arrow[hidden] {
  display: none;
}

.tga-gallery-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.tga-gallery-prev {
  left: 18px;
}

.tga-gallery-next {
  right: 18px;
}

.tga-gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 12px;
  margin-top: 25px;
}

.tga-gallery-dots:empty {
  display: none;
}

.tga-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tga-gallery-navy) 26%, transparent);
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.tga-gallery-dot:hover,
.tga-gallery-dot:focus-visible {
  background: var(--tga-gallery-gold);
  outline: 2px solid transparent;
}

.tga-gallery-dot.is-active {
  width: 28px;
  background: var(--tga-gallery-gold);
}

.tga-gallery-empty {
  margin: 0;
  padding: 36px;
  border: 1px dashed color-mix(in srgb, var(--tga-gallery-navy) 25%, transparent);
  border-radius: 16px;
  color: var(--tga-gallery-navy);
  text-align: center;
}

@media (max-width: 900px) {
  .tga-gallery-section {
    --tga-gallery-current: var(--tga-gallery-tablet);
  }
}

@media (max-width: 620px) {
  .tga-gallery-section {
    --tga-gallery-current: var(--tga-gallery-mobile);
    padding: 50px 16px 58px;
  }

  .tga-gallery-heading-wrap {
    margin-bottom: 32px;
  }

  .tga-gallery-heading {
    font-size: var(--tga-gallery-title-mobile);
  }

  .tga-gallery-description {
    font-size: 15px;
  }

  .tga-gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .tga-gallery-prev {
    left: 10px;
  }

  .tga-gallery-next {
    right: 10px;
  }

  .tga-gallery-dots {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tga-gallery-track,
  .tga-gallery-image,
  .tga-gallery-arrow,
  .tga-gallery-dot {
    scroll-behavior: auto;
    transition: none;
  }
}
