/**
 * Custom GLightbox styles for RD WoMoGuide
 * Ensures proper aspect ratio and styling for lightbox content
 */

/* Maintain 3:2 aspect ratio for all lightbox content */
.gslide-media {
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style the inline content container for YouTube videos */
.glightbox-inline-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

/* Style the YouTube video container from RdsYt plugin */
.glightbox-inline-content .shop--container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the video thumbnail maintains aspect ratio */
.glightbox-inline-content .shop--container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ensure the play button is centered */
.glightbox-inline-content .shop--container .shop--play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
}

/* Add specific styling for the shop-lightbox class */
.shop-lightbox {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

/* Ensure caption area has consistent styling */
.gslide-description {
  background-color: #fff;
}

.gslide-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
  color: #0066cc;
}

.gslide-desc {
  font-size: 1em;
  line-height: 1.5;
  color: #333;
}

/* Responsive styles */
@media (max-width: 768px) {
  .gslide-description {
    padding: 15px;
  }
}
