/**
 * ========================================
 * // all
 * ========================================
 */

#front {
  margin-top: -72px !important;
  margin-bottom: 100px;
}

/**
 * ========================================
 * // Slider
 * ========================================
 */

.fpslider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.fpslides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  touch-action: pan-y;
  user-select: none;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/cursor_grab.png") 10 10, pointer;
}

.fpslides.grabbing {
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/cursor_grabbing.png") 10 10, pointer;
}

.fpslide {
  flex: 0 0 100%;
  background-size: cover;
  position: relative;
}

.fpslide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%; /* or 100% if you want full fade */
  background: linear-gradient(to top, rgba(10, 10, 10, 1), transparent);
  pointer-events: none;
  z-index: 1;
}

#slide1 {
  background-image: url("../images/slide/tfp_1.avif");
  background-position: center;
}

#slide2 {
  background-image: url("../images/slide/casanira_1.avif");
  background-position: bottom;
}

#slide3 {
  background-image: url("../images/slide/shouse_1.avif");
  background-position: bottom;
}

#slide4 {
  background-image: url("../images/slide/mlc_1.avif");
  background-position: bottom;
}

.fptext {
  position: absolute;
  top: 92vh;
  right: 50px;
  padding: 10px 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 50;
  text-align: right;
}

.fptitle {
  font-size: 24px;
  font-weight: 700;
  color: #e6e6e6;
}

/* .fpcapt {
    font-size: 18px;
    color: #e6e6e6;
} */

/* Show only current slide's caption */
.fpslide:nth-child(1).active .fptext,
.fpslide:nth-child(2).active .fptext,
.fpslide:nth-child(3).active .fptext,
.fpslide:nth-child(4).active .fptext {
  opacity: 1;
  transform: translateY(0);
}

.fppagination {
  position: absolute;
  top: 95vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #888;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer !important;
}

.dot.active {
  width: 70px;
  border-radius: 20px;
  background-color: #ef5323;
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .fptext {
    top: 93vh;
  }

  .fptitle {
    font-size: 18px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .fptext {
    top: 90vh;
    right: 0;
    left: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .fptitle {
    font-size: 18px;
  }

  #slide1 {
    background-image: url("../images/slide/tfp_5.avif");
    background-position: right;
    background-size: cover;
  }

  #slide2 {
    background-image: url("../images/slide/casanira_12.avif");
    background-position: center;
    background-size: cover;
  }

  #slide3 {
    background-image: url("../images/slide/shouse_4.avif");
    background-position: center;
    background-size: cover;
  }

  #slide4 {
    background-image: url("../images/slide/mlc_3.avif");
    background-position: center;
    background-size: cover;
  }
}

@media screen and (max-width: 767px) {
  .fptext {
    top: 88vh;
    right: 0;
    left: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .fptitle {
    font-size: 14px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 45px;
  }

  #slide1 {
    background-image: url("../images/slide/tfp_5.avif");
    background-position: right;
    background-size: cover;
  }

  #slide2 {
    background-image: url("../images/slide/casanira_12.avif");
    background-position: center;
    background-size: cover;
  }

  #slide3 {
    background-image: url("../images/slide/shouse_4.avif");
    background-position: center;
    background-size: cover;
  }

  #slide4 {
    background-image: url("../images/slide/mlc_3.avif");
    background-position: center;
    background-size: cover;
  }
}

/**
 * ========================================
 * // Intro
 * ========================================
 */

.fpintro {
  margin-top: 0;
  margin-bottom: 150px;
}

.fpintroup {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  position: relative;
  margin-bottom: 50px;
}

.fpintrodown {
  width: fit-content;
}

.fpintrotext {
  color: #e6e6e6;
  font-size: 22px;
  max-width: 60%;
  width: 100%;
  margin: 0;
  line-height: 1.2em;
  left: 0px;
  z-index: 5;
}

.fpintroimg-before,
.fpintroimg {
  max-width: 200px;
  width: 100%;
  height: auto;
  transition: opacity 1s ease;
  display: block;
  position: absolute;
  right: 100px;
  top: 0px;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer !important;
}

.fpintroimg-before {
  z-index: 0;
}

.fpintroimg {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.fpintroimg.active {
  filter: drop-shadow(0 0 0.5rem rgb(245, 5, 5));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/orange.cur") 8 8, pointer !important;
}

.fpread {
  display: flex;
  margin-top: 20px;
  color: #e6e6e6;
  font-weight: 900;
  text-decoration: none;
  padding-right: 8px;
  font-size: 14px;
}

.fpread .discover-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.fpread .discover-arrow img {
  width: 30px;
  height: auto;
  padding-top: 2px;
}

.fpread:hover .discover-arrow {
  transform: translateX(10px);
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .fpintrotext {
    font-size: 18px;
    max-width: 65%;
  }

  .fpintroimg-before,
  .fpintroimg {
    max-width: 180px;
    right: 0px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #wrap-front {
    padding-top: 100px !important;
  }

  .fpintro {
    margin-bottom: 80px;
  }

  .fpintrotext {
    font-size: 16px;
    max-width: 65%;
  }

  .fpintroimg-before,
  .fpintroimg {
    max-width: 150px;
    right: 0px;
  }

  .fpintroimg {
    z-index: 500 !important;
  }

  .fpintroimg.active {
    touch-action: none; /* prevent scroll while dragging */
  }

  .fpread {
    font-size: 12px;
  }
}

@media screen and (max-width: 767px) {
  #wrap-front {
    padding-top: 60px !important;
  }

  .fpintro {
    margin-bottom: 80px;
  }

  .fpintrotext {
    font-size: 14px;
    max-width: 65%;
    line-height: 1.5em;
  }

  .fpintroup {
    margin-bottom: 30px;
  }

  .fpintroimg-before,
  .fpintroimg {
    max-width: 100px;
    right: 0px;
  }

  .fpintroimg {
    z-index: 500 !important;
  }

  .fpintroimg.active {
    touch-action: none; /* prevent scroll while dragging */
  }

  .fpread {
    font-size: 12px;
  }
}

