<commit_before>// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only

.Lightbox {
  &__container {
    background-color: $color-black-alpha-90;
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 0 16px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;

    &--zoom {
      padding: 0;
    }
  }

  &__main-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    // To ensure that a large image doesnt overflow the flex layout
    min-height: 50px;
    outline: none;
  }

  &__buttons {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
  }

  &__thumbnails {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 50%;
    position: absolute;

    &--container {
      height: 64px;
      margin-bottom: 16px;
      margin-top: 10px;
      position: relative;
    }
  }

  &__thumbnail {
    @include button-reset;
    border-radius: 4px;
    height: 64px;
    margin-right: 8px;
    overflow: hidden;
    width: 64px;

    img {
      height: 100%;
      object-fit: contain;
      width: 100%;
    }

    &--selected {
      box-shadow: 0px 0px 0px 2px $color-ultramarine;
    }

    &--unavailable {
      @include color-svg('../images/image.svg', $color-gray-25);
      height: 100%;
      width: 100%;
    }
  }

  &__shadow-container {
    display: flex;
    height: 100%;
    padding: 0;
    position: absolute;
    width: 100%;
    visibility: hidden;
  }

  &__object {
    &--container {
      display: inline-flex;
      flex-grow: 1;
      justify-content: center;
      overflow: hidden;
      position: relative;
      z-index: 1;
    }

    height: auto;
    left: 50%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    outline: none;
    padding: 0 40px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }

  &__shadow-container &__object {
    max-height: 200%;
    max-width: 200%;
    padding: 10%;
    visibility: hidden;
  }

  &__object--container--zoom &__object {
    max-height: 200%;
    max-width: 200%;
    padding: 10%;
  }

  &__object--container--fill &__object {
    height: 100%;
    padding: 0;
    width: 100%;
  }

  &__unsupported {
    @include button-reset;
    flex-grow: 1;
    height: 100%;
    max-width: 200px;
    width: 100%;

    &--image {
      @include color-svg('../images/image.svg', $color-gray-25);
    }

    &--video {
      @include color-svg('../images/movie.svg', $color-gray-25);
    }

    &--file {
      @include color-svg('../images/file.svg', $color-gray-25);
    }

    &--missing {
      @include color-svg(
        '../images/full-screen-flow/alert-outline.svg',
        $color-gray-25
      );
    }
  }

  &__zoom-button {
    @include button-reset;
    cursor: zoom-in;
  }

  &__object--container--zoom,
  &__object--container--fill {
    .Lightbox__zoom-button {
      cursor: zoom-out;
    }
  }

  &__caption {
    @include font-body-2;
    color: $color-white;
    margin: 12px 0;
    text-align: center;
  }

  &__countdown {
    padding: 8px;
  }

  &__timestamp {
    @include font-body-1;
    background-color: $color-black;
    border-radius: 15px;
    color: #eeefef;
    padding: 6px 18px;
    text-align: center;
  }

  &__nav-next {
    bottom: 50%;
    position: absolute;
    right: 21px;
  }

  &__nav-prev {
    bottom: 50%;
    left: 21px;
    position: absolute;
  }<commit_msg>Fix z-index next/prev buttons on Lightbox<commit_after>// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only

.Lightbox {
  &__container {
    background-color: $color-black-alpha-90;
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 0 16px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;

    &--zoom {
      padding: 0;
    }
  }

  &__main-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    // To ensure that a large image doesnt overflow the flex layout
    min-height: 50px;
    outline: none;
  }

  &__buttons {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
  }

  &__thumbnails {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 50%;
    position: absolute;

    &--container {
      height: 64px;
      margin-bottom: 16px;
      margin-top: 10px;
      position: relative;
    }
  }

  &__thumbnail {
    @include button-reset;
    border-radius: 4px;
    height: 64px;
    margin-right: 8px;
    overflow: hidden;
    width: 64px;

    img {
      height: 100%;
      object-fit: contain;
      width: 100%;
    }

    &--selected {
      box-shadow: 0px 0px 0px 2px $color-ultramarine;
    }

    &--unavailable {
      @include color-svg('../images/image.svg', $color-gray-25);
      height: 100%;
      width: 100%;
    }
  }

  &__shadow-container {
    display: flex;
    height: 100%;
    padding: 0;
    position: absolute;
    width: 100%;
    visibility: hidden;
  }

  &__object {
    &--container {
      display: inline-flex;
      flex-grow: 1;
      justify-content: center;
      overflow: hidden;
      position: relative;
      z-index: 1;
    }

    height: auto;
    left: 50%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    outline: none;
    padding: 0 40px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }

  &__shadow-container &__object {
    max-height: 200%;
    max-width: 200%;
    padding: 10%;
    visibility: hidden;
  }

  &__object--container--zoom &__object {
    max-height: 200%;
    max-width: 200%;
    padding: 10%;
  }

  &__object--container--fill &__object {
    height: 100%;
    padding: 0;
    width: 100%;
  }

  &__unsupported {
    @include button-reset;
    flex-grow: 1;
    height: 100%;
    max-width: 200px;
    width: 100%;

    &--image {
      @include color-svg('../images/image.svg', $color-gray-25);
    }

    &--video {
      @include color-svg('../images/movie.svg', $color-gray-25);
    }

    &--file {
      @include color-svg('../images/file.svg', $color-gray-25);
    }

    &--missing {
      @include color-svg(
        '../images/full-screen-flow/alert-outline.svg',
        $color-gray-25
      );
    }
  }

  &__zoom-button {
    @include button-reset;
    cursor: zoom-in;
  }

  &__object--container--zoom,
  &__object--container--fill {
    .Lightbox__zoom-button {
      cursor: zoom-out;
    }
  }

  &__caption {
    @include font-body-2;
    color: $color-white;
    margin: 12px 0;
    text-align: center;
  }

  &__countdown {
    padding: 8px;
  }

  &__timestamp {
    @include font-body-1;
    background-color: $color-black;
    border-radius: 15px;
    color: #eeefef;
    padding: 6px 18px;
    text-align: center;
  }

  &__nav-next {
    bottom: 50%;
    position: absolute;
    right: 21px;
    z-index: 2;
  }

  &__nav-prev {
    bottom: 50%;
    left: 21px;
    position: absolute;
    z-index: 2;
  }
{'fraction_non_alphanumeric': 0.14621190942130277, 'fraction_numerical': 0.03969807100922561, 'mean_word_length': 2.0266497461928936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4537536', 'n_tokens_mistral': 2821, 'n_tokens_neox': 2507, 'n_words': 565}