/* smileGalleryGridSec */
.smileGalleryGridSec .secHeader {
  text-align: center;
  margin-bottom: 64px;
}

.smileGalleryGridSec .secHeader .headingXL {
  color: var(--neutral900);
  margin-bottom: 24px;
}

.smileGalleryGridSec .secHeader .paragraphL {
  color: var(--neutral700);
}

/* Tabs */
.smileGalleryGridSec .tabSliderWrap {
  margin-bottom: 52px;
}

.smileGalleryGridSec .tabWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.smileGalleryGridSec .tabWrapper .tabLink {
  background-color: #8b6e421a;
  padding: 13px 20px;
  min-width: 226px;
  color: var(--neutral900);
  text-align: center;
  position: relative;
  text-decoration: none;
  transition: 0.4s;
}

.smileGalleryGridSec .tabWrapper .tabLink:hover {
  background-color: var(--primaryBrand400);
}

.smileGalleryGridSec .tabWrapper .tabLink::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 0%;
  height: 1px;
  transition: 0.4s;
  background-color: var(--primaryBrand);
  z-index: 2;
}

.smileGalleryGridSec .tabWrapper .tabLink.active::before {
  width: 100%;
}

/* Gallery Grid */
.smileGalleryGridSec .smileGalleryGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.smileGalleryGridSec .smileGalleryGrid .imgWrapper {
  width: calc(33.3333% - 16px);
}

.smileGalleryGridSec .smileGalleryGrid .imgWrapper .innerWrapper,
.smileGalleryGridSec .smileGalleryGrid .imgWrapper .baCompare {
  width: 100%;
  padding-top: 83%;
  position: relative;
  overflow: hidden;
  display: block;
  user-select: none;
  cursor: ew-resize;
}

.smileGalleryGridSec .smileGalleryGrid .imgWrapper img {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Before / After comparison */
.smileGalleryGridSec .baCompare__layer {
  position: absolute;
  inset: 0;
}

.smileGalleryGridSec .baCompare__layer--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
}

.smileGalleryGridSec .baCompare__layer--after {
  z-index: 1;
}