/**
 * ========================================
 * // Latest Project
 * ========================================
 */

.fpproject {
  padding: 0px;
  overflow-x: hidden;
}

.fpproject-text {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto 50px auto;
}

.latestpro-ttl {
  color: #ef5323;
  font-size: 56px;
  font-weight: 900;
  margin: 0 0 10px 0;
}

.latestpro-text {
  color: #e6e6e6;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.fpproarrow {
  text-align: right;
}

.pro-arrow {
  padding-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.pro-arrow button {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer;
  position: relative;
  padding: 0;
}

/* Triangle arrows */
.pro-arrow button::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
}

#pro-prev::before {
  border-width: 14px 22px 14px 0px;
  border-color: transparent #666 transparent transparent;
}

#pro-next::before {
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #666;
}

.pro-arrow button:hover {
  color: #ef5323;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer;
}

.fpdiscover {
  display: flex;
  margin-top: 20px;
  color: #e6e6e6;
  font-weight: 900;
  text-decoration: none;
  padding-right: 8px;
  font-size: 14px;
}

.fpdiscover .discover-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.fpdiscover .discover-arrow img {
  width: 30px;
  height: auto;
  padding-top: 2px;
}

.fpdiscover:hover .discover-arrow {
  transform: translateX(10px);
}

/* SLIDER MASK */
.fppro-mask {
  display: flex;
  justify-content: center;
}

.fppro-slider-wrapper {
  width: 1200px;
  margin: 0;
  overflow: visible;
  position: relative;
}

/* SLIDER TRACK */
.fppro-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer;
  margin-left: calc((100vw - 1200px) / 2 * -1);
  padding-left: calc((100vw - 1200px) / 2);
  margin-right: calc((100vw - 1200px) / 2 * -1);
  padding-right: calc((100vw - 1200px) / 2);
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fppro-slider::-webkit-scrollbar {
  display: none; /* Chrome */
}

.fppro-slider.dragging {
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer;
  user-select: none;
}

/* CARD STYLE */
.fppro-card {
  flex: 0 0 590px;
  height: auto;
  border-radius: 10px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.fppro-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.fppro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
}

/* === DISABLED BUTTON STATE (for prev/next buttons) === */
#pro-prev:disabled,
#pro-next:disabled {
  opacity: 0.3;
  cursor: default;
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .fpproject-text {
    max-width: 70vw;
  }

  .latestpro-ttl {
    font-size: 42px;
  }

  .latestpro-text {
    font-size: 16px;
  }

  .fppro-slider-wrapper {
    width: 70vw;
  }

  .fppro-slider {
    margin-left: calc((100vw - 70vw) / 2 * -1);
    padding-left: calc((100vw - 70vw) / 2);
    margin-right: calc((100vw - 70vw) / 2 * -1);
    padding-right: calc((100vw - 70vw) / 2);
  }

  .fppro-card {
    flex: 0 0 auto;
    width: calc((70vw - 20px) / 2);
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .fpproject-text {
    max-width: 70vw;
  }

  .latestpro-ttl {
    font-size: 32px;
  }

  .latestpro-text {
    font-size: 14px;
  }

  .fpdiscover {
    font-size: 12px;
  }

  .fppro-slider-wrapper {
    width: 70vw;
  }

  .fppro-slider {
    margin-left: calc((100vw - 70vw) / 2 * -1);
    padding-left: calc((100vw - 70vw) / 2);
    margin-right: calc((100vw - 70vw) / 2 * -1);
    padding-right: calc((100vw - 70vw) / 2);
  }

  .fppro-card {
    flex: 0 0 auto;
    width: calc((70vw - 20px) / 2);
  }
}

@media screen and (max-width: 767px) {
  .fpproject-text {
    max-width: 85vw;
    flex-wrap: wrap;
  }

  .latestpro-ttl {
    font-size: 24px;
  }

  .latestpro-text {
    font-size: 14px;
  }

  .fpdiscover {
    font-size: 12px;
    padding-top: 10px;
  }

  .fpproarrow {
    text-align: right;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: calc(85vw - 240px);
  }

  .fppro-slider-wrapper {
    width: 85vw;
  }

  .fppro-slider {
    margin-left: calc((100vw - 85vw) / 2 * -1);
    padding-left: calc((100vw - 85vw) / 2);
    margin-right: calc((100vw - 85vw) / 2 * -1);
    padding-right: calc((100vw - 85vw) / 2);
    gap: 10px;
  }

  .fppro-card {
    flex: 0 0 auto;
    width: 85vw;
  }
}
