.product-detail__media-gallery .media-gallery__youtube {
  cursor: default;
}
.product-detail__media-gallery .media-gallery__youtube .media-gallery__media {
  display: grid;
  place-items: center;
  aspect-ratio: var(--aspect-ratio, 1);
  background: #000;
}
.product-detail__media-gallery .media-gallery__youtube .theme-video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.product-detail__media-gallery .media-gallery__youtube .theme-video-media__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.product-detail__media-gallery .media-gallery__youtube .theme-video-media__play-button {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.product-detail__media-gallery .media-gallery__youtube .theme-video-media__play-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* The shortcuts are server-rendered only for a valid YouTube metafield. */
.product-detail__media-gallery .media-gallery__navigation {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 34px;
  margin: 10px auto 2px;
  padding: 3px;
  background: #f1f2f4;
  border: 0;
  border-radius: 8px;
}
.product-detail__media-gallery .media-gallery__navigation-button {
  box-sizing: border-box;
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  height: 28px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  color: #555b65;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 5px;
}
.product-detail__media-gallery .media-gallery__navigation-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-detail__media-gallery .media-gallery__navigation-button:not([aria-pressed="true"]):hover {
  color: #202124;
  background: rgba(255, 255, 255, 0.45);
}
.product-detail__media-gallery .media-gallery__navigation-button:focus-visible {
  outline: 2px solid rgb(var(--color-text));
  outline-offset: -2px;
}
.product-detail__media-gallery .media-gallery__navigation-button[aria-pressed="true"] {
  color: #202124;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
