.top_panel.top_panel_custom {
  background-color: transparent;
  backdrop-filter: blur(20px);
}

/* =========================
   OPEN BUTTON
========================== */
.menu-open-btn {
  position: relative;
  /* top: 30px; */
  /* left: 30px; */
  z-index: 99999;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 26px;
  transition: 0.4s ease;
  padding: 0;
}

.menu-open-btn:hover {
  transform: rotate(90deg);
}

.menu-open-btn i {
  display: inline-block;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.menu-open-btn.active i {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}

.menu-open-btn::after {
  font-family: "bootstrap-icons";
  content: "\F659";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-90deg);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  font-size: 26px;
}

.menu-open-btn.active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.menu-open-btn.active {
  opacity: 0;
  visibility: hidden;
}

/* =========================
   FULLSCREEN MENU
========================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  background: #f6f5f2;
  z-index: 9998;
  transform: translateY(calc(-100% - 300px));
  transition: 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  min-height: 100vh;
}

.fullscreen-menu.active {
  transform: translateY(0);
  z-index: 9999;
}

/* GRID BACKGROUND */
.fullscreen-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* =========================
   CLOSE BTN
========================== */
.close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  width: 40px;
  height: 40px;
  border: none;
  background: #000;
  font-size: 20px;
  z-index: 50;
  transition: 0.4s ease;
  padding: 0;
  color: #fff;
  border-radius: 50%;
}

.close-btn:hover {
  transform: rotate(90deg);
}

/* =========================
   MAIN CONTENT
========================== */
.menu-wrapper {
  position: relative;
  z-index: 2;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================
   TOP AREA
========================== */
.menu-top {
  flex: 1;
  display: flex;
  align-items: center;
}

/* =========================
   LEFT MENU
========================== */

.menu-left {
  padding-right: 0px;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  min-height: 550px;
  position: relative;
  /* align-items: center; */
  display: flex;
  flex-direction: column;
  padding-left: 0;
  justify-content: center;
}

.menu-left .menu-item {
  margin-bottom: 28px;
}

.menu-item {
  display: block;
  /* position: relative; */
  font-size: 40px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  margin-bottom: 0px;
  transition: 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

li.menu-item:hover,
li.menu-item.active {
  margin-left: 15px;
}

.menu-left>li.menu-item>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 4px;
  background: #111;
  transition: 0.4s ease;
}

.menu-left>li.menu-item:hover>a::after,
.menu-left>li.menu-item.active>a::after {
  width: 100%;
}

/* =========================
   CENTER IMAGE
========================== */
.menu-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-image {
  width: 100%;
  height: 550px;
  overflow: hidden;
  position: relative;
}

.menu-image img {
  width: 100%;
  border-radius: 15px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 1s ease;
}

.menu-left ul.sub-menu {
  padding: 15px 15px 15px 35px;
  position: absolute;
  right: 0;
  transform: translateX(100%);
  top: 60px;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s ease all;
}

.menu-left .menu-item:hover ul.sub-menu,
.menu-left .menu-item.active ul.sub-menu {
  opacity: 1;
  visibility: visible;
  top: 20px;
}

ul.menu-left .menu-item {
  position: static;
}

.menu-left>li.menu-item>a {
  position: relative;
  z-index: 1;
}

.menu-left>li.menu-item>a:hover {
  color: #000;
}

.menu-left ul.sub-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: calc(100% + 50px);
}

.menu-left ul.sub-menu li.menu-item {
  display: block;
  font-size: 22px;
  margin-bottom: 20px;
  transition: 0.5s ease all;
  font-weight: 500;
}

.menu-left ul.sub-menu li.menu-item a {
  color: #7b746d;
}

.menu-left ul.sub-menu li.menu-item a:hover {
  color: #000;
}

/* =========================
   FOOTER
========================== */
.menu-footer {
  padding-top: 50px;
}

.menu-footer .container-fluid {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.menu-footer .footer-widget {
  min-width: 25%;
}

.footer-widget h5 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.footer-widget li,
.footer-widget p {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 0;
  list-style-type: none;
}

.footer-widget ul {
  padding: 0;
}

/* SOCIAL */
.social-icons {
  display: flex;
  justify-content: end;
  gap: 18px;
}

.social-icons a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 18px;
  transition: 0.4s ease;
}

.social-icons a:hover {
  background: #111;
  color: #fff;
  transform: translateY(-5px);
}

/* =========================
   RESPONSIVE
========================== */
@media (max-width: 1400px) {
  .menu-item {
    font-size: 44px;
  }
}

