/* RIGHT */
.mt-right-top {
  visibility: hidden;
}
.mt-right{
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: #fff;*/
}

.mt-gallery-card{
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mt-right .swiper-button-next:after,.mt-right .swiper-button-prev:after {
  color: black !important;
}
/* MAIN SWIPER */
.mt-main-swiper{
  width: 100%;
  height: 400px;
  background: #fff;
  position: relative;
}

.mt-main-swiper .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mt-main-swiper img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  cursor: zoom-in;
}

.mt-zoom-hint{
  position: absolute;
  bottom: 10px; right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  pointer-events: none;
  z-index: 5;
}

/* THUMB SWIPER */
.mt-thumb-swiper{
  padding: 8px;
  background: #fff;
}

.mt-thumb-swiper .swiper-slide{
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity .2s, border-color .2s;
}

.mt-thumb-swiper .swiper-slide-thumb-active{
  border-color: #333;
  opacity: 1;
}

.mt-thumb-swiper img{
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

/* nav */
.mt-main-swiper .swiper-button-next,
.mt-main-swiper .swiper-button-prev{
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #222;
}
.mt-main-swiper .swiper-button-next::after,
.mt-main-swiper .swiper-button-prev::after{ font-size: 13px; font-weight: 700; }

/* ═══════════════════════════════════════════════
   MODAL — full screen, white, like LG screenshot
   ═══════════════════════════════════════════════ */
.mt-modal{
  position: fixed;
  inset: 0;
  background: #fff;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.mt-modal.mt-open{ display: flex; }

/* top bar */
.mt-modal-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.mt-modal-counter{
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.mt-modal-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* zoom buttons */
.mt-zoom-btn{
  width: 38px; height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #333;
  transition: background .15s;
  user-select: none;
}
.mt-zoom-btn:hover{ background: #f5f5f5; }

.mt-reset-btn{
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: #555;
  transition: background .15s;
}
.mt-reset-btn:hover{ background: #f5f5f5; }

.mt-close-btn{
  width: 38px; height: 38px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #444;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.mt-close-btn:hover{ color: #000; }

/* main area with side arrows */
.mt-modal-body{
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* side nav arrows */
.mt-modal-prev,
.mt-modal-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #444;
  transition: background .15s, box-shadow .15s;
}
.mt-modal-prev{ left: 16px; }
.mt-modal-next{ right: 16px; }
.mt-modal-prev:hover,
.mt-modal-next:hover{ background: #f5f5f5; box-shadow: 0 4px 14px rgba(0,0,0,0.16); }

/* panzoom container */
.mt-panzoom-area{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}
.mt-panzoom-area.mt-dragging{ cursor: grabbing; }

.mt-panzoom-img{
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transform-origin: center center;
}

/* hint */
.mt-modal-hint{
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 100px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .5s;
}
.mt-modal-hint.mt-hidden{ opacity: 0; }

/* thumb strip at bottom */
.mt-modal-thumbs-wrap{
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 60px;
  position: relative;
}

.mt-modal-thumb-prev,
.mt-modal-thumb-next{
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}
.mt-modal-thumb-prev{ left: 14px; }
.mt-modal-thumb-next{ right: 14px; }

.mt-detail-thumbs{
  width: 100%;
}

.mt-detail-thumbs .swiper-slide{
  width: 90px !important;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}

.mt-detail-thumbs .swiper-slide-thumb-active{
  opacity: 1;
  border-color: #c00;
}

.mt-detail-thumbs img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(max-width:768px){
	  .mt-right {padding: 10px 0px;}

  .mt-page{ grid-template-columns: 1fr; }
  .mt-left{ border-right: none; border-bottom: 1px solid #ddd; }
}