/* use this for style redefinitions to awoid problems with
unpredictable css rules order in build */
.pc-full-screen-media__modal-media_type_youtube, .pc-full-screen-media__modal-media_type_video video, .pc-full-screen-media__modal-media_type_image {
  display: block;
  position: relative;
  width: 100%;
  max-width: 1232px;
  max-height: 70vh;
}

.pc-full-screen-media__media {
  cursor: pointer;
}
.pc-full-screen-media__media-wrapper {
  cursor: pointer;
  position: relative;
}
.pc-full-screen-media__modal-content {
  position: relative;
  border-radius: var(--pc-border-radius);
}
.pc-full-screen-media__inline-media {
  transform: translateZ(0);
}
.pc-full-screen-media__modal-media {
  border-radius: var(--pc-border-radius);
}
.pc-full-screen-media__modal-media_type_youtube {
  max-width: min(65vw, 1232px);
  width: 100%;
  aspect-ratio: 16/9;
  height: calc(min(65vw, 1232px) * 9 / 16) !important; /* stylelint-disable-line declaration-no-important */
}
.pc-full-screen-media__modal .g-modal__content, .pc-full-screen-media__modal-image {
  border-radius: var(--pc-border-radius);
}
.pc-full-screen-media__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--g-color-base-simple-hover-solid);
  cursor: pointer;
  z-index: 10;
}
.pc-full-screen-media__modal-content .pc-full-screen-media__icon-wrapper, .pc-full-screen-media__media-wrapper .pc-full-screen-media__icon-wrapper {
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pc-full-screen-media__modal-content .pc-full-screen-media__icon-wrapper_visible, .pc-full-screen-media__modal-content .pc-full-screen-media__icon-wrapper:focus, .pc-full-screen-media__media-wrapper .pc-full-screen-media__icon-wrapper_visible, .pc-full-screen-media__media-wrapper .pc-full-screen-media__icon-wrapper:focus {
  opacity: 1;
  pointer-events: inherit;
}
.pc-full-screen-media__modal-content:hover .pc-full-screen-media__icon-wrapper, .pc-full-screen-media__media-wrapper:hover .pc-full-screen-media__icon-wrapper {
  opacity: 1;
  pointer-events: inherit;
}
.pc-full-screen-media__icon {
  color: var(--g-color-text-hint);
}
.pc-full-screen-media__icon_hover:hover {
  color: var(--g-color-text-secondary);
}
@media (max-width: 577px) {
  .pc-full-screen-media__icon-wrapper {
    display: none;
  }
  .pc-full-screen-media__modal {
    display: none !important; /* stylelint-disable-line declaration-no-important */
  }
}