@import url("gallery-scale.css");

/* Inner pages (not home): visible before Chewing the Sun JS finishes */
html#html:not([data-pagetemplate__com3_template*="start"]) {
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Live Server: never leave inner pages invisible if theme JS fails */
html#html[data-pagetemplate__com3_template*="portfolio"],
html#html[data-pagetemplate__com3_template*="series"],
html#html[data-pagetemplate__com3_template*="page"] {
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._pagefader {
  opacity: 0 !important;
  pointer-events: none !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._fx__reveal,
html#html:not([data-pagetemplate__com3_template*="start"]) ._fx__imagehover {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__background {
  display: none !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__background__logo {
  width: min(92vw, 1200px);
  opacity: 0.07;
}

html#html:not([data-pagetemplate__com3_template*="start"]) {
  overflow-x: hidden;
  --ot-nav-stack-height: 76px;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._body,
html#html:not([data-pagetemplate__com3_template*="start"]) ._content {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Legacy theme grids stay hidden; use ot-portfolio / ot-series-gallery */
html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__pageitemportfolio,
html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__pageitemseries {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html#html[data-col_background="white"]:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__background__logo
  path {
  fill: #bdbdbd !important;
}

html#html[data-col_background="black"]:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__background__logo
  path {
  fill: #2a2a2a !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__layout {
  display: none !important;
}

/* Top bar: logo kiri, menu horizontal kanan */
html#html:not([data-pagetemplate__com3_template*="start"]) ._menu._templatepart__menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: var(--ot-nav-stack-height) !important;
  max-height: none !important;
  z-index: 40 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 40px) !important;
  margin: 0 !important;
  box-sizing: border-box;
  pointer-events: none;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

html#html[data-col_background="black"]:not([data-pagetemplate__com3_template*="start"])
  ._menu._templatepart__menu {
  background: #0a0a0a !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu > a {
  order: 1;
  flex-shrink: 0;
  pointer-events: auto;
  text-decoration: none;
  display: flex;
  align-items: center;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu__navi {
  order: 2;
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px clamp(12px, 2vw, 22px);
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  width: auto;
  max-width: none;
  pointer-events: auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  -webkit-font-smoothing: antialiased;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu__navi > a {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu__navi__item {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  color: #000 !important;
  cursor: pointer;
}

html#html[data-col_background="black"]:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__navi__item {
  color: #fff !important;
}

html#html:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__navi__item[data-b_isactive="true"] {
  color: #9b51e0 !important;
}

html#html:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__navi > a:hover
  ._templatepart__menu__navi__item:not([data-b_isactive="true"]) {
  color: #666 !important;
}

html#html[data-col_background="black"]:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__navi > a:hover
  ._templatepart__menu__navi__item:not([data-b_isactive="true"]) {
  color: #ccc !important;
}

html#html:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__navi__item[data-b_distance="true"] {
  margin-top: 0 !important;
}

html#html:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__navi__item br {
  display: none;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu__logo {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: clamp(100px, 14vw, 140px) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto;
  flex-shrink: 0;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu__logo svg {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 140px;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menu__logo svg path {
  fill: #000 !important;
}

html#html[data-col_background="black"]:not([data-pagetemplate__com3_template*="start"])
  ._templatepart__menu__logo svg path {
  fill: #fff !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._menumobile._templatepart__menumobile {
  display: none !important;
  pointer-events: none;
}

@media (max-width: 780px) {
  html#html:not([data-pagetemplate__com3_template*="start"]) ._menu._templatepart__menu {
    display: none !important;
  }

  html#html:not([data-pagetemplate__com3_template*="start"]) ._menumobile._templatepart__menumobile {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    z-index: 45;
    padding: 14px 20px;
    box-sizing: border-box;
    pointer-events: auto;
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  }

  html#html[data-col_background="black"]:not([data-pagetemplate__com3_template*="start"])
    ._menumobile._templatepart__menumobile {
    background: #000;
  }

  html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menumobile__open,
  html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menumobile__close {
    pointer-events: auto;
    cursor: pointer;
  }

  html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menumobile__open svg,
  html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menumobile__close svg {
    width: 36px;
    height: auto;
  }

  html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__menumobile__logo {
    position: static !important;
    width: clamp(88px, 28vw, 140px) !important;
    height: auto !important;
  }
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._content {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding-top: var(--ot-nav-stack-height);
}

@media (max-width: 780px) {
  html#html:not([data-pagetemplate__com3_template*="start"]) {
    --ot-nav-stack-height: 56px;
  }
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__page {
  position: relative;
  z-index: 2;
  padding-top: 0;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* Theme uses inline-flex row on ._page — squashes ot-portfolio / ot-series-gallery to 0 width */
html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__page__content,
html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__page__content__column {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) .ot-page-intro,
html#html:not([data-pagetemplate__com3_template*="start"]) .ot-series-gallery {
  display: block !important;
  position: relative;
  z-index: 5;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) .ot-portfolio {
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  z-index: 5;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html#html:not([data-pagetemplate__com3_template*="start"]) ._dcdomratiosvg {
  display: none !important;
}

/* About / page template: constrain inline media blocks */
html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__pageitemmedia__img,
html#html:not([data-pagetemplate__com3_template*="start"]) ._templatepart__pageitemseries__headerimage__item__image__imgmain,
html#html:not([data-pagetemplate__com3_template*="start"]) ._media__item__container__item__image__imgmain {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  max-height: 85vh !important;
  object-fit: contain !important;
}
