/* Solution Detail Page Styles */

/* Solution image container - match productdetail.html */
.solution-image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Main image area - match productdetail.html */
.solution-image-container .solution-image {
  position: relative;
  width: 100% !important;
  aspect-ratio: 1260 / 794 !important;
  overflow: hidden !important;
  background: #f8f8f8 !important;
  padding-top: 0 !important;
  height: auto !important;
  margin-bottom: 0 !important;
  border: 1px solid #e5e5e5 !important;
}

/* Main media content container */
#mainMediaContent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Main image - match productdetail.html */
.solution-image-container .solution-image img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

#mainMediaContent img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Thumbnails - match productdetail.html */
.solution-thumbnails {
  display: flex !important;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
  justify-content: flex-start;
}

.solution-thumbnails .thumbnail {
  flex: 0 0 calc(20% - 6px) !important;
  max-width: calc(20% - 6px) !important;
  width: calc(20% - 6px) !important;
  height: auto !important;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: border-color 0.3s;
  overflow: hidden;
  background: #f8f8f8;
  display: block !important;
}

.solution-thumbnails .thumbnail.active {
  border-color: var(--bg-blue);
}

.solution-thumbnails .thumbnail:hover {
  border-color: var(--bg-blue);
}

.solution-thumbnails .thumbnail img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Video placeholder */
.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-placeholder img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.video-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
  z-index: 11;
  margin-left: 4px;
}

/* Lightbox video placeholder */
.video-placeholder-lightbox {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-placeholder-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.video-placeholder-lightbox::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.video-placeholder-lightbox::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
  z-index: 11;
  margin-left: 4px;
}