/* Videoprimery */

.videoprimery__video {
  position: relative;
  display: flex;
  height: min(34.5vw, 480px);
}

.videoprimery__video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--black-overlay);
}

.videoprimery__video video,
.videoprimery__video img {
  width: 100%;
  object-fit: cover;
}

.videoprimery__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  color: var(--white);
  background-color: var(--red);
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10;
  cursor: pointer;
}

.videoprimery__play-button:hover {
  background-color: var(--red-dark);
}

.videoprimery__title {
  margin-top: 22px;
}

.videoprimery__description {
  margin-top: 4px;
}

/* Video playing */
.videoprimery__video video[data-status="play"] + .videoprimery__play-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.videoprimery__video video[data-status="pause"]::-webkit-media-controls {
  display: none !important;
}

.videoprimery__video video[data-status="pause"]::-webkit-media-controls-panel {
  display: none !important;
}

@media (max-width: 1024px) {
  .videoprimery {
    margin-right: calc((100% - 100vw) / 2);
    padding-right: calc((100vw - 100%) / 2);
  }

  .videoprimery__video {
    height: 480px;
  }
}

@media (max-width: 767px) {
  .videoprimery__video {
    height: min(62.5vw, 480px);
  }
}

@media (max-width: 499.75px) {
  .videoprimery__video {
    height: max(96vw, 460px);
  }

  .videoprimery__title {
    margin-top: 16px;
  }
}

/* Videoprimery - END */