.package-photo-carousel {
  @media (max-width: $screen-xs-max) {
    margin: 0 -15px;
  }
  .carousel {
    margin-bottom: 0;
  }
}
.sh-photo-carousel {
  .carousel {
    margin-bottom: 0;
  }
}
.package-photo-gallery {
  background:#fff;
  min-height: 240px;
  @media (min-width: $screen-sm-min) {
    min-height: 340px;
  }
}
.photo-gallery {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  @media (min-width: $screen-sm-min) {
    display: flex;
    flex-wrap: wrap;
  }
  &-bt {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  &__main {
    max-width: 100%;
    position: relative;
    @media (min-width: $screen-sm-min) {
      flex: 1 0 auto;
      height: auto;
      max-height: 500px;
      min-height: 500px;
    }
  }
  &-info {
    position: absolute;
    display: inline-block;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    padding: 10px;
    pointer-events: none;
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 100%;
      background: $brand-grey-dark;
      opacity: 0.7;
      z-index: 2;
    }
    @media (min-width: $screen-sm-min) {
      display: none;
    }
    &__icon {
      position: relative;
      z-index: 3;
      .icon {
        width: 30px;
        height: 30px;
        vertical-align: middle;
        margin-right: 5px;
        &, & * {
          fill: #fff;
        }
      }
    }
    &__text {
      color: #fff;
      font-size: 20px;
      vertical-align: middle;
      border-bottom: 1px solid #fff;
      @include medium-weight;
      position: relative;
      z-index: 3;
    }
  }
  &__thumbs {
    height: 100%;
    position: relative;
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    display: none;
    @media (min-width: $screen-sm-min) {
      display: flex;
      flex-direction: column-reverse;
      flex-wrap: nowrap;
      flex: 0 0 177px;
      margin-left: 10px;
      margin-top: 0;
      gap: 10px;
    }
    @media (min-width: $screen-lg-min) {
      flex: 0 0 244px;
    }
  }
  &__item {
    position: relative;
    width: 100%;
    height: 100%;
    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 1;
      border-radius: 6px;
    }
    &--lg {
      img {
        position: relative;
        display: block;
        @media (min-width: $screen-sm-min) {
          position: absolute;
        }
      }
    }
    &--sm, &--bt {
      height: 140px;
      width: calc( 50% - 4px);
      flex: 1 0 auto;
      @media (min-width: $screen-sm-min) {
        width: 100%;
        height: 245px;
      }
    }
    &--bt {
      margin-top: 0;
      &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        background: $brand-grey-dark;
        opacity: 0.7;
        z-index: 2;
        border-radius:6px;
      }
      .photo-gallery-bt {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 4;
        border-radius: 6px;
        &__icon {
          .icon {
            width: 30px;
            height: 30px;
            vertical-align: middle;
            margin-right: 5px;
            &, & * {
              fill: #fff;
            }
          }
        }
        &__text {
          color: #fff;
          font-size: 20px;
          vertical-align: middle;
          @include medium-weight;
          border-bottom: 1px solid #fff;
        }
      }
    }
  }
  &__thumbssecondline {
    display: none;
    @media (min-width: $screen-sm-min) {
      display: flex;
      flex-wrap: nowrap;
      flex: 0 0 100%;
      gap: 9px;
      margin-top: 9px;
      min-height: 118px;
    }
    .photo-gallery__item {
      flex: 1 1 25%;
      height: 100%;
    }
  }
}
.modal-gallery {
  &.in .modal-dialog {
    width: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 6px;
    overflow: hidden;
    left: 0;
    right: 0;
    @media (min-width: $grid-float-breakpoint) {
      width: 670px;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
    }
    @media (min-width: $screen-md-min) {
      width: 820px;
    }
    &.modal-fullscreen {
      width: 100vw;
      max-width: none;
      height: 100%;
      margin: 0;
      @media (min-width: 768px) {
        margin: 0;
        max-width: none;
      }
    }
  }
  .modal-content {
    background-clip: padding-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    outline: 0;
    pointer-events: auto;
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-header,
  .modal-footer {
    border-radius: 0;
    flex: 1 0 auto;
  }

  .modal-body {
    overflow-y: auto;
    padding: 10px 15px;
    @media (min-width: 768px) {
      padding: 20px 30px;
    }
  }
  .modal-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.12);
    .modal-header-title {
      font-size: 16px;
      @include medium-weight;
      color: $brand-grey-dark;
      flex: 1 0 auto;
      padding: 0 0 0 15px;
      @media (min-width: 768px) {
        padding: 0 0 0 30px;
      }
    }
    .btn-close {
      background: none;
      border: none;
      cursor: pointer;
      margin: 0 0 0 auto;
      padding: 15px;
      flex: 0 0 auto;
      .icon {
        height: 14px;
        width: 14px;
        vertical-align: middle;
        &, & * {
          fill: $brand-grey-dark;
        }
      }
    }
  }
}

