main.soulody > section#references {
  grid-area: references;
  grid-template-columns: 1fr;
  grid-template-rows: auto 538px;
  justify-items: center;
  align-items: start;
  grid-template-areas:
    "headers"
    "card";

  .heading {
    margin-top: 15px;
  }

  @media screen and (max-width: 930px) {
    grid-template-rows: auto;
    grid-auto-columns: 1fr;
    justify-items: center;
    align-items: start;
    grid-template-areas:
    "headers"
    "card"
    "nav-mobile"
  }

  > header {
    margin-top: 80px;
    margin-bottom: 50px;
    display: block;
    grid-area: headers;
    align-self: center;
    text-align: center;
  }

  & > main {
    grid-area: card;
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: auto auto;
    grid-template-areas: "video text";
    padding: 4px;
    border-radius: 16px;
    max-width: 592px;
    width: 100%;
    height: 100%;
    background-color: white;

    @media screen and (max-width: 930px) {
      grid-area: unset;
      max-width: 310px;
      max-height: 540px;
      width: unset;
      height: unset;
      grid-template-areas: "video";
    }

    > aside {
      grid-area: video;
      position: relative;

      > header, footer {
        position: absolute;
        @media screen and (max-width: 930px) {
          display: flex;
          justify-content: space-between;
          align-items: start;
        }
      }

      > header {
        display: grid;
        grid-template-columns: 40px 180px 40px;
        grid-template-rows: auto;
        grid-template-areas: "playback texts audio";
        column-gap: 8px;
        padding: 8px;
        background: transparent;
        align-items: center;
        z-index: 2;


        > button {
          border: none;
          height: 40px;
          border-radius: 8px;
          background-repeat: no-repeat;
          background-position: center;
          background-size: 24px;

          &.playpause {
            grid-area: playback;
            background-color: white;

            &[data-state=paused] {
              background-image: url(/bundles/ulekare/img/soulody/icons/play.svg);
            }

            &[data-state=playing] {
              background-image: url(/bundles/ulekare/img/soulody/icons/pause.svg);
            }
          }

          &.mute {
            grid-area: audio;
            background-color: rgba(36, 33, 27, 0.4);

            &[data-state=muted] {
              background-image: url(/bundles/ulekare/img/soulody/icons/mute.svg);
            }

            &[data-state=unmuted] {
              background-image: url(/bundles/ulekare/img/soulody/icons/unmute.svg);
            }
          }

          > img {
            width: 24px;
            height: 24px;
          }
        }

        > .name-position {
          grid-area: texts;
          display: none;
          flex-direction: column;
          justify-content: center;
          text-align: center;
          padding: 0 4px;

        }
      }

      > video {
        border-radius: 12px;
        max-width: 300px;
        max-height: 538px;
        height: 100%;
      }
      > .cardFront {
        display: none;
        @media screen and (max-width: 930px) {
          position: absolute;
          top: 15px;
          left: 35px;
        }
        > header {
          max-width: 248px;
          max-height: 76px;
          margin-bottom: 15px;
          > p {
            max-width: 220px;
          };
        }
        > .content {
          max-height: 189px;
          max-width: 210px;
          h6 {
            margin-top: 20px;
          }
        }
      }
      > button {
        display: none;
        @media screen and (max-width: 930px) {
          display: unset;
          position: absolute;
          right: 10px;
          bottom: 10px;
          z-index: 1 !important;
          height: 40px;
          width: 40px;
          border-radius: 8px;
          padding: 8px;
          background-repeat: no-repeat;
          border: none;
          background-position: center;
          &.reference-info {
            &[data-state=down] {
              background-color: white;
              background-image: url(/bundles/ulekare/img/soulody/icons/info.svg);
            }

            &[data-state=up] {
              background-color: #24211B88;
              background-image: url(/bundles/ulekare/img/soulody/icons/white-cross.svg);
            }
          }
        }
      }

      > footer {
        width: 100%;
        position: absolute;
        bottom: 8px;
        height: 8px;

        > progress {
          appearance: none;
          display: block;
          width: 50px;
          height: 100%;
          margin: 0 auto;
          color: white;

          &::-webkit-progress-bar {
            background-color: rgba(36, 33, 27, .4);
            border-radius: 9999px;
            box-shadow: none;
            padding: 1px;
          }

          &::-webkit-progress-value {
            background-color: white;
            border-radius: 999px;
          }

          > span {
            width: 0;
            height: 100%;
            display: inline-block;
            background-color: #2a84cd;
          }
        }
      }
    }

    > main {
      grid-area: text;
      padding: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      height: 530px;

      @media screen and (max-width: 930px) {
        display: none !important;
      }

      > header {
        margin-top: 30px;
        > h4 {
          margin-top: 4px;
        }
      }

      > main {
        > h6 {
          &:not(:first-child) {
            margin-top: 24px;
          }
        }
      }

      > footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    }
  }
   .arrows {
    margin-bottom: 5px;
    z-index: 1;
    display: flex;
    margin-top: 100px;
    justify-content: right;
    align-self: end;

    > .left,
    > .right {
      width: 40px;
      height: 40px;
      background-color: #24211B88;
      @media screen and (max-width: 930px) {
        background-color: white;
      }
      padding: 8px;
      border-radius: 8px;
      cursor: pointer;
    }

    > .left {
      transform: rotate(180deg);
    }

    > .right {
      margin-left: 4px;
    }
  }
  > footer {
    display: none;
    @media screen and (max-width: 930px) {
      display: flex;
      max-width: 300px;
      margin-top: 8px;
      justify-content: space-evenly;
    }

    > .nav-mobile {
        display: flex;
        grid-area: mobile-nav;
        margin-top: 0;
      margin-bottom: 65px;
    }
    > .mobile-text {
        margin-top: 0;
        text-align: left;
        margin-right: 40px;
      > h4 {
        max-height: 25px;
        margin-bottom: 3px;
      }
       > h5 {
       max-width: 230px;
       }
    }
  }
}
