/* ETL_PDP_ZOFF_MEDIA_VIEWER_V2_20260922 */
.product-media-viewer[open]::before {
  background-color: rgb(25 25 25 / 78%);
}

.product-media-viewer .modal__content {
  --modal-animation-name: animation-fade-in;
  inset: 16px !important;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 32px) !important;
  max-width: none;
  height: calc(100dvh - 32px) !important;
  max-height: none;
  margin: auto !important;
  overflow: hidden;
  color: #111;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 24%);
}

.etl-media-viewer__header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  flex: 0 0 56px;
  align-items: center;
  min-height: 56px;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.etl-media-viewer__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etl-media-viewer__back,
.product-media-viewer .modal__close-control {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #111;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.etl-media-viewer__back:hover,
.product-media-viewer .modal__close-control:hover {
  color: #111 !important;
  background: #f2f2f2;
  transform: none;
}

.etl-media-viewer__back:focus-visible,
.product-media-viewer .modal__close-control:focus-visible,
.etl-media-viewer__content:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.etl-media-viewer__back span {
  display: block;
  width: 11px;
  height: 11px;
  border-block-end: 1.5px solid currentColor;
  border-inline-start: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.product-media-viewer .modal__close-control {
  justify-self: end;
}

.product-media-viewer .modal__close-control .icon {
  width: 14px;
  height: 14px;
}

.etl-media-viewer__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.etl-media-viewer__media {
  position: relative;
  display: block;
  align-self: start;
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: hidden;
  background: #fafafa;
}

.etl-media-viewer__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.etl-media-viewer__media theme-video-media,
.etl-media-viewer__media .theme-video-media {
  display: block;
  width: 100%;
}

@media (max-width: 959px) {
  .product-media-viewer .modal__content {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0;
  }

  .etl-media-viewer__header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    flex-basis: 52px;
    min-height: 52px;
    padding: env(safe-area-inset-top, 0) 4px 0;
  }

  .etl-media-viewer__title {
    font-size: 12px;
  }

  .etl-media-viewer__back,
  .product-media-viewer .modal__close-control {
    width: 36px;
    height: 36px;
  }

  .etl-media-viewer__content {
    gap: 4px;
    padding: 4px;
    scrollbar-gutter: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .etl-media-viewer__back,
  .product-media-viewer .modal__close-control {
    transition: none;
  }
}