* {
  flex-grow: 0;
  flex-shrink: 0;
}

@keyframes shine {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 0%
  }
}

.visuallyhidden {
  position: absolute;
  width: 1px;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

body {
  margin: 0;
}

button {
  z-index: 10;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

button:active:not(.miniature__button) {
  opacity: .5;
}

::-webkit-scrollbar {
  display: none;
}

.close {
  position: absolute;
  top: 7px;
  right: 0;
  width: 72px;
  height: 72px;
  border: none;
  outline: none;
  background-color: transparent;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.widget {
  position: relative;
}

.screen {
  display: flex;
}

.miniatures {
  display: flex;
  position: relative;
  width: calc(100vw - 44px);
  background: white;
  height: 110px;
  margin: 0;
  padding: 0;
  overflow-x: scroll;
  list-style: none;
  scrollbar-width: none;
  /* FF */
}

.scrollerBtn {
  padding: 5px;
}

.scrollerBtn--right {
  transform: rotate(180deg);
}

.miniature-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 81px;
  height: 81px;
  margin: 4px 2px;
  animation: shine 2.5s ease;
  border-radius: 50%;
  background-image: linear-gradient(270deg, #FF1900, #007AFF);
  background-size: 400% 400%;
}

.miniature--visited .miniature-wrapper {
  background: rgba(128, 128, 128, .5);
}

.miniature__button {
  width: 77px;
  height: 77px;
  margin: 5px;
  border: 2px solid white;
  border-radius: 50%;
  outline: none;
  background: no-repeat center / cover white;
  cursor: pointer;
}

.miniature__image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.miniature__subtitle {
  display: block;
  width: 85px;
  overflow: hidden;
  font-family: sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  background: no-repeat center / cover url('https://via.placeholder.com/1000') black;
}

.popup__header {
  width: 100vw;
  height: 79px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, .36), rgba(0, 0, 0, 0));
}

.popupBtn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: white;
}

.popupBtn--right {
  transform: rotate(180deg);
}

.popupBtn--linkDummy {
  width: 30px;
  height: 30px;
  padding: 22px 0;
  display: flex;
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: #fcfcfc;
  pointer-events: none;
  opacity: 0;
  border-radius: 0;
  transform: translateY(20vh);
}

.popupBtn--linkDummy svg{
  transform: rotate(90deg);
}

.popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  margin: 0 12px;
}

.popup__link {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .5);
  color: white;
  font-family: sans-serif;
  font-size: 6vw;
  text-align: center;
  text-decoration: none;
}

.popup__progress {
  display: flex;
  justify-content: center;
  margin: 10px;
}

.progress-total {
  width: 100%;
  height: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .2);
}

.progress-current {
  width: 0%;
  height: 2px;
  border-radius: 5px;
  background: white;
}

.state-width-100-percent {
  width: 100%;
  transition: width 6s linear;
}

.state-description-hidden {
  transition: opacity 1s linear;
  transition-delay: 1.5s;
  opacity: 0;
}

.state-description-hidden--empty {
  opacity: 0;
}

.state-dummy-shown {
  opacity: 1;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  transform: translateY(0vh);
}

@media (min-width: 425px) {
  .popup {
    background-size: contain;
  }

  .popup__link {
    font-size: 30px;
  }
}

.is-preview .popupBtn--linkDummy {
  opacity: 1;
  transform: translateY(0vh);
  pointer-events: all;
}