/* Dedicated homepage machine video styles. */
/* Homepage machine video gallery. */
.pmt-machine-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #071c2f;
  border-radius: 10px;
}
.pmt-machine-card .pbmit-service-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  min-height: 60px;
  word-break: normal;
}
.pmt-machine-card .pbmit-service-content-wrap { padding: 22px 12px 12px; }
.pmt-machines-section .swiper-button-disabled { opacity: 0.35; cursor: default; }
/* Maintain readable homepage copy over the real workshop photograph. */
.pbmit-slider-one .pbmit-slider-bg {
  background-color: rgba(7, 28, 47, 0.58);
  background-blend-mode: multiply;
}

/* Two-column gallery previews and a full-size machine video popup. */
.pmt-video-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #071c2f;
  cursor: pointer;
  color: #fff;
}
.pmt-video-open:focus-visible { outline: 3px solid #f5c400; outline-offset: 3px; }
.pmt-video-open .pmt-machine-video {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  pointer-events: none;
}
.pmt-video-play {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 30px;
  background: rgba(7, 28, 47, 0.85);
  color: #fff;
  font: 600 14px/1.4 var(--pbmit-body-typography-font-family, sans-serif);
  pointer-events: none;
}
.pmt-video-play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}
.pmt-machine-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: #071c2f;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.pmt-machine-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }
.pmt-machine-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.pmt-machine-dialog-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.3;
}
.pmt-machine-dialog-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.pmt-machine-dialog-close:focus-visible { outline: 3px solid #f5c400; outline-offset: 3px; }
.pmt-machine-dialog-video {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: calc(100dvh - 120px);
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  background: #000;
}

/* An independent control lets visitors stop motion while using the page. */
.pmt-machine-gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.pmt-preview-toggle {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #071c2f;
  border-radius: 6px;
  background: #fff;
  color: #071c2f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pmt-preview-toggle:hover { background: #071c2f; color: #fff; }
.pmt-preview-toggle:focus-visible { outline: 3px solid #123a63; outline-offset: 3px; }
@media (max-width: 767px) {
  .pmt-machine-gallery-controls { justify-content: flex-start; }
}

/* Keep machine gallery arrows in normal layout beside the preview toggle. */
.pmt-machine-gallery-controls {
  align-self: center;
  max-width: 100%;
}
.pmt-machine-gallery-controls .pmt-preview-toggle { flex: 0 0 auto; }
.pmt-machine-gallery-controls .service-arrow {
  display: inline-flex !important;
  position: static;
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 52px;
}
.pmt-machine-gallery-controls .service-arrow .swiper-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pmt-machine-gallery-controls .service-arrow .swiper-button-prev,
.pmt-machine-gallery-controls .service-arrow .swiper-button-next {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  flex: 0 0 52px;
}
.pmt-machine-gallery-controls .service-arrow .swiper-button-prev { order: 1; }
.pmt-machine-gallery-controls .service-arrow .swiper-button-next { order: 2; }
.pmt-machine-gallery-controls .service-arrow .swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: default;
  pointer-events: none;
}

/* Portrait frame from PMT's HAAS Super Mini Mill video, beside Why Choose us. */
.about-section-one .about-one-left-bg.pmt-about-video-photo {
  background-image: url(../images/homepage-1/bg/pmt-super-mini-mill-portrait.jpg);
  background-position: center center;
}