.smileGalleryGridSec .baCompare__label {
    position: absolute;
    top: 12px;
    z-index: 4;
    padding: 0px 4px;
    border-radius: 8px;
    background: #FFFFFFCC;
    color: #8B6E42;
    font-size: 18px;
	font-family: 'Geist';
    line-height: 28px;
    font-weight: 500;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.smileGalleryGridSec .baCompare__label--before {
  left: 12px;
}

.smileGalleryGridSec .baCompare__label--after {
  right: 12px;
}

.smileGalleryGridSec .baCompare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  z-index: 5;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.smileGalleryGridSec .baCompare__handleLine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.smileGalleryGridSec .baCompare__handleBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4a4a4a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.smileGalleryGridSec .baCompare__handleBtn svg {
  display: block;
}

.smileGalleryGridSec .baCompare__range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.smileGalleryGridSec .smileGalleryGrid .imgWrapper.is-gallery-hidden {
  display: none;
}

.smileGalleryGridSec .smileGalleryGrid__loadMoreWrap {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.smileGalleryGridSec .smileGalleryGrid__loadMoreLink {
  text-decoration: none;
  text-align: center;
}

/* Bottom Info Text */
.smileGalleryGridSec .infoText {
  color: var(--neutral700);
  margin-top: 52px;
  text-align: center;
}

/* Responsive - 1199px */
@media (max-width: 1199px) {
  .smileGalleryGridSec .secHeader {
    margin-bottom: 32px;
  }
}

/* Responsive - 1023px (tablet + mobile) */
@media (max-width: 1023px) {
  .smileGalleryGridSec .smileGalleryGrid .imgWrapper {
    width: 100%;
    touch-action: pan-y;
  }

  .smileGalleryGridSec .tabSliderWrap {
    margin-bottom: 32px;
  }

  /* Touches pass through images so the page can scroll */
  .smileGalleryGridSec .smileGalleryGrid .imgWrapper .baCompare {
    pointer-events: none;
    touch-action: pan-y;
    cursor: default;
  }

  /* Only the round handle button captures drag — not the full-height line */
  .smileGalleryGridSec .baCompare__handle {
    pointer-events: none;
  }

  .smileGalleryGridSec .baCompare__handleBtn {
    pointer-events: auto;
    touch-action: none;
    cursor: ew-resize;
  }

  .smileGalleryGridSec .baCompare__range {
    display: none;
  }
}

/* Responsive - 575px */
@media (max-width: 575px) {
  .smileGalleryGridSec .tabSliderWrap {
    position: relative;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Fade “peek” on right edge only (no prev control) */
  .smileGalleryGridSec
    .tabSliderWrap:has(.tabWrapper.slick-initialized)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 52px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
      to left,
      var(--primaryBrand100) 0%,
      var(--primaryBrand100) 35%,
      transparent 100%
    );
  }

  .smileGalleryGridSec .tabWrapper:not(.slick-initialized) {
    gap: 10px;
  }

  .smileGalleryGridSec .tabWrapper:not(.slick-initialized) .tabLink {
    min-width: calc(50% - 5px);
    padding: 13px 8px;
  }

  /* Slick tab slider */
  .smileGalleryGridSec .tabWrapper.slick-slider {
    display: block;
    margin-bottom: 0;
  }

  .smileGalleryGridSec .tabWrapper .slick-list {
    touch-action: pan-y;
  }

  .smileGalleryGridSec .tabWrapper .slick-track {
    display: flex;
    align-items: stretch;
  }

  .smileGalleryGridSec .tabWrapper .slick-slide {
    height: auto;
  }

  .smileGalleryGridSec .tabWrapper .slick-slide > div {
    height: 100%;
  }

  .smileGalleryGridSec .tabWrapper.slick-slider .tabLink {
    min-width: auto;
    padding: 13px 16px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow.slick-disabled {
    display: none !important;
  }

  /* Thin chevron, width auto */
  .smileGalleryGridSec .tabSliderWrap .slick-arrow {
    width: auto;
    height: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: opacity 0.25s;
    z-index: 5;
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow:hover {
    background: transparent;
    opacity: 0.65;
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow::before {
    display: none;
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #000000;
    border-top: 1.5px solid #000000;
    background: none;
    box-sizing: border-box;
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow.slick-next::after {
    transform: translate(-50%, -50%) translateX(-1px) rotate(45deg);
  }
	
.smileGalleryGridSec .tabSliderWrap .slick-arrow.slick-prev::after {
    transform: translate(-50%, -50%) translateX(1px) rotate(-135deg);
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow.slick-prev {
    position: absolute;
    left: 2px;
    right: auto;
    top: 0;
    bottom: 0;
    transform: none;
  }

  .smileGalleryGridSec .tabSliderWrap .slick-arrow.slick-next {
    position: absolute;
    right: 2px;
    left: auto;
    top: 0;
    bottom: 0;
    transform: none;
  }

  .smileGalleryGridSec .smileGalleryGrid {
    gap: 10px;
  }

  .smileGalleryGridSec .smileGalleryGrid .imgWrapper .innerWrapper,
  .smileGalleryGridSec .smileGalleryGrid .imgWrapper .baCompare {
    border-radius: 8px;
  }

  .smileGalleryGridSec .baCompare__label {
    top: 8px;
    padding: 0px 4px;
    font-size: 16px;
	line-height: 26px;
  }

  .smileGalleryGridSec .baCompare__label--before {
    left: 8px;
  }

  .smileGalleryGridSec .baCompare__label--after {
    right: 8px;
  }

  .smileGalleryGridSec .baCompare__handleBtn {
    width: 34px;
    height: 34px;
  }

  .smileGalleryGridSec .infoText {
    margin-top: 32px;
  }

  /* Temp font size */
  .smileGalleryGridSec .secHeader .headingXL {
    font-size: 36px;
    line-height: 46px;
  }
}
