* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color:rgb(10,10,10);
    background: url('images/lightgrey-bg.jpeg') center center / cover no-repeat;
  color: black;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: none;
  font-family: 'Open Sans', Helvetica, sans-serif;
  color: black;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  max-width:700px;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -1.5px;
  color: black;
  text-align: center;
  margin-top:30px;
  margin-bottom: 6px;
}

.subtitle {
  font-weight: 500;
  font-size: 1rem;
  font-style: italic;
  color: black;
  margin-bottom: 2rem;
  text-align: center;
}

.slider-frame {
  position: relative;
  width: 90%;
  aspect-ratio: 950 / 580; /* Maintain aspect ratio */
  max-width: 100%;
  cursor: ew-resize;
  user-select: none;
  margin-bottom:10px;
}

.static-bg,
.slider-wrapper,
.slider-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.static-bg {
  width: 100%;
  z-index: 0;
}

.static-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-wrapper {
  width: 100%;
  z-index: 1;
  background: transparent;
}

.slider-before-wrapper {
  width: 50%; /* Will be dynamically updated */
  z-index: 2;
}

.slider-before-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* #beforeYearLabel,
#afterYearLabel {
  display: none !important;
} */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.arrow i {
  color: rgb(201,40,45);
  font-size: 30px;
  pointer-events: none;
}

#prev {
  left: -60px;
}

#next {
  right: -60px;
}

#prev:hover {
  transform: translateY(-50%) translateX(-5px);
}

#next:hover {
  transform: translateY(-50%) translateX(5px);
}

.arrow i {
  display: none;
}

.arrow img {
  max-width: 35px;      /* scale down the image */
  max-height: 35px;
  display: block;
  pointer-events: none; /* so clicks go to the .arrow div */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover effects on arrow container move the image slightly */
#prev:hover {
  transform: translateY(-50%) translateX(-5px);
}

#prev:hover img {
  opacity: 0.8;
  transform: translateX(-4px);
}

#next:hover {
  transform: translateY(-50%) translateX(5px);
}

#next:hover img {
  opacity: 0.8;
  transform: translateX(4px);
}

/* Hide left and right arrows globally */
/* #prev,
#next,
.arrow {
  display: none !important;
  visibility: hidden !important;
} */

/* Responsive tweaks for arrow positions */
@media (max-width: 600px) {
  #prev, #next {
    left: -40px !important;
    right: -40px !important;
  }
}

/* For medium devices tablets */
@media (min-width: 428px) and (max-width: 432px)  {
  /* keep arrows hidden on these devices, no changes needed here */
}

@media (max-width: 375px) {
  /* arrows hidden on mobile, no changes needed */
}

#beforeImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

#afterImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.slider-handle {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: black;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.handle-logo {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  background-color: rgb(201,40,45);
  border-radius: 50%;
  border: 2px solid black;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.handle-logo i {
  color: white;
  font-size: 16px;
  margin: 0 2px;
  pointer-events: none;
}

.dot-container {
  margin-top: 20px;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: black;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom:40px;
}

.dot.active {
  background-color: #c9282d;
}

.year-label {
  position: absolute !important;
  top: 16px !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  padding: 6px 16px !important;
  background-color: rgba(201, 40, 45, 1) !important;
  color: white !important;
  border-radius: 6px !important;
  z-index: 10 !important;
  user-select: none !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.year-label.left {
  left: 16px !important;
}

.year-label.right {
  right: 16px !important;
}






@media (max-width: 600px) {
  .handle-logo {
    width: 40px;
    height: 40px;
  }

  #prev, #next {
    left: -40px !important;
    right: -40px !important;
  }

    #prev {
    display:none;
  }

  #next {
    display:none;
  }

}






/* Large/Medium Tablets (like iPad Air 10.9" and iPad Mini landscape modes) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {

  .container {
  max-width: 1040px;
}

}

/* Medium devices: tablets */
/* @media (min-width: 376px) and (max-width: 432px)  {

  .container {
    background-color: black;;
  }

.title {
  font-weight: 900;
  font-size: 4.2rem;
  letter-spacing: -1.5px;
  color: rgb(201,40,45);
  text-align: center;
  margin-top:50px;
  margin-bottom: 6px;
}

.subtitle {
  font-weight: 500;
  font-size: 1rem;
  font-style: italic;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

  .slider-frame {
    aspect-ratio: unset;
    height: 260px; 
    width: 100%;
  }

  .static-bg img,
  .slider-before-wrapper img {
    object-fit: cover;
  }

    #prev {
    display:none;
  }

  #next {
    display:none;
  }


  .arrow {
    display: none;
  }

  .year-label {
  position: absolute !important;
  top: 8px !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  padding: 4px 10px !important;
  background-color: rgba(201, 40, 45, 1) !important;
  color: white !important;
  border-radius: 6px !important;
  z-index: 10 !important;
  user-select: none !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.year-label.left {
  left: 8px !important;
}

.year-label.right {
  right: 8px !important;
}

} */

/* Small devices: mobile phones */
/* @media (max-width: 375px) {

  .title {
    font-size: 1.7rem;
    margin-top:20px;
  }

  .subtitle {
  font-weight: 300;
  font-size: 1rem;
  font-style: italic;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

  .slider-frame {
    aspect-ratio: unset;
    height: 560px;
    width: 100%;
  }

  .static-bg img,
  .slider-before-wrapper img {
    object-fit: cover;
  }


  .arrow {
    display: none;
  }


  #prev {
    display:none;
  }

  #next {
    display:none;
  }

} */


/* RESPONSIVE MEDIA QUERIES */


/* WORKING WORKING WORKING */
/* Small Devices - Phones (Portrait) */ /* Small phones (e.g. iPhone 13 Mini) */
@media only screen and (max-width: 479px) {

  .container {
    background-color: none;
  }

.title {
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -1.5px;
  color: white;
  text-align: center;
  margin-top:60px;
  margin-bottom: 6px;
  max-width:85%;

}

.subtitle {
  font-weight: 500;
  font-size: 1rem;
  font-style: italic;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

  .slider-frame {
    aspect-ratio: unset;
    height: 220px; 
    width: 100%;
  }

  .static-bg img,
  .slider-before-wrapper img {
    object-fit: cover;
  }

    #prev {
    display:none;
  }

  #next {
    display:none;
  }


  .arrow {
    display: none;
  }

  .year-label {
  position: absolute !important;
  top: 8px !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  padding: 4px 8px !important;
  background-color: rgba(201, 40, 45, 1) !important;
  color: white !important;
  border-radius: 6px !important;
  z-index: 10 !important;
  user-select: none !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.year-label.left {
  left: 8px !important;
}

.year-label.right {
  right: 8px !important;
}

}

/* Medium Devices - Phones (iPad Mini portrait mode) */   /* Larger phones (e.g. iPhone Pro Max) */
@media only screen and (min-width: 480px) and (max-width: 767px) {

}

/* WORKING WORKING WORKING */
/* Some Tablets and Narrow Windows (Ipad Air 10.9" portrait, Chrome Browser, etc.) */ 
@media only screen and (min-width: 768px) and (max-width: 991px) {

}

/* WORKING WORKING WORKING */
/* Medium Tablets (like iPad Air 10.9" and iPad Mini landscape modes) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {

}

/* Large Tablets / Small Laptops (iPad Pro 12.9″, Surface Go, etc.) */
/* @media only screen and (min-width: 1200px) and (max-width: 1439px) {

} */


/* Small devices: mobile phones */
/* @media (max-width: 599px) {

} */