@font-face {
  font-family: "Encorpada";
  src: url("../fonts/encorpada/EncorpadaClassic-ExtraLight.ttf")
    format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Hover Carousel Plugin Styles - Clean Full Width Design */
.hover-carousel-container {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 1920px) {
  .hover-carousel-container {
    height: 75vh !important;
  }
}

@media (min-width: 2200px) {
  .hover-carousel-container {
    height: 80vh !important;
  }
}

.hover-carousel-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.carousel-image {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: all .2s ease-in-out;
}

/* Exact width distribution as requested */
.left-image {
  width: 15%;
}

.center-image {
  width: 70%;
}

.right-image {
  width: 15%;
}

.left-image,
.center-image,
.right-image {
  transition: width 0.4s ease, transform 0.4s ease;
}

/* Center image stays stable */
.center-image {
  z-index: 5;
}

/* Active state during transition */
.carousel-image.transitioning {
  z-index: 15;
  /* transform: scale(1.01); */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hover-carousel-wrapper {
    height: 300px;
  }

  .image-title-overlay h2 {
    font-size: 2rem !important;
    color: #fff;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hover-carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
  }

  .hover-carousel-wrapper {
    height: 30vh;
    justify-content: center;
    align-items: center;
    background: transparent;
  }

  .left-image,
  .right-image {
    width: 20%;
    height: 30vh;
  }

  .center-image {
    width: 60%;
    height: 30vh;
  }

  .carousel-image img {
    height: 30vh;
    min-height: 30vh;
    min-width: auto;
  }

  .image-title-overlay h2 {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    padding: 6px 3px;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hover-carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
  }

  .hover-carousel-wrapper {
    height: 30vh;
    justify-content: center;
    align-items: center;
    background: transparent;
  }

  .left-image,
  .right-image {
    width: 20%;
    height: 30vh;
  }

  .center-image {
    width: 60%;
    height: 30vh;
  }

  .carousel-image img {
    height: 30vh;
    min-height: 30vh;
    min-width: auto;
  }

  .image-title-overlay h2 {
    font-size: 0.5rem;
    letter-spacing: 0.01em;
    padding: 4px 2px;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .hover-carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
  }

  .hover-carousel-wrapper {
    height: 30vh;
    justify-content: center;
    align-items: center;
    background: transparent;
  }

  .left-image,
  .right-image {
    width: 20%;
    height: 30vh;
  }

  .center-image {
    width: 60%;
    height: 30vh;
  }

  .carousel-image img {
    height: 30vh;
    min-height: 30vh;
    min-width: auto;
  }

  .image-title-overlay h2 {
    font-size: 0.4rem;
    letter-spacing: 0.01em;
    padding: 3px 1px;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 0.6rem;
  }
}

/* Ensure full width container */
.hover-carousel-container * {
  box-sizing: border-box;
}

/* Remove any default margins/paddings that might interfere */
.hover-carousel-container,
.hover-carousel-wrapper,
.carousel-image {
  margin: 0 !important;
  padding: 0 !important;
}

.carousel-image img {
  min-height: 100%;
  min-width: 100%;
}

/* Touch and swipe enhancements */
.hover-carousel-wrapper {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hover-carousel-wrapper.animating {
  pointer-events: none;
  touch-action: none;
}

/* Improve touch targets */
.carousel-image {
  -webkit-tap-highlight-color: transparent;
}

/* Add title overlay styles */
.image-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  z-index: 10;
  pointer-events: none;
}

.image-title-overlay h2 {
  font-family: "Times New Roman" !important;
  font-weight: 300;
  font-size: 6rem !important;
  color: #ffffff;
  transform: scaleY(1) !important;
  text-transform: uppercase;
  letter-spacing: 10px !important;
  line-height: 1.2;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
}

/* Hover effects for all images */
.carousel-image:hover .image-title-overlay {
  opacity: 1;
}

.carousel-image:hover .image-title-overlay h2 {
  animation: title-appear 1s forwards;
  animation-delay: .3s;
}

@keyframes title-appear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Special hover effect for center image - grows larger */
.center-image:hover {
  transform: scale(1.1);
  z-index: 20;
}


/* Dark overlay for left and right images */
.left-image::after,
.right-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.4); */
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.left-image:hover::after,
.right-image:hover::after {
  opacity: 1;
}

/* Responsive title sizes */
@media (max-width: 1024px) {
  .image-title-overlay h2 {
    font-size: 2rem;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 2.5rem;
  }

  .left-image:hover .image-title-overlay h2,
  .right-image:hover .image-title-overlay h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .image-title-overlay h2 {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 2rem;
  }

  .left-image:hover .image-title-overlay h2,
  .right-image:hover .image-title-overlay h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .image-title-overlay h2 {
    font-size: 1.2rem;
  }

  .center-image:hover .image-title-overlay h2 {
    font-size: 1.5rem;
  }

  .left-image:hover .image-title-overlay h2,
  .right-image:hover .image-title-overlay h2 {
    font-size: 1rem;
  }
}