.tmc-gallery-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tmc-gallery-fullscreen .tmc-gallery-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.tmc-gallery-fullscreen .tmc-gallery-stage {
  position: relative;
  max-width: 90vw;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmc-gallery-swipe {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.tmc-gallery-thumbs-strip {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tmc-gallery-thumbs-strip ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
}

.tmc-gallery-thumbs-strip ul li {
  flex: 0 0 auto;
  height: 75px;
  margin: 5px;
}

.tmc-gallery-thumbs-strip ul li img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
}

.tmc-gallery-thumbs-strip ul li.active img,
.tmc-gallery-thumbs-strip ul li img:hover {
  border-color: #ce0707;
}

.tmc-gallery-fullscreen .tmc-gallery-stage img {
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tmc-gallery-fullscreen .tmc-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 64px;
  cursor: pointer;
}

.tmc-gallery-fullscreen .tmc-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tmc-gallery-fullscreen .tmc-gallery-nav.prev {
  left: -56px;
}

.tmc-gallery-fullscreen .tmc-gallery-nav.next {
  right: -56px;
}

.tmc-gallery-fullscreen .tmc-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tmc-gallery-fullscreen .tmc-gallery-thumbs .tmc-gallery-thumb {
  flex: 0 0 auto;
}

.tmc-gallery-fullscreen .tmc-gallery-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}

.tmc-gallery-fullscreen .tmc-gallery-thumbs img.active,
.tmc-gallery-fullscreen .tmc-gallery-thumbs img:hover {
  border-color: #ce0707;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .tmc-gallery-fullscreen .tmc-gallery-nav.prev {
    left: 0;
  }

  .tmc-gallery-fullscreen .tmc-gallery-nav.next {
    right: 0;
  }
}
