/*
 * TFS HOLIDAY GIFT-CARD GALLERY
 * Seasonal, self-contained styles. Remove this file and its marked stylesheet
 * link, page section, and script link after the holiday promotion ends.
 */

.tfs-holiday-gift-gallery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #edf4f3 url("../../img/background/giftcardsbackground.jpg") center / cover no-repeat;
}

.tfs-holiday-gift-gallery::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 31, 36, 0.56), rgba(0, 31, 36, 0.34));
}

@media (min-resolution: 1.5dppx),
       (-webkit-min-device-pixel-ratio: 1.5) {
  .tfs-holiday-gift-gallery {
    background-image: url("../../img/background/giftcardsbackground@2x.jpg");
  }
}

.tfs-holiday-gift-gallery__heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 980px;
}

.tfs-holiday-gift-gallery__heading-icon {
  flex: 0 0 auto;
  color: #e4bd7d;
  font-size: clamp(3.25rem, 7vw, 5.75rem);
  line-height: 1;
}

.tfs-holiday-gift-gallery__heading .block-title {
  text-align: left;
}

.tfs-holiday-gift-gallery__heading .sub-title {
  color: #e4bd7d !important;
}

.tfs-holiday-gift-gallery__heading .title {
  margin-bottom: 0;
  color: #fff !important;
}

.tfs-holiday-gift-gallery__slider {
  visibility: hidden;
}

.tfs-holiday-gift-gallery__slider.is-initialized {
  visibility: visible;
}

/*
 * Keep this reusable slider content-height-driven. Some TFS pages contain
 * full-height Splide layouts whose inherited percentage height would otherwise
 * stretch these compact gift-card slides to the browser viewport height.
 */
.tfs-holiday-gift-gallery__slider,
.tfs-holiday-gift-gallery__slider .splide__track,
.tfs-holiday-gift-gallery__slider .splide__list,
.tfs-holiday-gift-gallery__slider .splide__slide {
  height: auto !important;
  min-height: 0 !important;
}

.tfs-holiday-gift-gallery__slider .splide__list {
  align-items: flex-start;
}

.tfs-holiday-gift-gallery__card {
  display: block;
  overflow: hidden;
  border: 2px solid #e4bd7d;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.5rem rgba(11, 49, 54, 0.14);
}

.tfs-holiday-gift-gallery__card figure {
  aspect-ratio: 534 / 274;
}

.tfs-holiday-gift-gallery__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tfs-holiday-gift-gallery__card .image-hover-icon {
  font-size: 1.8rem;
}

.tfs-holiday-gift-gallery__slider .splide__pagination {
  position: static;
  margin: 1.5rem 0 0;
}

.tfs-holiday-gift-gallery__slider .splide__pagination__page {
  background: #e4bd7d;
  opacity: 1;
}

.tfs-holiday-gift-gallery__slider .splide__pagination__page.is-active {
  background: var(--bs-primary, #00798d);
  opacity: 1;
}

.tfs-holiday-gift-gallery__copy {
  max-width: 1020px;
  margin: 1.5rem auto 0;
  color: #fff !important;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

@media (max-width: 575.98px) {
  .tfs-holiday-gift-gallery__heading {
    align-items: flex-start;
    gap: 0.9rem;
  }

  .tfs-holiday-gift-gallery__heading-icon {
    padding-top: 0.2rem;
    font-size: 3rem;
  }
}

