.tg-thumbs-gallery {
  --tg-main-w: 720px;
  --tg-main-h: 480px;
  --tg-thumb-w: 120px;
  --tg-thumb-h: 80px;
  --tg-gap: 8px;
  --tg-radius: 12px;
  width: var(--tg-main-w);
  margin: 0 auto;
  box-sizing: content-box;
  direction: ltr !important;
}
.tg-thumbs-gallery * {
  direction: ltr !important;
}
.tg-thumbs-gallery .swiper {
  overflow: hidden;
  border-radius: var(--tg-radius);
}
.tg-thumbs-gallery__main {
  position: relative;
  width: var(--tg-main-w);
  height: var(--tg-main-h);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.tg-thumbs-gallery__main .swiper-slide {
  width: 100%;
  height: var(--tg-main-h);
  overflow: hidden;
  flex-shrink: 0;
}
.tg-thumbs-gallery__main .swiper-slide .tg-thumbs-gallery__link,
.tg-thumbs-gallery__main .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.tg-thumbs-gallery__main .swiper-slide .tg-thumbs-gallery__link {
  cursor: zoom-in;
}
.tg-thumbs-gallery__main .swiper-slide img {
  object-fit: cover;
}
.tg-thumbs-gallery__thumbs {
  width: var(--tg-main-w);
  height: var(--tg-thumb-h);
  margin-top: var(--tg-gap);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.tg-thumbs-gallery__thumbs .swiper-wrapper {
  align-items: center;
  pointer-events: none;
    justify-content: center;
}
.tg-thumbs-gallery__thumbs .swiper-slide {
  width: var(--tg-thumb-size) !important;
  height: var(--tg-thumb-size) !important;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  border-radius: calc(var(--tg-radius) / 2);
  box-sizing: border-box;
  cursor: pointer;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  pointer-events: auto;
}
.tg-thumbs-gallery__thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  border-radius: inherit;
}
.tg-thumbs-gallery__thumbs .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.3);
}
.tg-thumbs-gallery__btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tg-thumbs-gallery__btn:hover:not(.swiper-button-disabled) {
  background: rgb(255, 255, 255);
  transform: scale(1.05);
}
.tg-thumbs-gallery__btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}
.tg-thumbs-gallery__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}
.tg-thumbs-gallery__btn--prev {
  left: 8px;
}
.tg-thumbs-gallery__btn--prev::after {
  border-width: 6px 10px 6px 0;
  border-color: transparent #333 transparent transparent;
  margin-right: -2px;
}
.tg-thumbs-gallery__btn--next {
  right: 8px;
}
.tg-thumbs-gallery__btn--next::after {
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #333;
  margin-left: -2px;
}
.tg-thumbs-gallery__hoverbar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tg-thumbs-gallery__main:hover .tg-thumbs-gallery__hoverbar {
  opacity: 1;
}
.tg-thumbs-gallery__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tg-thumbs-gallery__main:hover .tg-thumbs-gallery__controls {
  opacity: 1;
}
.tg-thumbs-gallery .tg-ctrl {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.tg-thumbs-gallery .tg-ctrl:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgb(255, 255, 255);
  transform: scale(1.08);
}
.tg-thumbs-gallery .tg-ctrl:active {
  transform: scale(0.96);
}
.tg-thumbs-gallery .tg-ctrl svg {
  width: 24px;
  height: 24px;
}
.tg-thumbs-gallery .tg-hbtn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  will-change: transform;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.tg-thumbs-gallery .tg-hbtn:hover {
  transform: translateY(-1px) scale(1.03);
}
.tg-thumbs-gallery .tg-hbtn:active {
  transform: scale(0.98);
}
.tg-thumbs-gallery .tg-hbtn::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}
.tg-thumbs-gallery .tg-hbtn--zoom::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}
.tg-thumbs-gallery .tg-hbtn--fs::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 14H5v5h5v-2H7v-3zm0-4h2V7h3V5H7v5zm10 9h-5v-2h3v-3h2v5zm-5-14h5v5h-2V7h-3V5z'/%3E%3C/svg%3E");
}
.tg-thumbs-gallery__editorbar {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tg-thumbs-gallery__thumbslist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tg-thumbs-gallery__thumbitem {
  position: relative;
  width: 96px;
  height: 64px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.tg-thumbs-gallery__thumbitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tg-thumbs-gallery__thumbtools {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  padding: 4px;
}
.tg-thumbs-gallery__thumbtools button {
  font-size: 12px;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .tg-thumbs-gallery * {
    transition: none !important;
  }
}

/* === Responsive & perf overrides === */
.tg-thumbs-gallery {
  width: 100%;
  max-width: var(--tg-max-w, 700px);
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 480px;
}

.tg-thumbs-gallery__main {
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.tg-thumbs-gallery__main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.tg-thumbs-gallery__main img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tg-thumbs-gallery__thumbs {
  width: 100%;
}

.tg-thumbs-gallery__thumbs .swiper-slide {
  width: auto;
  height: auto;
  opacity: 0.65;
  cursor: pointer;
}

.tg-thumbs-gallery__thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.tg-thumbs-gallery__thumbs img {
  display: block;
  height: auto;
}

.editor-styles-wrapper .tg-thumbs-gallery a.tg-thumbs-gallery__link {
  pointer-events: auto;
}

/*# sourceMappingURL=style.css.map */
