.tezh-course-gallery__main {
  position: relative;
}

.tezh-course-gallery__main img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  object-fit: contain !important;
}

.tezh-course-gallery__link {
  display: block;
}

.tezh-course-gallery__image {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  border-radius: 10px;
}

.tezh-course-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tezh-course-gallery__nav--prev {
  left: 10px;
}

.tezh-course-gallery__nav--next {
  right: 10px;
}

.tezh-course-gallery__thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.tezh-course-gallery__thumb-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  flex: 1;
}

.tezh-course-gallery__thumb-track::-webkit-scrollbar {
  height: 6px;
}

.tezh-course-gallery__thumb-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.tezh-course-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
}

.tezh-course-gallery__thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  max-width: none !important;
  display: block;
  border-radius: 8px;
  aspect-ratio: unset !important;
}

.tezh-course-gallery__thumb.is-active {
  border-color: #4d8a3e;
}

.tezh-course-gallery__thumb-nav {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tezh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.tezh-lightbox.is-open {
  display: block;
}

.tezh-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.tezh-lightbox__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tezh-lightbox__img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.tezh-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tezh-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.tezh-lightbox__nav--prev {
  left: 18px;
}

.tezh-lightbox__nav--next {
  right: 18px;
}
