*, *::before, *::after { box-sizing: border-box; }

html[data-theme-slug="projectoni"] { scroll-behavior: smooth; }

html[data-theme-slug="projectoni"],
body.po-app {
  margin: 0;
  background: #FBF8F3;
  color: #14100E;
  font-family: var(--po-sans), var(--po-sans-ge), "Jost", "Noto Sans Georgian", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.po-app a { color: #A81A20; text-decoration: none; }
body.po-app a:hover { color: #7E1017; }
body.po-app img { display: block; }
body.po-app button { cursor: pointer; }
body.po-app input,
body.po-app textarea,
body.po-app select,
body.po-app button { font: inherit; }
body.po-app ::selection { background: #A81A20; color: #fff; }
body.po-app :focus-visible { outline: 2px solid #A81A20; outline-offset: 3px; }

body.po-app :is(h1, h2, h3) {
  font-family: var(--po-serif), var(--po-serif-ge), "Cormorant Garamond", "Noto Serif Georgian", Georgia, serif;
  text-transform: none;
  font-weight: 300;
  letter-spacing: -0.01em;
}

@keyframes bwDrift { from { background-position: 0 0; } to { background-position: 198px 0; } }

body.po-app [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
body.po-app [data-reveal].is-in { opacity: 1; transform: none; }

body.po-app .po-pillar { transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, border-color .6s ease; }
body.po-app .po-pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px -28px rgba(20,16,14,0.38);
  border-color: rgba(168,26,32,0.32);
}
body.po-app .po-bottle { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
body.po-app .po-bottle:hover { transform: translateY(-6px); }

body.po-app.po-nav-open {
  overflow: hidden;
}

body.po-app .po-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 16, 14, 0.12);
}

body.po-app .po-header-bar--desktop {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.po-app .po-header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

body.po-app .po-header-locales {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(20, 16, 14, 0.12);
  padding-left: 18px;
}

body.po-app .po-header-bar--mobile,
body.po-app .po-header-drawer,
body.po-app .po-header-scrim {
  display: none;
}

body.po-app .po-header-burger {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #14100E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.po-app .po-header-burger span,
body.po-app .po-header-burger span::before,
body.po-app .po-header-burger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.po-app .po-header-burger span {
  position: relative;
}
body.po-app .po-header-burger span::before,
body.po-app .po-header-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
body.po-app .po-header-burger span::before { top: -6px; }
body.po-app .po-header-burger span::after { top: 6px; }
body.po-app .po-header-burger span.is-open { background: transparent; }
body.po-app .po-header-burger span.is-open::before { top: 0; transform: rotate(45deg); }
body.po-app .po-header-burger span.is-open::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  body.po-app .po-header-bar--desktop {
    display: none;
  }
  body.po-app .po-header-bar--mobile {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 58px;
    position: relative;
    z-index: 46;
  }
  body.po-app .po-header-mobile-side {
    display: flex;
    align-items: center;
    min-width: 0;
  }
  body.po-app .po-header-mobile-side--left { justify-content: flex-start; }
  body.po-app .po-header-mobile-side--right { justify-content: flex-end; }
  body.po-app .po-header-bar--mobile .po-header-logo {
    justify-self: center;
  }
  body.po-app .po-header-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(20, 16, 14, 0.38);
  }
  body.po-app .po-header-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 45;
    width: min(82vw, 320px);
    flex-direction: column;
    gap: 6px;
    padding: 72px 22px 28px;
    border-right: 1px solid rgba(20, 16, 14, 0.1);
    background: #FBF8F3;
    overflow: auto;
    transform: translateX(-100%);
  }
  body.po-app .po-header-drawer.is-open {
    display: flex;
    animation: po-drawer-in 0.28s ease forwards;
  }
  body.po-app .po-header-drawer a {
    font-size: 15px !important;
    letter-spacing: 0.12em !important;
    padding: 12px 0 !important;
    border-bottom: none !important;
  }
  body.po-app .po-header-drawer .po-header-locales {
    border-left: none;
    padding-left: 0;
    padding-top: 16px;
    margin-top: 8px;
    gap: 14px;
  }
  body.po-app .po-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  body.po-app .po-hero-ctas a {
    text-align: center;
  }
  body.po-app .po-gallery {
    column-count: 2;
  }
  body.po-app .po-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}

@keyframes po-drawer-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.po-app [data-reveal] { opacity: 1; transform: none; transition: none; }
  body.po-app [data-parallax],
  body.po-app [style*="bwDrift"] { animation: none !important; }
  body.po-app .po-header-drawer.is-open {
    animation: none;
    transform: none;
  }
}

.po-field,
body.po-app .input-field {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(20,16,14,0.2);
  background: #FBF8F3;
  color: #14100E;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
}
.po-field:focus,
body.po-app .input-field:focus {
  border-color: #A81A20;
}

.po-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #A81A20;
  color: #fff;
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

body.po-app .po-content-shell .cms-richtext__body,
body.po-app .po-richtext-wrap .cms-richtext__body {
  color: #4A423C;
  font-size: 16.5px;
  line-height: 1.8;
  font-weight: 300;
}
body.po-app .po-content-shell .cms-richtext__body :is(h1, h2, h3, h4),
body.po-app .po-richtext-wrap .cms-richtext__body :is(h1, h2, h3, h4) {
  color: #14100E;
  font-family: var(--po-serif), Georgia, serif;
  text-transform: none;
  font-weight: 300;
}
body.po-app .po-content-empty { color: #6B615A !important; }

body.po-app .po-gallery {
  column-count: 3;
  column-gap: 14px;
}
body.po-app .po-gallery--split {
  column-count: 2;
  column-gap: 12px;
}
body.po-app .po-gallery figure {
  break-inside: avoid;
  margin: 0 0 14px;
  background: #F3EDE4;
}
body.po-app .po-gallery__shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
body.po-app .po-gallery__shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  transition: filter 0.25s ease;
}
body.po-app .po-gallery__shot:hover img,
body.po-app .po-gallery__shot:focus-visible img {
  filter: brightness(0.9);
}

body.po-app .po-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 7, 0.94);
  padding: 56px 56px 80px;
  cursor: zoom-out;
}
body.po-app .po-lightbox__stage {
  margin: 0;
  max-width: min(92vw, 1280px);
  display: grid;
  justify-items: center;
  cursor: default;
}
body.po-app .po-lightbox__stage img {
  max-width: min(92vw, 1280px);
  max-height: min(78vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
body.po-app .po-lightbox__stage figcaption {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  justify-content: center;
  color: #E8DFD3;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 300;
}
body.po-app .po-lightbox__caption {
  font-family: var(--po-serif), Georgia, serif;
  font-size: 16px;
  letter-spacing: 0;
}
body.po-app .po-lightbox__count {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9A8F86;
}
body.po-app .po-lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #FBF8F3;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 4px;
}
body.po-app .po-lightbox__close:hover {
  color: #A81A20;
}
body.po-app .po-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(251, 248, 243, 0.22);
  background: rgba(10, 8, 7, 0.35);
  color: #FBF8F3;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
}
body.po-app .po-lightbox__nav:hover {
  border-color: #A81A20;
  color: #A81A20;
}
body.po-app .po-lightbox__nav--prev { left: 16px; }
body.po-app .po-lightbox__nav--next { right: 16px; }

@media (max-width: 560px) {
  body.po-app .po-gallery,
  body.po-app .po-gallery--split {
    column-count: 1;
  }
  body.po-app .po-lightbox {
    padding: 64px 12px 72px;
  }
  body.po-app .po-lightbox__nav--prev { left: 6px; }
  body.po-app .po-lightbox__nav--next { right: 6px; }
}
