.kinematics-gallery {
  text-align: center;
  margin-bottom: 30px;
}

.kg-main {
  position: relative;
  display: inline-block;
}

.kg-main img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  border: none;
  box-shadow: none;
}

/* Zoom icon - top left */
.kg-zoom-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  pointer-events: none;
}

.kg-zoom-icon::before {
  content: "\1F50D"; /* unicode magnifier emoji */
  font-family: "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;
}

/* thumbs slider */
.kg-thumbs-wrapper {
  position: relative;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kg-thumbs-inner {
  display: flex;
  overflow: hidden;
}

.kg-thumb {
  flex: 0 0 auto;
  margin: 0 4px;
}

.kg-thumb img {
  width: 70px;
  height: auto;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
  background: #fff;
}

.kg-thumb img:hover {
  transform: scale(1.05);
  border-color: #999;
}

/* arrows */
.kg-arrow {
  border: none;
  background: #f5f5f5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.kg-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

/* popup */
.kg-popup {
  position: absolute;
  display: none;
  z-index: 999999;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0;
  line-height: 0;
}

.kg-popup img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border: none;
  box-shadow: none;
  vertical-align: middle;
}

/* active thumb */
.kg-thumb-active img {
  border-color: #1565c0;
}


.kinematics-gallery .kg-zoom-icon:before {
    font-family: "Font Awesome 6 Free";
    content: "\f002";
    font-weight: 900;
}

.kinematics-gallery .kg-zoom-icon{
    background: #c2c6c7;
    width: 30px;
    height:30px;
}


.kinematics-gallery .kg-arrow.kg-prev, .kinematics-gallery .kg-arrow.kg-next{
    opacity: 1;
    background: #234668;
    color: #ffffff;
    transition: 0.5s;
    border:0 ;
}

.kinematics-gallery .kg-arrow.kg-prev:hover, .kinematics-gallery .kg-arrow.kg-next:hover{
    background: #9f2b00;
}

.kinematics-gallery .kg-thumb{
    border: 1px solid #dddddd;
}

.kinematics-gallery .kg-thumb:hover,.kinematics-gallery  .kg-thumb.kg-thumb-active{
    border:1px solid #9f2b00;
}

.kinematics-gallery .kg-thumb img{
    border:none;
}

.kinematics-gallery .kg-thumb img:hover{
    transform: unset;
}