.modal-photo-gallery {
  margin: 0 auto;
  max-width: 768px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  &__item {
    overflow: hidden;
    margin-bottom: 5px;
    position: relative;
    min-height: 100px;
    @media (min-width: $screen-sm-min) {
      margin-bottom: 10px;
    }
    img {
      display: block;
      width: 100%;
    }
    &--full {
      width: 100%;
    }
    &--half {
      width: calc(50% - 2.5px);
      @media (min-width: $screen-sm-min) {
        margin-bottom: 10px;
      }

      img{
        max-width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    &--full + .modal-photo-gallery__item--half:last-child {
      width: 100%;
    }
    .photo-desc {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
      color: #fff;
      padding: 15px;
      text-align: left;
    }
  }
}

// Notes on the classes:
//
// 1. .carousel.pointer-event should ideally be pan-y (to allow for users to scroll vertically)
//    even when their scroll action started on a carousel, but for compatibility (with Firefox)
//    we're preventing all actions instead
// 2. The .carousel-item-start and .carousel-item-end is used to indicate where
//    the active slide is heading.
// 3. .active.carousel-item is the current slide.
// 4. .active.carousel-item-start and .active.carousel-item-end is the current
//    slide in its in-transition state. Only one of these occurs at a time.
// 5. .carousel-item-next.carousel-item-start and .carousel-item-prev.carousel-item-end
//    is the upcoming slide in transition.

.carousel {
  position: relative;
}

.carousel.pointer-event {
  touch-action: pan-y;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  clear: both;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform .6s ease;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* rtl:begin:ignore */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
}

/* rtl:end:ignore */


//
// Alternate transitions
//

.carousel-fade {
  .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
  }

  .carousel-item.active,
  .carousel-item-next.carousel-item-start,
  .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
  }

  .active.carousel-item-start,
  .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s .6s;
  }
}


//
// Left/right controls for nav
//

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  // Use flex for alignment (1-3)
  display: flex; // 1. allow flex styles
  align-items: center; // 2. vertically center contents
  justify-content: center; // 3. horizontally center contents
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: 0;
  transition: opacity .15s ease;

  // Hover/focus state
  &:hover,
  &:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
  }
}
.carousel-control-prev {
  left: 0;
  &.left {
    background: none;
  }
}
.carousel-control-next {
  right: 0;
  &.right {
    background: none;
  }
}

// Icons for within
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
  filter: drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.5));
}
.carousel-control-prev-icon {
  background-image: url("/headers/svg/background/icon-ownfill-ui-chevron-left-ffffff.svg");
}
.carousel-control-next-icon {
  background-image: url("/headers/svg/background/icon-ownfill-ui-chevron-right-ffffff.svg");
}
.visually-hidden {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}
.photo-carousel {
  &__item {
    position: relative;
    background: #ededed;
    display: flex;
    &:after {
      content:'';
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 2;
      background-image: linear-gradient( 90deg, rgba(#fff, 0), rgba(#fff, 0.5) 50%, rgba(#fff, 0) 100% );
      background-position: -100% 0;
      background-size: 50% 100%;
      background-repeat: no-repeat;
      animation: skeletonanimation 1s infinite;
    }
    .photo-gallery-bt {
      position: relative;
      z-index: 3;
    }
    img {
      width: 100%;
      display: block;
      height: 100%;
      object-fit: cover;
    }
    .carousel-order {
      position: absolute;
      bottom: 10px;
      right: 15px;
      padding: 1px 4px;
      border-radius: 10px;
      background-color: rgba(116, 113, 110, 0.6);
      z-index: 4;
      &__index, &__total {
        color: #fff;
        @include medium-weight;
      }
      &__index {
        font-size: 14px;
      }
      &__total {
        font-size: 12px;
      }

    }
  }
}
@keyframes skeletonanimation {
  to {
    background-position:  150% 0;
  }
}

widgets_packages_page_package_packagepagewidget {
  .row {
    display: flex;
    .col-lg-4 {
      display: flex;
      > div {
        display: flex;
        .msavailability-layout {
          display: flex;
          .msavailability-layout__element--availability {
            display: flex;
            > div {
              display: flex;
              align-content: flex-start;
              flex-wrap: wrap;
            }
          }
        }
      }
    }
  }
}