.slider-controls-custom {
  position: absolute;
  top: 0;
  right: 0;
  //display: none;
  @include breakpoint(br-768 up) {
    display: block;
    vertical-align: middle;
  }
  @include breakpoint(large up) {
    position: unset;
  }
  .prev, .next {
    width: 30px;
    height: 30px;
    line-height: 30px;
    i {
      line-height: 29px;
      color: $charcoal;
    }
    text-align: center;
    display: inline-block;
    background-color: white;
    color: $charcoal;
    border-radius: 50%;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    &.has-no-more {
      @include breakpoint(large up) {
        box-shadow: none;
        color: $grey;
        i {
          color: $grey;
        }
      }

    }
    &:focus {
      outline: none;
    }
  }
  .prev {
    margin-right: 16px;
  }
}

.photo-grid {
  margin-bottom: 56px;
  @include breakpoint(br-768 up) {
    margin-bottom: 74px;
    padding-top: 100px;
  }

  .heading {
    padding: 0;
    font-size: 22px;
    font-weight: bold;
    color: $charcoal;
    width: 60%;
    margin-bottom: 16px;
    @include breakpoint(br-768 up) {
      width: auto;
      font-size: 26px;
      line-height: 32px;
      margin-bottom: 12px;
    }
    @include breakpoint(large up) {
      font-size: 38px;
      line-height: 1.21;
      margin-bottom: 36px;
    }
  }

  .sub-title {
    font-size: 16px;
    color: $grey;
    @include breakpoint(large up) {
      margin-bottom: 26px;
    }
  }

  .see-all-activities-button {
    background: white;
    border: 2px solid $charcoal;
    color: $charcoal;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    text-align: center;
    display: block;
    width: 100%;
    &:hover {
      background: $charcoal;
      color: white;
    }
    @include breakpoint(large up) {
      margin-right: 16px;
      width: auto;
      display: inline-block;
    }
  }

  .tiny-slider {
    padding-left: 0.9375rem;
    max-width: 79rem;
    margin: auto;
    @include breakpoint(br-768 up) {
      padding-left: 2rem;
    }
  }
}

.slider-wrapper {
  overflow: hidden;
  @include breakpoint(large up) {
    margin-left: 0;
  }
  .grid-parent {
    transition: transform 0.4s ease;
    transform: translate3d(0,0,0);
  }
}

.grid-parent {
  //padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 18px;
  grid-row-gap: 18px;
  margin-bottom: 26px;

  .grid-block.listing {
    width: 249px;
    @include breakpoint(large up) {
      width: 280px;
    }
    button.favourite {
      display: none;
    }
    &:hover {
      cursor: pointer;
    }
    .tag {
      display: none;
    }
    .listing-card-banner {
      height: 180px;
      .tag {
        display: inline-block !important;
      }
      @include breakpoint(large up) {
        height: 220px;
      }
    }
    .body-container {
      border: none;
      box-shadow: none;
      padding-left: 0;
      padding-bottom: 8px;
    }
  }

  &.show-first-4 {
    .grid-block {
      &:nth-child(n + 5) {
        display: none;
      }
    }
  }
  &.show-first-8 {
    .grid-block {
      display: none;
      &:nth-child(n + 5) {
        display: block;
      }
      &:nth-child(n + 9) {
        display: none;
      }
    }
  }
  &.show-first-12 {
    .grid-block {
      display: none;
      &:nth-child(n + 9) {
        display: block;
      }
      &:nth-child(n + 13) {
        display: none;
      }
    }
  }
  &.show-all {
    .grid-block {
      display: block;
    }
  }

  &.cols-12 {
    grid-template-columns: repeat(12, 1fr);
  }

  &.show-next-4 {
    .grid-block {
      display: block;
      &:nth-child(n + 5) {
        display: none;
      }
    }
  }
  &.show-next-8 {
    .grid-block {
      display: none;
      &:nth-child(n + 5) {
        display: block;
      }
      &:nth-child(n + 9) {
        display: none;
      }
    }
  }
  &.show-next-12 {
    .grid-block {
      display: none;
      &:nth-child(n + 9) {
        display: block;
      }
    }
  }

  @include breakpoint(br-768 up) {
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-column-gap: 24px;
    grid-row-gap: 24px;
  }

  @include breakpoint(large up) {
    grid-auto-flow: unset;
    grid-template-columns: repeat(6, 1fr);
    grid-column-gap: 34px;
    grid-row-gap: 40px;
    &.listing {
      grid-column-gap: 26px;
      grid-row-gap: 28px;
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

.image {
  background-size: cover;
  position: relative;
  width: 100%;
  height: 202px;
  border-radius: 6px;
  @include breakpoint(br-768 up){
    width: 196px;
    height: 240px;
  }
  @include breakpoint(large up){
    width: 234px;
    height: 300px;
    background-position: center;
  }


  &.filmshoot {
    background-image: url('/images/spaces/filmshoot.jpg');
  }
  &.wedding {
    background-image: url('/images/spaces/wedding.jpg');
  }
  &.event {
    background-image: url('/images/spaces/event.jpg');
  }
  &.photoshoot {
    background-image: url('/images/spaces/photoshoot.jpg');
  }
  &.meeting {
    background-image: url('/images/spaces/meeting.jpg');
  }
  &.workshop {
    background-image: url('/images/spaces/workshop.jpg');
  }
  &.bridalshower {
    background-image: url('/images/spaces/bridalshower.jpg');
  }
  &.babyshower {
    background-image: url('/images/spaces/babyshower.jpg');
  }
  &.celebration {
    background-image: url('/images/spaces/celebration.jpg');
  }
  &.birthdayparty {
    background-image: url('/images/spaces/birthdayparty.jpg');
  }
  &.popup {
    background-image: url('/images/spaces/popup.jpg');
  }
  &.function {
    background-image: url('/images/spaces/function.jpg');
  }


  &.indoorspaces {
    background-image: url('/images/spaces/indoor.jpg');
  }

  &.commercialspaces {
    background-image: url('/images/spaces/commercial.jpg');
  }

  &.outdoorspaces {
    background-image: url('/images/spaces/outdoor.jpg');
  }

  &.kitchen {
    background-image: url('/images/spaces/kitchen.jpg');
  }
  .overlay {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
    width: 100%;
    height: 80px;
    position: absolute;
    bottom: 0;
    border-radius: 6px;
    @include breakpoint(br-768 up) {
      height: 100px;
    }
  }
  h3 {
    text-align: center;
    position: absolute;
    top: 134px;
    display: block;
    left: 12px;
    right: 12px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    @include breakpoint(br-768 up) {
      top: 172px;
      bottom: 31px;
      left: 48px;
      right: 48px;
      font-size: 20px;
      font-weight: bold;
    }
    @include breakpoint(large up) {
      top: 212px;
      bottom: 31px;
      left: 48px;
      right: 48px;
      font-size: 24px;
      line-height: 28px;
    }
  }
}


.against-window-frame-on-tablet-right {
  padding-right: 0;
  &.retain-padding-mobile {
    //padding-right: 0.9375rem;
    @include breakpoint(br-768 up) {
      padding-right: 0;
    }
    //@include breakpoint(large up) {
    //  padding-right: 2rem;
    //}
  }
  .grid-x.grid-margin-x {
    margin-right: 0;
  }
  .slider-wrapper {
    margin-right: -0.75rem;
    @include breakpoint(large up) {
      margin-right: unset;
      margin-left: 0;
    }
  }
  @include breakpoint(large up) {
    //padding-right: 2rem;
    .grid-x.grid-margin-x {
      margin-right: -0.75rem;
    }
  }
}