.fsig {
  --fsig-bg: #111;
  --fsig-bg-shell: #222;
  --fsig-text: #fff;
  --fsig-thumb-w: 80px;
  --fsig-thumb-h: 60px;
  --fsig-ratio: 16/9;
  --fsig-ratio-mobile: 16/9;
  position: relative;
  margin: 0 0 24px;
  clear: both;
}

.fsig,
.fsig * {
  box-sizing: border-box;
}

.fsig__shell {
  color: var(--fsig-text);
  background: var(--fsig-bg-shell);
  overflow: hidden;
  font-family: var(--td_default_google_font_1, "Open Sans", Arial, sans-serif);
}

.fsig__topbar {
  position: relative;
  min-height: 44px;
  background: var(--fsig-bg);
}

.fsig__title {
  width: 78%;
  padding: 16px 20px;
  font-style: italic;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
}

.fsig__controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
}

.fsig__count {
  display: inline-block;
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.fsig__buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fsig__nav,
.fsig__hit,
.fsig-lightbox__nav,
.fsig-lightbox__close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.fsig__nav {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  opacity: .95;
}

.fsig__nav:hover,
.fsig-lightbox__nav:hover,
.fsig-lightbox__close:hover {
  opacity: 1;
}

.fsig__stage {
  position: relative;
  width: 100%;
  height: var(--fsig-stage-h, 580px);
  min-height: var(--fsig-stage-h, 580px);
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

.fsig--auto .fsig__stage {
  aspect-ratio: var(--fsig-ratio);
  height: auto;
  min-height: 0;
}

.fsig__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.fsig__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fsig__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fsig__image {
  display: block;
  max-width: none;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.fsig__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: left;
}

.fsig__slide.is-active .fsig__caption.has-meta {
  opacity: 1;
}

.fsig__credit {
  float: right;
  padding: 4px 6px;
  text-align: left;
  font-style: italic;
  line-height: 1;
  font-size: 11px;
  display: inline-block;
  background: rgba(0, 0, 0, .8);
}

.fsig__desc {
  clear: both;
  width: 100%;
  float: left;
  padding: 5px 10px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}

.fsig--meta-hidden .fsig__caption,
.fsig--meta-hidden .fsig-lightbox__meta {
  display: none !important;
}

.fsig__thumbs-wrap {
  padding: 20px 0 10px;
  height: 80px;
  width: 100%;
  background: var(--fsig-bg);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.fsig__thumbs {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
}

.fsig__thumbs.is-centered {
  justify-content: center;
}

.fsig__thumb {
  position: relative;
  top: -10px;
  width: var(--fsig-thumb-w);
  height: var(--fsig-thumb-h);
  flex: 0 0 auto;
  margin: 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .92;
}

.fsig__thumb:hover {
  opacity: 1;
}

.fsig__thumb-frame {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, .5);
  transition: border-color .2s ease, opacity .2s ease;
  z-index: 2;
}

.fsig__thumb.is-active .fsig__thumb-frame {
  border-color: #fff;
}

.fsig__thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fsig__hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  z-index: 4;
}

.fsig__hit--prev { left: 0; }
.fsig__hit--next { right: 0; }

.fsig-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, .96);
}

.fsig-lightbox[hidden] {
  display: none !important;
}

.fsig-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 38px;
  line-height: 1;
}

.fsig-lightbox__nav {
  font-size: 34px;
  line-height: 1;
  padding: 8px 14px;
}

.fsig-lightbox__inner {
  max-width: min(1200px, 100%);
  max-height: 100%;
  text-align: center;
}

.fsig-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  margin: 0 auto;
}

.fsig-lightbox__meta {
  max-width: 960px;
  margin: 12px auto 0;
  color: #fff;
  text-align: left;
}

.fsig-lightbox__caption {
  font-weight: 700;
  margin-bottom: 6px;
}

.fsig-lightbox__desc {
  font-size: 14px;
  line-height: 1.55;
  opacity: .92;
}

@media (max-width: 767px) {
  .fsig__stage {
    height: var(--fsig-stage-h-mobile, 260px);
    min-height: var(--fsig-stage-h-mobile, 260px);
  }

  .fsig--auto .fsig__stage {
    aspect-ratio: var(--fsig-ratio-mobile);
    height: auto;
    min-height: 0;
  }

  .fsig__title {
    width: auto;
    padding: 12px 14px 8px;
    font-size: 13px;
    line-height: 19px;
  }

  .fsig__controls {
    position: static;
    justify-content: flex-end;
    padding: 0 12px 10px;
  }

  .fsig__thumbs-wrap {
    display: none;
  }

  .fsig__credit {
    font-size: 10px;
  }

  .fsig__desc {
    font-size: 11px;
    line-height: 16px;
  }

  .fsig-lightbox {
    padding: 18px 10px;
  }

  .fsig-lightbox__nav {
    padding: 6px 10px;
    font-size: 28px;
  }
}