@media (max-width: 991px) {
  .fullscreen-menu {
    overflow-y: auto;
  }

  .menu-wrapper {
    padding: 110px 25px 40px;
    height: auto;
  }

  .menu-top {
    display: block;
  }

  .menu-left {
    border-right: 0;
    padding-right: 0;
  }

  .submenu-column {
    padding-left: 0;
    margin: 30px 0;
    min-height: auto;
  }

  .submenu-wrapper {
    position: relative;
    left: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu-wrapper.active {
    display: block;
  }

  .menu-image-wrap {
    margin: 40px 0;
  }
}

@media (max-width: 767px) {
  .menu-item {
    font-size: 34px;
  }

  .submenu-wrapper a {
    font-size: 18px;
  }

  .menu-image {
    width: 240px;
    height: 240px;
  }

  .footer-box h5 {
    font-size: 24px;
  }

  .footer-box p {
    font-size: 16px;
  }

  .trx-addons-mobile-menu-outer-container.inited_blur.trx-addons-vertical-toggle-open {
    height: 100vh;
  }
}

/*--------------- # Preloader Style # ---------------*/

#pre_stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  z-index: 10;
}

/* ===== word line ===== */
.pre_line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  white-space: nowrap;
}

.pre_word {
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 9rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: inline-flex;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}

.pre_char {
  display: inline-block;
  overflow: hidden;
  /* mask for each individual letter's slide-up entrance */
}

.pre_char span {
  display: inline-block;
  transform: translateY(115%);
}

/* the two halves that will separate */
.pre_group {
  display: flex;
  gap: 0.55em;
}

/* gap that opens between the groups to host the image */
.pre_gap {
  width: 0px;
  flex-shrink: 0;
  transition: none;
  /* driven by WAAPI, not CSS transition */
}

/* ===== image slideshow that appears in the gap ===== */
.image-slot {
  position: relative;
  width: min(30vw, 340px);
  height: min(38vh, 440px);
  flex-shrink: 0;
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  /* closed: horizontal reveal */
}

.image-slot div {
  display: block;
  height: 100%;
}

.image-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.image-slot img.active {
  opacity: 1;
}

#site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: visible;
  transition: visibility 0.8s ease;
  overflow: hidden;
}

/* --- THE CLOSING EFFECT --- */
#site-preloader.fade-out {
  visibility: hidden;
  pointer-events: none;
}

/* Slide open the left and right background panels */
/* #site-preloader.fade-out .curtain.c-left {
  transform: translateX(-100%);
}

#site-preloader.fade-out .curtain.c-right {
  transform: translateX(100%);
} */

/* ===== site_name section, revealed after preloader ===== */
#site_name {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  z-index: 1;
  display: none;
}

#site_name h2 {
  font-size: clamp(3.4rem, 10vw, 9rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
  overflow: hidden;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

#site_name h2 span {
  display: inline-block;
  transform: translateY(100%);
}

/* curtain panels that wipe away to reveal the hero, instead of a plain fade */
.curtain {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #000000;
  z-index: 20;
}

.curtain.c-left {
  left: 0;
  transform: translateX(-100%);
}

.curtain.c-right {
  right: 0;
  transform: translateX(100%);
}

/*--------------- # Preloader Style Ends # ---------------*/

/*--------------- # Related Portfolio # ---------------*/
.related-portfolios-grid {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

article.related-portfolio {
  width: 33.33%;
  padding: 15px;
}

.image_wrap {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.image_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h3.rel_title {
  font-size: 15px;
  text-transform: uppercase;
  color: #1D1913;
  margin-bottom: 0;
}

h3.rel_title a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

h3.rel_title a:hover,
span.view_link a:hover {
  color: var(--e-global-color-theme_color_hover);
  fill: var(--e-global-color-theme_color_hover);
}

span.view_link a {
  font-size: 15px;
  fill: var(--e-global-color-secondary);
  color: var(--e-global-color-secondary);
}

span.view_arrow svg {
  width: 1em;
  height: 1em;
}

.portfolio_info {
  display: flex;
  align-items: center;
  flex-flow: row wrap;
  justify-content: space-between;
  padding: 10px;
}

.image_wrap .img_overlay {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s ease all;
  background: #333333bd;
  opacity: 0;
  visibility: hidden;
}

.related-portfolio:hover .img_overlay {
  opacity: 1;
  visibility: visible;
}

.img_overlay img {
  width: 0;
  height: 0;
  transition: all 0.5s ease;
}

.related-portfolio:hover .img_overlay img {
  width: 200px;
  height: auto;
}

.img_overlay .over_link {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}