.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1060;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}
.modal.show .modal-dialog {
  transform: none;
}
.modal.modal-static .modal-dialog {
  transform: scale(1.02);
}

.modal-dialog-scrollable {
  height: calc(100% - 1rem);
}
.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.modal-backdrop.fade {
  opacity: 0;
}
.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}
.modal-header .btn-close {
  padding: 0.5rem 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}
.modal-footer > * {
  margin: 0.25rem;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }

  .modal-dialog-scrollable {
    height: calc(100% - 3.5rem);
  }

  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }

  .modal-sm {
    max-width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg,
.modal-xl {
    max-width: 800px;
  }
}
@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}
.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}
.modal-fullscreen .modal-content {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.modal-fullscreen .modal-header {
  border-radius: 0;
}
.modal-fullscreen .modal-body {
  overflow-y: auto;
}
.modal-fullscreen .modal-footer {
  border-radius: 0;
}

@media (max-width: 575.98px) {
  .modal-fullscreen-sm-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-sm-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-sm-down .modal-header {
    border-radius: 0;
  }
  .modal-fullscreen-sm-down .modal-body {
    overflow-y: auto;
  }
  .modal-fullscreen-sm-down .modal-footer {
    border-radius: 0;
  }
}
@media (max-width: 767.98px) {
  .modal-fullscreen-md-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-md-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-md-down .modal-header {
    border-radius: 0;
  }
  .modal-fullscreen-md-down .modal-body {
    overflow-y: auto;
  }
  .modal-fullscreen-md-down .modal-footer {
    border-radius: 0;
  }
}
@media (max-width: 991.98px) {
  .modal-fullscreen-lg-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-lg-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-lg-down .modal-header {
    border-radius: 0;
  }
  .modal-fullscreen-lg-down .modal-body {
    overflow-y: auto;
  }
  .modal-fullscreen-lg-down .modal-footer {
    border-radius: 0;
  }
}
@media (max-width: 1199.98px) {
  .modal-fullscreen-xl-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-xl-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-xl-down .modal-header {
    border-radius: 0;
  }
  .modal-fullscreen-xl-down .modal-body {
    overflow-y: auto;
  }
  .modal-fullscreen-xl-down .modal-footer {
    border-radius: 0;
  }
}
@media (max-width: 1399.98px) {
  .modal-fullscreen-xxl-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-xxl-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-xxl-down .modal-header {
    border-radius: 0;
  }
  .modal-fullscreen-xxl-down .modal-body {
    overflow-y: auto;
  }
  .modal-fullscreen-xxl-down .modal-footer {
    border-radius: 0;
  }
}

.fade {
  transition: opacity 0.15s linear;
}
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}
.btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}
.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  opacity: 1;
}
.btn-close:disabled, .btn-close.disabled {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  opacity: 0.25;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}









































.tm_gallery_modal .modal-dialog {
  max-width: 1100px;
}

.tm_gallery_modal .modal-content {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.tm_gallery_modal .modal-header {
  border-bottom: 0;
  padding: 0.75rem 1rem 0;
}

.tm_gallery_modal .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

.tm_gallery_body {
  padding: 0 1rem 1rem;
}

.tm_gallery_stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.tm_gallery_image_link {
  display: block;
  width: 100%;
  text-align: center;
}

.tm_gallery_image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
}

.tm_gallery_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tm_gallery_nav:hover,
.tm_gallery_nav:focus {
  background: rgba(0, 0, 0, 0.75);
}

.tm_gallery_nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tm_gallery_nav_prev {
  left: 12px;
}

.tm_gallery_nav_next {
  right: 12px;
}

.tm_gallery_meta {
  padding: 0.9rem 0 0.4rem;
}

.tm_gallery_title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.tm_gallery_author {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: #a9a9a9;
}

.tm_gallery_description {
  margin: 0;
  font-size: 0.95rem;
  color: #f1f1f1;
}

.tm_gallery_thumbs_wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
}

.tm_gallery_thumbs_nav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tm_gallery_thumbs_nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tm_gallery_thumbs_track {
  flex: 1 1 auto;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.tm_gallery_thumbs_track::-webkit-scrollbar {
  height: 8px;
}

.tm_gallery_thumbs_track::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 999px;
}

.tm_gallery_thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #222;
}

.tm_gallery_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm_gallery_thumb_is_active {
  border-color: #fff;
}

@media (max-width: 767.98px) {
  .tm_gallery_modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  .tm_gallery_modal .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .tm_gallery_body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .tm_gallery_stage {
    min-height: 300px;
    border-radius: 0;
  }

  .tm_gallery_image {
    max-height: 58vh;
  }

  .tm_gallery_nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .tm_gallery_thumb {
    width: 84px;
    height: 84px;
  }
}



.tm_gallery_meta_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tm_gallery_rating_wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.tm_gallery_rating_stars {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.tm_gallery_rating_text {
  font-size: 0.875rem;
  color: #bdbdbd;
  white-space: nowrap;
}

.tm_gallery_star {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: #666;
}

.tm_gallery_star_is_active {
  color: #f5c542;
}

.tm_gallery_star_is_half {
  color: #d6a92a;
}

.tm_gallery_star_is_clickable {
  cursor: pointer;
}

.tm_gallery_star_is_clickable:hover,
.tm_gallery_star_is_clickable:focus {
  transform: scale(1.08);
}

@media (max-width: 767.98px) {
  .tm_gallery_meta_row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tm_gallery_rating_wrap {
    margin-left: 0;
  }
}












.tm_gallery_comments_section {
  padding-top: 1rem;
}

.tm_gallery_comments_title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tm_gallery_comment_form_wrap {
  margin-bottom: 1rem;
}

.tm_gallery_comment_form {
  display: block;
}

.tm_gallery_comment_text {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.tm_gallery_comment_form_footer {
  margin-top: 0.6rem;
  text-align: right;
}

.tm_gallery_comment_submit {
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  background: #2f6fed;
  color: #fff;
  font-size: 0.95rem;
}

.tm_gallery_comment_submit:hover,
.tm_gallery_comment_submit:focus {
  opacity: 0.92;
}

.tm_gallery_comments_box {
  display: block;
}

.tm_gallery_comments_loading,
.tm_gallery_comments_empty {
  color: #bdbdbd;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.tm_gallery_comments_list {
  display: block;
}

.tm_gallery_comment {
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tm_gallery_comment:first-child {
  border-top: 0;
  padding-top: 0;
}

.tm_gallery_comment_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.tm_gallery_comment_author {
  color: #9d9d9d;
  font-size: 0.9rem;
}

.tm_gallery_comment_date {
  color: #7f7f7f;
  font-size: 0.82rem;
  white-space: nowrap;
}

.tm_gallery_comment_body {
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .tm_gallery_comment_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .tm_gallery_comment_form_footer {
    text-align: left;
  }
}