@import '@/styles/variables';
@import '@/styles/font-styles';

.gallery {
  position: relative;

  @include tablet-only {
    background-color: $gray-001;
    padding: 24px 0;
  }
}

.galleryTitle {
  @extend .subtitle;

  color: $black;
  margin-bottom: 20px;
  max-width: 500px;
  width: 100%;

  span {
    display: block;
    padding: 0 12px;
  }

  @include mobile {
    max-width: 100%;
    margin-left: 0!important;
    margin-bottom: 10px;
  }
}

.galleryInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;

  @include tablet-only {
    display: block;
    margin-left: 0!important;
    margin-right: 0!important;
    margin-bottom: 10px;
  }
  
  @include mobile {
    display: block;
    margin-left: 0!important;
    margin-right: 0!important;
    margin-bottom: 10px;
  }
} 

.galleryDescription {
  @extend .body-regular;

  max-width: 700px;
  width: 100%;

  p {
    padding: 0 12px;
    white-space: pre-line;
  }

  @include tablet-only {
    max-width: 100%;
    margin-bottom: 10px;
  }
  
  @include mobile {
    max-width: 100%;
    margin-bottom: 10px;
  }
}

.galleryArrow {
  @extend .body-regular;

  display: flex;
  align-items: center;
  padding: 0 12px;

  span {
    display: block;
    width: 12px;
    height: 19px;
    margin: 0 10px;
  }
}

.galleryImages {
  height: 558px;
  width: 100%;
  overflow: hidden;

  .galleryImagesItem {
    flex: 0 0 auto;
    margin-right: 24px;


    img {
      height: 558px;
      max-width: 100%;
    }

    &:last-child {
      margin-right: 0;
    }
  }

  & > div {
    overflow: auto;
    display: flex;
    cursor: grab;
  }

  @include tablet-only {
    height: 324px;

    .galleryImagesItem {
      margin-right: 0px;

      img {
        height: 324px;
      }

      &:first-child {
        margin-left: 0!important;
      }
    }
  }

  @include mobile {
    height: 176px;

    .galleryImagesItem {
      margin-right: 0px;

      img {
        height: 176px;
      }

      &:first-child {
        margin-left: 0!important;
      }
    }
  }
}