/** @format */

/*  */
/*  */
.thumnai_image {
  width: 100vw;
  margin-top: 1vh;
  height: auto;
}
.thumnai_image_upper_part {
  display: flex;
  gap: 0.6vw;
  width: 100%;
  height: 50vh;
  margin-top: 11vh;
}
.thumnai_image_upper_part .thumnai_image_left {
  width: 24%;
  height: auto;
  background-color: #c59c6b;
}
.thumnai_image_upper_part .thumnai_image_left img {
  object-fit: cover;
  object-position: top;
  height: 100%;
  width: 100%;
  display: block;
}
.thumnai_image_upper_part .thumnai_image_left h3 {
  display: none; /* per your main file */
}
.thumnai_image_upper_part .thumnai_image_right {
  color: #fff;
  width: 80%;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5vw;
  height: auto;
}
.thumnai_image_upper_part .thumnai_image_right.dark {
  background-color: var(--pf_header);
}
.thumnai_image_upper_part .thumnai_image_right h2 {
  font-size: 1.5vw;
  font-family: sans-serif !important;
  font-weight: bolder;
}
.portfoli_gallery {
  height: 2vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.portfoli_gallery.dark {
  margin-top: 1vh;
  background-color: var(--pf_header);
}

/* Mobile adjustments (same behavior as your main CSS) */
@media (max-width: 768px) {
  nav ul {
    padding: 0 4.5vw;
  }
  .thumnai_image_upper_part {
    padding: 4vh 4vh 1vh 4vh;
    height: auto;
    margin-top: 6vh;
  }
  .thumnai_image_upper_part .thumnai_image_left {
    max-height: 50vh;
    width: 100%;
    position: relative;
  }
  .thumnai_image_upper_part .thumnai_image_right {
    display: none;
  }
  .portfoli_gallery {
    width: 100%;
    height: 6px;
    margin-bottom: 1vh;
  }
}

/* =========================
   Masonry grid
   ========================= */
.masonry-grid {
  margin-top: 8vh;
  width: 100vw !important;
  padding: 5.5vh 2.3vw 2vh 1vw;
  column-count: 4;
  column-gap: 10px;
}
.masonry-grid img {
  width: 100%;
  margin-bottom: 12px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.masonry-grid img:hover {
  transform: scale(1.01);
}
@media (max-width: 1200px) {
  .masonry-grid {
    margin-top: 4vh;
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .masonry-grid {
    padding: 6vh 2vw 1vh 2vw;
    column-count: 2 !important;
    column-gap: 6px !important;
    margin-bottom: 2dvh;
  }
  .masonry-grid img {
    margin-bottom: 6px !important;
  }
}

/* =========================
   Lightbox
   ========================= */
.lightbox {
  /* display: none !important; */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fbfbfb;
  background: rgba(0, 0, 0, 1);
  /* background: #f8f1f4; */
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}
.lightbox.visible {
  visibility: visible;
  opacity: 1;
}
.lightbox .lightbox-img {
  max-height: 90%;
  transition: all 0.5s ease-in-out;
  transform-origin: center center;
  opacity: 1;
  user-select: none;
  -webkit-user-drag: none;
}

/* Controls (hidden by default; shown only when outside the photo) */
.lightbox .close {
  position: absolute;
  top: 16px;
  left: 25px;
  font-size: 1.6vw;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.4s ease-in-out;
}
.lightbox .close:hover {
  /* color: #efd7e5; */
}
.lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5vw;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
}
.lightbox .arrow.left {
  left: 10px;
}
.lightbox .arrow.right {
  right: 20px;
}
/* Show logic driven by JS (class on .lightbox) */
.lightbox.show-left .arrow.left,
.lightbox.show-right .arrow.right {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .lightbox .lightbox-img {
    /* transform: translateY(-2vh) !important; */
    width: 93vw !important;
  }
  .lightbox .close {
    top: 2.5vh;
    left: 3.8vw;
    font-size: 24px;
    /* color: #000; */
  }
  .lightbox .arrow {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    font-size: 32px;
    color: #fff;

    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .lightbox .arrow:focus,
  .lightbox .arrow:active {
    outline: none;
  }

  .lightbox.controls-visible .arrow {
    opacity: 1;
    visibility: visible;
  }

  .lightbox .arrow.left {
    left: 1vw;
  }

  .lightbox .arrow.right {
    right: 1vw;
  }
  .lightbox .arrow.right img {
    height: 14px;
  }
}

/* ================= FEATURE SECTION ================= */
/* ================= FEATURE SECTION ================= */
/* ================= FEATURE SECTION ================= */

.feature-section {
  /* background-color: #f8f1f4; */
  /* padding: 6vw 5vw; */
}

/* Featured label */
.feature-top {
  width: 100vw;
  padding: 2dvh 0;
  font-family: "GucciSansPro-4", sans-serif;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 10dvh 0 1dvh 0;
  background: rgba(0, 0, 0, 0.15);

  background: #efd7e5;
}

/* Layout */
.feature-wrap {
  max-width: 100vw;
  margin: 0 0 5dvh 0;
  padding: 8dvh 10vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10vw;
  background: #f8f1f4;
}
.feature-section hr {
  display: none;
}

.feature-wrap.right_img {
  background: #fff;
  /* background: #c59c6b; */
}

.feature-wrap.right_img .feature-image {
  order: 2;
}

/* Image */
.feature-image {
  /* width: 0%; */
  max-height: auto;
  overflow: hidden;
}

.feature-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.feature-content {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature-content h2 {
  font-family: "GucciSansPro-4", sans-serif;
  font-size: 35px;
  font-weight: 300;
  letter-spacing: -0.96px;
  margin-bottom: 5dvh;
}

.feature-content p {
  width: 26vw;
  font-family: "GucciSansPro-1", sans-serif;
  font-size: 18px;
  font-weight: 100;
  letter-spacing: -0.64px;
  line-height: 24px;
  margin-bottom: 7.5dvh;
}

/* LINK — EXACT VIDEO STYLE */
.feature-link {
  padding: 10px 18px;
  background-color: #000;
  position: relative;
  font-size: 14px;
  letter-spacing: -0.36px;
  color: #fff;
  text-decoration: none;
  /* padding-bottom: 0.5px; */
  display: inline-block;
  overflow: hidden;
}

/* base underline (visible initially) */
.feature-link::before,
.feature-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.8px;
  background: #000;
}

/* line that exits */
.feature-link::before {
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* line that enters */
.feature-link::after {
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.4s;
}

.feature-link:hover::before {
  transform: translateX(100%);
}

.feature-link:hover::after {
  transform: translateX(0);
}

/* Mobile */
@media (max-width: 900px) {
  .feature-top {
    padding: 1.5dvh 0;
    font-size: 14px;
    letter-spacing: 0.14px;
    margin: 62px 0 10px 0;
    /* border: 1px solid; */
  }

  .feature-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 5dvh 4.5vw;
    margin: 0 0 2dvh 0;
  }

  .feature-image {
    padding: 0 0;
  }

  .feature-section hr {
    /* display: block; */
    transform: translateY(-3dvh);
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .feature-wrap.right_img .feature-image {
    order: 0;
  }

  .feature-content {
    max-width: 100%;
    text-align: center;
  }

  .feature-content h2 {
    font-size: 25px;
    letter-spacing: -0.62px;
    margin-bottom: 22px;
  }

  .feature-content p {
    padding: 0 1.9px;
    /* background-color: #c59c6b; */
    width: 100%;
    font-size: 17px;
    letter-spacing: -0.64px;
    line-height: 24px;
    /* margin-bottom: 6vh; */
    margin-bottom: 38px;
  }

  .feature-link {
    font-size: 13px;
    letter-spacing: -0.24px;
  }
}
